I sort of forget what my original project entailed…something about tweeting via the command line, for Arduino purposes. You can pretty much just toss a bunch of words in a hat, and add ‘Arduino’ and ‘Command Line’ to them, and there you have one of my typical projects. Anyhow, here we find ourselves. I am missing some dependencies with OAuth, but have managed to get twitter working from an interactive python shell:
This section is as much for my reference as it is for public knowledge…I snagged the commands that I ran to snag my comments. It first prints swantr0n (my dev account) and then my primary Twitter feed, @swantron
swantron@mini9:~$ python Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24) [GCC 4.5.2] on linux2 Type “help”, “copyright”, “credits” or “license” for more information. »> import twitter »> api = twitter.Api() »> feedSwantron = api.GetUserTimeline(‘swantron’) »> feedSwantr0n = api.GetUserTimeline(‘swantr0n’) »> print [ x.text for x in feedSwantr0n] [‘development account for @swantron | tune into http://t.co/SpDFBkK for projects’, ‘hello world’] »> print [ x.text for x in feedSwantron] [’@vftb …you better believe it’, ‘Twitter Project Teaser : http://t.co/7ZrOLUn | one step closer to tweeting from the #CLI … might take a run at make it tweet’, ‘Might need to implement some sleeves into my wardrobe… @adafruit just flipped the script with open source cuff links’, ‘unsafe at any speed… updating #ubuntu on the road http://t.co/Q8gfc56', ‘Upgrading Mini 9 to #Ubuntu Natty http://t.co/7yT9w81 | posting to kill time… review here ( http://t.co/RM675lX ) lunch-aft on the morrow’, ‘https://swantron.com/basic-mower-cord-repair/ #DIY lawn mower repair from a #math major. spoiler: it works’, “#arduino no you didn’t https://swantron.com/html-to-python-to-arduino-to-lcd/ #LCD project, stepped up a bit”, ‘working on a python script to dump info from web to LCD https://swantron.com/python-teaser/ #arduino’, ‘http://youtu.be/MpomhE6dgww video of #boc unboxing (for the win)’, ‘#woot bag-o-crap unboxing @ https://swantron.com/woot-boc-unboxing/ not too shabby’, ‘https://swantron.com/compiz-error-in-ubuntu-natty/ still finding some compiz issues in #ubuntu 11.04’, ‘#Arduino project @ https://swantron.com/command-line-lcd-arduino-interface/ | driving LCD screen via command line’, ‘@RobotGrrl… what version are you running? I had no problems with IOIO / Droid 2 (froyo 2.2)’, ‘Easy LCD #Arduino Display | https://swantron.com/easy-lcd-arduino-display/ | feels good to have a warm soldering iron and functional hardware’] »> I will keep plugging away until I get this thing hammered out. If not, I can print this suff to my LCD for a real-time Twitter display. Could be cool either way.
Say you have just moved to a new house. Say you are in a trough of garbage cell coverage…out in the country, maybe. You will find yourself with two likely options: low speed dial-up internet, or high speed [link removed]. I bet you know which one I would chose. Hit that link to see what I am talking about. It is the only viable option for a decent connection at times. If you want some numbers, with these connections you can see download speeds up to 1.5Mbp…which is roughly 30 times faster than dial-up. See…no joke here. The weird thing is that these packages are pretty much the same price as my connection with Bresnan. Sort of puzzling how they can offer deals like this. Hit that link to see what I am getting at. I’m off to feed my internet addiction.
There we go…keys in hand. Now, I need to figure out how to sew this together using curl or wget. If all else fails, I am pretty sure there is a py library that I can snag. Stay tuned…this one could be fun.
Solid state HD equates to a sub double digit boot time…be sure to configure compiz via: sudo apt-get install compizconfig-settings-managerThat is about it. Plus 1. I would rattle on about 11.04, but I already have a few posts back. Besides, I have bigger fish to fry. Namely, Gannon…
I’m in my 30s, and just now getting around to beating Ocarina of Time. Katie and Man-Dawg are watching the Bachelor (or Bachelorette; no effing idea) downstairs…here goes nothing
Who said netbooks are passe? Looks like that guy was designed to ride on the dash of a Silverado if you ask me. For the record, I was not doing 110 MPH by the MSU campus. I have an issue with my speedometer. I was doing 90 MPH, tops. My install was a success for the record. I will see if all functions are fully functional soon, and put together a post.
Tune in tomorrow to see how it all ends up. Wear a suit.
Hit the fold for details, four action pics, and a video.
I do 100% of my money work online. In fact, my Wells Fargo accounts have embarrassingly small rates of return…interest takes second base to online access for me, for what it is worth. That is where it is…from my IRA, to my stocks, to my savings and DDA accounts, it is all accessed/managed online. The question remains, what do you do to juggle all of these balances? Is there
Lunch hour project: parse the comments from swantron.com; feed said comments to an LCD screen. I was horsing around with wget from a CLI a few days ago. I found myself trying to smash through the resultant file via pure regular expressions…which is incredibly clumsy. Well, as luck would have it, my go-to after my main go-to is Python, and this type of thing has been issue enough to warrant a library. BeautifulSoup. It acts to parse the HTML info into items, that can be smashed around as I see(med) fit. My setup was simple: py script to snag my comments and write serial, Arduino sketch to drive a LCD and read/write serial. And a source of shade. And a WiFi signal to snag.
Check, check, check, etc. Video time: Pretty slick…hit the fold for the code, as promised, and a summary.
Thus far, I have python doing the website getting and Beautiful Soup doing the parsing of my site…basically just grabbing some info at this point that I can modify. I have my LCD driven via my trusty Arduino, and that is that. Instead of redirecting standard out to serial, I am writing to serial via python. Easy breezy. I have some sloppy sloppy code at this point, and need to add some hardware and stuffs to my prototype. Stay tuned…this could be a good one.