Train TJBot to Tweet a Photo in Node-RED
Today we’ll train TJBot how to take a photo and post it to Twitter using the see node.


Configure the see node to use the camera. If the picture (or camera) is upside down or flipped, tick the checkboxes to flip the image vertically or horizontally. You can also adjust the size of the image that is taken.

Tweeting a photo is pretty simple in Node-RED. The Twitter out node takes an image buffer and the text of the tweet can be set using the msg.payload.

And here’s what the tweet looks like.
Here’s a video of how to train TJBot to take a photo and post it to Twitter.
That’s it for today’s skill. What can you train TJBot to do now that it can take a photo and tweet it?
Come back tomorrow and we’ll train TJBot to speak direct message from Twitter.
This post is part of a series of skills you can train TJBot to perform.
