Import weather data other than Wunderground

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

silver323
Posts: 28
Joined: Friday 01 December 2017 18:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by silver323 »

i have a question.
I have the counter on 5 days for the OWM so it shows 5 days.
But it's not showing on the whole lenght of the width.
owm.JPG
owm.JPG (40.08 KiB) Viewed 2227 times
How I get this done? Have this in the column code

columns[2] = {}
columns[2]['blocks'] = [
'currentweather_big_owm',
'weather_owm',
]
columns[2]['width'] = 5;
User avatar
EdwinK
Posts: 1820
Joined: Sunday 22 January 2017 21:46
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Rhoon
Contact:

Re: Import weather data other than Wunderground

Post by EdwinK »

At the moment, it looks like this for me, any way to fix it (easily)
Schermafbeelding 2019-02-27 om 12.33.56.png
Schermafbeelding 2019-02-27 om 12.33.56.png (63.01 KiB) Viewed 2224 times
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
arthur
Posts: 2
Joined: Friday 22 February 2019 11:45
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by arthur »

I LOVE THIS NEW LOOK FOR THE WEATHER BLOCK! But running 2.5.6, I'm still not getting the day view. Am I overlooking a typo somewhere?
Spoiler: show
config['owm_api'] = '1234567890etcetera'; // Your OWM API key
config['owm_city'] = 'Utrecht, NL'; // Your city or nearby city to use in OWM
config['owm_name'] = 'Tuinwijk'; // If your city is not available with OWM, you have to use a nearby city. You can type the name of your own city here to show it in Dashticz
config['owm_country'] = 'nl'; // Your country to use in OWM
config['owm_cnt'] = 4; // Number of columns to show. If showing days, max is 5, (4 is recommended )
config['owm_days'] = 1; // Enter 1 for showing forecast in days, 0 for the OWM default 3 hour forecast
config['owm_min'] = 1; // Enter 1 to show min temperature on 2nd row
config['owm_lang'] = 'nl'; // Set language for de description of the forecast (rain, cloudy, etc.). For available languages, see https://openweathermap.org/forecast5/#multi
config['static_weathericons'] = 0; // Enter 1 for animated weather icons, 0 for static icons
Spoiler: show
columns[3] = {}
columns[3]['blocks'] = ['blocktitle_3','sunrise',buttons.buienradar,'currentweather_big_owm','weather_owm']
columns[3]['width'] = 3;
Image
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by Lokonli »

arthur wrote: Tuesday 05 March 2019 9:55 I LOVE THIS NEW LOOK FOR THE WEATHER BLOCK! But running 2.5.6, I'm still not getting the day view. Am I overlooking a typo somewhere?
Spoiler: show
config['owm_api'] = '1234567890etcetera'; // Your OWM API key
config['owm_city'] = 'Utrecht, NL'; // Your city or nearby city to use in OWM
config['owm_name'] = 'Tuinwijk'; // If your city is not available with OWM, you have to use a nearby city. You can type the name of your own city here to show it in Dashticz
config['owm_country'] = 'nl'; // Your country to use in OWM
config['owm_cnt'] = 4; // Number of columns to show. If showing days, max is 5, (4 is recommended )
config['owm_days'] = 1; // Enter 1 for showing forecast in days, 0 for the OWM default 3 hour forecast
config['owm_min'] = 1; // Enter 1 to show min temperature on 2nd row
config['owm_lang'] = 'nl'; // Set language for de description of the forecast (rain, cloudy, etc.). For available languages, see https://openweathermap.org/forecast5/#multi
config['static_weathericons'] = 0; // Enter 1 for animated weather icons, 0 for static icons
Spoiler: show
columns[3] = {}
columns[3]['blocks'] = ['blocktitle_3','sunrise',buttons.buienradar,'currentweather_big_owm','weather_owm']
columns[3]['width'] = 3;
Image
It should work ...

Did you try refreshing the cache?
Maybe there accidentally is another row in your CONFIG.js with config['owm_days'] = 0 ?
jake
Posts: 742
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Import weather data other than Wunderground

Post by jake »

Lokonli wrote: Tuesday 05 March 2019 16:20 ...

It should work ...

Did you try refreshing the cache?
Maybe there accidentally is another row in your CONFIG.js with config['owm_days'] = 0 ?
@Lokonli

Can you please have a look at the varying column height per day/time slot? As shown above in my screenshot a few posts back, it can have big impact on screen layout. It would be nice when the columns would always be of equal height and the same height. Therefore my suggestion to reserve a 2nd line for the weather forecast text.
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by Lokonli »

