OWM Decimal Rounding

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
JoshDinsdale
Posts: 29
Joined: Monday 24 February 2014 14:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

OWM Decimal Rounding

Post 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! :D
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: OWM Decimal Rounding

Post 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?
User avatar
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

Post 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
owm.PNG (16.6 KiB) Viewed 620 times
Still don't know how to get DAYS instead of 3h hours... :D
When you eliminate the impossible, whatever remains, however improbable, must be the truth.” -Spock in Star Trek VI
JoshDinsdale
Posts: 29
Joined: Monday 24 February 2014 14:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: OWM Decimal Rounding

Post by JoshDinsdale »

Sorry for long reply time. Yes my units are millimeters. 🙂
JoshDinsdale
Posts: 29
Joined: Monday 24 February 2014 14:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: OWM Decimal Rounding

Post 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... :D
This doesnt seem to work for me, still shows the mm...?
Lokonli
Posts: 2287
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: OWM Decimal Rounding

Post 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... :D
This doesnt seem to work for me, still shows the mm...?
.rain { display:none !important};
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest