18 Commits

Author SHA1 Message Date
089220d182 Update canonical domain to 7am.nym.sh (#4)
Reviewed-on: #4
2026-06-14 19:06:03 +01:00
cff02a574c add api route for querying summaries 2025-06-20 22:04:30 +01:00
e95d3ae624 Added support for Manila and Hong Kong (#3)
Co-authored-by: MMatthew14 <matthewlorenz@protonmail.com>
Reviewed-on: https://github.com/kennethnym/7am/pull/3
2025-05-14 19:38:48 +01:00
7750c0d75e Add support for Singapore (#2)
Co-authored-by: sevensxyt <sevendotxyt@proton.me>
Reviewed-on: https://github.com/kennethnym/7am/pull/2
2025-05-14 13:16:31 +01:00
28a33f869b use mutex to guard sqlite writes 2025-05-13 00:52:16 +01:00
a2a2d008dd fix sql conflict on summary cache update 2025-05-13 00:51:22 +01:00
0549108114 add support for stockholm and amsterdam 2025-05-13 00:45:26 +01:00
49d725a4df enable write ahead log 2025-05-12 20:09:31 +01:00
373543834c improve prompt 2025-05-12 19:43:24 +01:00
cadeea7b58 fix rows are closed err on summary cache miss 2025-05-12 19:14:42 +01:00
a6fc47fb6f fix data race 2025-05-12 19:07:19 +01:00
9230638b12 Merge remote-tracking branch 'origin/master' 2025-05-12 18:58:39 +01:00
0a4ec7ddb1 cache weather summaries to sqlite 2025-05-12 18:58:31 +01:00
5987513c7b Merge pull request 'Add Paris to list of supported cities' (#1) into master
Reviewed-on: https://github.com/kennethnym/7am/pull/1
2025-05-12 18:09:32 +01:00
axeelz
00eafedca0 chore: scrap Paris placeholder data 2025-05-12 18:38:11 +02:00
axeelz
b6419b8bdc style: reorder Paris in HTML list 2025-05-12 18:37:26 +02:00
75dd44268a only pass time series data to gemini 2025-05-12 12:09:58 +01:00
axeelz
912043a0d2 feat: add support for Paris, France 2025-05-12 11:44:46 +02:00
6 changed files with 246 additions and 108 deletions

View File

@@ -1,6 +1,6 @@
# 7am
[7am.is](https://7am.is)
[7am.nym.sh](https://7am.nym.sh)
![](./screenshot/homepage.png)

308
main.go

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -8,16 +8,16 @@
<meta name="description" content="Daily weather summary delivered to you at 7am.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://7am.is">
<meta property="og:url" content="https://7am.nym.sh">
<meta property="og:title" content="7am Weather">
<meta property="og:description" content="Daily weather summary delivered to you at 7am.">
<meta property="og:image" content="https://7am.is/hero.png">
<meta property="og:image" content="https://7am.nym.sh/hero.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="https://7am.is">
<meta name="twitter:url" content="https://7am.nym.sh">
<meta name="twitter:title" content="7am Weather">
<meta name="twitter:description" content="Daily weather summary delivered to you at 7am.">
<meta name="twitter:image" content="https://7am.is/hero.png">
<meta name="twitter:image" content="https://7am.nym.sh/hero.png">
<link rel="icon" type="image/png" href="/favicon.png">
<link rel="manifest" href="/manifest.json">
@@ -45,11 +45,17 @@
<li><a href="/sj">San Jose</a></li>
<li><a href="/la">Los Angeles</a></li>
<li><a href="/nyc">New York City</a></li>
<li><a href="/paris">Paris</a></li>
<li><a href="/berlin">Berlin</a></li>
<li><a href="/zurich">Zurich</a></li>
<li><a href="/stockholm">Stockholm</a></li>
<li><a href="/amsterdam">Amsterdam</a></li>
<li><a href="/warsaw">Warsaw</a></li>
<li><a href="/dubai">Dubai</a></li>
<li><a href="/tokyo">Tokyo</a></li>
<li><a href="/singapore">Singapore</a></li>
<li><a href="/manila">Manila</a></li>
<li><a href="/hk">Hong Kong</a></li>
</ul>
</main>

View File

@@ -8,16 +8,16 @@
<meta name="description" content="7am instructions for iOS users">
<meta property="og:type" content="website">
<meta property="og:url" content="https://7am.is/instructions">
<meta property="og:url" content="https://7am.nym.sh/instructions">
<meta property="og:title" content="7am Weather">
<meta property="og:description" content="7am instructions for iOS users">
<meta property="og:image" content="https://7am.is/hero.png">
<meta property="og:image" content="https://7am.nym.sh/hero.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="https://7am.is/instructions">
<meta name="twitter:url" content="https://7am.nym.sh/instructions">
<meta name="twitter:title" content="7am Weather">
<meta name="twitter:description" content="7am instructions for iOS users">
<meta name="twitter:image" content="https://7am.is/hero.png">
<meta name="twitter:image" content="https://7am.nym.sh/hero.png">
<link rel="icon" type="image/png" href="/favicon.png">
<link rel="manifest" href="/manifest.json">

View File

@@ -8,16 +8,16 @@
<meta name="description" content="Weather summary for {{.LocationName}}">
<meta property="og:type" content="website">
<meta property="og:url" content="https://7am.is/{{.Location}}">
<meta property="og:url" content="https://7am.nym.sh/{{.Location}}">
<meta property="og:title" content="7am Weather">
<meta property="og:description" content="Weather summary for {{.LocationName}}">
<meta property="og:image" content="https://7am.is/hero.png">
<meta property="og:image" content="https://7am.nym.sh/hero.png">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:url" content="https://7am.is/{{.Location}}">
<meta name="twitter:url" content="https://7am.nym.sh/{{.Location}}">
<meta name="twitter:title" content="7am Weather">
<meta name="twitter:description" content="Weather summary for {{.LocationName}}">
<meta name="twitter:image" content="https://7am.is/hero.png">
<meta name="twitter:image" content="https://7am.nym.sh/hero.png">
<link rel="icon" type="image/png" href="/favicon.png">
<link rel="manifest" href="/manifest.json">