Skip to content

Graph information

HNO Mobile edited this page Sep 1, 2017 · 1 revision

If your utility doesn;t show the graphs correctly, please provide me with the next debug data of your system:

Sorry graphs are not that easy for me...

Please give me the next information:

Open Firefox with firebug opened (f12 on firefox), open the Console tab

  1. Login to your domoticz web system
  2. Go to >http://domoticzurl:port/json.htm?type=devices&filter=utility&used=true&order=[Order]&plan=0
  3. Give me the json part of the device that's not working (see example below)
  4. Go to the graph page that's not working, and check the Console tab of firebug..
  5. I need the json url that that page is using, like: http://domoticzurl:port/json.htm?type=graph&sensor=counter&method=1&idx=58&range=day (i need to know what sensor type it's using to get the graph data)
  6. I then need the json result on that graph url, (see example below) http://domoticzurl:port/json.htm?type=graph&sensor=counter&method=1&idx=58&range=day

Example device json

{ "AddjMulti" : 1.0, "AddjMulti2" : 1.0, "AddjValue" : 0.0, "AddjValue2" : 0.0, "BatteryLevel" : 255, "CustomImage" : 0, "Data" : "21.0", "Description" : "", "Favorite" : 0, "HardwareID" : 10, "HardwareName" : "Dummy", "HardwareType" : "Dummy (Does nothing, use for virtual switches only)", "HardwareTypeVal" : 15, "HaveTimeout" : true, "ID" : "001411B", "LastUpdate" : "2017-08-12 18:38:07", "Name" : "ThermostaatTest", "Notifications" : "false", "PlanID" : "0", "PlanIDs" : [ 0 ], "Protected" : false, "SetPoint" : "21.0", "ShowNotifications" : true, "SignalLevel" : "-", "SubType" : "SetPoint", "Timers" : "false", "Type" : "Thermostat", "TypeImg" : "override_mini", "Unit" : 1, "Used" : 1, "XOffset" : "0", "YOffset" : "0", "idx" : "204" }

Example graph data

{ "ValueQuantity" : "", "ValueUnits" : "", "counter" : "14192.000", "result" : [ { "c" : "4918.000", "d" : "2016-11-08", "v" : "2.000" }, { "c" : "4920.000", "d" : "2016-11-09", "v" : "1.000" }, { "c" : "4921.000", "d" : "2016-11-10", "v" : "0.000" }, { "c" : "4921.000", "d" : "2016-11-11", "v" : "7.000" }, { "c" : "4928.000", "d" : "2016-11-12", "v" : "3.000" },

Clone this wiki locally