Dashticz v3.8.2 beta: New weather block
Moderators: leecollings, htilburgs, robgeerts
-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Dashticz v3.8.2 beta: New weather block
To improve the configurability of the weather block I decided to rewrite the weather block.
The old weather blocks are not supported anymore.
This means you have to update your weather block definitions!!
See the documentation: https://dashticz.readthedocs.io/en/beta ... tomweather
I've removed support for WeatherUnderground API, since no free API keys are provided anymore.
Only OpenWeatherMap is supported.
Currently four different layouts have been implemented: The fourth one is an hourly forecast,
Depending on your feedback I may add a few more layout options, or update the existing ones.
There are some configuration parameters per block already. These will be extended as well.
The old weather blocks are not supported anymore.
This means you have to update your weather block definitions!!
See the documentation: https://dashticz.readthedocs.io/en/beta ... tomweather
I've removed support for WeatherUnderground API, since no free API keys are provided anymore.
Only OpenWeatherMap is supported.
Currently four different layouts have been implemented: The fourth one is an hourly forecast,
Depending on your feedback I may add a few more layout options, or update the existing ones.
There are some configuration parameters per block already. These will be extended as well.
- EdwinK
- Posts: 1820
- Joined: Sunday 22 January 2017 21:46
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Rhoon
- Contact:
Re: Dashticz v3.8.2 beta: New weather block
Great 
Another reason to redo the dashboard.

Another reason to redo the dashboard.
Running latest BETA on a Pi-3 | Toon® Thermostat (rooted) | Hue | Tuya | IKEA tradfri | Dashticz V3 on Lenovo Huawei Tablet | Conbee
- kiddigital
- Posts: 438
- Joined: Thursday 10 August 2017 6:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Dashticz v3.8.2 beta: New weather block
Would also be nice if the OWM weather block of Dashticz could use the information from the ‘getforecastconfig’ command as this provides the OWM config info as used in Domoticz for the Weatherforecast screen.
If you use the OWM module in Domoticz and select to use OWM also for the forecast (setting in OWM module), this command provides the config info needed to show the info. This means no need anymore to have the OWM config also in the Dashticz config
If you use the OWM module in Domoticz and select to use OWM also for the forecast (setting in OWM module), this command provides the config info needed to show the info. This means no need anymore to have the OWM config also in the Dashticz config

