Closed jachenilleau closed 3 years ago
Can you check via the web frontend what api call is used for getting the graph data? (Firefox > F12 for dev console, then tab network to see all the api calls)
For examle: /json.htm?type=graph&sensor=uv&idx=690&range=day
And then please also the json response
For example:
{
"result" :
[
{
"d" : "2020-12-01 14:00",
"uvi" : "0.0"
},
{
"d" : "2020-12-01 14:05",
"uvi" : "0.0"
},
{
"d" : "2020-12-01 14:10",
"uvi" : "0.0"
},
{
"d" : "2020-12-01 14:15",
"uvi" : "0.0"
},
{
"d" : "2020-12-01 14:20",
"uvi" : "0.0"
},
...
],
"status" : "OK",
"title" : "Graph uv day"
}
URL is : /json.htm?type=graph&sensor=temp&idx=41&range=day JSON response is : { "result" : [ { "ba" : "995.4", "d" : "2020-11-25 15:00", "te" : 0.0 }, { "ba" : "995.4", "d" : "2020-11-25 15:05", "te" : 0.0 },
{ "ba" : "1000.1", "d" : "2020-12-01 13:45", "te" : 0.0 },
Thats weird.. i have a pressure device that calls the next url for pressure graph data: json.htm?idx=644&range=year&sensor=counter&type=graph
If you log in on domoticz and then go to this page: /json.htm?type=devices&filter=weather&used=true&order=[Order]
Can you find your pressure device in that json list? Can you post that info?
Im currious what that TypeImg field tells me..
Yes, it is in the list ! { "ActTime" : 1606923940, "AstrTwilightEnd" : "18:51", "AstrTwilightStart" : "06:31", "CivTwilightEnd" : "17:33", "CivTwilightStart" : "07:49", "DayLength" : "08:32", "NautTwilightEnd" : "18:13", "NautTwilightStart" : "07:09", "ServerTime" : "2020-12-02 16:45:40", "SunAtSouth" : "12:41", "Sunrise" : "08:25", "Sunset" : "16:57", "app_version" : "2020.2", "result" : [ { "AddjMulti" : 1.0, "AddjMulti2" : 1.0, "AddjValue" : 0.0, "AddjValue2" : 0.0, "Barometer" : 994.0, "BatteryLevel" : 74, "CustomImage" : 0, "Data" : "994 hPa", "Description" : "", "Favorite" : 1, "Forecast" : 4, "ForecastStr" : "Thunderstorm", "HardwareID" : 3, "HardwareName" : "Zigbee2MQTT Connector", "HardwareType" : "Zigbee2MQTT", "HardwareTypeVal" : 94, "HaveTimeout" : false, "ID" : "", "LastUpdate" : "2020-12-02 16:32:01", "Name" : "Salon_Pression", "Notifications" : "false", "PlanID" : "0", "PlanIDs" : [ 0 ], "Protected" : false, "ShowNotifications" : true, "SignalLevel" : 2, "SubType" : "Barometer", "Timers" : "false", "Type" : "General", "TypeImg" : "gauge", "Unit" : 19, "Used" : 1, "XOffset" : "0", "YOffset" : "0", "idx" : "41" }, { "AddjMulti" : 1.0, "AddjMulti2" : 1.0, "AddjValue" : 0.0, "AddjValue2" : 0.0, "Barometer" : 994.0, "BatteryLevel" : 74, "CustomImage" : 0, "Data" : "20.4 C, 40 %, 994.0 hPa", "Description" : "", "DewPoint" : "6.35", "Favorite" : 1, "Forecast" : 4, "ForecastStr" : "Cloudy", "HardwareID" : 3, "HardwareName" : "Zigbee2MQTT Connector", "HardwareType" : "Zigbee2MQTT", "HardwareTypeVal" : 94, "HaveTimeout" : false, "Humidity" : 40, "HumidityStatus" : "Normal", "ID" : "", "LastUpdate" : "2020-12-02 16:32:01", "Name" : "Salon_TPH", "Notifications" : "true", "PlanID" : "0", "PlanIDs" : [ 0 ], "Protected" : false, "ShowNotifications" : true, "SignalLevel" : 2, "SubType" : "Weather Station", "Temp" : 20.399999999999999, "Timers" : "false", "Type" : "Temp + Humidity + Baro", "TypeImg" : "temperature", "Unit" : 21, "Used" : 1, "XOffset" : "0", "YOffset" : "0", "idx" : "43", "trend" : 0 } ], "status" : "OK", "title" : "Devices" }
Le mer. 2 déc. 2020 à 16:42, HNO Mobile notifications@github.com a écrit :
Thats weird.. i have a pressure device that calls the next url for pressure graph data: json.htm?idx=644&range=year&sensor=counter&type=graph
If you log in on domoticz and then go to this page: /json.htm?type=devices&filter=weather&used=true&order=[Order]
Can you find your pressure device in that json list? Can you post that info?
Im currious what that TypeImg field tells me..
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/domoticz/domoticz-android/issues/613#issuecomment-737312477, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARWP6JMGAN45CJZ5F6CMP7LSSZN7FANCNFSM4TWPBBGQ .
is it this device: "Name" : "Salon_TPH", ?
Sorry, no, Salon_Pression. This is the pressure sensor for the AQARA Temperature, Hydrometer and Pressure. TPH is the combination of the 3 measurements.
Le mer. 2 déc. 2020 à 16:54, HNO Mobile notifications@github.com a écrit :
is it this device: "Name" : "Salon_TPH", ?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/domoticz/domoticz-android/issues/613#issuecomment-737319750, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARWP6JPU5C4Z6TLXFCMFE73SSZPLRANCNFSM4TWPBBGQ .
Sorry for the delay, should be in the next release.
Describe the bug In Domoticz, Atmospheric Pressure graphe never shows, either for daily, monthly or yearly. Other graph works (in Temperature, I don't have any other "weather" sensor yet.
To Reproduce Steps to reproduce the behavior:
Expected behavior A graph should be displayed here. Graph works on the web page.
Smartphone (please complete the following information):