Skip to content

Instantly share code, notes, and snippets.

@sumitpuri
Created October 4, 2015 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save sumitpuri/3acea22db01b2b76d46d to your computer and use it in GitHub Desktop.
Save sumitpuri/3acea22db01b2b76d46d to your computer and use it in GitHub Desktop.
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"]]}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment