I was interested in having my blue ring WD MyBook tweet its temperature as described here by Jorelson. It seemed pretty simple, and so I followed his instructions. One problem and it's a big one - Twitter has changed their API and no longer allows username/password authentication for tweets. So using curl is out. I did some more research and found out about Tweepy by Joshthecoder. It does exactly what I am wanting to do.
I have Optware installed but the Python version on Optware (2.5, I believe it was) did not seem to work with Tweepy. I then set off on the arduous journey of compiling Python from scratch. Couldn't get 2.7.1 to compile without errors, but finally succeeded with Python 2.6.6. I then installed the setuptools module which Tweepy requires for installation and was up and running. I followed the excellent instructions by Jeff Miller at his blog and soon my NAS was able to tweet from a simple python script.
Here's where I should state that I have minimal linux experience and even less with python script creation. So while I am very proud of myself (and thankful for the above cited references without whom I would never have gotten this far) I have reached the point where I will not be able to get any further without some assistance from this excellent forum.
What I want to do is create a script that will tweet "Hd1 temperature is X, Hd2 temperature is Y, Fan speed is Z". I don't know how I can use python to pull these variables and then insert them into the script, but I'm hoping some of the knowledgeable people here can lend a hand.
I'm not asking anyone to do all the work, but a nudge or two in the right direction would be most appreciated. I'm having a great time on this project, the first programming-ish type of project of any sort that I've ever attempted, even though to be perfectly honest I've really only done a lot of copy and pasting and applying logic so far.
Thanks for any help you can provide.