jake wrote: Tuesday 05 March 2019 16:58
@Lokonli

Can you please have a look at the varying column height per day/time slot? As shown above in my screenshot a few posts back, it can have big impact on screen layout. It would be nice when the columns would always be of equal height and the same height. Therefore my suggestion to reserve a 2nd line for the weather forecast text.
I'll have a look.
As a partial fix, add the following to custom.css for a fixed height of the complete block:

Code: Select all

.weatherfull > .transbg {
  height: 250px !important;
}
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by Lokonli »

Lokonli wrote: Tuesday 05 March 2019 17:46
jake wrote: Tuesday 05 March 2019 16:58
@Lokonli

Can you please have a look at the varying column height per day/time slot? As shown above in my screenshot a few posts back, it can have big impact on screen layout. It would be nice when the columns would always be of equal height and the same height. Therefore my suggestion to reserve a 2nd line for the weather forecast text.
I'll have a look.
As a partial fix, add the following to custom.css for a fixed height of the complete block:

Code: Select all

.weatherfull > .transbg {
  height: 250px !important;
}
or prevent the line wrapping with:

Code: Select all

.weatherfull > .transbg {
  height: 170px !important;
  white-space: nowrap !important;
}
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by Lokonli »

silver323 wrote: Wednesday 27 February 2019 9:16 i have a question.
I have the counter on 5 days for the OWM so it shows 5 days.
But it's not showing on the whole lenght of the width.
owm.JPG

How I get this done? Have this in the column code

columns[2] = {}
columns[2]['blocks'] = [
'currentweather_big_owm',
'weather_owm',
]
columns[2]['width'] = 5;
Add the following to your custom/custom.js:

Code: Select all

.weatherfull > .transbg {
    width: 20%;
}
jake
Posts: 742
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Import weather data other than Wunderground

Post by jake »

Lokonli wrote:
Lokonli wrote: Tuesday 05 March 2019 17:46
jake wrote: Tuesday 05 March 2019 16:58
@Lokonli

Can you please have a look at the varying column height per day/time slot? As shown above in my screenshot a few posts back, it can have big impact on screen layout. It would be nice when the columns would always be of equal height and the same height. Therefore my suggestion to reserve a 2nd line for the weather forecast text.
I'll have a look.
As a partial fix, add the following to custom.css for a fixed height of the complete block:

Code: Select all

.weatherfull > .transbg {
  height: 250px !important;
}
or prevent the line wrapping with:

Code: Select all

.weatherfull > .transbg {
  height: 170px !important;
  white-space: nowrap !important;
}
@Lokonli, thanks, I tuned it to 195px to achieve a proper height and included the nowrapping as well. Now I have to wait for such a weather forecast where the linewrapping would occur normally (let's hope this takes a long time, since I have no issues with the text 'sunny' ;-) )
silver323
Posts: 28
Joined: Friday 01 December 2017 18:15
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by silver323 »

Lokonli wrote: Tuesday 05 March 2019 18:25
silver323 wrote: Wednesday 27 February 2019 9:16 i have a question.
I have the counter on 5 days for the OWM so it shows 5 days.
But it's not showing on the whole lenght of the width.
owm.JPG

How I get this done? Have this in the column code

columns[2] = {}
columns[2]['blocks'] = [
'currentweather_big_owm',
'weather_owm',
]
columns[2]['width'] = 5;
Add the following to your custom/custom.js:

Code: Select all

.weatherfull > .transbg {
    width: 20%;
}
Thanks.. that was the trick :)
TankySpanky
Posts: 43
Joined: Wednesday 06 February 2019 18:54
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

Re: Import weather data other than Wunderground

Post by TankySpanky »

Hello,

I have copied some settings from this thread but still i only get the 3 hour info,
I would like to have the 5 days view.
Is there a special setting i need to do ?

Code: Select all

config['owm_country'] = 'BE';
config['owm_lang'] = 'nl_NL';
config['owm_days'] = '1';
config['owm_cnt'] = '6';
Last edited by TankySpanky on Tuesday 26 March 2019 21:17, edited 1 time in total.
Raspberry Pi 3 B+ & Domoticz Beta & Dashticz Beta = Headache :)
But it keeps you van the straat
Lokonli
Posts: 2262
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by Lokonli »

TankySpanky wrote: Tuesday 26 March 2019 21:02 Hello,

I have copied some settings from this thread but still i only get the 3 hour info,
I would like to have the 5 days view.
Is there a special setting i need to do ?

