Introduction: SmartCloud

Something I made. I really Like it. I feel it's soothing to have just running. Every so often I see a cool animation, and it matches the decor of my place. Plus it's functional and I can check it out on my way out the door in the morning.

The cloud uses WIFI to get the weather for the area you live in. The display runs for about 15 minutes, at the top of every hour, and it uses the current weather to generate the display.

Possible display's are

Rain

Snow

Lightning

Sunny

Special surprise!

Step 1: Step One: Assemble Parts

You need some Metal Wiring.

http://www.amazon.com/Aluminum-Craft-Wire-Gauge-SI...

Some stuffing material.

http://www.amazon.com/Fairfield-Poly-Fil-Premium-P...

A coathangar

a Raspberry Pi

http://www.amazon.com/Raspberry-Pi-Model-512MB-Com...

( one of the newer, cheaper models MAY work, I haven't tested it yet. )

A flash card ( for the Raspberry Pi )

http://www.amazon.com/SanDisk-Class-Micro-Adapter-...

A string of LED's

http://www.amazon.com/kapata-digital-strings-Addre...

(there are lots of options here... I used WS2801, but there are other formats you could use if you wanted. )

A power supply.

Something like this should work.

http://www.amazon.com/SHCHV-Orange-Supply-Charger-...

I also used a power adapter for the RPI. ( not 100% required. )

http://www.amazon.com/gp/product/B003MHUN7S?psc=1&...

And finally a WiFi USB dongle

http://www.amazon.com/ZTC-Wireless-Adapter-802-11N...

It would help if you had a little bit of wire lying around.

Step 2: Step Two : Software

First you need to flash your flashdrive with Weezy

https://www.raspberrypi.org/documentation/installa...

source code is below. Extract it and put the files in the same folder anywhere on your Raspberry Pi.

https://drive.google.com/open?id=0BxTr2OsIPb3uQWZS...

You have to install the weather utility for linux as well.

Type the following command into the terminal on the Pi.

$ sudo apt-get install weather-util

you can do this many ways. One way is by following the instructions at https://www.raspberrypi.org/documentation/remote-a...

**important** make sure to open up First.py and edit the 2nd and 3rd line to match your zip code.

ie

*

os.system ("weather 20110 > 20110.txt")

fh = open('20110.txt')

*

20110 is MY zip code. So change it to yours...

Also, edit any other line in First.py to whatever date you want the special surprise to trigger. For example, I have a special surprise run on Aug 16 and Jul 12.

*

for line in fh:

if "Jul 12" in line: execfile("Birthday.py")

if "clear" in line: execfile("sunny.py")

if "rain" in line: execfile("rain.py")

if "mist" in line: execfile("rain.py")

if "snow" in line: execfile("Snow.py")

if "storm" in line: execfile("lightning.py")

if "Aug 16" in line: execfile("Birthday.py")

if "Jul 12" in line: execfile("Birthday.py")

*

Finally, you have to edit the Crontab as follows

Use Putty to interface with your Pi, and type: "crontab -e" at the terminal

Change your crontab to look like this

*

@reboot sh /usr/share/Cloud_Lamp/launcher.sh >/home/pi/logs/cronlog 2>&1
59 * * * * sh /usr/share/Cloud_Lamp/launcher.sh >/home/pi/logs/cronlog

*

Change the filepath to the location where you extracted the contents of the zip file.

Plug in your USB WIFI dongle and configure to your network per the tutorial below

http://weworkweplay.com/play/automatically-connect...

The code is written to run the animation for about 15 minutes at the top of every hour. It can be tweaked to your liking by editing each of the scripts First.py calls on.

Step 3: Step 3: Hardware

You need to do a little bit of soldering.

Connect the LED strip to the Raspberry Pi according to the instruction above.

Step 4: Assemble the Cloud

Assemble the coat hanger and the gauged aluminum wire in such a way that it resembles the outline of a cloud. Stuff the Raspberry Pi inside the unit first so all you have to do is plug it in. You can then fill the outline with the stuffing. Arrange the LED strip so that it is completely covered by the fluff. . Once there is enough stuffing inside the wire, simply "fluff" the stuffing so as to hide the wire.

Congrats, the cloud is ready to hang, all you should have to do is plug it in and let it do its thing!

Comments

author
legoturtle92 made it!(author)2016-04-13

I seem to be getting a syntax error when I try running the program. It says it is Line 5 on the First.py.

author
fpalmer made it!(author)2016-06-22

I think that

$ sudo apt-get install weather-util

needs to be typed into the command line on the py.

Updated the instructable with this instruction.

author
fpalmer made it!(author)2016-05-12

Sorry i took so long to respond, i only just now saw your comment.

The program is looking for a file "your zip code" , 20110 is my zip code, so you could try changing that to YOUR zip code, or create a blank file with YOUR zip code with file extention .txt to try to get the program to work.

The program runs a weather lookup service and saves the file as a text file. it should save the file as filename" your zip code " and then reference your zip code elsewhere when determining the weather visualization to play.

author
JesusG33k made it!(author)2016-01-09

I recommend adding an enclosure that's grounded across the Pi, I'm static paranoid with all that fluff.

author
fpalmer made it!(author)2016-01-09

Lol, yeah I've let it run for awhile and it doesn't generate enough heat to risk a fire. some kind of sheild/case would be a good idea though.

author
deadpieface made it!(author)2016-01-09

awesome project! I really like how you integrated the heart rate sensor from your fitness watch to pulsate with your heartbeat.

author
DIY+Hacks+and+How+Tos made it!(author)2016-01-09

Awesome looking lamp. And with the Raspberry Pi you can use it to actually monitor the weather.

About This Instructable

12,215views

22favorites

License:

More by fpalmer:SmartCloud
Add instructable to: