Page 1 of 1
OWM Decimal Rounding
Posted: Sunday 04 November 2018 18:10
by JoshDinsdale
Is it possible to change the decimal rounding for OWM rain data? its currently wrapping the columns which is fuxing with my layout, and i dont really need to know about 0.02mm of rain!

Re: OWM Decimal Rounding
Posted: Sunday 04 November 2018 18:36
by Lokonli
You can hack line 80 in js/weather_owm.js.
Let's try to find a permanent solution as well. Inch or mm for you?
Re: OWM Decimal Rounding
Posted: Sunday 04 November 2018 18:54
by Minglarn
I did remove the rain mm ... No need to know how much it will rain.
In custom.css I did:
Code: Select all
/* OWM Hide "mm" */
div.temp.rain {display:none}

- owm.PNG (16.6 KiB) Viewed 621 times
Still don't know how to get DAYS instead of 3h hours...

Re: OWM Decimal Rounding
Posted: Friday 09 November 2018 19:19
by JoshDinsdale
Sorry for long reply time. Yes my units are millimeters.

Re: OWM Decimal Rounding
Posted: Friday 09 November 2018 21:01
by JoshDinsdale
Minglarn wrote: ↑Sunday 04 November 2018 18:54
I did remove the rain mm ... No need to know how much it will rain.
In custom.css I did:
Code: Select all
/* OWM Hide "mm" */
div.temp.rain {display:none}
owm.PNG
Still don't know how to get DAYS instead of 3h hours...
This doesnt seem to work for me, still shows the mm...?
Re: OWM Decimal Rounding
Posted: Friday 09 November 2018 22:01
by Lokonli
JoshDinsdale wrote: ↑Friday 09 November 2018 21:01
Minglarn wrote: ↑Sunday 04 November 2018 18:54
I did remove the rain mm ... No need to know how much it will rain.
In custom.css I did:
Code: Select all
/* OWM Hide "mm" */
div.temp.rain {display:none}
owm.PNG
Still don't know how to get DAYS instead of 3h hours...
This doesnt seem to work for me, still shows the mm...?
.rain { display:none !important};