Read the statement by Michael Teeuw here.
[Weather module hourly template] Add another column for UV Index in hourly.njk with correct spacing
-
This post is deleted! -
@OWL all style is css
using the developers console and elements tab you can see the current and try different spacings, borders etc. til u get what u want. then save that to custom.css
-
@OWL
Hey, could you Provide your js files? I am also trying to add the uv index. So far, i was able to change the ndk and set a new variable to the constructor. But the variable is empty and I dont Understand How to add the data to the request and the „forecast“ Object.Many thanks For any help!
-
@Rene1695 A misconfigured docker sadly overwrote my js files on reboot and i hadn’t had the time to recreate it until now.
I cannot seem to upload my files here but you can look at my github repo where i synced all the changes. Watch out for a pull request to main, however that could take a while to end up in the releases.
https://github.com/OWL4C/MagicMirror/tree/develop/modules/default/weather
Of note are: weather.css (as @sdetweil detailed to add a border)
providers/openmeteo.js (since it is free and more detailed than the other ones i use openmeteo and only know how to integrate it from them, maybe you can get the api reference for others, it should be similar to openmeteo.js though)
hourly.njk (which adds the table entry, if the config.js has showUV_Index set to true)
and obviously config.js
As of yet hourly and current is implemented and i am trying to set up an max_UV for forecast.However there is one more bug: UV=0 does not get ignored like rain=0 but actually shows 0 0 0 0 etc. Not gamebreaking but still.