Profile cover photo
Profile photo
Alex Mourer
Front End Developer
Front End Developer
About
Posts

Post has attachment
I haven't played with my LightshowPi much since last Christmas but decided last minute to create a fun little experience for trick or treaters. Sorry the video is a little dark.

Post has attachment
The beginning of this song is pretty cool but once it picks up it fires too many relays for a cool show. Would be better on a bigger system/show.

Post has attachment
I may be a little paranoid since I melted a relay but I'm playing with the idea of adding a smoke detector to the LightshowPi system. If the sensor detects smoke it would turn all relays off and message me.

I found this:
http://www.raspberrypi.org/forums/viewtopic.php?t=55641&p=432092

Has anyone messed around with anything similar?

Post has attachment
Wooo whoo!! No fire yet! :)

This is a custom sequence I wrote for my pi to run when not playing a song.

Post has attachment
Damaged a relay on my outside test run. I guess I have a short somewhere in my icicle lights. They wouldn't flash off and as I sat there pondering why, it melted my relay. Lesson learned.
Photo

Post has attachment
My WebUI is now available on Bitbucket. It may not be the most efficient code but it works and is very easy to use.

If you run into issues with things not working, check that the folder paths and file permissions are correct.

https://bitbucket.org/alexmourer/webui/src
Photo
Photo
2014-11-29
2 Photos - View album

Post has attachment
I stumbled upon a cool program called Twython which easily allows for Twitter integration into the Lightshow.

https://github.com/ryanmcgrath/twython/blob/master/README.rst

Adding something like this to synchronized_lights.py tweets out a message when the song starts.

-------------------------------
from twython import Twython, TwythonError

#Send Tweet About What's Playing
APP_KEY = 'YOUR_APP_KEY'
APP_SECRET = 'YOUR_APP_SECRET'
OAUTH_TOKEN = 'oauth_token'
OAUTH_TOKEN_SECRET = 'oauth_token_secret'

twitter = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET)

try:
  extension = song_filename.split("/home/pi/music/", 1)
  noextension = extension[1].split(".mp3", 1)
  songname = noextension[0].replace("_", " ")
  twitter.update_status(status="The light show is now playing " + songname + " #Cityname #Christmas ")
except TwythonError as e:
  print e
--------------------------------

** Note: My audio files are formatted Song_Name_-_Artist_Name.mp3
Photo

While using PiFM, my lights are firing about a half second before the song note. How do I go about setting a delay for the lights without delaying the audio?

Post has attachment
This is my Lightshow Pi WebUI so far. Everything is handled by PHP, HTML, CSS and JavaScript.
PhotoPhotoPhoto
11/21/14
3 Photos - View album

I have a Web UI setup to control what song is being played but I've ran into a bit of a road block getting the songs to stop. What command is best to stop and reset the relays?
Wait while more posts are being loaded