ISS position to file from Webservice

ISS position to file from Webservice.

see http://blog.wenzlaff.de/?p=15130

iss flow

[{"id":"ab7bad7.968425","type":"tab","label":"iss","disabled":false,"info":""},{"id":"763a2a37.7faecc","type":"inject","z":"ab7bad7.968425","name":"alle 10 Sekunden","topic":"","payload":"","payloadType":"date","repeat":"10","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":80,"wires":[["9c04f3a9.8378a"]]},{"id":"4d064986.fe84e","type":"debug","z":"ab7bad7.968425","name":"Debug Data","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":690,"y":200,"wires":[]},{"id":"9c04f3a9.8378a","type":"http request","z":"ab7bad7.968425","name":"Open Data von open-notify.org abfragen","method":"GET","ret":"obj","paytoqs":false,"url":"http://api.open-notify.org/iss-now.json","tls":"","persist":false,"proxy":"","authType":"basic","x":240,"y":200,"wires":[["f387efbd.b5b6","4d064986.fe84e"]]},{"id":"12fc9796.6ae6d8","type":"file","z":"ab7bad7.968425","name":"In Datei iss-standort.csv speichern","filename":"/home/openhabian/iss-data/iss-standort.csv","appendNewline":true,"createDir":false,"overwriteFile":"false","encoding":"none","x":480,"y":380,"wires":[[]]},{"id":"3c15c01e.ab9e","type":"comment","z":"ab7bad7.968425","name":"(c) 2020 Thomas Wenzlaff   www.wenzlaff.info","info":"","x":690,"y":80,"wires":[]},{"id":"5277f66f.cc79e","type":"debug","z":"ab7bad7.968425","name":"Debug Ausgabe","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":700,"y":280,"wires":[]},{"id":"f387efbd.b5b6","type":"function","z":"ab7bad7.968425","name":"CSV Format erzeugen","func":"var nachricht=msg.payload.timestamp + \",\" + msg.payload.iss_position.longitude + \",\" + msg.payload.iss_position.latitude;\n\nmsg.payload = nachricht;\n\nreturn msg;","outputs":1,"noerr":0,"x":400,"y":280,"wires":[["5277f66f.cc79e","12fc9796.6ae6d8"]]},{"id":"34f57175.37802e","type":"comment","z":"ab7bad7.968425","name":"Tracke ISS Position","info":"","x":390,"y":80,"wires":[]}]

Collection Info

Flow Info

Created 5 years, 4 months ago
Rating: 5 2

Owner

Actions

Rate:

Node Types

Core
  • comment (x2)
  • debug (x2)
  • file (x1)
  • function (x1)
  • http request (x1)
  • inject (x1)
Other
  • tab (x1)

Tags

  • iss
  • wenzlaff
  • wenzlaff.info
  • track
  • position
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option