-
-
Save vongomben/45c86ec604779e5913698d824baa1594 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "9d10890e2977b3f7", | |
"type": "comment", | |
"z": "e23266e26abe114f", | |
"name": "Esercitazione 3", | |
"info": "", | |
"x": 660, | |
"y": 1220, | |
"wires": [] | |
}, | |
{ | |
"id": "c9dfbd0c4a6acaca", | |
"type": "comment", | |
"z": "e23266e26abe114f", | |
"name": "Crea un form (in un primo gruppo largo 6) che raccolga nome, lat, lon, tipo di coltivazione ", | |
"info": "", | |
"x": 670, | |
"y": 1260, | |
"wires": [] | |
}, | |
{ | |
"id": "49205dbb7bd716bd", | |
"type": "comment", | |
"z": "e23266e26abe114f", | |
"name": "scrivi su un gruppo diverso (largo 12) \"il campo <nome campo> ha una coltivazione di <nome coltivazione>\"", | |
"info": "", | |
"x": 940, | |
"y": 1360, | |
"wires": [] | |
}, | |
{ | |
"id": "c4c822698f45a61f", | |
"type": "comment", | |
"z": "e23266e26abe114f", | |
"name": "visualizza il campo su una mappa nella dashboard)", | |
"info": "", | |
"x": 750, | |
"y": 1580, | |
"wires": [] | |
}, | |
{ | |
"id": "2c9ce48066942c56", | |
"type": "comment", | |
"z": "e23266e26abe114f", | |
"name": "crea una nuova pagina web (una tab)", | |
"info": "", | |
"x": 930, | |
"y": 1300, | |
"wires": [] | |
}, | |
{ | |
"id": "4a4fbb8cd0c51c32", | |
"type": "ui_form", | |
"z": "e23266e26abe114f", | |
"name": "", | |
"label": "", | |
"group": "205b5f8c74c5912a", | |
"order": 1, | |
"width": 0, | |
"height": 0, | |
"options": [ | |
{ | |
"label": "nome", | |
"value": "nome", | |
"type": "text", | |
"required": false, | |
"rows": null | |
}, | |
{ | |
"label": "latitutine", | |
"value": "lat", | |
"type": "number", | |
"required": false, | |
"rows": null | |
}, | |
{ | |
"label": "longitudine", | |
"value": "lon", | |
"type": "number", | |
"required": false, | |
"rows": null | |
}, | |
{ | |
"label": "coltivazione", | |
"value": "cult", | |
"type": "text", | |
"required": false, | |
"rows": null | |
} | |
], | |
"formValue": { | |
"nome": "", | |
"lat": "", | |
"lon": "", | |
"cult": "" | |
}, | |
"payload": "", | |
"submit": "applica", | |
"cancel": "cancella", | |
"topic": "topic", | |
"topicType": "msg", | |
"splitLayout": "", | |
"className": "", | |
"x": 450, | |
"y": 1300, | |
"wires": [ | |
[ | |
"b8498e207f7bfe02", | |
"30dba5ecd19aa190", | |
"5c58e070e0922a5f" | |
] | |
] | |
}, | |
{ | |
"id": "9d8746b4e6cda706", | |
"type": "ui_text", | |
"z": "e23266e26abe114f", | |
"group": "7bbe24c5afa8ef34", | |
"order": 1, | |
"width": 0, | |
"height": 0, | |
"name": "", | |
"label": "text", | |
"format": "{{msg.payload}}", | |
"layout": "row-spread", | |
"className": "", | |
"style": false, | |
"font": "", | |
"fontSize": 16, | |
"color": "#000000", | |
"x": 990, | |
"y": 1400, | |
"wires": [] | |
}, | |
{ | |
"id": "1a12ccfba8375dd4", | |
"type": "ui_worldmap", | |
"z": "e23266e26abe114f", | |
"group": "7bbe24c5afa8ef34", | |
"order": 4, | |
"width": 0, | |
"height": 0, | |
"name": "", | |
"lat": "44.61937353651943", | |
"lon": "7.606910549868285", | |
"zoom": "10", | |
"layer": "OSMC", | |
"cluster": "", | |
"maxage": "", | |
"usermenu": "hide", | |
"layers": "hide", | |
"panit": "true", | |
"panlock": "false", | |
"zoomlock": "false", | |
"hiderightclick": "true", | |
"coords": "none", | |
"showgrid": "false", | |
"showruler": "false", | |
"allowFileDrop": "false", | |
"path": "/worldmap", | |
"overlist": "DR,CO,RA,DN,HM", | |
"maplist": "OSMG,OSMC,OSMH,EsriC,EsriS,EsriT,EsriO,EsriDG,UKOS,ST,SW", | |
"mapname": "", | |
"mapurl": "", | |
"mapopt": "", | |
"mapwms": false, | |
"x": 820, | |
"y": 1620, | |
"wires": [] | |
}, | |
{ | |
"id": "b8498e207f7bfe02", | |
"type": "debug", | |
"z": "e23266e26abe114f", | |
"name": "debug 1", | |
"active": true, | |
"tosidebar": true, | |
"console": false, | |
"tostatus": false, | |
"complete": "false", | |
"statusVal": "", | |
"statusType": "auto", | |
"x": 640, | |
"y": 1300, | |
"wires": [] | |
}, | |
{ | |
"id": "28f482a02b4f7d7d", | |
"type": "change", | |
"z": "e23266e26abe114f", | |
"name": "change", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload.name", | |
"pt": "msg", | |
"to": "payload.nome", | |
"tot": "msg" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 620, | |
"y": 1440, | |
"wires": [ | |
[ | |
"1a12ccfba8375dd4" | |
] | |
] | |
}, | |
{ | |
"id": "30dba5ecd19aa190", | |
"type": "template", | |
"z": "e23266e26abe114f", | |
"name": "Template", | |
"field": "payload", | |
"fieldType": "msg", | |
"format": "json", | |
"syntax": "mustache", | |
"template": "{\n \"nome\":\"{{payload.nome}}\",\n \"name\":\"{{payload.nome}}\",\n \"lat\":{{payload.lat}},\n \"lon\":{{payload.lon}},\n \"cult\": \"{{payload.cult}}\"\n}\n\n\n\n", | |
"output": "json", | |
"x": 620, | |
"y": 1480, | |
"wires": [ | |
[ | |
"1a12ccfba8375dd4" | |
] | |
] | |
}, | |
{ | |
"id": "48ab25fe4de94f28", | |
"type": "function", | |
"z": "e23266e26abe114f", | |
"name": "Function", | |
"func": "msg.payload.name = msg.payload.nome; \nreturn msg;", | |
"outputs": 1, | |
"timeout": "", | |
"noerr": 0, | |
"initialize": "", | |
"finalize": "", | |
"libs": [], | |
"x": 620, | |
"y": 1520, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "5c58e070e0922a5f", | |
"type": "template", | |
"z": "e23266e26abe114f", | |
"name": "", | |
"field": "payload", | |
"fieldType": "msg", | |
"format": "handlebars", | |
"syntax": "mustache", | |
"template": "il campo {{payload.nome}} ha una coltivazione di {{payload.cult}}", | |
"output": "str", | |
"x": 820, | |
"y": 1400, | |
"wires": [ | |
[ | |
"9d8746b4e6cda706" | |
] | |
] | |
}, | |
{ | |
"id": "8b58d3afe5e7859d", | |
"type": "inject", | |
"z": "e23266e26abe114f", | |
"name": "", | |
"props": [ | |
{ | |
"p": "payload" | |
}, | |
{ | |
"p": "topic", | |
"vt": "str" | |
} | |
], | |
"repeat": "", | |
"crontab": "", | |
"once": false, | |
"onceDelay": 0.1, | |
"topic": "", | |
"payload": "{\"nome\":\"Davide\",\"lat\":44.70082041790919,\"lon\":7.401108218300118,\"cult\":\"Paprika\"}", | |
"payloadType": "json", | |
"x": 450, | |
"y": 1340, | |
"wires": [ | |
[ | |
"30dba5ecd19aa190" | |
] | |
] | |
}, | |
{ | |
"id": "7610baba76cc92c1", | |
"type": "change", | |
"z": "e23266e26abe114f", | |
"name": "", | |
"rules": [ | |
{ | |
"t": "set", | |
"p": "payload", | |
"pt": "msg", | |
"to": "'il campo ' & payload.nome & ' ha una coltivazione di ' & payload.cult", | |
"tot": "jsonata" | |
} | |
], | |
"action": "", | |
"property": "", | |
"from": "", | |
"to": "", | |
"reg": false, | |
"x": 820, | |
"y": 1440, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "c221498f.e05d58", | |
"type": "function", | |
"z": "e23266e26abe114f", | |
"name": "Function", | |
"func": "var t1 = 'il campo ';\nvar t2 = msg.payload.nome; \nvar t3 = ' a una coltivazione di ';\nvar t4 = msg.payload.cult;\n\nmsg.payload = t1 + t2 + t3 + t4;\n\nreturn msg;\n\n", | |
"outputs": 1, | |
"timeout": "", | |
"noerr": 0, | |
"initialize": "", | |
"finalize": "", | |
"libs": [], | |
"x": 820, | |
"y": 1480, | |
"wires": [ | |
[] | |
] | |
}, | |
{ | |
"id": "205b5f8c74c5912a", | |
"type": "ui_group", | |
"name": "Group 1", | |
"tab": "a7b0436e795f94c4", | |
"order": 1, | |
"disp": true, | |
"width": "6", | |
"collapse": false, | |
"className": "" | |
}, | |
{ | |
"id": "7bbe24c5afa8ef34", | |
"type": "ui_group", | |
"name": "Group 2", | |
"tab": "a7b0436e795f94c4", | |
"order": 2, | |
"disp": true, | |
"width": "12", | |
"collapse": false, | |
"className": "" | |
}, | |
{ | |
"id": "a7b0436e795f94c4", | |
"type": "ui_tab", | |
"name": "Esercitrazione 3", | |
"icon": "dashboard", | |
"order": 1, | |
"disabled": false, | |
"hidden": false | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment