Data updates - latest beta

Dashticz, alternative dashboard based on HTML, CSS, jQuery

Moderators: leecollings, htilburgs, robgeerts

Post Reply
Scotty
Posts: 35
Joined: Wednesday 28 November 2018 16:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Data updates - latest beta

Post by Scotty »

I've just updated to the latest beta and I seem to be having an issue with the Logitech media player block.

The buttons work as expected however the currently playing track (data) never updates unless I refresh the page.

I also used to have a frame in the last version showing an image

Code: Select all

frames.artwork = {width:12, isimage:true, refresh:5000, forcerefresh: 1, image: '/image.php'}
The image frame doesn't seem to be supported anymore so switched to a button:

Code: Select all

buttons.artwork = {width:12, isimage:true, refreshimage:5000, forcerefresh: 1, btnimage: 'img/image.php'}
However, the button seems to only want to update after around 45 seconds. Before it was every 5.

All other device blocks seem to work and update accordingly.

Code: Select all

config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '120';
Am I missing something really silly?
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Data updates - latest beta

Post by Lokonli »

In one of the last beta releases I decided to standardize the refresh parameter:
The name will always be 'refresh', and the value will always be in seconds.

So 'refreshimage:5000' should be 'refresh:5'
Scotty
Posts: 35
Joined: Wednesday 28 November 2018 16:12
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Data updates - latest beta

Post by Scotty »

Perfect. The image now updates accordingly. Thanks for your help.

Any idea on this in the Logitech block?
The buttons work as expected however the currently playing track (data) never updates unless I refresh the page.
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Data updates - latest beta

Post by Lokonli »

Scotty wrote: Tuesday 14 April 2020 18:47 Perfect. The image now updates accordingly. Thanks for your help.

Any idea on this in the Logitech block?
The buttons work as expected however the currently playing track (data) never updates unless I refresh the page.
hmm, I expect Domoticz doesn't send the 'incremental updates' for a Logitech device. I see the same issue with groups/scenes and some temperature sensors.

I'll add a config setting in a next beta to actively request the status update for all devices.
mrjjr1980
Posts: 4
Joined: Wednesday 15 April 2020 7:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Data updates - latest beta

Post by mrjjr1980 »

I'm using Dashticz for 2 weeks now and it's awesome, really a great job. I have an issue where my Netatmo Weather Station blocks for CO2 and sound are not clickable, they don't give a graph and they don't react on style changes via cusomizations.In Domoticz they work fine. This used to be an issue in 2017 as well, after some research on google. I can't manage to get it like the other blocks. Is this a bug? (I'm running the latest beta)
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Data updates - latest beta

Post by Lokonli »

mrjjr1980 wrote: Wednesday 15 April 2020 8:15 I'm using Dashticz for 2 weeks now and it's awesome, really a great job. I have an issue where my Netatmo Weather Station blocks for CO2 and sound are not clickable, they don't give a graph and they don't react on style changes via cusomizations.In Domoticz they work fine. This used to be an issue in 2017 as well, after some research on google. I can't manage to get it like the other blocks. Is this a bug? (I'm running the latest beta)
It's not really a bug, but just unsupported functionality at the moment.

But we can add support for those devices as well.

First the graphs:

Do you see the CO2 and sound blocks on Dashticz?

Then let's do some tests. Please switch to the beta branch:

Code: Select all

git checkout beta
git pull
To manually enable the popup graphs, add the following parameter to the block definition of the devices:

Code: Select all

blocks[123] = {   //replace 123 with your Domoticz device id
    ...,   //your current block parameters here
    graph: true
}
If you are lucky then the graph will already display the correct values.
If not, then first we have to find out how Domoticz reports the graph data.

Can you post the json output of the two devices:

Code: Select all

http://<domoticz-ip>:8080/json?type=devices&rid=123
Also in the url above, replace 123 with the your Domoticz device id's.

If I know the Domoticz device type and subtype, we can update the graph module with the correct settings for the new device types.
mrjjr1980
Posts: 4
Joined: Wednesday 15 April 2020 7:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Data updates - latest beta

Post by mrjjr1980 »

brilliant! I was already on the beta branch, so nothing new there. The graph:'true' did the trick and it picked up the data immediately. Thanks a lot!
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Data updates - latest beta

Post by Lokonli »

Good to know. What is the subtype of the devices? Then I will enable the graph by default.
The subtype is reported in:

Code: Select all

http://<domoticz-ip>:8080/json?type=devices&rid=123
(replace 123 with your domoticz device id)
Lokonli
Posts: 2290
Joined: Monday 29 August 2016 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Data updates - latest beta

Post by Lokonli »

mrjjr1980 wrote: Wednesday 15 April 2020 8:15 I'm using Dashticz for 2 weeks now and it's awesome, really a great job. I have an issue where my Netatmo Weather Station blocks for CO2 and sound are not clickable, they don't give a graph and they don't react on style changes via cusomizations.In Domoticz they work fine. This used to be an issue in 2017 as well, after some research on google. I can't manage to get it like the other blocks. Is this a bug? (I'm running the latest beta)
Then on the customizations:
What would you like to customize? How do you currently apply the style changes?
mrjjr1980
Posts: 4
Joined: Wednesday 15 April 2020 7:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Data updates - latest beta

Post by mrjjr1980 »

:)

based on the value of my different blocks I give them a colour in cusom.js

Code: Select all

if (alldevices[36].Data<='1000 ppm') {$('.block_36 .col-icon').addClass('warninggreen');}
if ((alldevices[36].Data>'1000 ppm')&&(alldevices[36].Data<='1500 ppm')) {$('.block_36 .col-icon').addClass('warningorange');}
if (alldevices[36].Data>'1500 ppm') {$('.block_36 .col-icon').addClass('warningred');}

if (alldevices[37].Data<='75 dB') {$('.block_37 .col-icon').addClass('warninggreen');}
if (alldevices[37].Data>'75 dB') {$('.block_37 .col-icon').addClass('warningred');}
I now see idx37 changing colour, idx36 does not.

Code: Select all

{
			"AddjMulti" : 1.0,
			"AddjMulti2" : 1.0,
			"AddjValue" : 0.0,
			"AddjValue2" : 0.0,
			"BatteryLevel" : 255,
			"CustomImage" : 0,
			"Data" : "1032 ppm",
			"Description" : "",
			"Favorite" : 1,
			"HardwareID" : 3,
			"HardwareName" : "Netatmo",
			"HardwareType" : "Netatmo",
			"HardwareTypeVal" : 54,
			"HaveTimeout" : false,
			"ID" : "00B6",
			"LastUpdate" : "2020-04-15 12:08:24",
			"Name" : "Woonkamer Air",
			"Notifications" : "false",
			"PlanID" : "2",
			"PlanIDs" : 
			[
				2
			],
			"Protected" : false,
			"Quality" : "Fair",
			"ShowNotifications" : true,
			"SignalLevel" : "-",
			"SubType" : "Voltcraft CO-20",
			"Timers" : "false",
			"Type" : "Air Quality",
			"TypeImg" : "air",
			"Unit" : 186,
			"Used" : 1,
			"XOffset" : "0",
			"YOffset" : "0",
			"idx" : "36"
		}
mrjjr1980
Posts: 4
Joined: Wednesday 15 April 2020 7:31
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Data updates - latest beta

Post by mrjjr1980 »

the other subtype is

"SubType" : "Sound Level",
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest