OWM Decimal Rounding

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: robgeerts, htilburgs

Post Reply
JoshDinsdale
Posts: 26
Joined: Monday 24 February 2014 15:31
Target OS: Raspberry Pi
Domoticz version:
Contact:

OWM Decimal Rounding

Post by JoshDinsdale » Sunday 04 November 2018 19:10

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: 152
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: OWM Decimal Rounding

Post by Lokonli » Sunday 04 November 2018 19:36

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: 167
Joined: Friday 21 August 2015 19:27
Target OS: Raspberry Pi
Domoticz version: v3.8153
Location: Stockholm / Sweden
Contact:

Re: OWM Decimal Rounding

Post by Minglarn » Sunday 04 November 2018 19: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
owm.PNG (16.6 KiB) Viewed 143 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: 26
Joined: Monday 24 February 2014 15:31
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: OWM Decimal Rounding

Post by JoshDinsdale » Friday 09 November 2018 20:19

Sorry for long reply time. Yes my units are millimeters. 🙂

JoshDinsdale
Posts: 26
Joined: Monday 24 February 2014 15:31
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: OWM Decimal Rounding

Post by JoshDinsdale » Friday 09 November 2018 22:01

Minglarn wrote:
Sunday 04 November 2018 19: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: 152
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: OWM Decimal Rounding

Post by Lokonli » Friday 09 November 2018 23:01

JoshDinsdale wrote:
Friday 09 November 2018 22:01
Minglarn wrote:
Sunday 04 November 2018 19: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 5 guests