One RPi with Domoticz, RFX433e, aeon labs z-wave plus stick GEN5, ha-bridge 5.4.0 for Alexa, Philips Hue Bridge, Pimoroni Automation Hat
One RPi with Pi foundation standard touch screen to display Dashticz
One RPi with Pi foundation standard touch screen to display Dashticz
-
- Posts: 742
- Joined: Saturday 30 May 2015 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: Dashticz v3.8.2 beta: New weather block
Thanks for the continious development. I copied the owm module settings into a block, with the intention that the dashboard would look the same.
(I have the OWM module config parameters still in the CONFIG.js file)
-When I keep the block name 'weather', the dashboard will show the weather, but based on the weather module instead (Things like different amount of forecast days are used from the module parameters)
-When I change the block name (and of course also in the column) to a different name than 'weather' (for instance 'weatherForecast') the block is not loaded at all anymore, but the dashboard only shows 'weatherForecast' on that place on the dash.
(btw: in your wiki page, there is 1 forward slash missing before the text 'Your openWeatherMap API')
config['owm_api'] = 'abc1234';
config['owm_city'] = 'Amsterdam';
config['owm_name'] = '';
config['owm_country'] = 'nl';
config['owm_cnt'] = '4';
config['owm_days'] = 1; // Enter 1 for showing forecast in days, 0 for the OWM default 3 hour forecast
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['owm_min'] = 1; // Enter 1 to show min temperature on 2nd row
config['static_weathericons'] = 0; // Static or 'moving' weather icons
blocks['weather'] = {
type: 'weather',
apikey: 'abc1234', //Your OpenWeatherMap API key
city: 'Amsterdam',
country: 'nl',
lang: 'nl',
layout: 0, //Daily forecast
width: 12,
count: 3,
refresh: 1800,
static_weathericons: false,
decimals: 2,
showRain: true,
showDescription: true
}
Removing the OWM parameters will only show an icon of the sun on the dashboard.
(I have the OWM module config parameters still in the CONFIG.js file)
-When I keep the block name 'weather', the dashboard will show the weather, but based on the weather module instead (Things like different amount of forecast days are used from the module parameters)
-When I change the block name (and of course also in the column) to a different name than 'weather' (for instance 'weatherForecast') the block is not loaded at all anymore, but the dashboard only shows 'weatherForecast' on that place on the dash.
(btw: in your wiki page, there is 1 forward slash missing before the text 'Your openWeatherMap API')
config['owm_api'] = 'abc1234';
config['owm_city'] = 'Amsterdam';
config['owm_name'] = '';
config['owm_country'] = 'nl';
config['owm_cnt'] = '4';
config['owm_days'] = 1; // Enter 1 for showing forecast in days, 0 for the OWM default 3 hour forecast
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['owm_min'] = 1; // Enter 1 to show min temperature on 2nd row
config['static_weathericons'] = 0; // Static or 'moving' weather icons
blocks['weather'] = {
type: 'weather',
apikey: 'abc1234', //Your OpenWeatherMap API key
city: 'Amsterdam',
country: 'nl',
lang: 'nl',
layout: 0, //Daily forecast
width: 12,
count: 3,
refresh: 1800,
static_weathericons: false,
decimals: 2,
showRain: true,
showDescription: true
}
Removing the OWM parameters will only show an icon of the sun on the dashboard.
-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz v3.8.2 beta: New weather block
ok, I'll look at that.kiddigital wrote: ↑Sunday 25 April 2021 10:55 Would also be nice if the OWM weather block of Dashticz could use the information from the ‘getforecastconfig’ command as this provides the OWM config info as used in Domoticz for the Weatherforecast screen.
If you use the OWM module in Domoticz and select to use OWM also for the forecast (setting in OWM module), this command provides the config info needed to show the info. This means no need anymore to have the OWM config also in the Dashticz config![]()
-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz v3.8.2 beta: New weather block
That should work. Can you check in DevTools for errors in the console tab or network tab?jake wrote: ↑Sunday 25 April 2021 12:47 Thanks for the continious development. I copied the owm module settings into a block, with the intention that the dashboard would look the same.
(I have the OWM module config parameters still in the CONFIG.js file)
-When I keep the block name 'weather', the dashboard will show the weather, but based on the weather module instead (Things like different amount of forecast days are used from the module parameters)
-When I change the block name (and of course also in the column) to a different name than 'weather' (for instance 'weatherForecast') the block is not loaded at all anymore, but the dashboard only shows 'weatherForecast' on that place on the dash.
(btw: in your wiki page, there is 1 forward slash missing before the text 'Your openWeatherMap API')
config['owm_api'] = 'abc1234';
config['owm_city'] = 'Amsterdam';
config['owm_name'] = '';
config['owm_country'] = 'nl';
config['owm_cnt'] = '4';
config['owm_days'] = 1; // Enter 1 for showing forecast in days, 0 for the OWM default 3 hour forecast
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['owm_min'] = 1; // Enter 1 to show min temperature on 2nd row
config['static_weathericons'] = 0; // Static or 'moving' weather icons
blocks['weather'] = {
type: 'weather',
apikey: 'abc1234', //Your OpenWeatherMap API key
city: 'Amsterdam',
country: 'nl',
lang: 'nl',
layout: 0, //Daily forecast
width: 12,
count: 3,
refresh: 1800,
static_weathericons: false,
decimals: 2,
showRain: true,
showDescription: true
}
Removing the OWM parameters will only show an icon of the sun on the dashboard.
You have to add type:'weather' to your block definition, otherwise it's not handled as a weather block, but as a button.
-
- Posts: 742
- Joined: Saturday 30 May 2015 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: Dashticz v3.8.2 beta: New weather block
Update:Lokonli wrote:That should work. Can you check in DevTools for errors in the console tab or network tab?jake wrote: ↑Sunday 25 April 2021 12:47 Thanks for the continious development. I copied the owm module settings into a block, with the intention that the dashboard would look the same.
(I have the OWM module config parameters still in the CONFIG.js file)
-When I keep the block name 'weather', the dashboard will show the weather, but based on the weather module instead (Things like different amount of forecast days are used from the module parameters)
-When I change the block name (and of course also in the column) to a different name than 'weather' (for instance 'weatherForecast') the block is not loaded at all anymore, but the dashboard only shows 'weatherForecast' on that place on the dash.
(btw: in your wiki page, there is 1 forward slash missing before the text 'Your openWeatherMap API')
config['owm_api'] = 'abc1234';
config['owm_city'] = 'Amsterdam';
config['owm_name'] = '';
config['owm_country'] = 'nl';
config['owm_cnt'] = '4';
config['owm_days'] = 1; // Enter 1 for showing forecast in days, 0 for the OWM default 3 hour forecast
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['owm_min'] = 1; // Enter 1 to show min temperature on 2nd row
config['static_weathericons'] = 0; // Static or 'moving' weather icons
blocks['weather'] = {
type: 'weather',
apikey: 'abc1234', //Your OpenWeatherMap API key
city: 'Amsterdam',
country: 'nl',
lang: 'nl',
layout: 0, //Daily forecast
width: 12,
count: 3,
refresh: 1800,
static_weathericons: false,
decimals: 2,
showRain: true,
showDescription: true
}
Removing the OWM parameters will only show an icon of the sun on the dashboard.
You have to add type:'weather' to your block definition, otherwise it's not handled as a weather block, but as a button.
I feel a little stupid. I didn't define the block in the 'var blocks' part of the config file. Now it loads fine. Sorry for the confusion
- madpatrick
- Posts: 662
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Dashticz v3.8.2 beta: New weather block
Great !
I have it working (in basics) and will test it the next coming days.
I have it working (in basics) and will test it the next coming days.
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.14b on Tab8" =-
-
- Posts: 742
- Joined: Saturday 30 May 2015 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Contact:
Re: Dashticz v3.8.2 beta: New weather block
After that the above matter (of not putting the block in the block section) is solved , the blocks shows in a first glimpse identical to the weather module block. However:
The 3.8.2 weather module/block shows days (text): Sunday, Monday, Tuesday, Wednesday
The 3.8.1 weather module shows days (text): Monday, Tuesday, Wednesday, Thursday
The temperatures for those days do not match for all 4 days (for the identical named days) between the weather module of 3.8.1 and module/block of 3.8.2 (in my case the Tuesday temperature is different)
The 3.8.2 weather module/block shows days (text): Sunday, Monday, Tuesday, Wednesday
The 3.8.1 weather module shows days (text): Monday, Tuesday, Wednesday, Thursday
The temperatures for those days do not match for all 4 days (for the identical named days) between the weather module of 3.8.1 and module/block of 3.8.2 (in my case the Tuesday temperature is different)
-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz v3.8.2 beta: New weather block
Yes, in 3.8.2 the daily forecast shows the current day as well.
Verstuurd vanaf mijn AC2003 met Tapatalk
Verstuurd vanaf mijn AC2003 met Tapatalk
-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz v3.8.2 beta: New weather block
The old block computed the min max temperatures from 3 hourly forecast.jake wrote: The temperatures for those days do not match for all 4 days (for the identical named days) between the weather module of 3.8.1 and module/block of 3.8.2 (in my case the Tuesday temperature is different)
The new block uses daily forecast as provided by OWM.
Verstuurd vanaf mijn AC2003 met Tapatalk
-
- Posts: 25
- Joined: Friday 19 April 2019 22:29
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2022.1
- Location: Netherlands
- Contact:
Re: Dashticz v3.8.2 beta: New weather block
Just added the block. Looks very nice.
A good replacement for WU.
Thanks a lot lokonli
A good replacement for WU.
Thanks a lot lokonli
Dz-beta | Dashticz 3.8.10 BETA | Tradfri | RF-Link | Z-Wave | Harmony | Unify | P1 |
-
- Posts: 238
- Joined: Tuesday 18 August 2020 8:41
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: NL
- Contact:
Re: Dashticz v3.8.2 beta: New weather block
Hi @lokonli,
Just updated, and configured the new OWM block.
The new block messed up my screen and standby screen a little, as I was previously using some css to resize icons/text etc. for the old 'weather_owm'.
I tried to get the same look&feel with the new OWM block, this goes fine for the normal screen.
But one css parameter I can't find: how to decrease the space between the 'rain' parameter and bottom of the block, this is now a little to big.
Same question for the space between 'description' and 'max' temperature parameter.
For the standby screen I cannot figure out the css.
My old weather_owm standby screen css:
Is it something like this:
Just updated, and configured the new OWM block.
The new block messed up my screen and standby screen a little, as I was previously using some css to resize icons/text etc. for the old 'weather_owm'.
I tried to get the same look&feel with the new OWM block, this goes fine for the normal screen.
But one css parameter I can't find: how to decrease the space between the 'rain' parameter and bottom of the block, this is now a little to big.
Same question for the space between 'description' and 'max' temperature parameter.
For the standby screen I cannot figure out the css.
My old weather_owm standby screen css:
- Spoiler: show
Is it something like this:
- Spoiler: show
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
- madpatrick
- Posts: 662
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Dashticz v3.8.2 beta: New weather block
Chris,Chris12 wrote: ↑Monday 26 April 2021 9:36 Hi @lokonli,
Just updated, and configured the new OWM block.
The new block messed up my screen and standby screen a little, as I was previously using some css to resize icons/text etc. for the old 'weather_owm'.
I tried to get the same look&feel with the new OWM block, this goes fine for the normal screen.
But one css parameter I can't find: how to decrease the space between the 'rain' parameter and bottom of the block, this is now a little to big.
Same question for the space between 'description' and 'max' temperature parameter.
For the standby screen I cannot figure out the css.
My old weather_owm standby screen css:How to rebuild this with the new OWM block?
- Spoiler: show
Is it something like this:
- Spoiler: show
You need to change it more like this (this is working for me....

Code: Select all
.standby [data-id='weather_standby'] {height: 70px !important}
.standby [data-id='weather_standby'] .icon {font-size: 26pt !important;color: yellow !important;margin-left: 120px !important}
.standby [data-id='weather_standby'] .temp {font-size: 36px !important;color:#f4ffcc;margin-left: 40px !important;}
Code: Select all
[data-id='weather_full'] {height: 220px !important;}
[data-id='weather_full'] .day {color:yellow !important;font-size: 16px !important;}
[data-id='weather_full'] .max {color:#f4ffcc !important;font-size: 22px !important;font-weight: bold !important;padding-top:15px !important;}
[data-id='weather_full'] .min {color:white !important;font-size: 20px !important;font-weight: normal !important;}
[data-id='weather_full'] .description {color:white !important;font-size: 14px !important;}
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.14b on Tab8" =-
-
- Posts: 238
- Joined: Tuesday 18 August 2020 8:41
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: NL
- Contact:
Re: Dashticz v3.8.2 beta: New weather block
Thanks for the code I tried it, but the code below doesn't seems to work.
The weather on the standby screen is still fullscreen.
The weather on the standby screen is still fullscreen.
- Spoiler: show
Last edited by Chris12 on Monday 26 April 2021 10:48, edited 1 time in total.
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
- madpatrick
- Posts: 662
- Joined: Monday 26 December 2016 12:17
- Target OS: Linux
- Domoticz version: 2024.7
- Location: Netherlands
- Contact:
Re: Dashticz v3.8.2 beta: New weather block
Did you try to reduce the font sizes ?
60px is pretty big
Also your icon is at 150%
60px is pretty big
Also your icon is at 150%
-= HP server GEN11 =- OZW -=- Toon2 (rooted) -=- Domoticz v2024.7 -=- Dashticz v3.14b on Tab8" =-
-
- Posts: 238
- Joined: Tuesday 18 August 2020 8:41
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: NL
- Contact:
Re: Dashticz v3.8.2 beta: New weather block
Hi just editted my previous post with the actual css.
Still the same behavior.
Still the same behavior.
Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
-
- Posts: 238
- Joined: Tuesday 18 August 2020 8:41
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: NL
- Contact:
Re: Dashticz v3.8.2 beta: New weather block
when I inspect elements on the standby screen I see this:

So I changed my config to:


So I changed my config to:
- Spoiler: show

Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
-
- Posts: 2287
- Joined: Monday 29 August 2016 22:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Dashticz v3.8.2 beta: New weather block
On your standby screen you still are using 'weather_owm' instead of 'weather_owm_new'.
If you want to make the weather block a bit smaller, adjust the width parameter, or set the scale parameter to for instance 0.7.
You also can modifiy things in custom.css. If you have only one weather block on your standby screen, then you can use the following:
This sets the base font size for this block. Almost all sizes are relative to the base font size.
The 'day blocks' of layout 0 and layout 1 have a small padding at the bottom and top. You can remove them with:
With '.standby' in the CSS selector you select all weather blocks on the standby screen. You can also select a specific weather block by using the data-id selector.
If you have defined your block in CONFIG.js as follows:
Then you can use the following in custom.css to apply styling to this block specifically:
If you want to make the weather block a bit smaller, adjust the width parameter, or set the scale parameter to for instance 0.7.
You also can modifiy things in custom.css. If you have only one weather block on your standby screen, then you can use the following:
Code: Select all
.standby .weather {
font-size: 8px !important
}
The 'day blocks' of layout 0 and layout 1 have a small padding at the bottom and top. You can remove them with:
Code: Select all
.standby .weather .weatherday {
padding-top: 0px;
padding-bottom: 0px;
}
If you have defined your block in CONFIG.js as follows:
Code: Select all
blocks['mycoolweatherblock'] = {
type: 'weather',
...
}
Code: Select all
[data-id='mycoolweatherblock'].weather {
font-size: 8px !important
}
[data-id='mycoolweatherblock'].weather .weatherday {
padding-top: 0px;
padding-bottom: 0px;
}
-
- Posts: 238
- Joined: Tuesday 18 August 2020 8:41
- Target OS: NAS (Synology & others)
- Domoticz version: 2021.1
- Location: NL
- Contact:
Re: Dashticz v3.8.2 beta: New weather block
@lokonli, thanks for replying.
I tried your code snippets, but still no success.
I do now have the following css entries:
The only part working of the above css code is this:
When inspecting the standby screen I can still see the weather_own being defined there?
I already cleared browser cache, and restarted the browser (FF)

I tried your code snippets, but still no success.
I do now have the following css entries:
- Spoiler: show
The only part working of the above css code is this:
Code: Select all
.standby .weather {font-size: 16px !important;}
I already cleared browser cache, and restarted the browser (FF)

Domoticz beta | Dashticz beta | Synology DS415+ | Wall tablet Teclast 11.6inch (Android) | TADO v3 controlled heating
Who is online
Users browsing this forum: No registered users and 1 guest