Webcam captures image and tweets it to Twitter account

Webcam is connected to Raspberry Pi. This flow is written on Raspberry Pi. It captures an image every 3 hours and tweets it to your Twitter account.

[{"id":"69658a37.bf7884","type":"inject","name":"","topic":"","payload":"","payloadType":"date","repeat":"10800","crontab":"","once":true,"x":95,"y":131,"z":"8a7644b4.87ecd","wires":[["18ba00af.a2d917"]]},{"id":"18ba00af.a2d917","type":"exec","command":"fswebcam sumit.jpg","addpay":true,"append":"","useSpawn":"","name":"Take Picture","x":207,"y":202,"z":"8a7644b4.87ecd","wires":[["991029a8.34fb2"],[],[]]},{"id":"991029a8.34fb2","type":"file in","name":"","filename":"sumit.jpg","format":"","x":346,"y":269,"z":"8a7644b4.87ecd","wires":[["53555fd4.d9ab48"]]},{"id":"ec07ae13.111d7","type":"twitter out","twitter":"","name":"Tweet","x":433,"y":447,"z":"8a7644b4.87ecd","wires":[]},{"id":"53555fd4.d9ab48","type":"change","name":"","rules":[{"t":"set","p":"media","to":"msg.payload"},{"t":"set","p":"payload","to":"Current condition of pool"}],"action":"","property":"","from":"","to":"","reg":false,"x":342,"y":348,"z":"8a7644b4.87ecd","wires":[["ec07ae13.111d7"]]}]
sumitpuri

Flow Info

created 1 year, 9 months ago

Node Types

Core
  • change (x1)
  • exec (x1)
  • file in (x1)
  • inject (x1)
  • twitter out (x1)

Tags

Copy this flow JSON to your clipboard and then import into Node-RED using the Import From > Clipboard (Ctrl-I) menu option