3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Tweet-A-Temp

Step 7Software

Software
Starting with the Tweet-A-Watt software I started hacking away at the python code. Mostly I needed to remove the Watts conversion, the history functions, and then I needed to add a number of divide by 0 protections (the Tweet-A-Watt assume packets will have data).

I then added the formula from Excel into the program and tested.

I set it to print every packet and I have lots of debug in the code to catch problems.

I tried to get the graphing portion working, but I gave up which brings me to:

Python Rant:
This is second time I have tried to do a major project in Python. I could not get all the libraries dependencies and base packages to work in under 20 hours in Windows, Windows 64, Ubuntu and Fedora. I finally had to build almost everything from scratch and even then some functions did not work. I tried 2.4, 2.5, 2.6 and various 3.X versions, and then versions of each library, which in turn had dependencies on other packages. While others may have rants against the language, I found merely installing, even using many of the "easy installers" to be daunting at best!

After I calculated the temperatures, I made a 1 degree adjustment, because I could not believe the hot tub was at 106F. I really do not believe it is at 105 either.

I then tweeked the reporting and twitter logic. Since I am not sure if I will get packets, or good packets, I chose to report the temp once an hour. I assume I will cut that back in a while.

Currently the script is running as a normal user. I will want to move it to a service eventually.
« Previous StepDownload PDFView All StepsNext Step »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
2
Followers
1
Author:Z0t