In late October I started a series on Twitter and Python tweepy. Then it got pushed to one side by HDMIPi. But now I’ve managed to find some “recreational” time to play with tweepy a bit more. So in this post, which is part 2, I’m going to show you how to post a tweet using a Python program on the Raspberry Pi. Create Your Twitter App Create a twitter app on your twitter account, as we did in part 1 here Give Your App Permission to Write Then make your app read/write. You won’t […more…]
Search Results : tweepy
I wanted to be able to interact with my twitter account(s) using Python scripts. I’d heard there was a Python library called tweepy that does a lot of the Applications Programming Interface (API) work for you. I’d also seen quite a few posts in the Python section of the Raspberry Pi Forums, where people had problems with it. Prize Draw I thought I’d take a look, spurred on by the idea that I’d like to be able to select a random twitter follower every once-in-a-while for a prize draw. So, last week, I spent a […more…]
I’m a firm believer that you should always test things in advance. It helps avoid unexpected last-minute panics when things don’t work as you expected them to. On Friday I’m going to pick a winner from my twitter followers using the twitter app script I wrote back in October 2013. My Joey from @gooligumelec just arrived. :) I have a spare I will give to a randomly selected follower on Friday. pic.twitter.com/yGtwATYXng — RasPi.TV (@RasPiTV) January 5, 2016 It Still Works, But… Since I had no idea where the SD card with that old Raspbian […more…]
Today we’re going to take a photo, overlay some text and graphics on it and then tweet it. In this series, we’ve been building a Raspberry Pi Twitter app and we’re adding more to it. This is a great way to develop software. Add things one step at a time and don’t move on to the next part until it works well, and you understand it. Why Would You Want To Do This? Let me backtrack and explain why I wanted to do this in the first place. I have a weather station running on […more…]
Create a Twitter App on Your Raspberry Pi
Twitter Application Tutorials How to create a twitter app on the Raspberry Pi with Python-tweepy – part 1 Tweeting with Python tweepy on the Raspberry Pi – part 2 pi twitter app series Tweeting System Information from the Raspberry Pi – part 3 Pi Twitter app series Taking and Tweeting a Photo with Raspberry Pi – part 4 – pi twitter app series Overlaying Text and Graphics on a Photo and Tweeting it – pt 5 Twitter App series Tweeted Photos on a Pi from the Cambridge Jam You can see an example of some […more…]
There was a Raspberry Jam in Cambridge on Saturday. I went along to help Carrie-Anne Philbin at the Sonic Pi workshop. I also took the two HDMIPi prototypes to display. Because I’ve been doing a series on making a Twitter App on the Pi, I decided that it’d be fun to use it to tweet some photos live from the event. So, armed with a pre-tested script and the wifi login details, I set it up. And I have to say it worked quite well in the quieter moments when there weren’t millions of people […more…]
Today it gets a bit more exciting. We’re going to take a photo with the Raspberry Pi camera and tweet it. Previously in the series we’ve covered how to: read twitter follower data in from your twitter account and pick one at random; make a simple text tweet at the command line, with a default tweet; tweet system information, like date and temperature. These are basic building blocks for manipulating a twitter account from your Raspberry Pi. So what do we need to know about tweeting photos? File Size Limits The maximum photo file size […more…]
Today I’m going to show you how to tweet some system information from your Raspberry Pi. In part 2, we did a basic tweet entered at the command line, with a standard, fixed, default message if no tweet text was entered. But That Default Text was Pretty Boring So let’s do something more fun with it. Let’s make it tweet the time, date and processor temperature if you don’t enter any tweet text. I got the ‘tweet the cpu temperature’ idea from Chris Mobberly’s blog. Here’s a condensed code snippet we’re going to borrow from […more…]
Back in October, I did part 1 of a series on interfacing Python to the Twitter API using Tweepy. Part 2 hasn’t happened yet because HDMIPi took over my life for several weeks as our KickStarter campaign went ballistic. But you’ll probably be delighted to hear that today’s post is not about HDMIPi. It’s about a Prize Draw that I’ll be holding for @RasPiTV twitter followers. I’ll be using the script I wrote in part 1 to pick a @RasPiTV twitter follower at random on Friday 27th December, and again on New Year’s Day. I […more…]