Last version (1.1.4) of Domoticz Control can expose values based on
devices state to Custom Clock Helper, if you have SuperDateTime
(weather.com version 5.9.42 onwards).

Values must be given based on device name or device idx number.

~nDevicename~Nameofjsonfield~
~iIdxofdevice~Nameofjsonfield~

For instance, ~nExternal Temp Sensor~Temp~ will be replaced by the
current temperature reported by Domoticz device named "External Temp
Sensor".

~i231~Temp~ same thing if 231 Idx points to the same device.

You can have a look at
https://www.domoticz.com/wiki/Domoticz_API/JSON_URL's
to read Domoticz JSON documentation or have a look at your available
devices fields connecting to
http(s)://domoticzurl:domoticzport/json.htm?type=devices

For convenience, you can append functions to change returned value.

~nDevicename~Nameofjsonfield~truncate~ to truncate a number.
~iIdxofdevice~Nameofjsonfield~ceil~ for ceil function.
~nDevicename~Nameofjsonfield~floor~ for floor function.
~iIdxofdevice~Nameofjsonfield~round~ to round a number as integer.
~nDevicename~Nameofjsonfield~round~1~ to round a number keeping one
decimal (1 can be any positive integer).
~iIdxofdevice~Nameofjsonfield~shorten~3~ to keep only the three first
characters of the value (3 can be any positive integer).


------------------------------------------------------------------------
barberousse's Profile: http://forums.slimdevices.com/member.php?userid=63897
View this thread: http://forums.slimdevices.com/showthread.php?t=106097

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to