Dashticz-Dial-Wind Speed-Min-Max

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Dashticz-Dial-Wind Speed-Min-Max

Post by Doudy »

Hello,

Here is my block wind:

Code: Select all

blocks['wind'] = {
	idx: 43,
	title: 'Vitesse-Vent',  // Vitesse vent
	type: 'dial',
	color: '#57c4d6',
	min: 0,
	max: 100,
	values: [
			{
			value: 'Speed',
			addClass: 'bigwind',
			decimals: 1,
			unit: ' Km/h',
			}
	],
	setpoint: 0, 
	offset: 180, 
	width: 2,
	showring: true,
	showunit: true,
	shownumbers: true,
	last_update: true,
	showvalue: false,
}
Width min: 0 and max: 100
Yet the display does not adapt
Capture.PNG
Capture.PNG (35.36 KiB) Viewed 1759 times
But Min and max is always between 0 and 360

A idea ?
;)
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz-Dial-Wind Speed-Min-Max

Post by HansieNL »

See manual of wind dial:
This dial has a 360 degree range (like a compass). The wind direction can be set to point to where the wind is blowing from or to, by using the new "offset" parameter. Below I have set the dial to point to which direction the wind is blowing...
Blah blah blah
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: Dashticz-Dial-Wind Speed-Min-Max

Post by Doudy »

HansieNL wrote: Monday 09 August 2021 17:43 See manual of wind dial:
This dial has a 360 degree range (like a compass). The wind direction can be set to point to where the wind is blowing from or to, by using the new "offset" parameter. Below I have set the dial to point to which direction the wind is blowing...
YES, I understood that.
My question was to know if it was possible to modify the scale and limit it between 0 and 100 for example.
For the wind speed 360 km/h seems a bit much to me ...

;)
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
User avatar
HansieNL
Posts: 964
Joined: Monday 28 September 2015 15:13
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz-Dial-Wind Speed-Min-Max

Post by HansieNL »

360 is for the wind direction like a compass not the wind speed. If you can’t change it, it looks like it’s fixed.
Maybe @Lokonli can give us the right answer when he is back online.
Blah blah blah
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: Dashticz-Dial-Wind Speed-Min-Max

Post by Doudy »

HansieNL wrote: Tuesday 10 August 2021 18:14 Maybe @Lokonli can give us the right answer when he is back online.
👍
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
User avatar
rolandtwilt
Posts: 74
Joined: Monday 05 October 2020 18:55
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz-Dial-Wind Speed-Min-Max

Post by rolandtwilt »

just a question out of my own interest (because you are much further ahead than me) where do you measure the wind?
Via an online weatherstation and an API or do you really have an anemometer in your garden or balcony?
I would like the the device in my garden, but it is not easy to find an anemometer unless you go for a weather station with Wifi, but that costs 150 euros
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: Dashticz-Dial-Wind Speed-Min-Max

Post by Doudy »

Hello,
I have a "Renkforce WH2600 Wireless digital weather station"
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz-Dial-Wind Speed-Min-Max

Post by Lokonli »

HansieNL wrote: Tuesday 10 August 2021 18:14 360 is for the wind direction like a compass not the wind speed. If you can’t change it, it looks like it’s fixed.
Maybe @Lokonli can give us the right answer when he is back online.
For a wind device the dial indeed indicates the wind direction.

Currently this can't be changed.

I'll add it to the request list to make this configurable via a block parameter.
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: Dashticz-Dial-Wind Speed-Min-Max

Post by Doudy »

Lokonli wrote: Friday 13 August 2021 17:06 I'll add it to the request list to make this configurable via a block parameter.
👍
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
User avatar
rolandtwilt
Posts: 74
Joined: Monday 05 October 2020 18:55
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz-Dial-Wind Speed-Min-Max

Post by rolandtwilt »

Doudy wrote: Friday 13 August 2021 8:18 Hello,
I have a "Renkforce WH2600 Wireless digital weather station"
thanks for your comment!
That's quite an expensive joke, at least for me
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: Dashticz-Dial-Wind Speed-Min-Max

Post by Doudy »

Lokonli wrote: Friday 13 August 2021 17:06 I'll add it to the request list to make this configurable via a block parameter.
Have you ever had the time to look at this request?

;)
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz-Dial-Wind Speed-Min-Max

Post by Lokonli »

Doudy wrote: Wednesday 08 December 2021 8:45
Lokonli wrote: Friday 13 August 2021 17:06 I'll add it to the request list to make this configurable via a block parameter.
Have you ever had the time to look at this request?

;)
No, not really. I've to do some maintenance on the dial code first.

But please post a message in the 'next round' topic of @HansieNL:
viewtopic.php?f=67&t=37546

We'll manage feature requests from there.
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz-Dial-Wind Speed-Min-Max

Post by Lokonli »

Doudy wrote: Monday 09 August 2021 11:43 Hello,

Here is my block wind:

Code: Select all

blocks['wind'] = {
	idx: 43,
	title: 'Vitesse-Vent',  // Vitesse vent
	type: 'dial',
	color: '#57c4d6',
	min: 0,
	max: 100,
	values: [
			{
			value: 'Speed',
			addClass: 'bigwind',
			decimals: 1,
			unit: ' Km/h',
			}
	],
	setpoint: 0, 
	offset: 180, 
	width: 2,
	showring: true,
	showunit: true,
	shownumbers: true,
	last_update: true,
	showvalue: false,
}
Width min: 0 and max: 100
Yet the display does not adapt

Capture.PNG
But Min and max is always between 0 and 360

A idea ?
;)
Try latest beta.
As an example, use the following block definition:

Code: Select all

blocks['wind'] = {
    idx: 43,
    title: 'Vitesse-Vent',  // Vitesse vent
    type: 'dial',
    subtype: 'windspeed',
    shownumbers: true,
}    
windspeed.jpg
windspeed.jpg (10.49 KiB) Viewed 1255 times
[/code]
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: Dashticz-Dial-Wind Speed-Min-Max

Post by Doudy »

Hello,
I do :

Code: Select all

~/dashticz $ git pull
and
I tried following :

Code: Select all

blocks['wind'] = {
    idx: 43,
    title: 'Vitesse-Vent',  // Vitesse vent
    type: 'dial',
    subtype: 'windspeed',
    shownumbers: true,
}
but not the expected result :
Image
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz-Dial-Wind Speed-Min-Max

Post by Lokonli »

Your max value is 110, which is strange...

Further, title is not correct: Vitesse-Vent in block, and Vitesse du Vent on Dashboard.

Can you double check that you only have one blocks['wind'] definition in CONFIG.js,
and that you use 'wind' in your column?

Can you post the Domoticz device json output:

Code: Select all

http://domoticz ip:port/json.htm?type=devices&rid=43
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: Dashticz-Dial-Wind Speed-Min-Max

Post by Doudy »

:oops:
It's my fault my very big fault
Lokonli wrote: Thursday 03 March 2022 15:04 Can you double check that you only have one blocks['wind'] definition in CONFIG.js,
and that you use 'wind' in your column?
Indeed there was a second block !
======================
I'm trying to display the gust speed, but it doesn't seem to work !

Code: Select all

blocks['wind2'] = {
    idx: 43,
    title: 'Rafale-Vent',  // Rafale vent
    type: 'dial',
    subtype: 'gustspeed',
    shownumbers: true,
	min: 0,
	max: 130,
}
Thank you for your help
;)
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz-Dial-Wind Speed-Min-Max

Post by Lokonli »

Doudy wrote: Friday 04 March 2022 8:16 :oops:
It's my fault my very big fault
Lokonli wrote: Thursday 03 March 2022 15:04 Can you double check that you only have one blocks['wind'] definition in CONFIG.js,
and that you use 'wind' in your column?
Indeed there was a second block !
======================
I'm trying to display the gust speed, but it doesn't seem to work !

Code: Select all

blocks['wind2'] = {
    idx: 43,
    title: 'Rafale-Vent',  // Rafale vent
    type: 'dial',
    subtype: 'gustspeed',
    shownumbers: true,
	min: 0,
	max: 130,
}
Thank you for your help
;)
No, that has not been implemented.

I can add gustspeed, but let's think of a more generic solution, that also has value for other dial types.
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: Dashticz-Dial-Wind Speed-Min-Max

Post by Doudy »

Lokonli wrote: Friday 04 March 2022 8:25 I can add gustspeed, but let's think of a more generic solution, that also has value for other dial types.
👍
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Dashticz-Dial-Wind Speed-Min-Max

Post by Lokonli »

Try latest beta with:

Code: Select all

blocks['wind2'] = {
    idx: 43,
    title: 'Rafale-Vent',  // Rafale vent
    type: 'dial',
    subtype: 'windgust',
}
Doudy
Posts: 246
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: Dashticz-Dial-Wind Speed-Min-Max

Post by Doudy »

✨✨✨✨
👍


Thank you for your help
It's OK
;)
RaspberryPi - RFLink - Zwave - WH2600
Domoticz : 2020.2 | Dashticz : V3.12 Master | dzvents : 3.0.2 | Python : 3.7.3
Post Reply

Who is online

Users browsing this forum: Google [Bot] and 1 guest