Code: Select all

config['owm_country'] = 'BE';
config['owm_lang'] = 'nl_NL';
config['owm_days'] = '6';
config['owm_cnt'] = '6';
Try with

Code: Select all

config['owm_days'] = 1;
config['owm_cnt'] = '5';
TankySpanky
Posts: 43
Joined: Wednesday 06 February 2019 18:54
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

Re: Import weather data other than Wunderground

Post by TankySpanky »

Ty Lokonli,
But still same result
I tried also to change it in the settings.js
both settings are the same now but only 3 hours info
dashticz-1.jpg
dashticz-1.jpg (199.38 KiB) Viewed 1978 times
Raspberry Pi 3 B+ & Domoticz Beta & Dashticz Beta = Headache :)
But it keeps you van the straat
TankySpanky
Posts: 43
Joined: Wednesday 06 February 2019 18:54
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Belgium
Contact:

Re: Import weather data other than Wunderground

Post by TankySpanky »

Tis oplost :)

I found the problem, somewhere was stil a "days =0" far hidden in the long list of items

Pffft gives me a headache :) hahahaha

Back to the other parts the agenda......

ty for the help matey :)
Raspberry Pi 3 B+ & Domoticz Beta & Dashticz Beta = Headache :)
But it keeps you van the straat
mojojojo490
Posts: 32
Joined: Saturday 03 August 2019 7:32
Target OS: Raspberry Pi / ODroid
Domoticz version: 2020.2
Location: Netherlands, Heiloo
Contact:

Re: Import weather data other than Wunderground

Post by mojojojo490 »

Hi all, i have for now the OWM in Dashticz included.
The language is set to nl.
But, the language on the day's won't change to nl.....

Image

Does anyone have a clue how to fix it?

My code is:

Code: Select all

config['owm_api'] = 'my-own-api-key'; 
config['owm_city'] = 'Heiloo';                          
config['owm_name'] = '';                                
config['owm_country'] = 'nl';                           
config['owm_lang'] = 'nl';                              
config['owm_cnt'] = '5';                                
config['owm_days'] = 1;			                        
config['owm_min'] = 1;			                        
config['static_weathericons'] = 0;
Starter RPi3B, Domoticz Stable 2020.2, 10x Qubino Mini Dimmer, 1x Qubino shutter
Plugwise Anna + Adam + 2x Koen-4 & 1x Floor; SolarEdge SE3000H
Dashticz v3
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by HansieNL »

Have you set config['language'] = 'nl_NL'; ?
If so you can try to change to en_US, refresh your browser and change it back to nl_NL and refresh your browser.
Or try to load Dashticz in incognito mode.
Most of the time is this kind of “problem” a cache issue.
Blah blah blah
Sarcas
Posts: 86
Joined: Wednesday 11 October 2017 8:50
Target OS: Raspberry Pi / ODroid
Domoticz version: 2022.1ß
Location: Friesland
Contact:

Re: Import weather data other than Wunderground

Post by Sarcas »

Absoluut beginner here. Trying my first dashboard with my OpenWeatherMap settings. I get the layout of the blocks, but they are empty. When I test in Chrome the server response I get this link:

Code: Select all

http://192.168.8.156:8082/0https://api.openweathermap.org/data/2.5/weather?id=<mycitycode>&appid=<myapi>&lang=0&units=metric
When I only paste the part after my local address, I get all the api data just fine. I have no idea what I am doing wrong, my settings look like all the examples here.

Any ideas?

thanks
--

Domoticz on rPi4 - RFXCOM RFXtrx433 USB - ZW090 Z-Stick Gen5 EU - IKEA Tradfri - Philips HUE - YouLess meter - SolarEdge
Backlash
Posts: 9
Joined: Sunday 23 August 2020 20:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Nederland
Contact:

Re: Import weather data other than Wunderground

Post by Backlash »

Got the same issue, in domoticz is works fine but only in dashticz the blocks are empty.
Maybe a problem in Dasticz V3.5-master?
Backlash
Posts: 9
Joined: Sunday 23 August 2020 20:47
Target OS: Raspberry Pi / ODroid
Domoticz version: Latest
Location: Nederland
Contact:

Re: Import weather data other than Wunderground

Post by Backlash »

nobody who can point us at the right direction?
User avatar
HansieNL
Posts: 957
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Import weather data other than Wunderground

Post by HansieNL »

Just tried my config with Dashticz 3.5 master and the 'weather_owm' block has no problem.
What settings do you use (without API key)?
Blah blah blah
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest