Dear,
Okey, so, i'm very new to programming at all. I am an Amateur Astronomer with building an automated equipment station. Now i'm also trying to use node-RED and dashboard to use it for many control situations, like the wheater, controlling relays etc etc.
Okay: my question: I have a file on the computer witch contains only one line like this and will updated every 10 seconds:
2019-03-24 21:41:57.00 C K -26.4 7.6 7.6 3.0 59 0.1 54 0 0 00000 043548.90413 1 1 1 1 0 0
As you can see, the readings are separated by a space. The numbers are on fixed places, so they will not move in an other row. Now i want to separate the readings in to each value as an output, so i can put a dashboard tool to it, like a graph, gauge, charts, a temperature reading, wind speed etc etc.
I managed to use the split function and let it split on a "space", and this works, i can get every reading in separated messages in the debug folder. But how can i use the separated messages? Or should i do it in an other way
this is the code i use now:
[{"id":"67191ebb.438f9","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"3fc0f848.0f0178","type":"inject","z":"67191ebb.438f9","name":"","topic":"test","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":147,"y":98,"wires":[["ba790031.6b9f1"]]},{"id":"a181722c.fefd4","type":"debug","z":"67191ebb.438f9","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":1057,"y":125,"wires":},{"id":"ba790031.6b9f1","type":"file in","z":"67191ebb.438f9","name":"","filename":"/home/pi/Documents/test","format":"lines","chunk":false,"sendError":false,"encoding":"none","x":515,"y":99,"wires":[["b005500c.28398"]]},{"id":"b005500c.28398","type":"split","z":"67191ebb.438f9","name":"","splt":" ","spltType":"str","arraySplt":1,"arraySpltType":"len","stream":false,"addname":"","x":773,"y":106,"wires":[["a181722c.fefd4"]]}]
Any help is welcome. Thank you.