Pastebin
API
tools
faq
paste
Login
Sign up
Please fix the following errors:
New Paste
Syntax Highlighting
[ { "id": "d6870949.5422d8", "type": "ui_template", "z": "e7f81119.1bd4", "group": "bd48728c.866f2", "name": "css etc", "order": 10, "width": "0", "height": "0", "format": "<style> .cellGreen { background-color: #ffdddd !important; } .filled { height: 100% !important; padding: 0 !important; margin: 0 !important; } .nr-dashboard-template { padding: 0; margin: 0; } .rounded { border-radius: 12px 12px 12px 12px; } .bigfont { font-size: 18px; } .smallfont { font-size: 12px; } .zui-table { border: solid 1px #DDEEEE; border-collapse: collapse; border-spacing: 0; font: normal 10px Arial, sans-serif; outline: none; } .zui-table thead th { width: 100%; height:50%; background-color: #99bbff; border: solid 1px #DDEEEE; color: #336B6B; padding: 7px 3px 5px 3px; text-align: center; text-shadow: 1px 1px 1px #fff; } .zui-table tbody td { width: 100%; height:50%; border: solid 1px #333; color: #333; text-align: center; padding: 6px 3px 9px 3px; text-shadow: 1px 1px 1px #fff; } .zui-table-rounded { border: none; } .zui-table-rounded thead th { background-color: #77aaff; border: none; text-shadow: 1px 1px 1px #ccc; color: #333; } .zui-table-rounded thead th:first-child { border-radius: 10px 0 0 0; } .zui-table-rounded thead th:last-child { border-radius: 10px 10px 0px 0px; } .zui-table-rounded tbody td { border: none; border-top: solid 1px #957030; background-color: #aaddff; } .zui-table-rounded tbody tr:last-child td:first-child { border-radius: 10px 10px 0 0; } .zui-table-rounded tbody tr:last-child td:last-child { border-radius: 0 0 10px 10px; } </style> <script> var current=1; $('.vibrate').on('click', function() { navigator.vibrate(100); }); function restore_bg(x) { $(this).css(\"background-color\", x); }; $('.touched').on('mousedown', function() { var x= $(this).css(\"background-color\"); $(this).css(\"background-color\", \"yellow\"); setTimeout(restore_bg.bind(this,x),50); navigator.vibrate(80); }); </script>", "storeOutMessages": true, "fwdInMessages": true, "templateScope": "local", "x": 600, "y": 120, "wires": [ [] ] }, { "id": "5ddc1d3c.71b5d4", "type": "ui_template", "z": "e7f81119.1bd4", "group": "bd48728c.866f2", "name": "Settings section", "order": 2, "width": "6", "height": "6", "format": "<style> .thedays { vertical-align:bottom; height:48px; } .the2px  { background-color:black; height:2px; } .theblocks {width:100%; height:0%; background-color:green; } .greybuttons { background-color:#dddddd !important; width:48px; } .thetemps { font-size:70%; color:#888888 !important; } .smallheadings { color:black; font-size:80%; } </style> <script> var thedays = [\"SUNDAY\", \"MONDAY\", \"TUESDAY\", \"WEDNESDAY\", \"THURSDAY\", \"FRIDAY\", \"SATURDAY\"]; var last = 1; function bar(mm, val) { if (val == 14) { $(mm).height(\"12%\"); $(mm).css('background-color', '#6666ff'); } //blue if (val == 15) { $(mm).height(\"16%\"); $(mm).css('background-color', '#5577ff'); } if (val == 16) { $(mm).height(\"20%\"); $(mm).css('background-color', '#5599ff'); } if (val == 17) { $(mm).height(\"24%\"); $(mm).css('background-color', '#55ccdd'); } // cyan if (val == 18) { $(mm).height(\"28%\"); $(mm).css('background-color', '#55ddaa'); } if (val == 19) { $(mm).height(\"32%\"); $(mm).css('background-color', '#55dd55'); } if (val == 20) { $(mm).height(\"36%\"); $(mm).css('background-color', '#55dd55'); } // green if (val == 21) { $(mm).height(\"40%\"); $(mm).css('background-color', '#55dd55'); } if (val == 22) { $(mm).height(\"44%\"); $(mm).css('background-color', '#aadd55'); } if (val == 23) { $(mm).height(\"48%\"); $(mm).css('background-color', '#dddd55'); } // yellow if (val == 24) { $(mm).height(\"52%\"); $(mm).css('background-color', '#ffaa55'); } if (val == 25) { $(mm).height(\"56%\"); $(mm).css('background-color', '#ff8855'); } if (val == 26) { $(mm).height(\"60%\"); $(mm).css('background-color', '#ff7777'); } // red } function stat(text) { $(\"#info\").text(text); var tm = setTimeout(function() { $(\"#info\").text(\"Ok\"); clearTimeout(tm); }, 3000); } function selec(val, sta) { var w = \"#td\" + val; if (sta) $(w).css('background-color', 'magenta'); else $(w).css('background-color', 'black'); } (function(scope) { scope.$watch('msg', function(msg) { selec(last, 0); last = msg.selector; selec(last, 1); for (var x = 0; x < 24; x++) { var w = \"#t\" + x; bar(w, msg.timing[((msg.days - 1) * 24) + x]); var v = \"#v\" + x; $(v).text(msg.timing[((msg.days - 1) * 24) + x] + \"C\") } for (var x = 0; x < 2; x++) { var w = \"#s\" + x; $(w).text(msg.timing[168 + x] + \"C\"); } $(\"#d0\").text(thedays[msg.days - 1]); if ((last > 4) && (last < 29)) $(\"#current\").text(msg.timing[((msg.days - 1) * 24) + last - 5] + \"C\"); else $(\"#current\").text(\"-\"); if (msg.foryou != \"\") { stat(msg.foryou); } }); })(scope); </script> <table width=\"100%\"> <tr style=\"height:2px\"> <td colspan=12 style=\"background-color:black;height:5px;\"></td> </tr> <tr> <td colspan=6> <center><span class=\"smallheadings\">Day</span></center> </td> <td colspan=3> <center><span class=\"smallheadings\">Frost</span></center> </td> <td colspan=3> <center><span class=\"smallheadings\">Away</span></center> </td> </tr> <tr> <td ng-click=\"send({payload: '29'})\" colspan=6> <center><span id=\"d0\" style=\"color:blue;font-size:120%\">MONDAY</span></center> </td> <td ng-click=\"send({payload: '1'})\" colspan=3> <center><span id=\"s0\" style=\"color:blue;font-size:120%\">14</span></center> </td> <td ng-click=\"send({payload: '2'})\" colspan=3> <center><span id=\"s1\" style=\"color:blue;font-size:120%\">20</span></center> </td> </tr> <tr style=\"height:2px\"> <td id=\"td29\" colspan=6 style=\"background-color:black;height:2px;\"></td> <td id=\"td1\" colspan=3 style=\"background-color:black;height:2px;\"></td> <td id=\"td2\" colspan=3 style=\"background-color:black;height:2px;\"></td> </tr> <tr> <td ng-click=\"send({payload: '5'})\" class=\"thedays\"><span id=\"v0\" class=\"thetemps\"></span> <div id=\"t0\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '6'})\" class=\"thedays\"><span id=\"v1\" class=\"thetemps\"></span> <div id=\"t1\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '7'})\" class=\"thedays\"><span id=\"v2\" class=\"thetemps\"></span> <div id=\"t2\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '8'})\" class=\"thedays\"><span id=\"v3\" class=\"thetemps\"></span> <div id=\"t3\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '9'})\" class=\"thedays\"><span id=\"v4\" class=\"thetemps\"></span> <div id=\"t4\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '10'})\" class=\"thedays\"><span id=\"v5\" class=\"thetemps\"></span> <div id=\"t5\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '11'})\" class=\"thedays\"><span id=\"v6\" class=\"thetemps\"></span> <div id=\"t6\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '12'})\" class=\"thedays\"><span id=\"v7\" class=\"thetemps\"></span> <div id=\"t7\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '13'})\" class=\"thedays\"><span id=\"v8\" class=\"thetemps\"></span> <div id=\"t8\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '14'})\" class=\"thedays\"><span id=\"v9\" class=\"thetemps\"></span> <div id=\"t9\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '15'})\" class=\"thedays\"><span id=\"v10\" class=\"thetemps\"></span> <div id=\"t10\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '16'})\" class=\"thedays\"><span id=\"v11\" class=\"thetemps\"></span> <div id=\"t11\" class=\"theblocks\"></div> </td> </tr> <tr style=\"height:2px\"> <td id=\"td5\" class=\"the2px\"></td> <td id=\"td6\" class=\"the2px\"></td> <td id=\"td7\" class=\"the2px\"></td> <td id=\"td8\" class=\"the2px\"></td> <td id=\"td9\" class=\"the2px\"></td> <td id=\"td10\" class=\"the2px\"></td> <td id=\"td11\" class=\"the2px\"></td> <td id=\"td12\" class=\"the2px\"></td> <td id=\"td13\" class=\"the2px\"></td> <td id=\"td14\" class=\"the2px\"></td> <td id=\"td15\" class=\"the2px\"></td> <td id=\"td16\" class=\"the2px\"></td> </tr> <tr> <td>0</td> <td>1</td> <td>2</td> <td>3</td> <td>4</td> <td>5</td> <td>6</td> <td>7</td> <td>8</td> <td>9</td> <td>10</td> <td>11</td> </tr> <tr> <td ng-click=\"send({payload: '17'})\" class=\"thedays\"><span id=\"v12\" class=\"thetemps\"></span> <div id=\"t12\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '18'})\" class=\"thedays\"><span id=\"v13\" class=\"thetemps\"></span> <div id=\"t13\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '19'})\" class=\"thedays\"><span id=\"v14\" class=\"thetemps\"></span> <div id=\"t14\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '20'})\" class=\"thedays\"><span id=\"v15\" class=\"thetemps\"></span> <div id=\"t15\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '21'})\" class=\"thedays\"><span id=\"v16\" class=\"thetemps\"></span> <div id=\"t16\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '22'})\" class=\"thedays\"><span id=\"v17\" class=\"thetemps\"></span> <div id=\"t17\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '23'})\" class=\"thedays\"><span id=\"v18\" class=\"thetemps\"></span> <div id=\"t18\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '24'})\" class=\"thedays\"><span id=\"v19\" class=\"thetemps\"></span> <div id=\"t19\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '25'})\" class=\"thedays\"><span id=\"v20\" class=\"thetemps\"></span> <div id=\"t20\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '26'})\" class=\"thedays\"><span id=\"v21\" class=\"thetemps\"></span> <div id=\"t21\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '27'})\" class=\"thedays\"><span id=\"v22\" class=\"thetemps\"></span> <div id=\"t22\" class=\"theblocks\"></div> </td> <td ng-click=\"send({payload: '28'})\" class=\"thedays\"><span id=\"v23\" class=\"thetemps\"></span> <div id=\"t23\" class=\"theblocks\"></div> </td> </tr> <tr style=\"height:2px\"> <td id=\"td17\" class=\"the2px\"></td> <td id=\"td18\" class=\"the2px\"></td> <td id=\"td19\" class=\"the2px\"></td> <td id=\"td20\" class=\"the2px\"></td> <td id=\"td21\" class=\"the2px\"></td> <td id=\"td22\" class=\"the2px\"></td> <td id=\"td23\" class=\"the2px\"></td> <td id=\"td24\" class=\"the2px\"></td> <td id=\"td25\" class=\"the2px\"></td> <td id=\"td26\" class=\"the2px\"></td> <td id=\"td27\" class=\"the2px\"></td> <td id=\"td28\" class=\"the2px\"></td> </tr> <tr> <td>12</td> <td>13</td> <td>14</td> <td>15</td> <td>16</td> <td>17</td> <td>18</td> <td>19</td> <td>20</td> <td>21</td> <td>22</td> <td>23</td> </tr> <tr height=\"20px\"> <td colspan=2 bgcolor=\"#dddddd\"><span class=\"smallheadings\"> Status:</span></td> <td colspan=10 bgcolor=\"#dddddd\"> <center><span id=\"info\" class=\"smallheadings\">OK</span></center> </td> </tr> <tr height=\"10px\"> <td colspan=\"12\"></td> </tr> <tr style=\"height:48px\"> <td colspan=2> <md-button class=\"vibrate filled touched smallfont rounded greybuttons\" ng-click=\"send({payload: 'd'})\"> <img style=\"outline : none;\" ng-src=\"{{(msg.payload)?'/myicons/png/48x48/actions/arrow-left-double-2.png':'/myicons/png/48x48/actions/arrow-left-double-2.png'}}\" height=\"36px\" /> </md-button> </td> <td colspan=2> <center><span id=\"current\" style=\"color:black;font-size:120%\">-</span></center> </td> <td colspan=2> <md-button class=\"vibrate filled touched smallfont rounded greybuttons\" ng-click=\"send({payload: 'u'})\"> <img style=\"outline : none;\" ng-src=\"{{(msg.payload)?'/myicons/png/48x48/actions/arrow-right-double-2.png':'/myicons/png/48x48/actions/arrow-right-double-2.png'}}\" height=\"36px\" /> </md-button> </td> <td colspan=2> <md-button class=\"vibrate filled touched smallfont rounded greybuttons\" ng-click=\"send({payload: 'r'})\"> <img style=\"outline : none;\" ng-src=\"{{(msg.payload)?'/myicons/png/48x48/actions/edit-copy-4.png':'/myicons/png/48x48/actions/edit-copy-4.png'}}\" height=\"36px\" /> </md-button> </td> <td colspan=2> <md-button class=\"vibrate filled touched smallfont rounded greybuttons\" ng-click=\"send({payload: 's'})\"> <img style=\"outline : none;\" ng-src=\"{{(msg.payload)?'/myicons/png/48x48/actions/document-save-5.png':'/myicons/png/48x48/actions/document-save-5.png'}}\" height=\"36px\" /> </md-button> </td> <td colspan=2> <md-button class=\"vibrate filled touched smallfont rounded greybuttons\" ng-click=\"send({payload: 'c'})\"> <img style=\"outline : none;\" ng-src=\"{{(msg.payload)?'/myicons/png/48x48/actions/dialog-cancel-5.png':'/myicons/png/48x48/actions/dialog-cancel-5.png'}}\" height=\"36px\" /> </md-button> </td> <td colspan=1></td> </tr> </table> ", "storeOutMessages": false, "fwdInMessages": false, "templateScope": "local", "x": 780, "y": 120, "wires": [ [ "8f3e25e4.6dba38" ] ] }, { "id": "8f3e25e4.6dba38", "type": "function", "z": "e7f81119.1bd4", "name": "Process controls", "func": "if ( typeof context.days == 'undefined' ) context.days=1; if ( typeof context.selector == 'undefined' ) context.selector=1; if ( typeof context.saving == 'undefined' ) context.saving=0; //context.set(\"days\",context.get(\"days\") || 1) ; //context.set(\"selector\",context.get(\"selector\") || 1); //context.set(\"saving\",context.get(\"saving\") || 0); // if ( typeof context.global.incomingTemperature == 'undefined' ) context.global.incomingTemperature=0; flow.set(\"incomingTemperature\", flow.get(\"incomingTemperature\") || 20); flow.set(\"incomingHumidity\", flow.get(\"incomingHumidity\") || 40); // if ( typeof context.global.incomingHumidity == 'undefined' ) context.global.incomingHumidity=0; flow.set(\"hold\", flow.get(\"hold\") || 0); flow.set(\"away\", flow.get(\"away\") || 0); flow.set(\"manual\", flow.get(\"manual\") || 0); flow.set(\"setTemperature\", flow.get(\"setTemperature\") || 0); flow.set(\"manualTimer\", flow.get(\"manualTimer\") || 0); //if ( typeof context.flow.hold == 'undefined' ) context.flow.hold=0; //if ( typeof context.flow.away == 'undefined' ) context.flow.away=0; //if ( typeof context.flow.manual == 'undefined' ) context.flow.manual=0; //if ( typeof context.flow.setTemperature == 'undefined' ) context.flow.setTemperature=0; //if ( typeof context.flow.manualTimer == 'undefined' ) context.flow.manualTimer=0; if ( typeof context.global.timing == 'undefined' ) { context.global.timing=[ 14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14, 14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14, 14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14, 14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14, 14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14, 14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14, 14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14,14, 8,14 ]; context.saving=0; msg.payload=\"anything\";  msg.foryou=\"Restoring\"; return([null,null,msg]); } var timing=global.get(\"timing\"); switch (msg.payload) { case \"u\" :  if ((context.selector>4)&&(context.selector<29)) { timing[((context.days-1)*24)+context.selector-5]++; if (timing[((context.days-1)*24)+context.selector-5]>26) timing[((context.days-1)*24)+context.selector-5]=26; msg.foryou=\"Incremented temperature\"; } if (context.selector==1) { if (timing[168+(context.selector-1)]<26) {  timing[168+(context.selector-1)]++; msg.foryou=\"Incremented frost setting 1 degree\"; } else msg.foryou=\"Hit limit\"; } if (context.selector==2) { if (timing[168+(context.selector-1)]<26) {  timing[168+(context.selector-1)]++; msg.foryou=\"Incremented away setting 1 degree\"; } else msg.foryou=\"Hit limit\"; } if (context.selector==29) { if (context.days<7) { context.days++; msg.foryou=\"Forward one day\";} else msg.foryou=\"End of days!!\"; } break; case \"d\" :  if ((context.selector>4)&&(context.selector<29)) { timing[((context.days-1)*24)+context.selector-5]--; if (timing[((context.days-1)*24)+context.selector-5]<14) timing[((context.days-1)*24)+context.selector-5]=14; msg.foryou=\"Decremented temperature\"; } if (context.selector==1) { if (timing[168+(context.selector-1)]>8) { timing[168+(context.selector-1)]--; msg.foryou=\"Decremented frost setting 1 degree\"; } else msg.foryou=\"Hit limit\"; } if (context.selector==2) { if (timing[168+(context.selector-1)]>8) { timing[168+(context.selector-1)]--; msg.foryou=\"Decremented away setting 1 degree\"; } else msg.foryou=\"Hit limit\"; } if (context.selector==29) { if (context.days>1) { context.days--;  msg.foryou=\"Backward one day\";} else msg.foryou=\"Beginning of days!!\";  } break; case 'r' :  if ((context.selector>=5)&&(context.selector<28)) { timing[((context.days-1)*24)+context.selector-4]=timing[((context.days-1)*24)+context.selector-5]; context.selector++; msg.foryou=\"Copied settings to the next hour slot\"; } if ((context.selector==29)&&(context.days<7)) { for (var a=0;a<24;a++) { timing[((context.days)*24)+a]=timing[((context.days-1)*24)+a]; } context.days++; msg.foryou=\"Copied a complete day's settings\"; } break; case 's': context.saving=0;  msg.foryou=\"Settings saved to disk\"; break; case '1': case '2': case '3': case '4': case '5': case '6': case '7': case '8': case '9': case '10': case '11': case '12': case '13': case '14': case '15': case '16': case '17': case '18': case '19': case '20': case '21': case '22': case '23': case '24': case '25': case '26': case '27': case '28': case '29': context.selector=parseInt(msg.payload); if (msg.payload=='1') msg.foryou=\"Frost temperature selection\"; else if (msg.payload=='2') msg.foryou=\"Away temperature selection\"; else if (msg.payload=='29') msg.foryou=\"Day selection\"; else  msg.foryou=\"Selected hour period \" + (parseInt(msg.payload)-4); break; case 'c' : msg.payload=\"anything\";  msg.foryou=\"Changes cancelled\"; node.send([null,null,msg]); } msg.temperatures=context.temperatures; msg.timing=timing; msg.days=context.days; msg.selector=context.selector; node.send([msg,null,null]); if (context.saving===0) { msg.topic=\"\"; msg.timing=\"\"; msg.payload=JSON.stringify(timing); node.send([null,msg,null]); context.saving=1; } msg.foryou=\"\"", "outputs": "3", "noerr": 0, "x": 630, "y": 180, "wires": [ [ "5ddc1d3c.71b5d4" ], [ "20a478fa.97b6c8" ], [ "2012d6bc.e5bb8a" ] ] }, { "id": "2ea4fbf9.b23304", "type": "inject", "z": "e7f81119.1bd4", "name": "Once only", "topic": "", "payload": "", "payloadType": "str", "repeat": "", "crontab": "", "once": true, "x": 130, "y": 220, "wires": [ [ "8f3e25e4.6dba38", "2012d6bc.e5bb8a" ] ] }, { "id": "d9f5055c.d034d8", "type": "function", "z": "e7f81119.1bd4", "name": "Process heat", "func": "var timing=global.get(\"timing\"); var now = new Date(); msg.payload=timing[(now.getDay()*24)+now.getHours()]; msg.frost=timing[168]; msg.away=timing[169]; msg.temperature=flow.get(\"incomingTemperature\"); msg.humidity=flow.get(\"incomingHumidity\"); msg.set=msg.payload; if (flow.get(\"manualTimer\")) flow.set(\"manualTimer\",flow.get(\"manualTimer\")-1); else flow.set(\"manual\",0); msg.desired=msg.set; flow.set(\"setTemperature\",msg.desired); msg.desired+=flow.get(\"manual\"); if (flow.get(\"frost\")) { msg.desired=global.get(\"timing\")[168]; flow.set(\"frost\",flow.get(\"frost\")-1); } if (flow.get(\"away\")) { msg.desired=global.get(\"timing\")[169]; flow.set(\"away\",flow.get(\"away\")-1); } if (msg.desired>msg.temperature) msg.relay=1; else msg.relay=0; msg.payload=flow.get(\"incomingTemperature\"); node.status({fill:\"blue\",shape:\"dot\",text:\"Set point \" + msg.desired + \"c - Actual \" + msg.temperature +\"c\"}); node.send([msg,null]); msg.payload=msg.relay; node.send([null,msg]); ", "outputs": "2", "noerr": 0, "x": 750, "y": 500, "wires": [ [ "20503617.ac02ea", "be5056d3.ff22b8" ], [ "95d1c267.b8f65", "bae11d44.599fc", "4fac90e3.7885" ] ] }, { "id": "20a478fa.97b6c8", "type": "file", "z": "e7f81119.1bd4", "name": "backup", "filename": "/home/pi/petesstatlog.log", "appendNewline": true, "createDir": true, "overwriteFile": "true", "x": 820, "y": 180, "wires": [ [] ] }, { "id": "2012d6bc.e5bb8a", "type": "file in", "z": "e7f81119.1bd4", "name": "Restore", "filename": "/home/pi/petesstatlog.log", "format": "utf8", "x": 400, "y": 220, "wires": [ [ "fa0025fe.752938" ] ] }, { "id": "fa0025fe.752938", "type": "function", "z": "e7f81119.1bd4", "name": "Restore data from SD", "func": "context.flow.timing=JSON.parse(msg.payload); msg.payload=\"\"; return msg;", "outputs": 1, "noerr": 0, "x": 540, "y": 260, "wires": [ [ "8f3e25e4.6dba38" ] ] }, { "id": "4176dabf.ac7cd4", "type": "inject", "z": "e7f81119.1bd4", "name": "dummy temperature 20c", "topic": "", "payload": "20", "payloadType": "str", "repeat": "", "crontab": "", "once": true, "onceDelay": "", "x": 170, "y": 120, "wires": [ [ "13e86fd8.0c3cd" ] ] }, { "id": "2e36966.df2ac6a", "type": "inject", "z": "e7f81119.1bd4", "name": "dummy humidity 40%", "topic": "", "payload": "40", "payloadType": "str", "repeat": "", "crontab": "", "once": true, "onceDelay": "", "x": 160, "y": 160, "wires": [ [ "2cf1f54a.260b9a" ] ] }, { "id": "13e86fd8.0c3cd", "type": "function", "z": "e7f81119.1bd4", "name": "Store temperature", "func": "if ((Number(msg.payload)>0) && (Number(msg.payload)<100)) flow.set(\"incomingTemperature\",msg.payload);", "outputs": "0", "noerr": 0, "x": 410, "y": 100, "wires": [] }, { "id": "2cf1f54a.260b9a", "type": "function", "z": "e7f81119.1bd4", "name": "Store humidity", "func": "flow.set(\"incomingHumidity\",msg.payload);", "outputs": "0", "noerr": 0, "x": 400, "y": 140, "wires": [] }, { "id": "53b4a878.d58478", "type": "inject", "z": "e7f81119.1bd4", "name": "Test \"Away\" 2 hours", "topic": "", "payload": "120", "payloadType": "str", "repeat": "", "crontab": "", "once": false, "onceDelay": "", "x": 150, "y": 280, "wires": [ [ "3cd37e2c.450362" ] ] }, { "id": "d059cc6b.07d27", "type": "inject", "z": "e7f81119.1bd4", "name": "Test \"Away\" clear", "topic": "", "payload": "0", "payloadType": "str", "repeat": "", "crontab": "", "once": false, "x": 140, "y": 320, "wires": [ [ "3cd37e2c.450362" ] ] }, { "id": "369d728d.9e145e", "type": "inject", "z": "e7f81119.1bd4", "name": "Test \"Frost\" 2 hours", "topic": "", "payload": "120", "payloadType": "str", "repeat": "", "crontab": "", "once": false, "onceDelay": "", "x": 150, "y": 360, "wires": [ [ "ee8c1336.e7829" ] ] }, { "id": "bf4b8f74.9cb77", "type": "inject", "z": "e7f81119.1bd4", "name": "Test \"Frost\" clear", "topic": "", "payload": "0", "payloadType": "str", "repeat": "", "crontab": "", "once": false, "onceDelay": "", "x": 140, "y": 400, "wires": [ [ "ee8c1336.e7829" ] ] }, { "id": "ee8c1336.e7829", "type": "function", "z": "e7f81119.1bd4", "name": "Store \"frost\"", "func": "flow.set(\"frost\",Number(msg.payload)); ", "outputs": 0, "noerr": 0, "x": 410, "y": 360, "wires": [] }, { "id": "3cd37e2c.450362", "type": "function", "z": "e7f81119.1bd4", "name": "Store \"Away\"", "func": "flow.set(\"away\",Number(msg.payload)); ", "outputs": 0, "noerr": 0, "x": 410, "y": 320, "wires": [] }, { "id": "cb2d0f09.47ffe", "type": "inject", "z": "e7f81119.1bd4", "name": "sample forecast", "topic": "", "payload": "Dry, 2c with chance of snow", "payloadType": "str", "repeat": "", "crontab": "", "once": false, "x": 140, "y": 440, "wires": [ [ "91caa4fb.1dfc38" ] ] }, { "id": "e8456857.a45658", "type": "inject", "z": "e7f81119.1bd4", "name": "Sample forecast", "topic": "", "payload": "Wet, 12c, possibly rain tonight", "payloadType": "str", "repeat": "", "crontab": "", "once": false, "x": 140, "y": 480, "wires": [ [ "91caa4fb.1dfc38" ] ] }, { "id": "91caa4fb.1dfc38", "type": "function", "z": "e7f81119.1bd4", "name": "Store forecast", "func": "flow.set(\"forecast\",msg.payload);", "outputs": "0", "noerr": 0, "x": 420, "y": 440, "wires": [] }, { "id": "95d1c267.b8f65", "type": "function", "z": "e7f81119.1bd4", "name": "Heating relay is called heating_relay", "func": "msg.topic=\"heating_relay/toesp\"; if (msg.payload==1) { node.status({fill:\"red\",shape:\"dot\",text:\"Relay ON\"}); msg.payload=\"{out4:6,5}\"; node.send(msg); msg.payload=\"{out15:1}\"; node.send(msg); } else { node.status({fill:\"black\",shape:\"dot\",text:\"Relay OFF\"}); msg.payload=\"{out4:0}\"; node.send(msg); msg.payload=\"{out15:0}\"; node.send(msg); } ", "outputs": 1, "noerr": 0, "x": 1810, "y": 500, "wires": [ [ "aac34649.3905a8" ] ] }, { "id": "262665c1.742ffa", "type": "function", "z": "e7f81119.1bd4", "name": "Handle SET", "func": "// here we set manual override controls - valid for 120 minutes after last change. if (flow.get(\"away\")===0) { if (msg.payload==\"u\") { flow.set(\"manualTimer\",120); if ((flow.get(\"manual\") + flow.get(\"setTemperature\"))<25)   flow.set(\"manual\",flow.get(\"manual\")+1); } if (msg.payload==\"d\") { flow.set(\"manualTimer\",120); if ((flow.get(\"manual\") + flow.get(\"setTemperature\"))>17)   flow.set(\"manual\",flow.get(\"manual\")-1); } if (msg.payload==\"a\") { flow.set(\"manualTimer\",0); flow.set(\"manual\",0);     context.set(\"both\",0); node.status({fill:\"red\",shape:\"dot\",text:\"auto\"});  } } msg.desired=flow.get(\"setTemperature\") + flow.get(\"manual\"); if (flow.get(\"manual\")===0) msg.colour=\"#aaddff\"; else msg.colour=\"#aaffaa\"; if (flow.get(\"frost\")) { msg.desired=global.get(\"timing\")[168]; msg.colour=\"#ffbbbb\"; } if (flow.get(\"away\"))  { msg.desired=global.get(\"timing\")[169];msg.colour=\"#ffbbbb\";  } msg.payload=msg.desired; return msg;", "outputs": 1, "noerr": 0, "x": 750, "y": 440, "wires": [ [ "be5056d3.ff22b8", "20503617.ac02ea", "2be4e5f.c5b761a", "bae11d44.599fc", "e01b553b.23df18", "4fac90e3.7885" ] ] }, { "id": "2b777af3.c2e396", "type": "ui_template", "z": "e7f81119.1bd4", "group": "bd48728c.866f2", "name": "up", "order": 4, "width": "1", "height": "1", "format": "  <md-button  class=\"vibrate filled touched smallfont rounded greybuttons\" ng-click=\"send({payload: 'u'})\"> <img style=\"outline : none;\" ng-src=\"{{(msg.payload)?'/myicons/png/48x48/actions/arrow-right-2.png':'/myicons/png/48x48/actions/arrow-right-2.png'}}\" height=\"36px\" /> </md-button> ", "storeOutMessages": false, "fwdInMessages": false, "templateScope": "local", "x": 550, "y": 320, "wires": [ [ "262665c1.742ffa", "da6571c9.80974", "7053f95f.644d58" ] ] }, { "id": "e64c48be.5c4c08", "type": "ui_template", "z": "e7f81119.1bd4", "group": "bd48728c.866f2", "name": "down", "order": 3, "width": "1", "height": "1", "format": "  <md-button  class=\"vibrate filled touched smallfont rounded greybuttons\" ng-click=\"send({payload: 'd'})\"> <img style=\"outline : none;\" ng-src=\"{{(msg.payload)?'/myicons/png/48x48/actions/arrow-down-2.png':'/myicons/png/48x48/actions/arrow-left-2.png'}}\" height=\"36px\" /> </md-button> ", "storeOutMessages": false, "fwdInMessages": false, "templateScope": "local", "x": 550, "y": 380, "wires": [ [ "262665c1.742ffa", "da6571c9.80974", "7053f95f.644d58" ] ] }, { "id": "53cc9d53.254a54", "type": "function", "z": "e7f81119.1bd4", "name": "Handle AWAY", "func": "// here we set manual override controls - valid for 60 minutes after last change. if (msg.payload==\"u\") {  flow.set(\"away\",flow.get(\"away\")+1); } if (msg.payload==\"uu\") { flow.set(\"away\",flow.get(\"away\")+24); } if (msg.payload==\"a\") { flow.set(\"away\",0);  } msg.away=flow.get(\"away\"); if (flow.get(\"away\")===0) msg.colour=\"#aaddff\"; else msg.colour=\"#aaffaa\"; var t=parseInt(msg.away); if (t>23) t=((t/24).toFixed(1))+\"d\"; else t=t+\"h\"; msg.away=t; msg.payload=\"\"; return msg;", "outputs": 1, "noerr": 0, "x": 760, "y": 620, "wires": [ [ "262665c1.742ffa", "44f446b0.acaa68" ] ] }, { "id": "e9d4bcd7.1d9b3", "type": "ui_template", "z": "e7f81119.1bd4", "group": "bd48728c.866f2", "name": "more", "order": 6, "width": "1", "height": "1", "format": "  <md-button  class=\"vibrate filled touched smallfont rounded greybuttons\" ng-click=\"send({payload: 'u'})\"> <img style=\"outline : none;\" ng-src=\"{{(msg.payload)?'/myicons/png/48x48/actions/arrow-right-2.png':'/myicons/png/48x48/actions/arrow-right-2.png'}}\" height=\"36px\" /> </md-button> ", "storeOutMessages": false, "fwdInMessages": false, "x": 510, "y": 660, "wires": [ [ "53cc9d53.254a54", "da6571c9.80974" ] ] }, { "id": "f6ceacbb.366e1", "type": "ui_template", "z": "e7f81119.1bd4", "group": "bd48728c.866f2", "name": "mmore", "order": 7, "width": "1", "height": "1", "format": "  <md-button  class=\"vibrate filled touched smallfont rounded greybuttons\" ng-click=\"send({payload: 'uu'})\"> <img style=\"outline : none;\" ng-src=\"{{(msg.payload)?'/myicons/png/48x48/actions/arrow-left-double-2.png':'/myicons/png/48x48/actions/arrow-right-double-2.png'}}\" height=\"36px\" /> </md-button> ", "storeOutMessages": false, "fwdInMessages": false, "x": 520, "y": 700, "wires": [ [ "53cc9d53.254a54", "da6571c9.80974" ] ] }, { "id": "20503617.ac02ea", "type": "ui_template", "z": "e7f81119.1bd4", "group": "bd48728c.866f2", "name": "newergauge", "order": 1, "width": "3", "height": "3", "format": "<script type=\"text/javascript\" src=\"/myjs/gauge.min.js\"></script> <script> (function(scope){ scope.$watch('msg', function(msg) { gauge.value=msg.payload; // if (msg.units!=\"\") gauge.units=msg.units; }); })(scope); var gauge = new RadialGauge({ renderTo: 'canvas-id', width: 160, height: 160, units: \"Degrees C\", title: \"Thermostat\", minValue: 10, maxValue: 30, majorTicks: [ '10', '15', '20', '25', '30' ], minorTicks: 5, strokeTicks: true, highlights  : [ { from : 10,  to : 15, color : '#8888ff' }, { from : 15, to : 20, color :  '#88ff88' }, { from : 20, to : 25, color :  '#ffff00' }, { from : 25, to : 30, color :  '#ff8888' } ], colorPlate: \"#fff\", borderShadowWidth: 0, borders: true, needleType: \"arrow\", valueInt: 2, valueDec:0, needleWidth: 2, fontTitleSize: 42, needleCircleSize: 14, needleCircleOuter: true, needleCircleInner: false, animationDuration: 500, animationRule: \"linear\" }).draw(); gauge.value = 18; </script> <canvas style=\"outline: none;\" ng-click=\"send({payload: ' '})\" id=\"canvas-id\"> </canvas>", "storeOutMessages": false, "fwdInMessages": false, "templateScope": "local", "x": 1010, "y": 440, "wires": [ [ "d9f5055c.d034d8", "e5376b12.a08188" ] ] }, { "id": "be5056d3.ff22b8", "type": "ui_template", "z": "e7f81119.1bd4", "group": "bd48728c.866f2", "name": "SET", "order": 5, "width": "1", "height": "1", "format": "<script> (function(scope){ scope.$watch('msg', function(msg) { if (msg.desired!=\"\") $(\"#infor\").text(msg.desired+\"C\"); if (msg.colour!=\"\") $(\"#infor\").css(\"background-color\",msg.colour); }); })(scope); </script> <table  ng-click=\"send({payload: 'a'})\" width=100% height=100% class=\"vibrate zui-table zui-table-rounded\"> <thead> <tr> <th>SET</th> </tr> </thead> <tbody> <tr > <td id=\"infor\"></td> </tr> </tbody> </table> ", "storeOutMessages": false, "fwdInMessages": false, "templateScope": "local", "x": 990, "y": 400, "wires": [ [ "262665c1.742ffa", "da6571c9.80974" ] ] }, { "id": "44f446b0.acaa68", "type": "ui_template", "z": "e7f81119.1bd4", "group": "bd48728c.866f2", "name": "AWAY", "order": 8, "width": "1", "height": "1", "format": "<script> (function(scope){ scope.$watch('msg', function(msg) { if (msg.away!=\"\") $(\"#awaytable\").text(msg.away); if (msg.colour!=\"\") $(\"#awaytable\").css(\"background-color\",msg.colour); }); })(scope); </script> <table ng-click=\"send({payload: 'a'})\" width=100% height=100% class=\"vibrate zui-table zui-table-rounded\"> <thead> <tr> <th>AWAY</th> </tr> </thead> <tbody> <tr> <td id=\"awaytable\"></td> </tr> </tbody> </table>", "storeOutMessages": false, "fwdInMessages": false, "templateScope": "local", "x": 990, "y": 560, "wires": [ [ "53cc9d53.254a54", "da6571c9.80974" ] ] }, { "id": "b05f8484.dc44e8", "type": "ui_template", "z": "e7f81119.1bd4", "group": "bd48728c.866f2", "name": "STATUS", "order": 9, "width": "3", "height": "1", "format": "<script> (function(scope){ scope.$watch('msg', function(msg) { if (msg.topic!=\"\") $(\"#hdr1\").text(msg.topic); if (msg.payload!=\"\") $(\"#bod1\").text(msg.payload); if (msg.color!=\"\") $(\"#bod1\").css(\"background-color\",msg.color); }); })(scope); </script> <table ng-click=\"send({payload: 'a'})\" width=100% height=100% class=\"zui-table zui-table-rounded\"> <thead> <tr> <th id=\"hdr1\">></th> </tr> </thead> <tbody> <tr> <td id=\"bod1\"></td> </tr> </tbody> </table>", "storeOutMessages": false, "fwdInMessages": false, "templateScope": "local", "x": 1000, "y": 660, "wires": [ [] ] }, { "id": "6bf36df3.34e264", "type": "function", "z": "e7f81119.1bd4", "name": "show humidity", "func": "function theNewDate() { var d = new Date(), minutes = d.getMinutes().toString().length == 1 ? '0'+d.getMinutes() : d.getMinutes(); hours = d.getHours().toString().length == 1 ? '0'+d.getHours() : d.getHours(); ampm = d.getHours() >= 12 ? 'pm' : 'am'; months = ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']; days = ['Sun','Mon','Tue','Wed','Thu','Fri','Sat']; var m= days[d.getDay()]+' '+months[d.getMonth()]+' '+d.getDate()+' '+d.getFullYear()+' '+hours+':'+minutes+ampm; return m; } msg.topic=theNewDate(); msg.payload=\"Humidity: \" + flow.get(\"incomingHumidity\") +\"%\" ; msg.color=\"#99ffaa\"; return msg;", "outputs": 1, "noerr": 0, "x": 760, "y": 740, "wires": [ [ "b05f8484.dc44e8" ] ] }, { "id": "da6571c9.80974", "type": "function", "z": "e7f81119.1bd4", "name": "Showing settings", "func": "msg.payload=\"Showing settings\"; msg.color=\"#ffccaa\"; return msg;", "outputs": 1, "noerr": 0, "x": 770, "y": 360, "wires": [ [ "b05f8484.dc44e8" ] ] }, { "id": "e5376b12.a08188", "type": "function", "z": "e7f81119.1bd4", "name": "Showing actual", "func": "msg.payload=\"Showing actual\"; msg.color=\"#bbddff\"; return msg;", "outputs": 1, "noerr": 0, "x": 760, "y": 680, "wires": [ [ "b05f8484.dc44e8" ] ] }, { "id": "aac34649.3905a8", "type": "mqtt out", "z": "e7f81119.1bd4", "name": "mqtt", "topic": "", "qos": "", "retain": "", "broker": "4c682b3a.2ab5c4", "x": 2070, "y": 500, "wires": [] }, { "id": "a3e4c37f.d9a34", "type": "mqtt in", "z": "e7f81119.1bd4", "name": "", "topic": "stat2/fromesp/auto_temperature", "qos": "2", "broker": "4c682b3a.2ab5c4", "x": 150, "y": 60, "wires": [ [ "9e791f5e.3404c" ] ] }, { "id": "24a57ca8.900ab4", "type": "inject", "z": "e7f81119.1bd4", "name": "", "topic": "stat2/toesp", "payload": "{temp_type:0}", "payloadType": "str", "repeat": "", "crontab": "", "once": true, "onceDelay": 0.1, "x": 1110, "y": 260, "wires": [ [ "8db55877.4776e8" ] ] }, { "id": "d848a947.d3cc98", "type": "inject", "z": "e7f81119.1bd4", "name": "", "topic": "stat2/toesp", "payload": "{temperature_port:2}", "payloadType": "str", "repeat": "", "crontab": "", "once": true, "onceDelay": 0.1, "x": 1130, "y": 220, "wires": [ [ "8db55877.4776e8" ] ] }, { "id": "560cc73c.96dcc8", "type": "inject", "z": "e7f81119.1bd4", "name": "", "topic": "", "payload": "u", "payloadType": "str", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 110, "y": 580, "wires": [ [ "262665c1.742ffa", "da6571c9.80974", "7053f95f.644d58" ] ] }, { "id": "e78f3ad8.06ad58", "type": "inject", "z": "e7f81119.1bd4", "name": "", "topic": "", "payload": "d", "payloadType": "str", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 110, "y": 620, "wires": [ [ "262665c1.742ffa", "da6571c9.80974", "7053f95f.644d58" ] ] }, { "id": "24495a14.24b616", "type": "inject", "z": "e7f81119.1bd4", "name": "", "topic": "", "payload": "a", "payloadType": "str", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 110, "y": 660, "wires": [ [ "262665c1.742ffa", "da6571c9.80974", "7053f95f.644d58" ] ] }, { "id": "43c561dc.040d", "type": "mqtt in", "z": "e7f81119.1bd4", "name": "", "topic": "stat2/fromesp/trigger4", "qos": "2", "broker": "4c682b3a.2ab5c4", "x": 840, "y": 880, "wires": [ [ "f147606e.42b57" ] ] }, { "id": "8db55877.4776e8", "type": "mqtt out", "z": "e7f81119.1bd4", "name": "mqtt", "topic": "", "qos": "", "retain": "", "broker": "4c682b3a.2ab5c4", "x": 1410, "y": 640, "wires": [] }, { "id": "ec0e60b7.332a6", "type": "inject", "z": "e7f81119.1bd4", "name": "", "topic": "stat2/toesp", "payload": "{input45:45}", "payloadType": "str", "repeat": "", "crontab": "", "once": true, "onceDelay": 0.1, "x": 1110, "y": 180, "wires": [ [ "8db55877.4776e8" ] ] }, { "id": "934de2d7.273a6", "type": "mqtt in", "z": "e7f81119.1bd4", "name": "", "topic": "stat2/fromesp/trigger5", "qos": "2", "broker": "4c682b3a.2ab5c4", "x": 840, "y": 940, "wires": [ [ "f147606e.42b57" ] ] }, { "id": "793c8386.43e04c", "type": "comment", "z": "e7f81119.1bd4", "name": "qd display user stat", "info": "", "x": 1170, "y": 40, "wires": [] }, { "id": "f3351617.0119b8", "type": "comment", "z": "e7f81119.1bd4", "name": "global and flow vars", "info": "Globals: manual, manualTimer, setTemperature, timing, frost and away flow vars: incomingTemperature, incomingHumidity", "x": 690, "y": 40, "wires": [] }, { "id": "7d90d7c6.f76048", "type": "function", "z": "e7f81119.1bd4", "name": "Init", "func": "global.set(\"buttonA\",\"released\"); global.set(\"buttonB\",\"released\"); global.set(\"aWasPressed\",0); global.set(\"bWasPressed\",0); global.set(\"lastCommand\",\"\"); msg.topic=\"stat2/toesp\"; msg.payload=\"{qd_string:\\\"$S\\\"}\" return msg;", "outputs": 1, "noerr": 0, "x": 1570, "y": 560, "wires": [ [ "8db55877.4776e8" ] ] }, { "id": "98f7bd13.222f", "type": "inject", "z": "e7f81119.1bd4", "name": "Set up disp", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": true, "onceDelay": 0.1, "x": 1150, "y": 740, "wires": [ [ "1d7cd6ae.b65159" ] ] }, { "id": "aad2dc5e.1d693", "type": "function", "z": "e7f81119.1bd4", "name": "Frame", "func": "msg.topic=\"stat2/toesp\"; msg.payload=\"{qd_string:\\\"$E0,0,160,128\\\"}\"; node.send(msg); msg.payload=\"{qd_string:\\\"$L1,72,159,72\\\"}\"; node.send(msg); msg.payload=\"{qd_string:\\\"$L40,73,40,127$C255,255,255\\\"}\"; node.send(msg);", "outputs": 1, "noerr": 0, "x": 1650, "y": 780, "wires": [ [ "8db55877.4776e8", "ab357709.06d1b8" ] ] }, { "id": "4e512370.323b6c", "type": "delay", "z": "e7f81119.1bd4", "name": "", "pauseType": "delay", "timeout": "700", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 1490, "y": 780, "wires": [ [ "aad2dc5e.1d693" ] ] }, { "id": "24266ddc.42f282", "type": "function", "z": "e7f81119.1bd4", "name": "Fixed wording", "func": "msg.topic=\"stat2/toesp\"; msg.payload=\"{qd_string:\\\"$F8$P4,12;$C64,64,255Actual\\\"}\"; node.send(msg); msg.payload=\"{qd_string:\\\"$F8$P4,28;Room\\\"}\"; node.send(msg); msg.payload=\"{qd_string:\\\"$F8$P4,44;Temp\\\"}\"; node.send(msg); msg.payload=\"{qd_string:\\\"$F8$P140,48;$C255,255,0C\\\"}\"; node.send(msg); msg.payload=\"{qd_string:\\\"$F8$P140,106;C$C255,255,255\\\"}\"; node.send(msg); msg.payload=\"{qd_string:\\\"$F8$P43,78;Set\\\"}\"; node.send(msg); ", "outputs": 1, "noerr": 0, "x": 1680, "y": 820, "wires": [ [ "8db55877.4776e8" ] ] }, { "id": "fbe71509.14ab18", "type": "function", "z": "e7f81119.1bd4", "name": "temperature", "func": "msg.topic=\"stat2/toesp\"; msg.payload=\"{qd_string:\\\"$F1$P70,2;\" + flow.get(\"incomingTemperature\") + \"\\\"}\"; node.send(msg); ", "outputs": 1, "noerr": 0, "x": 1670, "y": 860, "wires": [ [ "8db55877.4776e8" ] ] }, { "id": "2be4e5f.c5b761a", "type": "function", "z": "e7f81119.1bd4", "name": "set temperature", "func": "msg.topic=\"stat2/toesp\"; msg.payload=\"{qd_string:\\\"$F2$P104,92;\" + (Number(flow.get(\"setTemperature\")) + Number(flow.get(\"manual\"))) + \"\\\"}\"; node.send(msg); ", "outputs": 1, "noerr": 0, "x": 1680, "y": 900, "wires": [ [ "8db55877.4776e8", "54858b06.dc2e14" ] ] }, { "id": "bae11d44.599fc", "type": "function", "z": "e7f81119.1bd4", "name": "stat2 status on off", "func": "msg.topic=\"stat2/toesp\"; if ( (flow.get(\"incomingTemperature\") < (flow.get(\"setTemperature\")+flow.get(\"manual\") )) ) msg.payload=\"{qd_string:\\\"$C0,0,0$I45,95,24,24$F6$P45,95;$C255,0,0;L$C255,255,255\\\"}\"; else msg.payload=\"{qd_string:\\\"$C0,0,0$I45,95,24,24$F6$P45,95;$C0,128,255;k$C255,255,255\\\"}\"; node.send(msg); ", "outputs": 1, "noerr": 0, "x": 1290, "y": 440, "wires": [ [ "8db55877.4776e8" ] ] }, { "id": "7053f95f.644d58", "type": "timeout", "z": "e7f81119.1bd4", "name": "My Timeout", "outtopic": "", "outsafe": "", "outwarning": "", "outunsafe": "1", "warning": "15", "timer": "30", "repeat": false, "again": true, "x": 690, "y": 560, "wires": [ [ "d9f5055c.d034d8", "6bf36df3.34e264" ] ] }, { "id": "54858b06.dc2e14", "type": "function", "z": "e7f81119.1bd4", "name": "Auto/manual", "func": "msg.topic=\"stat2/toesp\"; if (flow.get(\"manual\")) msg.payload=\"{qd_string:\\\"$F8$P100,78;$C255,128,0Manual$C255,255,255\\\"}\"; else msg.payload=\"{qd_string:\\\"$F8$P100,78;$C64,64,255Auto  $C255,255,255\\\"}\"; node.send(msg);", "outputs": 1, "noerr": 0, "x": 1670, "y": 960, "wires": [ [ "8db55877.4776e8" ] ] }, { "id": "ab357709.06d1b8", "type": "delay", "z": "e7f81119.1bd4", "name": "", "pauseType": "delay", "timeout": "200", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 1490, "y": 820, "wires": [ [ "24266ddc.42f282", "463ea388.c14d5c" ] ] }, { "id": "64696acd.013ba4", "type": "timeout", "z": "e7f81119.1bd4", "name": "My Timeout", "outtopic": "", "outsafe": "1", "outwarning": "", "outunsafe": "1", "warning": "15", "timer": "30", "repeat": false, "again": true, "x": 1490, "y": 900, "wires": [ [ "fbe71509.14ab18", "2be4e5f.c5b761a", "12a1217c.785b2f" ] ] }, { "id": "463ea388.c14d5c", "type": "delay", "z": "e7f81119.1bd4", "name": "", "pauseType": "delay", "timeout": "500", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 1490, "y": 860, "wires": [ [ "64696acd.013ba4", "fbe71509.14ab18", "2be4e5f.c5b761a" ] ] }, { "id": "f147606e.42b57", "type": "function", "z": "e7f81119.1bd4", "name": "Button \"d\", \"u\" or both i.e. \"a\" for auto", "func": "context.set(\"batimer\",context.get(\"batimer\")||0); var batimer=context.get(\"batimer\"); context.set(\"bbtimer\",context.get(\"bbtimer\")||0); var bbtimer=context.get(\"bbtimer\"); context.set(\"both\",context.get(\"both\") || 0); context.set(\"ba\",context.get(\"ba\") || 0); context.set(\"bb\",context.get(\"bb\") || 0); flow.set(\"balp\",flow.get(\"balp\")||0); flow.set(\"bblp\",flow.get(\"bblp\")||0); if (msg.topic==\"stat2/fromesp/trigger4\") if (msg.payload==\"0\") { context.set(\"ba\",1);  batimer= setTimeout(function(){ flow.set(\"balp\",1);  },1000 ); } else { if (Math.ceil((batimer._idleStart + batimer._idleTimeout - Date.now()) / 1000)<800) clearTimeout(batimer);   } if (msg.topic==\"stat2/fromesp/trigger5\") if (msg.payload==\"0\") { context.set(\"bb\",1); bbtimer= setTimeout(function(){ flow.set(\"bblp\",1);  },1000 ); } else { if (Math.ceil((bbtimer._idleStart + bbtimer._idleTimeout - Date.now()) / 1000)<800) clearTimeout(bbtimer);   } context.set(\"batimer\",batimer); context.set(\"bbtimer\",bbtimer); if (context.get(\"ba\")==1) context.set(\"both\",context.get(\"both\")|1); if (context.get(\"bb\")==1)  context.set(\"both\",context.get(\"both\")|2); if (msg.topic==\"stat2/fromesp/trigger4\") if (msg.payload==\"1\") context.set(\"ba\",0); if (msg.topic==\"stat2/fromesp/trigger5\") if (msg.payload==\"1\") context.set(\"bb\",0); if ((context.get(\"ba\")===0) && (context.get(\"bb\")===0)) { switch(context.get(\"both\")) { case 1 :   msg.payload=\"d\";  context.set(\"both\",0); node.status({fill:\"red\",shape:\"dot\",text:msg.payload}); return msg; case 2 :   msg.payload=\"u\";  context.set(\"both\",0); node.status({fill:\"yellow\",shape:\"dot\",text:msg.payload}); return msg; case 3 :   msg.payload=\"a\";  context.set(\"both\",0); node.status({fill:\"green\",shape:\"dot\",text:msg.payload}); return msg; } }", "outputs": 1, "noerr": 0, "x": 1190, "y": 920, "wires": [ [ "da6571c9.80974", "262665c1.742ffa", "7053f95f.644d58", "639c06eb.e9ca98", "6e0f16f2.3c12a8", "a037f04e.a4aee" ] ] }, { "id": "ed88705b.8813f", "type": "comment", "z": "e7f81119.1bd4", "name": "Set up stat2 board esp-go", "info": "", "x": 1090, "y": 100, "wires": [] }, { "id": "7ffc52e3.88479c", "type": "comment", "z": "e7f81119.1bd4", "name": "2-button operation on stat2 qdtech esp-go", "info": "", "x": 900, "y": 840, "wires": [] }, { "id": "639c06eb.e9ca98", "type": "function", "z": "e7f81119.1bd4", "name": "up-down graphic", "func": "    msg.topic=\"stat2/toesp\"; setTimeout(function(){ msg['payload'] = \"{qd_string:\\\"$F1$P11,75;$C0,0,0$G3S$C255,255,255\\\"}\"; node.send(msg); msg['payload'] = \"{qd_string:\\\"$F1$P11,106;$C0,0,0$G3S$C255,255,255\\\"}\"; node.send(msg); }, 300); if (msg.payload=='u') { msg.payload=\"{qd_string:\\\"$F1$P11,75;$C255,192,192$G3S$C255,255,255\\\"}\"; node.send(msg); } else if (msg.payload=='d') { msg.payload=\"{qd_string:\\\"$F1$P11,106;$C192,192,255$G3P$C255,255,255\\\"}\"; node.send(msg); }", "outputs": 1, "noerr": 0, "x": 1190, "y": 660, "wires": [ [ "8db55877.4776e8" ] ] }, { "id": "12a1217c.785b2f", "type": "function", "z": "e7f81119.1bd4", "name": "Show Time", "func": "var date = new Date(); var hour = date.getHours(); hour = (hour < 10 ? \"0\" : \"\") + hour; var min  = date.getMinutes(); min = (min < 10 ? \"0\" : \"\") + min; msg.topic=\"stat2/toesp\"; msg.payload=\"{qd_string:\\\"$C0,0,0;$I1,97,39,8;$F9$P6,97;$C255,0,255;\" + hour + \":\" + min + \"$C255,255,255\\\"}\"; return msg;", "outputs": 1, "noerr": 0, "x": 1490, "y": 960, "wires": [ [ "8db55877.4776e8" ] ] }, { "id": "8bdc84e9.882118", "type": "inject", "z": "e7f81119.1bd4", "name": "", "topic": "stat2/toesp", "payload": "{temperature?}", "payloadType": "str", "repeat": "", "crontab": "", "once": false, "onceDelay": 0.1, "x": 1110, "y": 140, "wires": [ [ "8db55877.4776e8" ] ] }, { "id": "d4efd089.fb7b7", "type": "function", "z": "e7f81119.1bd4", "name": "", "func": "msg.payload=msg.payload.split(\" \"); if ((msg.payload[0]==\"Logging\")&& (msg.payload[3]==\"stat2\")) { msg.payload=msg.payload[3]; return msg; }", "outputs": 1, "noerr": 0, "x": 1170, "y": 780, "wires": [ [ "1d7cd6ae.b65159" ] ] }, { "id": "89d69293.366b7", "type": "link in", "z": "e7f81119.1bd4", "name": "", "links": [ "910d0ff7.43b19" ], "x": 1235, "y": 580, "wires": [ [ "d4efd089.fb7b7", "d0aafabe.673168", "d2ba92f3.0c776" ] ] }, { "id": "1d7cd6ae.b65159", "type": "function", "z": "e7f81119.1bd4", "name": "", "func": "msg.payload=\"Init\"; return msg;", "outputs": 1, "noerr": 0, "x": 1310, "y": 780, "wires": [ [ "4e512370.323b6c", "34404e86.00a0f2" ] ] }, { "id": "a037f04e.a4aee", "type": "debug", "z": "e7f81119.1bd4", "name": "", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "false", "x": 1410, "y": 1080, "wires": [] }, { "id": "6e0f16f2.3c12a8", "type": "function", "z": "e7f81119.1bd4", "name": "", "func": "if (flow.get(\"balp\")) { flow.set(\"balp\",0); msg.payload=\"Got longpress A\"; node.send(msg); } if (flow.get(\"bblp\")) { flow.set(\"bblp\",0); msg.payload=\"Got longpress B\"; node.send(msg); }", "outputs": 1, "noerr": 0, "x": 1190, "y": 1080, "wires": [ [ "a037f04e.a4aee" ] ] }, { "id": "df6f96e7.a1fb48", "type": "comment", "z": "e7f81119.1bd4", "name": "test long press", "info": "", "x": 1300, "y": 1040, "wires": [] }, { "id": "8ad8fddf.97a19", "type": "mqtt in", "z": "e7f81119.1bd4", "name": "", "topic": "heating_relay/fromesp/auto_temperature", "qos": "2", "broker": "4c682b3a.2ab5c4", "x": 940, "y": 300, "wires": [ [ "8c66d671.5d06f8" ] ] }, { "id": "8c66d671.5d06f8", "type": "function", "z": "e7f81119.1bd4", "name": "heating_relay auto_temperature", "func": "    var date = new Date(); var hour = date.getHours(); hour = (hour < 10 ? \"0\" : \"\") + hour; var min  = date.getMinutes(); min = (min < 10 ? \"0\" : \"\") + min; var sec  = date.getSeconds(); sec = (sec < 10 ? \"0\" : \"\") + sec; var year = date.getFullYear(); var month = date.getMonth() + 1; month = (month < 10 ? \"0\" : \"\") + month; var day  = date.getDate(); day = (day < 10 ? \"0\" : \"\") + day; node.status({fill:\"red\",shape:\"dot\",text:msg.payload + \"c at \" + hour + \":\" + min + \":\" + sec + \" on \" + day + \":\" + month + \":\" + year  });", "outputs": 0, "noerr": 0, "x": 1270, "y": 300, "wires": [] }, { "id": "d0aafabe.673168", "type": "function", "z": "e7f81119.1bd4", "name": "turn relay indicator off momentarily at relay power up", "func": "msg.payload=msg.payload.split(\" \"); if ((msg.payload[0]==\"Logging\")&& (msg.payload[3]==\"heating_relay\")) { msg.topic=\"heating_relay/toesp\"; msg.payload=msg.payload=\"{out12:0}\"; return msg; }", "outputs": 1, "noerr": 0, "x": 1900, "y": 600, "wires": [ [ "aac34649.3905a8", "fde1e4b6.d1d838" ] ] }, { "id": "fde1e4b6.d1d838", "type": "delay", "z": "e7f81119.1bd4", "name": "", "pauseType": "delay", "timeout": "2", "timeoutUnits": "seconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 1720, "y": 640, "wires": [ [ "720bfcdd.4d65d4" ] ] }, { "id": "720bfcdd.4d65d4", "type": "function", "z": "e7f81119.1bd4", "name": "turn relay indicator on at relay power up", "func": "    msg.topic=\"heating_relay/toesp\"; msg.payload=\"{out12:1}\"; return msg; ", "outputs": 1, "noerr": 0, "x": 1960, "y": 640, "wires": [ [ "aac34649.3905a8" ] ] }, { "id": "9e791f5e.3404c", "type": "function", "z": "e7f81119.1bd4", "name": "stat2 auto_temperature", "func": "    var date = new Date(); var hour = date.getHours(); hour = (hour < 10 ? \"0\" : \"\") + hour; var min  = date.getMinutes(); min = (min < 10 ? \"0\" : \"\") + min; var sec  = date.getSeconds(); sec = (sec < 10 ? \"0\" : \"\") + sec; var year = date.getFullYear(); var month = date.getMonth() + 1; month = (month < 10 ? \"0\" : \"\") + month; var day  = date.getDate(); day = (day < 10 ? \"0\" : \"\") + day; node.status({fill:\"red\",shape:\"dot\",text:msg.payload + \"c at \" + hour + \":\" + min + \":\" + sec + \" on \" + day + \":\" + month + \":\" + year  });", "outputs": 0, "noerr": 0, "x": 430, "y": 40, "wires": [] }, { "id": "e09e0589.a4cb98", "type": "function", "z": "e7f81119.1bd4", "name": "clear ili", "func": "msg.payload=\"{ili:\\\"$S\\\"}\"; msg.topic=\"stat3/toesp\"; return msg;", "outputs": 1, "noerr": 0, "x": 1940, "y": 180, "wires": [ [ "4e9afa5.c960804", "68679a9b.889664" ] ] }, { "id": "34404e86.00a0f2", "type": "delay", "z": "e7f81119.1bd4", "name": "", "pauseType": "delay", "timeout": "250", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 1750, "y": 560, "wires": [ [ "7d90d7c6.f76048" ] ] }, { "id": "f24aab8d.d7ee58", "type": "comment", "z": "e7f81119.1bd4", "name": "test clearing alternative ili display", "info": "", "x": 1570, "y": 120, "wires": [] }, { "id": "d2ba92f3.0c776", "type": "function", "z": "e7f81119.1bd4", "name": "", "func": "msg.payload=msg.payload.split(\" \"); if ((msg.payload[0]==\"Logging\")&& (msg.payload[3]==\"stat3\")) { msg.payload=msg.payload[3]; return msg; }", "outputs": 1, "noerr": 0, "x": 1490, "y": 200, "wires": [ [ "b764a722.9e1d98" ] ] }, { "id": "b764a722.9e1d98", "type": "function", "z": "e7f81119.1bd4", "name": "", "func": "msg.payload=\"Init\"; return msg;", "outputs": 1, "noerr": 0, "x": 1630, "y": 180, "wires": [ [ "4935af57.e0632" ] ] }, { "id": "495c3a16.4f5a34", "type": "inject", "z": "e7f81119.1bd4", "name": "Set up disp", "topic": "", "payload": "", "payloadType": "date", "repeat": "", "crontab": "", "once": true, "onceDelay": 0.1, "x": 1470, "y": 160, "wires": [ [ "b764a722.9e1d98" ] ] }, { "id": "4935af57.e0632", "type": "delay", "z": "e7f81119.1bd4", "name": "", "pauseType": "delay", "timeout": "250", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 1770, "y": 180, "wires": [ [ "e09e0589.a4cb98" ] ] }, { "id": "9fbb4e8d.7fa0b", "type": "function", "z": "e7f81119.1bd4", "name": "Frame", "func": "msg.topic=\"stat3/toesp\"; msg.payload=\"{ili:\\\"$E0,0,160,128\\\"}\"; node.send(msg); msg.payload=\"{ili:\\\"$L1,72,159,72\\\"}\"; node.send(msg); msg.payload=\"{ili:\\\"$L40,73,40,127$C255,255,255\\\"}\"; node.send(msg);", "outputs": 1, "noerr": 0, "x": 1930, "y": 220, "wires": [ [ "39495a97.d17626", "68679a9b.889664" ] ] }, { "id": "4e9afa5.c960804", "type": "delay", "z": "e7f81119.1bd4", "name": "", "pauseType": "delay", "timeout": "700", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 1770, "y": 220, "wires": [ [ "9fbb4e8d.7fa0b" ] ] }, { "id": "9bb63202.2d86d", "type": "function", "z": "e7f81119.1bd4", "name": "Fixed wording", "func": "msg.topic=\"stat3/toesp\"; msg.payload=\"{ili:\\\"$F8$P4,12;$C64,64,255Actual\\\"}\"; node.send(msg); msg.payload=\"{ili:\\\"$F8$P4,28;Room\\\"}\"; node.send(msg); msg.payload=\"{ili:\\\"$F8$P4,44;Temp\\\"}\"; node.send(msg); msg.payload=\"{ili:\\\"$F8$P140,48;$C255,255,0C\\\"}\"; node.send(msg); msg.payload=\"{ili:\\\"$F8$P140,106;C$C255,255,255\\\"}\"; node.send(msg); msg.payload=\"{ili:\\\"$F8$P43,78;Set\\\"}\"; node.send(msg); ", "outputs": 1, "noerr": 0, "x": 1960, "y": 260, "wires": [ [ "68679a9b.889664" ] ] }, { "id": "e62ca4f3.00c108", "type": "function", "z": "e7f81119.1bd4", "name": "temperature", "func": "msg.topic=\"stat3/toesp\"; msg.payload=\"{ili:\\\"$F1$P70,2;\" + flow.get(\"incomingTemperature\") + \"\\\"}\"; node.send(msg); ", "outputs": 1, "noerr": 0, "x": 1950, "y": 300, "wires": [ [ "68679a9b.889664" ] ] }, { "id": "e01b553b.23df18", "type": "function", "z": "e7f81119.1bd4", "name": "set temperature", "func": "msg.topic=\"stat3/toesp\"; msg.payload=\"{ili:\\\"$F2$P104,92;\" + (Number(flow.get(\"setTemperature\")) + Number(flow.get(\"manual\"))) + \"\\\"}\"; node.send(msg); ", "outputs": 1, "noerr": 0, "x": 1960, "y": 340, "wires": [ [ "92d7692a.2e6018", "68679a9b.889664" ] ] }, { "id": "92d7692a.2e6018", "type": "function", "z": "e7f81119.1bd4", "name": "Auto/manual", "func": "msg.topic=\"stat3/toesp\"; if (flow.get(\"manual\")) msg.payload=\"{ili:\\\"$F8$P100,78;$C255,128,0Manual$C255,255,255\\\"}\"; else msg.payload=\"{ili:\\\"$F8$P100,78;$C64,64,255Auto  $C255,255,255\\\"}\"; node.send(msg);", "outputs": 1, "noerr": 0, "x": 1950, "y": 400, "wires": [ [ "68679a9b.889664" ] ] }, { "id": "39495a97.d17626", "type": "delay", "z": "e7f81119.1bd4", "name": "", "pauseType": "delay", "timeout": "200", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 1770, "y": 260, "wires": [ [ "9bb63202.2d86d", "db951651.f831f8" ] ] }, { "id": "ca35d6c3.8d2b98", "type": "timeout", "z": "e7f81119.1bd4", "name": "My Timeout", "outtopic": "", "outsafe": "1", "outwarning": "", "outunsafe": "1", "warning": "15", "timer": "30", "repeat": false, "again": true, "x": 1770, "y": 340, "wires": [ [ "e62ca4f3.00c108", "e01b553b.23df18", "54c6248b.7913cc" ] ] }, { "id": "db951651.f831f8", "type": "delay", "z": "e7f81119.1bd4", "name": "", "pauseType": "delay", "timeout": "500", "timeoutUnits": "milliseconds", "rate": "1", "nbRateUnits": "1", "rateUnits": "second", "randomFirst": "1", "randomLast": "5", "randomUnits": "seconds", "drop": false, "x": 1770, "y": 300, "wires": [ [ "ca35d6c3.8d2b98", "e62ca4f3.00c108", "e01b553b.23df18" ] ] }, { "id": "54c6248b.7913cc", "type": "function", "z": "e7f81119.1bd4", "name": "Show Time", "func": "var date = new Date(); var hour = date.getHours(); hour = (hour < 10 ? \"0\" : \"\") + hour; var min  = date.getMinutes(); min = (min < 10 ? \"0\" : \"\") + min; msg.topic=\"stat3/toesp\"; msg.payload=\"{ili:\\\"$C0,0,0;$I1,97,39,8;$F9$P6,97;$C255,0,255;\" + hour + \":\" + min + \"$C255,255,255\\\"}\"; return msg;", "outputs": 1, "noerr": 0, "x": 1770, "y": 400, "wires": [ [ "68679a9b.889664" ] ] }, { "id": "68679a9b.889664", "type": "mqtt out", "z": "e7f81119.1bd4", "name": "mqtt", "topic": "", "qos": "", "retain": "", "broker": "4c682b3a.2ab5c4", "x": 2160, "y": 200, "wires": [] }, { "id": "4fac90e3.7885", "type": "function", "z": "e7f81119.1bd4", "name": "stat3 status on off", "func": "msg.topic=\"stat3/toesp\"; if ( (flow.get(\"incomingTemperature\") < (flow.get(\"setTemperature\")+flow.get(\"manual\") )) ) msg.payload=\"{ili:\\\"$C0,0,0$I45,95,24,24$F6$P45,95;$C255,0,0;L$C255,255,255\\\"}\"; else msg.payload=\"{ili:\\\"$C0,0,0$I45,95,24,24$F6$P45,95;$C0,128,255;k$C255,255,255\\\"}\"; node.send(msg); ", "outputs": 1, "noerr": 0, "x": 1970, "y": 140, "wires": [ [ "68679a9b.889664" ] ] }, { "id": "bd48728c.866f2", "type": "ui_group", "z": "", "name": "Stat", "tab": "1aa135a6.7197da", "disp": false, "width": "6" }, { "id": "4c682b3a.2ab5c4", "type": "mqtt-broker", "z": "", "name": "", "broker": "127.0.0.1", "port": "1883", "clientid": "", "usetls": false, "compatmode": true, "keepalive": "60", "cleansession": true, "birthTopic": "", "birthQos": "0", "birthPayload": "", "closeTopic": "", "closeQos": "0", "closePayload": "", "willTopic": "", "willQos": "0", "willPayload": "" }, { "id": "1aa135a6.7197da", "type": "ui_tab", "z": "", "name": "Stat", "icon": "dashboard", "order": 2 } ]
Optional Paste Settings
Syntax Highlighting:
None
Bash
C
C#
C++
CSS
HTML
JSON
Java
JavaScript
Lua
Markdown (PRO members only)
Objective C
PHP
Perl
Python
Ruby
Swift
4CS
6502 ACME Cross Assembler
6502 Kick Assembler
6502 TASM/64TASS
ABAP
AIMMS
ALGOL 68
APT Sources
ARM
ASM (NASM)
ASP
ActionScript
ActionScript 3
Ada
Apache Log
AppleScript
Arduino
Asymptote
AutoIt
Autohotkey
Avisynth
Awk
BASCOM AVR
BNF
BOO
Bash
Basic4GL
Batch
BibTeX
Blitz Basic
Blitz3D
BlitzMax
BrainFuck
C
C (WinAPI)
C Intermediate Language
C for Macs
C#
C++
C++ (WinAPI)
C++ (with Qt extensions)
C: Loadrunner
CAD DCL
CAD Lisp
CFDG
CMake
COBOL
CSS
Ceylon
ChaiScript
Chapel
Clojure
Clone C
Clone C++
CoffeeScript
ColdFusion
Cuesheet
D
DCL
DCPU-16
DCS
DIV
DOT
Dart
Delphi
Delphi Prism (Oxygene)
Diff
E
ECMAScript
EPC
Easytrieve
Eiffel
Email
Erlang
Euphoria
F#
FO Language
Falcon
Filemaker
Formula One
Fortran
FreeBasic
FreeSWITCH
GAMBAS
GDB
GDScript
Game Maker
Genero
Genie
GetText
Go
Godot GLSL
Groovy
GwBasic
HQ9 Plus
HTML
HTML 5
Haskell
Haxe
HicEst
IDL
INI file
INTERCAL
IO
ISPF Panel Definition
Icon
Inno Script
J
JCL
JSON
Java
Java 5
JavaScript
Julia
KSP (Kontakt Script)
KiXtart
Kotlin
LDIF
LLVM
LOL Code
LScript
Latex
Liberty BASIC
Linden Scripting
Lisp
Loco Basic
Logtalk
Lotus Formulas
Lotus Script
Lua
M68000 Assembler
MIX Assembler
MK-61/52
MPASM
MXML
MagikSF
Make
MapBasic
Markdown (PRO members only)
MatLab
Mercury
MetaPost
Modula 2
Modula 3
Motorola 68000 HiSoft Dev
MySQL
Nagios
NetRexx
Nginx
Nim
NullSoft Installer
OCaml
OCaml Brief
Oberon 2
Objeck Programming Langua
Objective C
Octave
Open Object Rexx
OpenBSD PACKET FILTER
OpenGL Shading
Openoffice BASIC
Oracle 11
Oracle 8
Oz
PARI/GP
PCRE
PHP
PHP Brief
PL/I
PL/SQL
POV-Ray
ParaSail
Pascal
Pawn
Per
Perl
Perl 6
Phix
Pic 16
Pike
Pixel Bender
PostScript
PostgreSQL
PowerBuilder
PowerShell
ProFTPd
Progress
Prolog
Properties
ProvideX
Puppet
PureBasic
PyCon
Python
Python for S60
QBasic
QML
R
RBScript
REBOL
REG
RPM Spec
Racket
Rails
Rexx
Robots
Roff Manpage
Ruby
Ruby Gnuplot
Rust
SAS
SCL
SPARK
SPARQL
SQF
SQL
SSH Config
Scala
Scheme
Scilab
SdlBasic
Smalltalk
Smarty
StandardML
StoneScript
SuperCollider
Swift
SystemVerilog
T-SQL
TCL
TeXgraph
Tera Term
TypeScript
TypoScript
UPC
Unicon
UnrealScript
Urbi
VB.NET
VBScript
VHDL
VIM
Vala
Vedit
VeriLog
Visual Pro Log
VisualBasic
VisualFoxPro
WHOIS
WhiteSpace
Winbatch
XBasic
XML
XPP
Xojo
Xorg Config
YAML
YARA
Z80 Assembler
ZXBasic
autoconf
jQuery
mIRC
newLISP
q/kdb+
thinBasic
Paste Expiration:
Never
Burn after read
10 Minutes
1 Hour
1 Day
1 Week
2 Weeks
1 Month
6 Months
1 Year
Paste Exposure:
Public
Unlisted
Private
Folder:
(members only)
Password
NEW
Enabled
Disabled
Burn after read
NEW
Paste Name / Title:
Create New Paste
Hello
Guest
Sign Up
or
Login
Sign in with Facebook
Sign in with Twitter
Sign in with Google
You are currently not logged in, this means you can not edit or delete anything you paste.
Sign Up
or
Login
Public Pastes
Untitled
JavaScript | 1 min ago
Untitled
C | 6 min ago
News Interface
TypeScript | 10 min ago
MatrixClass
C# | 15 min ago
Untitled
C | 30 min ago
ChangeRows
C# | 47 min ago
Untitled
C | 1 hour ago
Untitled
C | 1 hour ago
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!