Influxdb and updateCustomSensor

Easy to use, 100% Lua-based event scripting framework.

Moderator: leecollings

Post Reply
Maxx
Posts: 61
Joined: Saturday 27 January 2018 20:59
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Influxdb and updateCustomSensor

Post 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
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Influxdb and updateCustomSensor

Post 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
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Maxx
Posts: 61
Joined: Saturday 27 January 2018 20:59
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Influxdb and updateCustomSensor

Post by Maxx »

Thanks
User avatar
waaren
Posts: 6028
Joined: Tuesday 03 January 2017 14:18
Target OS: Linux
Domoticz version: Beta
Location: Netherlands
Contact:

Re: Influxdb and updateCustomSensor

Post by waaren »

I have send you a PM with something to test
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest