Page 1 of 1
Data updates - latest beta
Posted: Tuesday 14 April 2020 14:02
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?
Re: Data updates - latest beta
Posted: Tuesday 14 April 2020 15:05
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'
Re: Data updates - latest beta
Posted: Tuesday 14 April 2020 18:47
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.
Re: Data updates - latest beta
Posted: Tuesday 14 April 2020 23:07
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.
Re: Data updates - latest beta
Posted: Wednesday 15 April 2020 8:15
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)
Re: Data updates - latest beta
Posted: Wednesday 15 April 2020 11:52
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:
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.
Re: Data updates - latest beta
Posted: Wednesday 15 April 2020 12:03
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!
Re: Data updates - latest beta
Posted: Wednesday 15 April 2020 12:07
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)
Re: Data updates - latest beta
Posted: Wednesday 15 April 2020 12:09
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?
Re: Data updates - latest beta
Posted: Wednesday 15 April 2020 13:06
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"
}
Re: Data updates - latest beta
Posted: Wednesday 15 April 2020 13:55
by mrjjr1980
the other subtype is
"SubType" : "Sound Level",