This commit is contained in:
Joachim Hummel 2019-06-16 15:00:40 +00:00 committed by GitHub
parent 88034d2942
commit b1fd4b21a0

View File

@ -1 +1 @@
[{"id":"9980bb7a.0cc4e8","type":"mqtt in","z":"d4edf1e8.f7b4","name":"","topic":"/aprs/bake","qos":"2","datatype":"json","broker":"6f75b16.845ebd","x":233,"y":425,"wires":[["944c4462.a1aa38"]]},{"id":"944c4462.a1aa38","type":"function","z":"d4edf1e8.f7b4","name":"","func":"var temp = msg.payload.temperature;\nvar hum = msg.payload.humidity;\nvar press = msg.payload.pressure;\n\nvar tempF = ((temp*1.8)+32);\n\nvar msg1 = { payload: \"user CALL pass XXXX\" };\nvar msg2 = { payload: \"DG8RAD-1>APRS,TCPIP*:!4808.30N/01125.75E_000/000g000t0\"+tempF+\"r000p000P000h\"+hum+\"b\"+press+\"0wRSW\" }; \nvar msg3 = { payload: \"DG8RAD-1>APRS,TCPIP*:>Maker Themen, LoraWAN, Arduino, Raspberry, SmartHome und AFU\" }; \nvar msg4 = { payload: \"File löschen\" }; \nreturn [ [ msg1, msg2, msg3 ], msg4 ]","outputs":4,"noerr":0,"x":416,"y":426,"wires":[["3a4bcfa0.cee858","54d45ce4.3e7be4"],["ea334a98.e6402"],[],[]]},{"id":"3a4bcfa0.cee858","type":"delay","z":"d4edf1e8.f7b4","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":642,"y":377,"wires":[["a3b90d5f.b33db"]]},{"id":"54d45ce4.3e7be4","type":"file","z":"d4edf1e8.f7b4","name":"Bake File","filename":"/var/tmp/bake","appendNewline":true,"createDir":false,"overwriteFile":"false","encoding":"utf8","x":627,"y":427,"wires":[[]]},{"id":"ea334a98.e6402","type":"delay","z":"d4edf1e8.f7b4","name":"","pauseType":"delay","timeout":"30","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":636,"y":482,"wires":[["252039d8.146c3e"]]},{"id":"a3b90d5f.b33db","type":"exec","z":"d4edf1e8.f7b4","command":"/bin/nc -w 10 195.190.142.207 14580 < /var/tmp/bake","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"APRS Bake","x":851,"y":378,"wires":[[],[],[]]},{"id":"252039d8.146c3e","type":"file","z":"d4edf1e8.f7b4","name":"Bake File löschen","filename":"/var/tmp/bake","appendNewline":true,"createDir":false,"overwriteFile":"delete","encoding":"utf8","x":859,"y":483,"wires":[[]]},{"id":"6f75b16.845ebd","type":"mqtt-broker","z":"","name":"unixweb.de","broker":"mqtt.unixweb.de","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}] [{"id":"d4edf1e8.f7b4","type":"tab","label":"APRS Bake","disabled":false,"info":""},{"id":"9980bb7a.0cc4e8","type":"mqtt in","z":"d4edf1e8.f7b4","name":"","topic":"/aprs/bake","qos":"2","datatype":"json","broker":"6f75b16.845ebd","x":168,"y":159,"wires":[["944c4462.a1aa38"]]},{"id":"944c4462.a1aa38","type":"function","z":"d4edf1e8.f7b4","name":"","func":"var temp = msg.payload.sensordatavalues[2].value;\nvar hum = msg.payload.sensordatavalues[3].value;\nvar press = msg.payload.sensordatavalues[4].value;\n\n// Convert Celsius to Fahrenheit / APRS Protocol\nvar tempF = ((temp*1.8)+32); \nvar press2 = (press/100);\nvar hum2 = (hum*1);\n// Erase decimal points\nvar tempP = parseFloat(tempF.toFixed(0)); \nvar pressP = parseFloat(press2.toFixed(0));\nvar humP = parseFloat(hum2.toFixed(0));\n\nvar msg1 = { payload: \"user CALL pass XXXX\" };\nvar msg2 = { payload: \"DG8RAD-1>APRS,TCPIP*:!4808.30N/01125.75E_000/000g000t0\"+tempP+\"r000p000P000h\"+humP+\"b0\"+pressP+\"0wRSW\" }; \nvar msg3 = { payload: \"DG8RAD-1>APRS,TCPIP*:>Maker Themen, LoraWAN, Arduino, Raspberry, SmartHome und AFU\" }; \nvar msg4 = { payload: \"File löschen\" }; \nreturn [ [ msg1, msg2, msg3 ], msg4 ]\n\n\n","outputs":4,"noerr":0,"x":351,"y":160,"wires":[["3a4bcfa0.cee858","54d45ce4.3e7be4","2169afad.7cb8"],["ea334a98.e6402"],[],[]]},{"id":"3a4bcfa0.cee858","type":"delay","z":"d4edf1e8.f7b4","name":"","pauseType":"delay","timeout":"5","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":577,"y":111,"wires":[["a3b90d5f.b33db"]]},{"id":"a3b90d5f.b33db","type":"exec","z":"d4edf1e8.f7b4","command":"/bin/nc -w 10 195.190.142.207 14580 < /var/tmp/bake.txt","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"APRS Bake","x":786,"y":112,"wires":[[],[],[]]},{"id":"54d45ce4.3e7be4","type":"file","z":"d4edf1e8.f7b4","name":"Bake File","filename":"/var/tmp/bake.txt","appendNewline":true,"createDir":false,"overwriteFile":"false","encoding":"utf8","x":562,"y":161,"wires":[[]]},{"id":"ea334a98.e6402","type":"delay","z":"d4edf1e8.f7b4","name":"","pauseType":"delay","timeout":"30","timeoutUnits":"seconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"x":571,"y":216,"wires":[["252039d8.146c3e"]]},{"id":"252039d8.146c3e","type":"file","z":"d4edf1e8.f7b4","name":"Bake File löschen","filename":"/var/tmp/bake.txt","appendNewline":true,"createDir":false,"overwriteFile":"delete","encoding":"utf8","x":794,"y":217,"wires":[[]]},{"id":"ee0e37dc.7ecd4","type":"http request","z":"d4edf1e8.f7b4","name":"","method":"GET","ret":"obj","url":"http://192.168.10.27/data.json","tls":"","x":406,"y":315,"wires":[["c2160986.0f2698"]]},{"id":"a73f8fa6.6c6cc8","type":"inject","z":"d4edf1e8.f7b4","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"*/15 0-22 * * *","once":false,"onceDelay":0.1,"x":191,"y":314,"wires":[["ee0e37dc.7ecd4"]]},{"id":"2169afad.7cb8","type":"debug","z":"d4edf1e8.f7b4","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","x":546,"y":60,"wires":[]},{"id":"c2160986.0f2698","type":"mqtt out","z":"d4edf1e8.f7b4","name":"","topic":"/aprs/bake","qos":"","retain":"","broker":"6f75b16.845ebd","x":614,"y":315,"wires":[]},{"id":"6f75b16.845ebd","type":"mqtt-broker","z":"","name":"unixweb.de","broker":"mqtt.unixweb.de","port":"1883","clientid":"","usetls":false,"compatmode":true,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]