Commit graph

41 commits

Author SHA1 Message Date
59ec75dbf6
get one line output matching wttr.in 2026-01-08 15:05:15 -08:00
115af96c8a
update line and push custom to custom 2026-01-08 14:47:31 -08:00
d20b49dc90
add handler/server tests 2026-01-08 12:04:30 -08:00
05d470871f
move queryparams test to queryparams. handler now has no reference to allocators 2026-01-07 09:31:50 -08:00
17d94d9285
move to std.Io.Writer rather than allocating strings everywhere 2026-01-07 09:11:26 -08:00
b46940a7a3
prometheus support 2026-01-07 08:27:08 -08:00
523e9fdcad
Determine proper client IP prior to rate limiting, then pass it through 2026-01-06 22:57:39 -08:00
6ce156e243
add astronomical times support 2026-01-06 22:38:19 -08:00
e95c13b1c6
moon phase calculation based on phoon 2026-01-06 19:15:24 -08:00
80266514e0
more renaming 2026-01-06 17:17:43 -08:00
4ec74d8967
better naming 2026-01-06 17:12:38 -08:00
58f6e390bd
update help 2026-01-06 17:00:34 -08:00
98747a3d30
implement view options n,q,Q,0,1,2 2026-01-06 15:34:17 -08:00
5e1c2fb44c
update help page 2026-01-06 14:42:03 -08:00
1e6a5e28ca
enable ip2location unconditionally as it can work without an api key
All checks were successful
Generic zig build / build (push) Successful in 1m18s
Generic zig build / deploy (push) Successful in 14s
2026-01-06 12:13:45 -08:00
06b4a6057a
implement ansi/text and user-agent based html output 2026-01-06 10:15:33 -08:00
95ce25919f
add favicon 2026-01-06 09:10:00 -08:00
456057a2c0
working IP address implementation and unit tests around GeoIP/full handler flow
All checks were successful
Generic zig build / build (push) Successful in 1m18s
Generic zig build / deploy (push) Successful in 14s
2026-01-05 22:56:32 -08:00
ffd87490cd
remove hard coded 500 errors from handleWeatherInternal
All checks were successful
Generic zig build / build (push) Successful in 1m29s
Generic zig build / deploy (push) Successful in 1m16s
2026-01-05 16:57:33 -08:00
6e829eea30
handle client ip without forwarding headers
All checks were successful
Generic zig build / build (push) Successful in 1m17s
Generic zig build / deploy (push) Successful in 13s
2026-01-05 16:13:59 -08:00
bf4ea51424
make uncaughtError public
All checks were successful
Generic zig build / build (push) Successful in 2m22s
Generic zig build / deploy (push) Successful in 2m7s
2026-01-05 15:32:51 -08:00
a5afaeb848
more logging
All checks were successful
Generic zig build / build (push) Successful in 1m19s
Generic zig build / deploy (push) Successful in 12s
2026-01-05 15:20:31 -08:00
005874b7bf
set the location display name in the handler 2026-01-04 11:23:42 -08:00
52a5bf2543
rename ansi to formatted 2026-01-03 16:11:06 -08:00
8df2877644
add location header to ease debugging 2025-12-19 15:43:08 -08:00
62e7b83d1b
Return 404 instead of defaulting to London if no location found 2025-12-19 15:42:36 -08:00
50f8889e6e
be clear on which allocator this is 2025-12-19 15:41:26 -08:00
8b51be05af
move cache to the provider interface to persist raw provider data 2025-12-19 15:27:01 -08:00
0a175c55d3
update cache implementation with proper L1/L2 persistence 2025-12-19 14:35:23 -08:00
ac6ddf829d
location_query is never null 2025-12-18 18:01:20 -08:00
a172a9a325
startsWith there makes no sense 2025-12-18 17:59:04 -08:00
60cede5a8b
simplify structure 2025-12-18 17:58:15 -08:00
7d06d281e0
address location fallback logic, for now 2025-12-18 17:54:13 -08:00
4ea857331f
add comment on why we are not using a proper middleware 2025-12-18 16:57:46 -08:00
4195f43fa7
centralize/reuse coordinates structure 2025-12-18 15:41:08 -08:00
448c49ae79
convert provider -> Provider 2025-12-18 15:06:44 -08:00
703e77c19d
remove error-based control flow/handle ipv6 2025-12-18 13:49:32 -08:00
8d9204ab8d
add note on translation page that translations not yet supported 2025-12-18 13:35:45 -08:00
61bd6c6b90
update GeoIP -> GeoIp 2025-12-18 13:33:59 -08:00
015418fccb
Had AI collapse appropriate files to avoid nested structs 2025-12-18 13:23:06 -08:00
1800c68081
move zig to base, python/go out to legacy 2025-12-18 12:24:21 -08:00