Send Airplan count from thingspeak from Hanover (Germany) to Twitter

This Flow load the Airplan count from thinkspeak from Hanover (Germany) and send the Data every 5 minutes to Twitter.

This Flow have a GUI with nice gauge.

A sample Twitter Message:

Anzahl #Flugzeuge in #Hannover (#HAJ #EDDV) 15 angefragt per #ADSB am Tue May 31 2016 21:40:51 GMT+0200 (CEST) per #Raspberry #Pi

A Raspberry Pi send the Airplane Data to thinkspeak.com.

[{"id":"548a5297.2d4184","type":"ui_tab","z":"f052ec3b.cab2c","name":"Home","icon":"flight","order":"1"},{"id":"f3ae9f7b.3f9d3","type":"debug","z":"f052ec3b.cab2c","name":"Ausgabe","active":true,"console":"true","complete":"payload","x":918.36669921875,"y":290.25,"wires":[]},{"id":"d62ca435.e783","type":"inject","z":"f052ec3b.cab2c","name":"Start","topic":"","payload":"","payloadType":"date","repeat":"300","crontab":"","once":true,"x":99.36666870117188,"y":126.75,"wires":[["a7840b03.538768"]]},{"id":"a7840b03.538768","type":"http request","z":"f052ec3b.cab2c","name":"Flugzeuge von thingspeak.com abfragen","method":"GET","ret":"obj","url":"https://api.thingspeak.com/channels/44177/feeds/last.json","x":401.3666687011719,"y":148,"wires":[["60c7cf7e.f6c208"]]},{"id":"60c7cf7e.f6c208","type":"contrib-json","z":"f052ec3b.cab2c","engine":"JSONSelect","command":"jq","expr":":root > .field1","complete":"property","prop":"payload","name":"field1 auswerten","x":359.36669921875,"y":310.5,"wires":[["28831af3.2bfe9e","872f1ec9.e267c","aaf1c4c2.434738"]]},{"id":"28831af3.2bfe9e","type":"function","z":"f052ec3b.cab2c","name":"Text und Zeit ergänzen","func":"var newMsg = { payload: \"Anzahl Flugzeuge in HAJ \"+ msg.payload + \" angefragt \" + new Date() };\nreturn newMsg;\n","outputs":1,"noerr":0,"x":624.36669921875,"y":290.75,"wires":[["f3ae9f7b.3f9d3"]]},{"id":"1e4905cb.0e4e3a","type":"twitter out","z":"f052ec3b.cab2c","twitter":"","name":"Tweet an Twitter","x":921.36669921875,"y":421,"wires":[]},{"id":"872f1ec9.e267c","type":"function","z":"f052ec3b.cab2c","name":"Text für Twitter aufbereiten","func":"var newMsg = { payload: \"Anzahl #Flugzeuge in #Hannover (#HAJ #EDDV) \"+ msg.payload + \" angefragt per #ADSB am \" + new Date() + \" per #Raspberry #Pi\"};\nreturn newMsg;\n","outputs":1,"noerr":0,"x":637.36669921875,"y":422.75,"wires":[["1e4905cb.0e4e3a"]]},{"id":"aaf1c4c2.434738","type":"ui_gauge","z":"f052ec3b.cab2c","tab":"548a5297.2d4184","name":"Anzahl Flugzeuge","group":"HAJ","order":1,"format":"{{value}}","min":0,"max":"50","x":604.36669921875,"y":503.5,"wires":[]},{"id":"47c9417f.89105","type":"ui_button","z":"f052ec3b.cab2c","tab":"548a5297.2d4184","name":"Aktualisieren","payload":"timestamp","topic":"","group":"HAJ","order":1,"x":95.36666870117188,"y":337.5,"wires":[["a7840b03.538768"]]},{"id":"2c9e7689.cf1dca","type":"comment","z":"f052ec3b.cab2c","name":"Dieser Flow ermittelt alle 5 Minuten die Anzahl Flugzeuge in Hannover","info":"Und sendet das Ergebnis:\n\n-an die GUI\n\n-nach Twitter\n\n-als Debug nachricht in den Debug Tab\n\n-als System.out auf die Konsole\n\nÜber Button kann jeweils im Flow und in der Gui aktualisiert werden\n","x":277.3666687011719,"y":58,"wires":[]},{"id":"4c202e40.19413","type":"ui_link","z":"f052ec3b.cab2c","name":"wenzlaff.info","link":"http://www.wenzlaff.info","icon":"open_in_browser","order":1,"x":93.36669921875,"y":409.5,"wires":[]}]

Flow Info

Created 8 years, 6 months ago
Updated 8 years, 5 months ago
Rating: 5 3

Owner

Actions

Rate:

Node Types

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

Tags

  • Raspberry
  • Pi
  • Airplan
  • Tranponder
  • haj
  • EDDV
  • Hanover
  • Hannover
  • Germany
  • Twitter
  • thinkspeak.com
  • wenzlaff.de
  • wenzlaff.info
  • kleinhirn.eu
Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option