
OWM Decimal Rounding
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 29
- Joined: Monday 24 February 2014 14:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
OWM Decimal Rounding
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! 

-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: OWM Decimal Rounding
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?
Let's try to find a permanent solution as well. Inch or mm for you?
- Minglarn
- Posts: 214
- Joined: Friday 21 August 2015 19:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version: v3.8153
- Location: Stockholm / Sweden
- Contact:
Re: OWM Decimal Rounding
I did remove the rain mm ... No need to know how much it will rain. 
In custom.css I did:
Still don't know how to get DAYS instead of 3h hours... 

In custom.css I did:
Code: Select all
/* OWM Hide "mm" */
div.temp.rain {display:none}

“When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
-
- Posts: 29
- Joined: Monday 24 February 2014 14:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: OWM Decimal Rounding
Sorry for long reply time. Yes my units are millimeters. 
-
- Posts: 29
- Joined: Monday 24 February 2014 14:31
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: OWM Decimal Rounding
This doesnt seem to work for me, still shows the mm...?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:owm.PNGCode: Select all
/* OWM Hide "mm" */ div.temp.rain {display:none}
Still don't know how to get DAYS instead of 3h hours...![]()
-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: OWM Decimal Rounding
.rain { display:none !important};JoshDinsdale wrote: ↑Friday 09 November 2018 21:01This doesnt seem to work for me, still shows the mm...?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:owm.PNGCode: Select all
/* OWM Hide "mm" */ div.temp.rain {display:none}
Still don't know how to get DAYS instead of 3h hours...![]()
Who is online
Users browsing this forum: No registered users and 1 guest