Skip to content

🌻 API server to query pollen forecast data for Germany.

License

Notifications You must be signed in to change notification settings

ksassnowski/api.achoo.dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌻 Achoo – Pollen Forecast API for Germany

This is the source code for the API server running over at https://api.achoo.dev. Check out the documentation at https://achoo.dev.

Where is the data coming from?

The API is using data provided by the Deutscher Wetterdienst (DWD). The raw data can be found here. Basically all I'm doing is slightly changing the format and providing endpoints to query only parts of the data.

Running the server

Build the project by either running make dist (builds for linux/amd64 by default) or by running go build -o dist/pollen-api.

Start the server by executing the binary

./pollen-api

This will start an HTTP server listening on port 8000. The server itself does not support HTTPS, so you should use a reverse proxy for that.

Redis

The server stores all its data in redis. You can configure the connection parameters through environment variables.

Variable Description Default
REDIS_HOST The address including the port of the redis server. localhost:6379
REDIS_KEY_PREFIX If set, all redis keys will be prefixed with this. ""
REDIS_PASSWORD Password to use when connecting to the redis erver. ""

Running the tests

make test

License

MIT

About

🌻 API server to query pollen forecast data for Germany.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published