Display weather data on indi‑allsky photos via OpenWeather API

Open Weather Logoindi‑allsky can retrieve weather data such as temperature, humidity or cloud cover directly from the OpenWeather API and integrate it into the image caption. This requires a valid API key and the coordinates of the location. The setup is done in the web interface under Sensors, where OpenWeather is selected as the source and the API key is entered. In addition, the longitude and latitude of the camera’s location must be set under “Location”.

Get API key from OpenWeather

To be able to use OpenWeather in indi‑allsky, you need a personal API key. This can be generated free of charge on the OpenWeather website. To do this, first create a user account at openweathermap.org. After logging in, select the Create Key option in the API Keys section and enter a name of your choice. The key is displayed immediately and must then be entered in the indi‑allsky web interface. Activation can take up to 15 minutes.

Sensor logic in indi‑allsky

indi‑allsky stores external data sources internally as continuous user sensors. OpenWeather starts from a defined start slot (e.g. slot 11) and then fills the following values in sequence:

  • sensor_user_11 = Temperature
  • sensor_user_12 = Feels Like
  • sensor_user_13 = Humidity
  • sensor_user_14 = Air pressure
  • sensor_user_15 = Cloud cover (%)
  • sensor_user_16 = Wind speed
  • sensor_user_17 = Wind gusts (gusts)
  • sensor_user_18 = Rain (1h)
  • sensor_user_19 = Snow (1h)
  • sensor_user_20 = Dew point (dew point)
  • sensor_user_21 = Frost point
  • sensor_user_22 = Heat Index
  • sensor_user_23 = Wind direction (degrees)

The sequence is fixed. The only decisive factor is which start slot is used in your installation – counting up starts from there.

Examples of labels in the image output

All sensor values can be included in the overlay template using placeholders. The format specification such as :0.1f controls the decimal places.

Examples when starting with slot 11 look as follows:

Display cloud cover:

 Cloud cover: {sensor_user_15:0.0f}%

Temperature and perceived temperature:

 Temp: {sensor_user_11:0.1f}°C Feels like: {sensor_user_12:0.1f}°C

Important: When saving, click on “Reload on Save”, then the capture process is restarted and only when it is running again will you see the corresponding labels.

Fun fact: I once made a mistake with the sensor_user and got 82°C. I thought that was a bit hot. I thought that was a bit hot.

Enjoyed this post?

You can support allsky-rodgau.de with a small coffee on BuyMeACoffee.

Buy me a coffee!