Skip to content

Instantly share code, notes, and snippets.

@dirkjanfaber
Last active July 5, 2023 10:57
Show Gist options
  • Save dirkjanfaber/21e262da24411ec2dcf96ce89f8407c2 to your computer and use it in GitHub Desktop.
Save dirkjanfaber/21e262da24411ec2dcf96ce89f8407c2 to your computer and use it in GitHub Desktop.
Graph EskomSePush api calls
[
{
"id": "cd12b4d0f3bb0e8c",
"type": "ui_chart",
"z": "482a4fb117466f9e",
"name": "",
"group": "89d78a937bb98c19",
"order": 0,
"width": 0,
"height": 0,
"label": "API calls",
"chartType": "line",
"legend": "true",
"xformat": "HH:mm",
"interpolate": "step",
"nodata": "",
"dot": true,
"ymin": "0",
"ymax": "",
"removeOlder": "2",
"removeOlderPoints": "",
"removeOlderUnit": "86400",
"cutout": 0,
"useOneColor": false,
"useUTC": false,
"colors": [
"#1f77b4",
"#57e389",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"outputs": 1,
"useDifferentColor": false,
"className": "",
"x": 1080,
"y": 300,
"wires": [
[]
]
},
{
"id": "15c29b54d610d950",
"type": "change",
"z": "482a4fb117466f9e",
"name": "API count",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "api.count",
"tot": "msg"
},
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "API count",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 860,
"y": 280,
"wires": [
[
"cd12b4d0f3bb0e8c"
]
]
},
{
"id": "1257a16d9c66d75b",
"type": "change",
"z": "482a4fb117466f9e",
"name": "API limit",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "api.limit",
"tot": "msg"
},
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "API limit",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 860,
"y": 320,
"wires": [
[
"cd12b4d0f3bb0e8c"
]
]
},
{
"id": "8c397be2ccc94b5b",
"type": "change",
"z": "482a4fb117466f9e",
"name": "Sleep time between calls",
"rules": [
{
"t": "set",
"p": "payload",
"pt": "msg",
"to": "calc.sleeptime",
"tot": "msg"
},
{
"t": "set",
"p": "topic",
"pt": "msg",
"to": "Sleep time between calls",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 890,
"y": 240,
"wires": [
[
"cd12b4d0f3bb0e8c"
]
]
},
{
"id": "e50d5fe0feb5d978",
"type": "eskomsepush",
"z": "482a4fb117466f9e",
"name": "Schoenmakerskop - DSK (Area 29) (15)",
"licensekey": "",
"area": "nelsonmandelabay-15-schoenmakerskopdskarea29",
"statusselect": "eskom",
"test": false,
"verbose": true,
"x": 500,
"y": 320,
"wires": [
[
"15c29b54d610d950",
"1257a16d9c66d75b",
"8c397be2ccc94b5b"
],
[]
]
},
{
"id": "36e28b27dad8fc23",
"type": "inject",
"z": "482a4fb117466f9e",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "",
"payloadType": "date",
"x": 220,
"y": 320,
"wires": [
[
"e50d5fe0feb5d978"
]
]
},
{
"id": "89d78a937bb98c19",
"type": "ui_group",
"name": "API info",
"tab": "5b57eb2fb7792a4f",
"order": 1,
"disp": true,
"width": "12",
"collapse": false,
"className": ""
},
{
"id": "5b57eb2fb7792a4f",
"type": "ui_tab",
"name": "EskomSePush",
"icon": "dashboard",
"disabled": false,
"hidden": false
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment