Node-Red

Аватар пользователя
admin
Администратор
Сообщений: 251
Зарегистрирован: 10 июн 2017, 16:49
Откуда: Rakun City
Контактная информация:

Node-Red

Сообщение admin » 21 июл 2019, 15:39

Код: Выбрать все


[{"id":"e03bca41.a55518","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"a5949ddf.64501","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"905b6326.4bff9","type":"ui_base","theme":{"name":"theme-light","lightTheme":{"default":"#0094CE","baseColor":"#0094CE","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":true,"reset":false},"darkTheme":{"default":"#097479","baseColor":"#097479","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif","edited":false},"customTheme":{"name":"Untitled Theme 1","default":"#4B7930","baseColor":"#4B7930","baseFont":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"},"themeState":{"base-color":{"default":"#0094CE","value":"#0094CE","edited":false},"page-titlebar-backgroundColor":{"value":"#0094CE","edited":false},"page-backgroundColor":{"value":"#fafafa","edited":false},"page-sidebar-backgroundColor":{"value":"#ffffff","edited":false},"group-textColor":{"value":"#1bbfff","edited":false},"group-borderColor":{"value":"#ffffff","edited":false},"group-backgroundColor":{"value":"#ffffff","edited":false},"widget-textColor":{"value":"#111111","edited":false},"widget-backgroundColor":{"value":"#0094ce","edited":false},"widget-borderColor":{"value":"#ffffff","edited":false},"base-font":{"value":"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen-Sans,Ubuntu,Cantarell,Helvetica Neue,sans-serif"}},"angularTheme":{"primary":"indigo","accents":"blue","warn":"red","background":"grey"}},"site":{"name":"Node-RED Dashboard","hideToolbar":"false","allowSwipe":"false","lockMenu":"false","allowTempTheme":"true","dateFormat":"DD/MM/YYYY","sizes":{"sx":48,"sy":48,"gx":6,"gy":6,"cx":6,"cy":6,"px":0,"py":0}}},{"id":"abdcc621.5b3e08","type":"ui_tab","z":"","name":"Home","icon":"dashboard","disabled":false,"hidden":false},{"id":"1bfe8e58.baef42","type":"ui_group","z":"","name":"Ярко-Свет","tab":"abdcc621.5b3e08","disp":false,"width":"6","collapse":false},{"id":"2fc2859a.78d15a","type":"mqtt-broker","z":"","name":"MqtCloud","broker":"soldier.cloudmqtt.com","port":"11955","clientid":"1","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"Svet","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"93bcced4.a2ed5","type":"websocket-listener","z":"","path":"/ws/light","wholemsg":"false"},{"id":"9dee7a6f.6b9098","type":"websocket-listener","z":"","path":"/","wholemsg":"false"},{"id":"3013a20a.e083de","type":"ui_group","z":"","name":"Intel","tab":"9eee79de.b3eff8","disp":true,"width":"6","collapse":false},{"id":"9eee79de.b3eff8","type":"ui_tab","z":"","name":"Intel","icon":"dashboard","disabled":false,"hidden":false},{"id":"b32b921.d00c67","type":"inject","z":"e03bca41.a55518","name":"","topic":"","payload":"1","payloadType":"num","repeat":"1","crontab":"","once":false,"onceDelay":0.1,"x":110,"y":260,"wires":[["dbad60c0.ee7d5"]]},{"id":"dbad60c0.ee7d5","type":"random","z":"e03bca41.a55518","name":"rand","low":"1","high":"255","inte":"true","property":"payload","x":390,"y":260,"wires":[["e47bb793.2544a8"]]},{"id":"5900f03.ef3cc1","type":"debug","z":"e03bca41.a55518","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":470,"y":340,"wires":[]},{"id":"3a562ab6.557cf6","type":"ui_gauge","z":"e03bca41.a55518","name":"Яркость","group":"1bfe8e58.baef42","order":0,"width":0,"height":0,"gtype":"gage","title":"Яркость","label":"units","format":"{{value}}","min":0,"max":"255","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":360,"y":520,"wires":[]},{"id":"e47bb793.2544a8","type":"mqtt out","z":"e03bca41.a55518","name":"Mqtt-out","topic":"Svet","qos":"","retain":"","broker":"2fc2859a.78d15a","x":580,"y":460,"wires":[]},{"id":"d1aa370d.acec08","type":"mqtt in","z":"e03bca41.a55518","name":"","topic":"Svet","qos":"2","datatype":"auto","broker":"2fc2859a.78d15a","x":180,"y":580,"wires":[["3a562ab6.557cf6"]]},{"id":"c36d54f.9cab2a8","type":"http in","z":"e03bca41.a55518","name":"httpin","url":"/light","method":"get","upload":false,"swaggerDoc":"","x":70,"y":340,"wires":[["ea60e7de.423868"]]},{"id":"91ef558e.f3ce28","type":"http response","z":"e03bca41.a55518","name":"responce","statusCode":"","headers":{"content-type":"text/html"},"x":440,"y":440,"wires":[]},{"id":"d0366794.ec1608","type":"function","z":"e03bca41.a55518","name":"Converter","func":"\nvar myString = JSON.parse(msg.payload);\n\n\nmsg.payload=myString.var1;\n\nreturn msg;","outputs":1,"noerr":0,"x":280,"y":460,"wires":[["91ef558e.f3ce28","5900f03.ef3cc1"]]},{"id":"ea60e7de.423868","type":"json","z":"e03bca41.a55518","name":"","property":"payload","action":"str","pretty":false,"x":110,"y":460,"wires":[["d0366794.ec1608"]]}]







Код: Выбрать все

[{"id":"5ea6c996.329e08","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"3645d912.2a2b56","type":"ui_chart","z":"5ea6c996.329e08","name":"","group":"eb78c4d8.4bc328","order":1,"width":0,"height":0,"label":"Bar Davlenie","chartType":"line","legend":"false","xformat":"HH:mm:ss","interpolate":"linear","nodata":"","dot":false,"ymin":"0","ymax":"300","removeOlder":1,"removeOlderPoints":"","removeOlderUnit":"86400","cutout":0,"useOneColor":false,"colors":["#1f77b4","#aec7e8","#ff7f0e","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5"],"useOldStyle":false,"outputs":1,"x":658.5,"y":345,"wires":[[]]},{"id":"c2a8b06b.14096","type":"ui_gauge","z":"5ea6c996.329e08","name":"","group":"eb78c4d8.4bc328","order":0,"width":0,"height":0,"gtype":"gage","title":"Temp","label":"units","format":"{{value}}","min":0,"max":"100","colors":["#00b500","#e6e600","#ca3838"],"seg1":"","seg2":"","x":618.5,"y":257,"wires":[]},{"id":"72629923.67b598","type":"random","z":"5ea6c996.329e08","name":"Temp","low":"1","high":"100","inte":"true","property":"payload","x":301.5,"y":211,"wires":[["c2a8b06b.14096"]]},{"id":"d2a38058.4f7c2","type":"random","z":"5ea6c996.329e08","name":"","low":"1","high":"300","inte":"true","property":"payload","x":313.5,"y":348,"wires":[["3645d912.2a2b56"]]},{"id":"5af4d827.34fbc8","type":"inject","z":"5ea6c996.329e08","name":"","topic":"lop","payload":"true","payloadType":"bool","repeat":"3","crontab":"","once":false,"onceDelay":0.1,"x":124.5,"y":230,"wires":[["72629923.67b598","d2a38058.4f7c2","f340b2b3.85c1d"]]},{"id":"12dd21d8.d739fe","type":"debug","z":"5ea6c996.329e08","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":976.5,"y":397,"wires":[]},{"id":"1e2f891b.130c67","type":"http request","z":"5ea6c996.329e08","name":"","method":"GET","ret":"txt","paytoqs":false,"url":"http://192.168.1.1?a={{{querry}}}","tls":"","proxy":"","authType":"","x":689.5,"y":464,"wires":[["12dd21d8.d739fe"]]},{"id":"f340b2b3.85c1d","type":"function","z":"5ea6c996.329e08","name":"Qurry","func":"var dzho = Math.random() * (999 - 1) + 1;\n\n\nglobal.set('huy',dzho);\n\nvar newMsg = { payload: '5' };\nreturn newMsg;","outputs":1,"noerr":0,"x":235.5,"y":511,"wires":[["7f373e0c.6ac9f","51812878.b82f58"]]},{"id":"7f373e0c.6ac9f","type":"change","z":"5ea6c996.329e08","name":"Preobrazov","rules":[{"t":"set","p":"querry","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":468.5,"y":480,"wires":[["1e2f891b.130c67"]]},{"id":"51812878.b82f58","type":"function","z":"5ea6c996.329e08","name":"Qurry2","func":"var count=global.get('huy')|| 0;\n\n\nmsg.payload=\"F1 \"+msg.payload+\" \"+count;\n\n\nreturn msg;","outputs":1,"noerr":0,"x":779,"y":671,"wires":[["12dd21d8.d739fe"]]},{"id":"eb78c4d8.4bc328","type":"ui_group","z":"","name":"Intel","tab":"fb705441.605098","disp":true,"width":"6","collapse":false},{"id":"fb705441.605098","type":"ui_tab","z":"","name":"Intel","icon":"dashboard","disabled":false,"hidden":false}]

Вернуться в «Raspberry»

Кто сейчас на форуме

Количество пользователей, которые сейчас просматривают этот форум: нет зарегистрированных пользователей и 1 гость