Train TJBot to Tweet a Photo in Node-RED

JeanCarl Bisson
Aug 23, 2017 · 2 min read

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.

)

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade