diff options
author | Laria Carolin Chabowski <laria@laria.me> | 2022-01-11 23:39:30 +0100 |
---|---|---|
committer | Laria Carolin Chabowski <laria@laria.me> | 2022-01-11 23:40:14 +0100 |
commit | 2d73e0567c9ac6e03cfc8bfc62a8f24ef4fadebc (patch) | |
tree | 6eb596532249711e9f01f3c8f214cc8d61bc0ca5 /config.go | |
parent | 67852eb58e1797a54a34df44e3444829d9031ad7 (diff) | |
download | startpage-2d73e0567c9ac6e03cfc8bfc62a8f24ef4fadebc.tar.gz startpage-2d73e0567c9ac6e03cfc8bfc62a8f24ef4fadebc.tar.bz2 startpage-2d73e0567c9ac6e03cfc8bfc62a8f24ef4fadebc.zip |
The old XML API will be discontinued next month and is already returning
errors occasionally (apparently to nudge lazy devs like me to update their
code :D).
We're also doing a much better job at caching now, as suggested by the API
documentation.
We're not yet showing a weather icon, I still have to figure out how to do
this now (apparently the weather icons are a separate API / actually just a
tag.gz archive that the weather API references?), but at least we're not
panic()ing any more in the request handlers due to the unexpected error
responses :/.
See https://developer.yr.no/doc/GettingStarted/ for an intorduction to the
new API.
Diffstat (limited to 'config.go')
-rw-r--r-- | config.go | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -10,7 +10,9 @@ import ( // Config contains all configuration options that are read from .config/startpage/config.json type Config struct { // The place for which to get the weather data. If omitted, no weather will be shown - WeatherPlace string + WeatherCoords struct { + Lat, Lon string + } // A list of links to show Links []Link |