No description
Find a file
Adriano Caloiaro 7099961ba3
fix(weather): derive clear-sky peak from latitude and date, use current time for sun-angle
Replace the hardcoded peakSolarRadiation constant with solarNoonPeak(), which
scales the atmospheric ceiling (950 W/m²) by sin(solar elevation angle). Elevation
is computed from the current latitude and solar declination (function of day-of-year),
so the normalization is accurate across seasons and locations rather than assuming
equatorial/summer-solstice conditions.

Also switch the sun-angle time calculation from d.LastUpdated to time.Now() so
that a stale cache entry (e.g. after a Starlink connectivity gap) doesn't cause the
wrong time-of-day to be used when inferring conditions.
2026-04-11 19:15:09 -06:00
geocode feat: append location snapshots to WebDAV JSON log on each poll 2026-04-10 08:45:50 -06:00
service feat(weather): log temperature and station type on data report push 2026-04-11 12:42:24 -06:00
starlink feat: append location snapshots to WebDAV JSON log on each poll 2026-04-10 08:45:50 -06:00
vendor feat: append location snapshots to WebDAV JSON log on each poll 2026-04-10 08:45:50 -06:00
weather fix(weather): derive clear-sky peak from latitude and date, use current time for sun-angle 2026-04-11 19:15:09 -06:00
webdav feat: append location snapshots to WebDAV JSON log on each poll 2026-04-10 08:45:50 -06:00
.ignore feat(weather): add dawn and dusk conditions based on solar sensor 2026-04-11 12:28:38 -06:00
go.mod feat: append location snapshots to WebDAV JSON log on each poll 2026-04-10 08:45:50 -06:00
go.sum feat: append location snapshots to WebDAV JSON log on each poll 2026-04-10 08:45:50 -06:00
main.go feat: append location snapshots to WebDAV JSON log on each poll 2026-04-10 08:45:50 -06:00
README.md Update README.md 2021-07-27 08:01:59 -07:00

roam-location

The purpose of this repo is to make my current location available on adriano.fyi. The coordinates from the two services here are used populate the map at https://adriano.fyi/whereami

About

I can't imagine this is useful to many others. This repo consits of a receiver of GPS data and a web service that makes the data avaialble.

Receiver

The receiver receives UDP packets containing NMEA sentences from my Sierra Wireless RV55 router. The sentences are parsed and appended to a log file.

Location Service

The location service simply finds the last location appended to the log file and makes it available as a JSON object over HTTP.

Running

ROAM_LOCATION_DB_PATH=/path/to/nmea_logs.log go run main.go