Page 1 of 1

Grafana and Virtual Device Stats not working?

Posted: Sunday 08 January 2017 1:21
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,

Re: Grafana and Virtual Device Stats not working?

Posted: Saturday 14 January 2017 12:09
by thenecroscope
I've still not managed to get to the bottom of this, any suggetions anyone please.
Many thanks!

Re: Grafana and Virtual Device Stats not working?

Posted: Monday 24 December 2018 10:52
by Derik
do you have this option working?