This commit is contained in:
commit
88034d2942
1
flow.json
Normal file
1
flow.json
Normal file
@ -0,0 +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":""}]
|
Loading…
Reference in New Issue
Block a user