Skip to content
bartekl1 edited this page Mar 25, 2024 · 1 revision

Current readings widget

Website has a current readings widget that can be used as a iframe.

Widget is available under the path:

/widget

By default, the widget displays all measurements (temperature, humidity, pressure, dew point, PM 1.0, PM 2.5, PM 10, AQI), but you can hide them by adding the right parameter to the address with the value false. Available parameters are temperature, humidity, pressure, dewpoint, pm1.0, pm2.5, pm10, aqi.

Example URL with parameters (hidden dew point, PM 1.0, PM 2.5, PM 10):

https://swarzedzmeteo.pythonanywhere.com/widget?dewpoint=false&pm1.0=false&pm2.5=false&pm10=false

Example iframe for the above URL:

<iframe src="https://swarzedzmeteo.pythonanywhere.com/widget?dewpoint=false&pm1.0=false&pm2.5=false&pm10=false" frameBorder="0" height="340" width="500"></iframe>