External APIs#
OpenWeatherMap#
The following APIs from OpenWeatherMap
were used for the weather widget
.
To use the APIs, an OpenWeatherMap account
and a token must be created.
The token must then be added as environment variable VITE_TOKEN_OWM
.
API | Description | Pricing |
---|---|---|
Current weather data | Used to get the current temperature, weather and city name based on the coordinates of the garden. The geocoder used in the API will soon be deprecated. |
60 free calls/minute 1,000,000 free calls/month |
One Call API 3.0 | Used to get the current day's temperature low and high, as well as the hourly forecast for temperature, rain probability, and wind speed and direction. | 1,000 free calls/day |
Geocoding API | Not used yet, but the service has already been implemented for it, so it can be used when the Current weater data API geocoder API is deprecated. |
60 free calls/minute 1,000,000 free calls/month |
Mapbox#
The following APIs from Mapbox
were used for the garden map
.
To use the APIs, an Mapbox account and a token
must be created.
The token must then be added as environment variable VITE_TOKEN_MAPBOX
.
API | Description | Pricing |
---|---|---|
Static Tiles | Used to add tiles to the map for the garden, so that the garden image can be better placed in the environment. | 200,000 free tile requests/month |