Code: Select all
domoticz.devices('Costs T1').dump()Which is the right one?
Moderator: leecollings
Code: Select all
domoticz.devices('Costs T1').dump()Code: Select all
local lat = dz.settings.location.latitude
local long = dz.settings.location.longitudeYes.waltervl wrote: Saturday 07 December 2024 13:18 Are you asking for the tariffs for T1 and T2 that are stored in menu setup - settings, tab counters?
Code: Select all
/json.htm?type=command¶m=getsettings
Any idea which?waltervl wrote: Saturday 07 December 2024 19:11 There is no direct function for this. You probably have to use a Domoticz API call with openUrl() to read them.
That's the one.waltervl wrote: Saturday 07 December 2024 19:24 Domoticz-ip:8282/json.htm?type=command¶m=getsettings
Code: Select all
"Location": {
"Latitude": "52.260183",
"Longitude": "6.714728"
},Code: Select all
domoticz.log('domoticz.settings.location.latitude : '..domoticz.settings.location.longitude)Code: Select all
"CostEnergy": "0.2752",
"CostEnergyR1": "0.1650",
"CostEnergyR2": "0.1235",
"CostEnergyT2": "0.2335",
"CostGas": "1.2153",
"CostWater": "0.9000",
Code: Select all
domoticz.log('domoticz.settings.CostEnergyT2 : '..domoticz.settings.costEnergyT2, domoticz.LOG_INFO)Of course I can.habahabahaba wrote: Sunday 08 December 2024 12:53 So why dont you want to take them from json answer ?
Users browsing this forum: No registered users and 1 guest