Page 1 of 1

Influxdb and updateCustomSensor

Posted: Sunday 31 March 2019 17:14
by Maxx
All,

I have started using the option to push data to Influxdb but if a dummy sensor is updated by the function "updateCustomSensor", the data is not send to influxdb. I have read the wiki and this seems to be by design. Now I am using the json call to domoticz to update the dummy sensor using the following helper function in the "global_data.lua" and this works fine, Influxdb is updated perfectly.

Code: Select all

    pushInfluxdb = function (domoticz, device, Arg1, Arg2, Arg3, Arg4, Arg5, Arg6)
        local tempUrl = "http://xxx.xxx.xxx.xxx:8080/json.htm?type=command&param=udevice&idx=" .. device .. "&nvalue=0&svalue=" .. Arg1..";" ..Arg2..";" ..Arg3..";" ..Arg4..";" ..Arg5..";" ..Arg6
			domoticz.openURL({
				url = tempUrl,
				method = 'GET',
			})
    end

It would be nice however if the "updateCustomSensor" has the same effect on the pushdata function, is this possible to realize in one of the next dzvents version?

regards

Re: Influxdb and updateCustomSensor

Posted: Sunday 31 March 2019 19:21
by waaren
Maxx wrote: Sunday 31 March 2019 17:14 I have started using the option to push data to Influxdb but if a dummy sensor is updated by the function "updateCustomSensor", the data is not send to influxdb. I have read the wiki and this seems to be by design. Now I am using the json call to domoticz to update the dummy sensor.
It would be nice however if the "updateCustomSensor" has the same effect on the pushdata function, is this possible to realize in one of the next dzvents version?
I will have a look what's possible but fact is that the domoticz main code does not send update signal through to the influx module when the standard deviceUpdate is used so it will have to work with a kind of openUrl

Re: Influxdb and updateCustomSensor

Posted: Monday 01 April 2019 12:46
by Maxx
Thanks

Re: Influxdb and updateCustomSensor

Posted: Monday 01 April 2019 13:19
by waaren
I have send you a PM with something to test