Skip to content

Instantly share code, notes, and snippets.

@Mearman
Created February 16, 2020 15:48
Show Gist options
  • Select an option

  • Save Mearman/d60c88cf031e62e45321f1f3491ebde6 to your computer and use it in GitHub Desktop.

Select an option

Save Mearman/d60c88cf031e62e45321f1f3491ebde6 to your computer and use it in GitHub Desktop.
[
{
"id": "d7e78b3.3948b78",
"type": "ui_gauge",
"z": "41d2bcd7.cea6e4",
"name": "",
"group": "529410ff.d32ce",
"order": 1,
"width": 0,
"height": 0,
"gtype": "gage",
"title": "",
"label": "°C",
"format": "{{value}}",
"min": 0,
"max": "30",
"colors": [
"#00b500",
"#e6e600",
"#ca3838"
],
"seg1": "",
"seg2": "",
"x": 710,
"y": 1200,
"wires": []
},
{
"id": "d499afec.f7c1f",
"type": "ui_chart",
"z": "41d2bcd7.cea6e4",
"name": "",
"group": "529410ff.d32ce",
"order": 0,
"width": 0,
"height": 0,
"label": "",
"chartType": "line",
"legend": "false",
"xformat": "HH:mm:ss",
"interpolate": "linear",
"nodata": "",
"dot": false,
"ymin": "",
"ymax": "",
"removeOlder": 1,
"removeOlderPoints": "",
"removeOlderUnit": "86400",
"cutout": 0,
"useOneColor": false,
"colors": [
"#1f77b4",
"#aec7e8",
"#ff7f0e",
"#2ca02c",
"#98df8a",
"#d62728",
"#ff9896",
"#9467bd",
"#c5b0d5"
],
"useOldStyle": false,
"outputs": 1,
"x": 710,
"y": 1160,
"wires": [
[]
]
},
{
"id": "f9f52c00.8cff4",
"type": "function",
"z": "41d2bcd7.cea6e4",
"name": "extractTemp",
"func": "return {\n topic: msg.dev_id,\n payload:\n msg.payload.temperatureCelcius\n};",
"outputs": 1,
"noerr": 0,
"x": 550,
"y": 1180,
"wires": [
[
"d499afec.f7c1f",
"d7e78b3.3948b78"
]
]
},
{
"id": "cc2061c5.afa3d",
"type": "switch",
"z": "41d2bcd7.cea6e4",
"name": "",
"property": "dev_id",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "ttn-uno-01",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 1,
"x": 390,
"y": 1180,
"wires": [
[
"f9f52c00.8cff4"
]
]
},
{
"id": "529410ff.d32ce",
"type": "ui_group",
"z": "",
"name": "Technocamps",
"tab": "6dd71a0a.01adb4",
"disp": true,
"width": "6",
"collapse": false
},
{
"id": "6dd71a0a.01adb4",
"type": "ui_tab",
"z": "",
"name": "Home",
"icon": "dashboard",
"disabled": false,
"hidden": false
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment