Test Repository
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 

1 linha
18 KiB

  1. [{"id":"f55cffcf.8b0d7","type":"tab","label":"Flow 2","disabled":false,"info":""},{"id":"e1485bac.6a7678","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"8a767adb.353ab8","type":"ui_base","theme":{"name":"theme-dark","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":true,"reset":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","reset":false},"themeState":{"base-color":{"default":"#097479","value":"#097479","edited":false},"page-titlebar-backgroundColor":{"value":"#097479","edited":false},"page-backgroundColor":{"value":"#111111","edited":false},"page-sidebar-backgroundColor":{"value":"#000000","edited":false},"group-textColor":{"value":"#0eb8c0","edited":false},"group-borderColor":{"value":"#555555","edited":false},"group-backgroundColor":{"value":"#333333","edited":false},"widget-textColor":{"value":"#eeeeee","edited":false},"widget-backgroundColor":{"value":"#097479","edited":false},"widget-borderColor":{"value":"#333333","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":"true","lockMenu":"false","allowTempTheme":"false","dateFormat":"DD/MM/YYYY","sizes":{"sx":48,"sy":48,"gx":6,"gy":6,"cx":6,"cy":6,"px":0,"py":0}}},{"id":"54408c37.e2d514","type":"ui_group","z":"","name":"Wind","tab":"16f66f13.f15a51","order":2,"disp":true,"width":"4","collapse":false},{"id":"521d5fa8.b71d","type":"ui_group","z":"","name":"testy","tab":"16f66f13.f15a51","order":3,"disp":true,"width":"4","collapse":false},{"id":"16f66f13.f15a51","type":"ui_tab","z":"","name":"Home","icon":"dashboard","disabled":false,"hidden":false},{"id":"36831b65.31c7d4","type":"tls-config","z":"","name":"sdoit","cert":"","key":"","ca":"","certname":"","keyname":"","caname":"","servername":"mqtt.sdoit.de","verifyservercert":true},{"id":"af6f4e08.6205e","type":"mqtt-broker","z":"","name":"SDOIT","broker":"mqtt.sdoit.de","port":"8883","tls":"36831b65.31c7d4","clientid":"","usetls":true,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""},{"id":"23030cfe.278db4","type":"ui_group","z":"","name":"Thermometer","tab":"16f66f13.f15a51","order":1,"disp":true,"width":"8","collapse":true},{"id":"a3bb39e.64256c8","type":"ui_group","z":"","name":"Text","tab":"16f66f13.f15a51","order":4,"disp":false,"width":"4","collapse":false},{"id":"1c9518b1.df7fd7","type":"ui_template","z":"f55cffcf.8b0d7","group":"521d5fa8.b71d","name":"Barometer","order":1,"width":0,"height":0,"format":"<script src=\"/myjs/tween-min.js\"></script>\n<script src=\"/myjs/steelseries-min.js\"></script>\n<script>\nvar radial4;\n\n\n (function(scope){ \n scope.$watch('msg', function(msg) {\n if (typeof(msg.payload.pressure) != \"undefined\") radial4.setValueAnimated(msg.payload.pressure);\n //if (typeof(msg.payload.temp_maxc) != \"undefined\") radial4.setMaxMeasuredValue(msg.payload.temp_maxc);\n //if (typeof(msg.payload.temp_minc) != \"undefined\") radial4.setMinMeasuredValue(msg.payload.temp_minc);\n //if (typeof(msg.threshold) != \"undefined\") radial4.setThreshold(msg.threshold);\n //if (typeof(msg.odo) != \"undefined\")radial4.setOdoValue(msg.odo); \n //if (typeof(msg.userLed) != \"undefined\") radial4.setUserLedOnOff(msg.userLed); \n //if (typeof(msg.trend) != \"undefined\")\n //{\n // if (msg.trend==1) radial4.setTrend(steelseries.TrendState.UP);\n // if (msg.trend==0) radial4.setTrend(steelseries.TrendState.STEADY);\n // if (msg.trend==-1) radial4.setTrend(steelseries.TrendState.DOWN);\n // if (msg.trend==-2) radial4.setTrend(steelseries.TrendState.OFF);\n //}\n });\n })(scope);\n\n var sections = [steelseries.Section(960, 990, 'rgba(0, 0, 220, 0.3)'),\n steelseries.Section(990, 1030, 'rgba(0, 220, 0, 0.3)'),\n steelseries.Section(1030, 1060, 'rgba(220, 220, 0, 0.3)') ],\n\n // Define one area\n //areas = [steelseries.Section(25, 50, 'rgba(220, 0, 0, 0.3)')],\n\n radial4 = new steelseries.Radial('canvasRadial4', {\n gaugeType: steelseries.GaugeType.TYPE4,\n minValue: 960,\n maxValue: 1060,\n size: 200,\n section: sections,\n // area: areas,\n titleString: \"Barometer\",\n unitString: \"h Pa\",\n //threshold: 25,\n //thresholdRising: false,\n //userLedVisible: false,\n useOdometer: false,\n lcdVisible: true,\n trendVisible: false,\n minMeasuredValueVisible: false,\n maxMeasuredValueVisible: false\n });\n \n radial4.setFrameDesign(steelseries.FrameDesign.BLACK_METAL);\n radial4.setValueAnimated(0);\n //radial4.setThreshold(50);\n //radial4.blinkUserLed(0);\n //radial4.setOdoValue(0);\n \n\n</script>\n\n<canvas id=\"canvasRadial4\" width=\"251\" height=\"251\"></canvas>\n\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":410,"y":140,"wires":[[]]},{"id":"bc6a3316.4f6ee","type":"comment","z":"f55cffcf.8b0d7","name":"Example use of Steelseries Gauge","info":"","x":180,"y":40,"wires":[]},{"id":"fc35a9bc.e558e8","type":"link out","z":"f55cffcf.8b0d7","name":"weather_out","links":["3f5b8a45.0d9216"],"x":575,"y":100,"wires":[]},{"id":"3f5b8a45.0d9216","type":"link in","z":"e1485bac.6a7678","name":"weather_in","links":["fc35a9bc.e558e8"],"x":35,"y":100,"wires":[["d8553d27.4787b"]]},{"id":"7f11251a.0345bc","type":"mqtt out","z":"e1485bac.6a7678","name":"raspi/waether","topic":"raspi/weather","qos":"2","retain":"true","broker":"af6f4e08.6205e","x":360,"y":100,"wires":[]},{"id":"c94df5bf.499da8","type":"mqtt in","z":"f55cffcf.8b0d7","name":"","topic":"raspi/weather","qos":"2","datatype":"json","broker":"af6f4e08.6205e","x":90,"y":200,"wires":[["3b412217.f8672e","2563f968.660cd6","882effa3.ae48d","1c9518b1.df7fd7","209b5bc9.8bef14","ae192b1f.a60ba8","46e985f2.ba73fc","9b68311c.746a3","71debf15.2b31a","894006a2.ef6348"]]},{"id":"d769c103.82a23","type":"debug","z":"f55cffcf.8b0d7","name":"MQTT raspi/weather","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":380,"y":500,"wires":[]},{"id":"d8553d27.4787b","type":"json","z":"e1485bac.6a7678","name":"","property":"payload","action":"","pretty":true,"x":150,"y":100,"wires":[["7f11251a.0345bc"]]},{"id":"59031b34.5e2794","type":"catch","z":"e1485bac.6a7678","name":"","scope":["42cbe07.ed61f2","df0659a0.f40478","131f2e0.4cb93d2"],"uncaught":false,"x":220,"y":220,"wires":[["d951805d.8606a"]]},{"id":"d951805d.8606a","type":"debug","z":"e1485bac.6a7678","name":"Error","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":500,"y":220,"wires":[]},{"id":"f24db0a9.b6b76","type":"catch","z":"f55cffcf.8b0d7","name":"","scope":null,"uncaught":false,"x":240,"y":740,"wires":[["d4f3a783.fe7fb8"]]},{"id":"d4f3a783.fe7fb8","type":"debug","z":"f55cffcf.8b0d7","name":"Error F2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":380,"y":740,"wires":[]},{"id":"58c2cf31.f0696","type":"openweathermap","z":"f55cffcf.8b0d7","name":"Weather","wtype":"current","lon":"","lat":"","city":"Frankfurt","country":"Deutschland","language":"de","x":400,"y":100,"wires":[["fc35a9bc.e558e8"]]},{"id":"c05902a8.1f7d1","type":"ui_button","z":"f55cffcf.8b0d7","name":"","group":"a3bb39e.64256c8","order":4,"width":0,"height":0,"passthru":true,"label":"button","tooltip":"","color":"","bgcolor":"","icon":"","payload":"true","payloadType":"bool","topic":"","x":220,"y":100,"wires":[["58c2cf31.f0696"]]},{"id":"3d71bc36.14fd24","type":"inject","z":"f55cffcf.8b0d7","name":"","topic":"","payload":"true","payloadType":"bool","repeat":"600","crontab":"","once":false,"onceDelay":0.1,"x":90,"y":100,"wires":[["c05902a8.1f7d1"]]},{"id":"209b5bc9.8bef14","type":"ui_template","z":"f55cffcf.8b0d7","group":"54408c37.e2d514","name":"windir","order":1,"width":0,"height":0,"format":"<script src=\"/myjs/tween-min.js\"></script>\n<script src=\"/myjs/steelseries-min.js\"></script>\n<script>\nvar windir;\n\n (function(scope){ \n scope.$watch('msg', function(msg) {\n if (typeof(msg.payload.winddirection) != \"undefined\") windir.setValueAnimated(msg.payload.winddirection);\n });\n })(scope);\n\n windir = new steelseries.Compass('windir', {\n size: 200\n //fractionalScaleDecimals : 2,\n\t //minValue: 1,\n\t\t//maxValue: 359,\n\t\t//lcdVisible: true,\n\t\t//gaugeType: steelseries.GaugeType.TYPE4,\n\t\t//frameDesign: steelseries.FrameDesign.BRASS,\n\t\t//backgroundColor: steelseries.BackgroundColor.STAINLESS,\n\t\t//pointerTypeLatest: steelseries.PointerType.TYPE3,\n\t\t//pointerTypeAvarage: steelseries.PointerType.TYPE3,\n\t\t//roseVisible: true\n });\n\n</script>\n<canvas id=\"windir\" width=\"200\" height=\"200\"></canvas>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":390,"y":180,"wires":[[]]},{"id":"3b412217.f8672e","type":"moment","z":"f55cffcf.8b0d7","name":"","topic":"","input":"","inputType":"date","inTz":"Europe/London","adjAmount":"1","adjType":"hours","adjDir":"add","format":"LL kk:mm:ss","locale":"de","output":"","outputType":"msg","outTz":"Europe/London","x":420,"y":420,"wires":[["b907f43f.f6ee88"]]},{"id":"b907f43f.f6ee88","type":"ui_text","z":"f55cffcf.8b0d7","group":"a3bb39e.64256c8","order":3,"width":0,"height":0,"name":"","label":"Last Update:","format":"{{msg.payload}}","layout":"col-center","x":630,"y":420,"wires":[]},{"id":"ae192b1f.a60ba8","type":"ui_template","z":"f55cffcf.8b0d7","group":"23030cfe.278db4","name":"Thermometer","order":1,"width":"3","height":"8","format":"<script src=\"/myjs/tween-min.js\"></script>\n<script src=\"/myjs/steelseries-min.js\"></script>\n<script>\nvar therm;\nvar min_temp = -20;\nvar max_temp = 50;\n\n // Define value gradient for bargraph\n var valGrad = new steelseries.gradientWrapper( min_temp,\n max_temp,\n [ min_temp, 0, 20, 40, max_temp],\n [ new steelseries.rgbaColor(0, 0, 200, 1),\n new steelseries.rgbaColor(0, 200, 0, 1),\n new steelseries.rgbaColor(200, 200, 0, 1),\n new steelseries.rgbaColor(200, 0, 0, 1),\n new steelseries.rgbaColor(200, 0, 0, 1) ]\n );\n\n (function(scope){ \n scope.$watch('msg', function(msg) {\n if (typeof(msg.payload.tempc) != \"undefined\") therm.setValueAnimated(msg.payload.tempc);\n });\n })(scope);\n \n\n therm = new steelseries.LinearBargraph('therm', {\n width: 140,\n height: 400,\n minValue: min_temp,\n maxValue: max_temp,\n valueGradient: valGrad,\n useValueGradient: true,\n //gaugeType: steelseries.GaugeType.TYPE2,\n titleString: \"Thermometer\",\n unitString: \"°C\",\n threshold: 25,\n lcdVisible: true\n });\n\n</script>\n<canvas id=\"therm\" width=\"140\" height=\"400\"></canvas>\n","storeOutMessages":true,"fwdInMessages":true,"resendOnRefresh":true,"templateScope":"local","x":420,"y":220,"wires":[[]]},{"id":"46e985f2.ba73fc","type":"ui_template","z":"f55cffcf.8b0d7","group":"23030cfe.278db4","name":"Hygrometer","order":1,"width":"3","height":"8","format":"<script src=\"/myjs/tween-min.js\"></script>\n<script src=\"/myjs/steelseries-min.js\"></script>\n<script>\nvar therm1;\nvar min_temp = 0;\nvar max_temp = 100;\n\n // Define value gradient for bargraph\n var valGrad = new steelseries.gradientWrapper( min_temp,\n max_temp,\n [ min_temp, 0, 20, 40, max_temp],\n [ new steelseries.rgbaColor(0, 0, 200, 1),\n new steelseries.rgbaColor(0, 200, 0, 1),\n new steelseries.rgbaColor(200, 200, 0, 1),\n new steelseries.rgbaColor(200, 0, 0, 1),\n new steelseries.rgbaColor(200, 0, 0, 1) ]\n );\n\n (function(scope){ \n scope.$watch('msg', function(msg) {\n if (typeof(msg.payload.humidity) != \"undefined\") therm1.setValueAnimated(msg.payload.humidity);\n });\n })(scope);\n \n\n therm1 = new steelseries.LinearBargraph('therm1', {\n width: 140,\n height: 400,\n minValue: min_temp,\n maxValue: max_temp,\n valueGradient: valGrad,\n useValueGradient: true,\n //gaugeType: steelseries.GaugeType.TYPE2,\n titleString: \"Hygrometer\",\n unitString: \"%\",\n threshold: 25,\n lcdVisible: true\n });\n\n</script>\n<canvas id=\"therm1\" width=\"140\" height=\"400\"></canvas>\n","storeOutMessages":true,"fwdInMessages":false,"resendOnRefresh":true,"templateScope":"local","x":410,"y":300,"wires":[[]]},{"id":"90fb1b54.6c4548","type":"http in","z":"e1485bac.6a7678","name":"Test","url":"/test","method":"get","upload":false,"swaggerDoc":"","x":90,"y":320,"wires":[["f376ca65.08a188"]]},{"id":"686afa6f.0b93a4","type":"http response","z":"e1485bac.6a7678","name":"","statusCode":"","headers":{},"x":590,"y":320,"wires":[]},{"id":"f376ca65.08a188","type":"http request","z":"e1485bac.6a7678","name":"","method":"GET","ret":"txt","paytoqs":true,"url":"http://ubuntu.fritz.box:1880/myjs/mytest.html","tls":"","persist":false,"proxy":"","authType":"","x":330,"y":320,"wires":[["686afa6f.0b93a4"]]},{"id":"2563f968.660cd6","type":"link out","z":"f55cffcf.8b0d7","name":"mqtt_w_in","links":["3fa8fcb0.36f244"],"x":175,"y":340,"wires":[]},{"id":"3fa8fcb0.36f244","type":"link in","z":"f55cffcf.8b0d7","name":"w_in","links":["2563f968.660cd6"],"x":235,"y":500,"wires":[["d769c103.82a23","226327d7.6e4778"]]},{"id":"226327d7.6e4778","type":"change","z":"f55cffcf.8b0d7","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"data","tot":"global"}],"action":"","property":"","from":"","to":"","reg":false,"x":390,"y":580,"wires":[[]]},{"id":"882effa3.ae48d","type":"debug","z":"f55cffcf.8b0d7","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":180,"y":420,"wires":[]},{"id":"9b68311c.746a3","type":"ui_template","z":"f55cffcf.8b0d7","group":"54408c37.e2d514","name":"Windspeed_m","order":2,"width":"0","height":"0","format":"<script src=\"/myjs/tween-min.js\"></script>\n<script src=\"/myjs/steelseries-min.js\"></script>\n<script>\nvar gauge;\nvar min_temp = 0;\nvar max_temp = 100;\n\n (function(scope){ \n scope.$watch('msg', function(msg) {\n if (typeof(msg.payload.windspeed) != \"undefined\") gauge.setValue(msg.payload.windspeed);\n });\n })(scope);\n \n gauge = new steelseries.DisplaySingle('disp_single1', {\n width: 200,\n height: 50,\n unitString: \"m/s\",\n unitStringVisible: true,\n headerString: \"Windspeed\",\n headerStringVisible: true\n });\n\n</script>\n<canvas id=\"disp_single1\"></canvas>\n","storeOutMessages":true,"fwdInMessages":false,"resendOnRefresh":true,"templateScope":"local","x":420,"y":380,"wires":[[]]},{"id":"f2680b8d.d68ea8","type":"uibuilder","z":"e1485bac.6a7678","name":"","topic":"","url":"uibuilder","fwdInMessages":false,"allowScripts":false,"allowStyles":false,"copyIndex":true,"showfolder":true,"x":200,"y":460,"wires":[[],[]]},{"id":"71debf15.2b31a","type":"ui_text","z":"f55cffcf.8b0d7","group":"a3bb39e.64256c8","order":1,"width":0,"height":0,"name":"","label":"","format":"{{msg.payload.detail}}","layout":"row-spread","x":390,"y":260,"wires":[]},{"id":"894006a2.ef6348","type":"ui_template","z":"f55cffcf.8b0d7","group":"54408c37.e2d514","name":"Windspeed_km","order":2,"width":"0","height":"0","format":"<script src=\"/myjs/tween-min.js\"></script>\n<script src=\"/myjs/steelseries-min.js\"></script>\n<script>\nvar gauge1;\nvar min_temp = 0;\nvar max_temp = 100;\n\n (function(scope){ \n scope.$watch('msg', function(msg) {\n if (typeof(msg.payload.windspeed) != \"undefined\") gauge1.setValue(msg.payload.windspeed * 3.6);\n });\n })(scope);\n \n gauge1 = new steelseries.DisplaySingle('disp_single', {\n width: 200,\n height: 50,\n unitString: \"km/h\",\n unitStringVisible: true,\n headerString: \"Windspeed\",\n headerStringVisible: true\n });\n\n</script>\n<canvas id=\"disp_single\"></canvas>\n","storeOutMessages":true,"fwdInMessages":false,"resendOnRefresh":true,"templateScope":"local","x":420,"y":340,"wires":[[]]}]