Dashticz - latest beta - Request new type for graph (Mikrotik)
Posted: Friday 14 January 2022 16:30
Could you add the following graph-type in the graphs module?
The domoticz device is a Mikrotik Router (https://github.com/mrin/domoticz-routeros-plugin) with value for axis-label Mbit/s. Upstream and downstream are seperate devices
This is the JSON data for device idx 100 (upstream in Mbit/s, downstream is idx 101 also in Mbit/s)
If you have any questions please let me know
Thanks again for all your effort
The domoticz device is a Mikrotik Router (https://github.com/mrin/domoticz-routeros-plugin) with value for axis-label Mbit/s. Upstream and downstream are seperate devices
This is the JSON data for device idx 100 (upstream in Mbit/s, downstream is idx 101 also in Mbit/s)
Code: Select all
http://ip:port/json.htm?type=devices&rid=100
Code: Select all
{
"ActTime" : 1642160390,
"AstrTwilightEnd" : "19:23",
"AstrTwilightStart" : "05:30",
"CivTwilightEnd" : "18:31",
"CivTwilightStart" : "06:22",
"DayLength" : "11:23",
"NautTwilightEnd" : "18:57",
"NautTwilightStart" : "05:56",
"ServerTime" : "2022-01-14 18:39:50",
"SunAtSouth" : "12:27",
"Sunrise" : "06:45",
"Sunset" : "18:08",
"app_version" : "2021.1",
"result" :
[
{
"AddjMulti" : 1.0,
"AddjMulti2" : 1.0,
"AddjValue" : 0.0,
"AddjValue2" : 0.0,
"BatteryLevel" : 255,
"CustomImage" : 106,
"Data" : "0.07 Mbit/s",
"Description" : "",
"Favorite" : 0,
"HardwareDisabled" : false,
"HardwareID" : 9,
"HardwareName" : "MikroTik",
"HardwareType" : "Mikrotik RouterOS",
"HardwareTypeVal" : 94,
"HaveTimeout" : false,
"ID" : "00090001",
"Image" : "mikrotik-routeros-winbox",
"LastUpdate" : "2022-01-14 18:39:23",
"Name" : "MikroTik - Bandwidth UP",
"Notifications" : "false",
"PlanID" : "0",
"PlanIDs" :
[
0
],
"Protected" : false,
"SensorType" : 1,
"SensorUnit" : "Mbit/s",
"ShowNotifications" : true,
"SignalLevel" : "-",
"SubType" : "Custom Sensor",
"Timers" : "false",
"Type" : "General",
"TypeImg" : "mikrotik-routeros-winbox",
"Unit" : 1,
"Used" : 1,
"XOffset" : "0",
"YOffset" : "0",
"idx" : "100"
}
],
"status" : "OK",
"title" : "Devices"
}
Thanks again for all your effort