Multiple Project Update

Hi guys

So I’ve been eeking out all that I can of my last few days of summer, and there hasn’t been much rain or bad weather at all. As a result, I’m not posting much at all.

Doesn’t mean I’m not working though, I’ve been doing a couple things.

First thing’s first my speaker is done. I just need to get a bunch of video edited, and a big post written.

Secondly I’m still working really hard on my dead simple flickr uploader (dsfu). The cool thing about this project is that it has the potential to be very useful to quite a number of people, so I’m trying to make sure that it is very stable, and very easy to duplicate. This means for the most part I’ve been doing a series of 4000+ photo uploads trying to break my script. It’s happened a lot, and you can check my twitter feed to see my brain melt as I try and figure out the problem. This project won’t necessarily be “complete” until I have a 3D printer at my disposal to create the enclosure I want.

As for the PiPlanter, it’s still a work in progress. The update I did with my last post was a start to something really complete it is in no way finished. I still need to move the camera, and the plants.

Thanks for reading!

Pi Uploader | Reliable Batch Uploads to Flickr

Here’s a video:

So basically the program indexes every single file on the SD card and then starts a scheduled interval process to upload them every single upload to flickr every 20 seconds. From there, it creates a set and indexes all of the upload responses and then walks though that list and adds each photo to that list. Then it emails the set URL with some other data.

I had a lot of problems with the flickr API timing out, and solved this problem by using APscheduler (easily my favorite package). You can see a more in depth chronicling my struggle on my twitter account.

I really want this project to be polished so I probably won’t be done with it for a while. I want to like 3D print a really nice looking enclosure and use a lot of panel mount components.

Here’s the python script:

Thanks for reading!

PiPlanter | Big Overhaul Update

Okay! So I leave for college in less than 30 days, but I’d like to make sure my tomatoes to continue to grow once I leave so I’ve taken some steps to make sure that my departure goes smoothly.

Here’s a video of my revised setup:

There are a few key differences between this setup and my previous one:

The main one is that the watering system has been 100% re-vamped. The water distribution happens via a hose with holes in it instead of using the tray at the bottom of the plant grid in the previous video.

It also takes, uploads and tweets a picture of itself using a raspberry pi camera module.

It also creates a new mysql table every two weeks, and in turn, renders a new kind of graph. The renderscript.php file receives an argument from the python script which is the table code.

Here’s the python script:

Here’s the .php script:

Thank you for reading!

Twitter

So I’ve decided that it doesn’t make sense for me to make little tiny posts on here, so I’ve migrated my thoughts on development to twitter at: www.twitter.com/eso_logic

Pi Uploader | Updating Code for Mounting and Mounting Capabilities

This program can now handle mounting and unmounting the SD card on /mnt/SD (you will have to make that dir with root privileges)

Pi Uploader | Uploading and Photoset population with Flickr

Here’s a video!

So now, when in Flickr Upload mode, the program will:

1. Walk through all Sub-Directories and find every image file

2. Upload all of those photos to Flickr

3. Get the photo ID’s of each of those photos and then index them into a list

4. Use that list to create a Photoset (Flickr’s equivalent of a Photo Album) named after the time the photos were uploaded.

As I said in the video, I want eventually (if the weather stays this bad, tomorrow) add email functionality to the program so it will send the user an email when all of the photos have been uploaded / the set of those photos.

Here’s the source used in the video:

Pi Uploader | Copy from SD card to HDD

Here’s a video!

So half of the core functionality of the device is done! It’s a pretty simple solution to walk through all of the files in the directory. I actually might check if having sub-folders will mess the process up and it probably will, if that’s the case I’ll try and publish a fix for later tonight.

Anyway’s here’s the source:

EDIT: So the above code won’t walk through sub-folders on the SD card, here’s an updated source:

Pi Uploader | A basic skeleton

So like I said in my previous post I’m attempting to make a dead simple Flickr uploader. Video explaining this setup here:
http://youtu.be/Ll0SOO-jmr4

Here’s a picture of how it’s all wired up, this will likely not change throughout the duration of the project:

uploader

Image generated by fritzing.

And here’s the python code, it’s very rudimentary:

Thanks for reading!

What I want to do before the end of the summer

As this is a development blog, I figure that those reading would want to know what I want to do by the end of the summer.

First things first, I really want to finish my speaker system once I get home. As you may or may not be able to tell, I’m currently away from my desk and on vacation. The final parts for the speaker are waiting at my house as I type this, so once I get home on Saturday I hope to finish the speakers either that night or at least the next day. Expect a higher-quality video / post about that project as I had help making it so I was able to get some really cool “making of footage” so the video should be a little better quality.

I also want to get a Raspberry Pi and Arduino board talking over an xbee network. Why I want to do this I’m not sure, but this seems like something it may be useful to learn how to do, so I’ll probably come up with some sort of dummy project to demo that technology. I wonder if I’ll use that serial deliminator script I wrote for the arduino so many months ago. That’s still probably my best work as a programmer.

I have a cool idea for a Raspberry Pi project. My mother takes a lot of photographs on her really nice DSLR camera. Much like most “normal” people she isn’t really keen on uploading photo after photo to an image hosting service. Because of this, she often either doesn’t share these photos with anybody, and takes separate photographs with her iPhone to share with others. I think I’m going to come up with some solution that has a very simple user interface (like 1 button and 2 LED’s) that can upload a whole SD card of photo’s to flickr and then email the user once it’s done.

Yeah! If there’s any stuff you want me to do / see let me know in the comments!