Grafana and Virtual Device Stats not working?

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
thenecroscope
Posts: 5
Joined: Sunday 08 January 2017 1:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Grafana and Virtual Device Stats not working?

Post by thenecroscope »

Hello,

I'm new to the forum and also Domoticz. I need a bit of help if possible, I've managed to setup a test dummy device and i've created the following event:


commandArray = {}
local varidx = 115
if devicechanged['PowerUsage_ZW'] then
varPowerMain = otherdevices_svalues['PowerMain']
varSolarPower = otherdevices_svalues['PowerUsage_ZW']
varPowerDiff = varSolarPower + varPowerMain
print('varPowerMain : '..varPowerMain)
print('varSolarPower : '..varSolarPower)
print('varPowerDiff : '..varPowerDiff)
commandArray['UpdateDevice'] = varidx .. "|0|" .. varPowerDiff
end

return commandArray


The event is working fine, but for some reason I cannot get it to fire off a HTTP request, which in turn then fires an event to Grafana. No events appear in Grafana or in the influxdb. The HTTP event appears not to be firing for a Virtual Custom Device?

Any suggestions.

Many thanks,
thenecroscope
Posts: 5
Joined: Sunday 08 January 2017 1:14
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Grafana and Virtual Device Stats not working?

Post by thenecroscope »

I've still not managed to get to the bottom of this, any suggetions anyone please.
Many thanks!
Derik
Posts: 1601
Joined: Friday 18 October 2013 23:33
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: Arnhem/Nijmegen Nederland
Contact:

Re: Grafana and Virtual Device Stats not working?

Post by Derik »

do you have this option working?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest