Stream

Join this community to post or comment
Pinned by moderator

Todd Giles
owner

General Discussion  - 
 
For those of you who use the default pwm mode with your lightshow - I've made a change to the default settings to use onoff mode.  This was done in hopes to reduce the # of mechanical relay failures of new users (sorry +Jason Telemax).

If you download the newest version from the stable or master branch, you'll see this change in the defaults.  To switch back to pwm mode you'll need ensure your /home/pi/.lights.cfg file contains the following line in the [hardware] section:

pin_modes = pwm

For more information on playing with your configuration file, visit the following page:

http://lightshowpi.org/software-configuration/
10
Colin Brown's profile photo
 
Good call Todd. Especially since led lights are selling for a lot less than they did a year ago. 
Add a comment...

Swapnil Bhartiya

Hardware Discussion  - 
 
I am building a Lightshow project and would like to know the difference between the two relays:

https://www.amazon.com/SainSmart-8-Channel-Duemilanove-MEGA2560-MEGA1280/dp/B006J4G45G/?th=1

https://www.amazon.com/gp/product/B0057OC5WK/

thanks.
1
Matt Weaver's profile photo
6 comments
 
Well crap, I totally just found the post, it's on the front page.
Add a comment...

william fowler

Web UI Development  - 
 
Hello, well I'm back at it this year. I have installed the webui_stable, and have a few questions and problems.


1. Where are the config files located for webui ie: (.lights.cfg, defaults.cfg, overrides.cfg) iv searched in /root/.lights and /.lights and says no such file exists.

2. Pifm, is it working? When I enter "true" and "100.1" the preshow starts but nothing else happens.( It works on an old install, without webui)

3. Can samba be used to transfer music faster? I have a fresh copy of Jessie and don't know if it will screw anything up if installed.

Thanks for any and all help

1
Tom Enos's profile photo
 
1. it will be in /root/.lights after you set it through the UI. But the point is you do not directly edit the configs, you do everything through your browser.

2. I don't know if pifm is working with correctly with the webUi. +Stephen Burning removed it, then added it back at the last minute. With a quick look at the code it should work. But PiFm has never worked right on my RPI's so I can't test it.

3. Faster than what? SCP, FTP, uploading through the webUi, flash drive?
That will depend on your connection to your network. All should be about the same except for the flash drive method. Samba might be easier as it's drag and drop.
Add a comment...

Josh Noonan

Software Help (LightshowPi)  - 
 
I got lightshow working fine with playlists and single songs (and FM, using master branch). I wanted to try playing a shoutcast stream so I don't have to pick all the music.

To enable it I:
1) Disabled playlist mode
2) mode = stream-in
stream_in_url=http://listen.radionomy.com:80/1000Christmas
stream_in_sample_rate=44100

Now when I do the start music I get a bunch of error such as:

root@raspberrypi:/home/pi/lightshowpi/bin# ./start_music_and_lights
Traceback (most recent call last):
File "/home/pi/lightshowpi/py/hardware_controller.py", line 55, in <module>
cm = configuration_manager.Configuration()
File "/home/pi/lightshowpi/py/configuration_manager.py", line 94, in _init_
self.set_lightshow()
File "/home/pi/lightshowpi/py/configuration_manager.py", line 233, in set_lightshow
command_string = self.config.get(ls, 'stream_command_string')
File "/usr/lib/python2.7/ConfigParser.py", line 340, in get
raise NoOptionError(option, section)
ConfigParser.NoOptionError: No option 'stream_command_string' in section: 'lightshow'
root@raspberrypi:/home/pi/lightshowpi/bin# Traceback (most recent call last):
File "/home/pi/lightshowpi/py/synchronized_lights.py", line 134, in <module>
import hardware_controller as hc
File "/home/pi/lightshowpi/py/hardware_controller.py", line 55, in <module>
cm = configuration_manager.Configuration()
File "/home/pi/lightshowpi/py/configuration_manager.py", line 94, in _init_
self.set_lightshow()
File "/home/pi/lightshowpi/py/configuration_manager.py", line 233, in set_lightshow
command_string = self.config.get(ls, 'stream_command_string')
File "/usr/lib/python2.7/ConfigParser.py", line 340, in get
raise NoOptionError(option, section)
ConfigParser.NoOptionError: No option 'stream_command_string' in section: 'lightshow'
./Traceback (most recent call last):
File "/home/pi/lightshowpi/py/synchronized_lights.py", line 134, in <module>
import hardware_controller as hc
File "/home/pi/lightshowpi/py/hardware_controller.py", line 55, in <module>
cm = configuration_manager.Configuration()
File "/home/pi/lightshowpi/py/configuration_manager.py", line 94, in _init_
self.set_lightshow()
File "/home/pi/lightshowpi/py/configuration_manager.py", line 233, in set_lightshow
command_string = self.config.get(ls, 'stream_command_string')
File "/usr/lib/python2.7/ConfigParser.py", line 340, in get
raise NoOptionError(option, section)
ConfigParser.NoOptionError: No option 'stream_command_string' in section: 'lightshow'
stop_music_and_lights
killing:
CMD /bin/bash /home/pi/lightshowpi/bin/play_sms
Traceback (most recent call last):
File "/home/pi/lightshowpi/py/synchronized_lights.py", line 134, in <module>
import hardware_controller as hc
File "/home/pi/lightshowpi/py/hardware_controller.py", line 55, in <module>
cm = configuration_manager.Configuration()
File "/home/pi/lightshowpi/py/configuration_manager.py", line 94, in _init_
self.set_lightshow()
File "/home/pi/lightshowpi/py/configuration_manager.py", line 233, in set_lightshow
command_string = self.config.get(ls, 'stream_command_string')
File "/usr/lib/python2.7/ConfigParser.py", line 340, in get
raise NoOptionError(option, section)
ConfigParser.NoOptionError: No option 'stream_command_string' in section: 'lightshow'
killing:
CMD sudo python /home/pi/lightshowpi/py/synchronized_lights.py
Traceback (most recent call last):
File "/home/pi/lightshowpi/py/hardware_controller.py", line 55, in <module>
cm = configuration_manager.Configuration()
File "/home/pi/lightshowpi/py/configuration_manager.py", line 94, in _init_
self.set_lightshow()
File "/home/pi/lightshowpi/py/configuration_manager.py", line 233, in set_lightshow
command_string = self.config.get(ls, 'stream_command_string')
File "/usr/lib/python2.7/ConfigParser.py", line 340, in get
raise NoOptionError(option, section)
ConfigParser.NoOptionError: No option 'stream_command_string' in section: 'lightshow'


Ideas? Thanks!
1
Josh Noonan's profile photoKen B (K5ENB)'s profile photo
9 comments
 
Just curious, you don't have pin_modes = pwm , do you ? It should be onoff. What are you trying to set the decay_factor to when it locks up, btw ? attenuate_pct will effectively reduce the input signal, perhaps try a slightly higher value.
Add a comment...

Jeremie Harvey

General Discussion  - 
 
Okay dusting off and need some help. I was not successful last year in getting SMS to work and want to this year. I have installed the updates that i found in the community (thank you again Tom), but it is still not working. I have enabled less secure login for gvoice. I am also getting this error when i run start_music_and_lights

/usr/local/lib/python2.7/dist-packages/beautifulsoup4-4.4.1-py2.7.egg/bs4/__init__.py:166: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html5lib"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.

To get rid of this warning, change this:

BeautifulSoup([your markup])

to this:

BeautifulSoup([your markup], "html5lib")

ANy help appreciated, want to polish this off with SMS and RGB LED strands this year.

Thank you,

JDH 
1
Jeremie Harvey's profile photoTom Enos's profile photo
4 comments
 
If you used an overrides.cfg file to make your changes then it should be fine. If you edited the defaults.cfg then no, the master branch has more then a few options that the stable does not.
Add a comment...

Dan Warkentin

Hardware Discussion  - 
 
Hi everyone,

I just found out about LightShow Pi and have to buy all hardware as I've never used a Raspberry Pi before. I'm a little confused about all the variants of the Pi out there. Is there a specific version that is recommended / most compatible. I'm definetly a noob at this stage but look foward to lots of learning.

Thanks
1
Tom Enos's profile photoDan Warkentin's profile photo
2 comments
 
Thank you very much for such a great reply!
Add a comment...

Josh Noonan

Software Help (LightshowPi)  - 
 
Good afternoon, I just started using lightshow pi and have got it working fine with using the standard 8 channel mechanical relays. I just had a couple of questions. I am trying to setup the FM transmitter. In the defaults.cfg it says "pin 7 cannot be used in FM mode. In the FM section it says output the FM single on port 4. Which pin should I be using? When I have it on GPIO 7 and FM=true the process hangs. Also I have been trying to get the webui branch and it I cannot find that branch. Thanks!
1
Josh Noonan's profile photoKen B (K5ENB)'s profile photo
5 comments
 
No, not for power, but keeping your RF emissions low is a better idea in my opinion. Your antenna from your Pi will be critical to good reception, but if you can pick up anything beyond your property, it's probably too much gain on your setup. A loose wire from the pin on the Pi could be all you need, but since there are so many factors, experimentation is essential.
Add a comment...

James Lewis

General Discussion  - 
 
Hi, Firstly forgive me as I'm 16 and a bit of a novice when it comes to transistors. I'm currently using lightshowpi to power my led strips drawing 12v at three amps. I have been running in PWM mode! While I don't fully understand why, I assume this is why my three 1D52AC transistors stopped working? Anyway, I kind of suspected this would happen so that's on me I guess, have learnt and will move on. Is there an alternative to the transistors I am using that will work well without breaking after 2 hours of use?.... or am I kidding myself and that's not how electricity works?

Update: would I be better to use transistors or solid state relays?
1
James Radko's profile photoChris Woznak's profile photo
4 comments
 
Solid state relays are for 120 volt lights, the MOSFET's that I used are good for 12 volt. 
Add a comment...

chris usey
moderator

General Discussion  - 
 
Finally got a chance to play with this nodemcu ESP8266. I ordered months ago for 8$. This may be a good cheap option to setup some remote wireless boxes with the right coding ! 
6
chris usey's profile photoTom Enos's profile photo
8 comments
 
The ones that I ordered are just like the one you liked to, but only about $3.00 each. The only reason I mention the USB chip is that it might affect the firmware updates.

I like that fact that you can set these up as an AP. That might help with the wireless network lag I was getting with the network code.

Everything that I have read about micropython says that had come a long way. I'll most likely go the Arduino way, but micropython looks like something fun to play with.
Add a comment...

fragwits

Software Help (LightshowPi)  - 
 
fresh install
nothing changed in configs, tested, no audio, lights do work. looked at my screen and i get:

$ sudo python py/synchronized_lights.py
/home/pi/lightshowpi/py/fft.py:61: RuntimeWarning: divide by zero encountered in log10
:piff(frequency_limits[i][1], chunk_size, sample_rate):1]))

playing sample files.
1
KnC Mc's profile photofragwits's profile photo
3 comments
 
Problem is in my pi somehow, aplay doesn't produce sound either..
ok,fixed. had to use raspi-config to set the output to "force to headphone jack". auto for some reason didn't work..
Add a comment...

About this community

http://lightshowpi.org/ Come join the fun and create a Halloween, Christmas, or whenever lightshow (karaoke, dance party anyone?) - synchronizing the lights to music using your Raspberry Pi as the central controller (i.e. no external computer necessary). As of today, our software automates the creation of a lightshow using the frequency spectrum of the song that is playing back. There are also many add ons - such as SMS control (e.g. change the volume via sms, or allow your neighbors to vote for the next song in the show), pre show lighting configuration, and many others in development. Come and join our community and contribute to the project, we'd love to have you :-)

Swapnil Bhartiya

Software Help (LightshowPi)  - 
 
I am building a halloween project for my son and it would be great if I can also use a motion sensor that will trigger the music and light show. So as someone walks into our driveway it will trigger spooky music and syncronized lights through LighhtShowPi script. Any suggestions?
1
Ken B (K5ENB)'s profile photoAdam Eyring's profile photo
2 comments
 
I've been playing with Parallax PIR sensors with Pi and they work great, but haven't set up with Lightshow yet.
Add a comment...

Charles Kigar

Hardware Discussion  - 
 
I have had a couple of successful Lightshow PI builds in past years, including an 8 channel setup and last year, a second setup with 16 channel, both with the Sainsmart SSR switching 120v.

This year I want to tackle using the 5050 RGB led strips and I have a few basic hardware questions for those what have already worked this out.

What size 12v power supply did you use to power the strips? Where did you source this part? I am planning on 5 strips, and keeping them at 6 meters. (15 gpio channels).

I (as is cited in the Adafruit tutorial) purchased a handful of the 8721 MOSFETS. Some examples I see use a resistor (pulldown?) In your experience, is this preferred?

Does anyone have a good picture of a design that you incorporated a mcp23017 or mcp23s17? I've seen a couple of hats or pre-built expansion shields. Did anyone use a setup that used one of those?

Example:
https://www.amazon.com/Expander-Shield-MCP23017-Arduino-pcDuino/dp/B0186Z12KW/ref=sr_1_3?ie=UTF8&qid=1475117573&sr=8-3&keywords=mcp23017

If I am not using the PWM gpio pins, with lightshow pi simulate a decent fade with SSRs driving the MOSFETS?

semi-Finally (ha!) if anyone has a clear picture of your hardware layout with the MOSFETs and/of the GPIO example, that would give me a leg up on my layout.

Thank you to all on this board that make this so much fun.

Chip



1
Tom Enos's profile photoChris Woznak's profile photo
2 comments
 
I'm using 8 AA alkaline batteries to power the 108 RGBW LED's in my bike. They seem to last pretty good.

I am using the same MOSFET's you plan on using with a resister. I have 13 channels with no expander board and there's room for more. I'm using another channel for a switch to turn on the white LED's.

Here's a picture of the relay board I made. https://plus.google.com/photos/100439350537977933009/albums/6336275291551417009/6336275289927583298
Add a comment...

Ben Jacobus

Hardware Discussion  - 
 
I finally purchased a FM Transmitter. This is what I ended up going with. Should be here next week, just in time to start up the Halloween Lights. 
2
C. I. Shinzato (karlashi)'s profile photoBen Jacobus's profile photo
2 comments
 
There is a good amateur radio rule to follow. "Only use the amount of power needed. " That being said I will only be running this unit likely at its lowest power output. I may turn it up once just to acknowledge its function but 5 watts of power is way more than most should need. As long as your not impeding on any other transmissions you should be okay.
Add a comment...

Gabe Simon

General Discussion  - 
 
Hi, I am new to building a light show with raspberry pi. I don't know which gpio pins to plug my ssr into. thank you!
1
Tom Enos's profile photoGabe Simon's profile photo
2 comments
 
Thanks!
Add a comment...

Jason Justice

Software Help (LightshowPi)  - 
 
hello, i got lightshowpi working great with a playlist, however when i switch configs and try to use the pianobar stream option i get music but no lights, all 8 channels just stay on. any help appreciated. this is running via the command: sudo /home/pi/lightshowpi/bin/start_music_and_lights

here is my config file part:
[lightshow]
# We support the following modes for running lightshows:

# ---------------------------------------------------------------
# 'playlist' mode specific configurations for the lightshow
# ---------------------------------------------------------------
# Play song files on the RPi from the playlist as defined below, with
# the preshow defined before each song. (default)
#mode = playlist

# The playlist_path defines the path to the .playlist file. The .playlist file
# is a text file that contains a list of what songs should be included in the show
# and is in the format:
# [songname1] <tab> [/full/path/to/song]
# [songname2] <tab> [/full/path/to/song]
# A sample of how this should be configured can be found in $SYNCHRONIZED_LIGHTS_HOME/music/sample/
# To create your own playlist simply create a .playlist file with the songs desired and set the
# playlist_path accordingly.
#
# SMS NOTE: the songname that you define in the playlist can be anything you desire, the songname
# is what users will see when listing the songs via SMS.
playlist_path = $SYNCHRONIZED_LIGHTS_HOME/music/sample/.playlist

# Set the following setting to 'yes' to randomize playback of songs from the
# playlist. Default is to play the songs in the order listed in the playlist.
randomize_playlist = no

# ---------------------------------------------------------------
# 'audio-in' mode specific configurations for the lightshow
# ---------------------------------------------------------------
# Control the lightshow from an audio stream coming from a usb-audio dongle
# See http://lightshowpi.org/usb-audio-in-support/ for
# more details on using audio-in mode.
# mode = audio-in

# The name of the input audio card to use, by default use the default system
# audio input device. You can override this to another card by setting it to the
# name found from the audio_in_cards.py script (in tools directory).
audio_in_card = default

# ---------------------------------------------------------------
# 'stream-in' mode specific configurations for the lightshow
# ---------------------------------------------------------------
# Control the lightshow from an audio stream coming from a streaming source
mode = stream-in

# this example will play a shoutcast/icecast stream
stream_command_string = sudo mpg123 --stdout http://193.34.51.115:80

# Example using Shairport Sync to strem AirPlay https://github.com/mikebrady/shairport-sync
# stream_command_string = shairport-sync -v -o stdout

# You can also use a fifo to get streams like Pandora from players like pianobar

stream_command_string = pianobar
# NOTE: To use pianobar you must set it up to auto login and auto play a station
# refer to this post for an example pianobar config to do this
# http://ubuntuforums.org/showthread.php?t=1533357&p=9746309#post9746309

# A basic pianobar config that will allow you to login and autostart a station
# is included in lightshowpi/config/contrib
# You will need to place in the root users folder
# /root/.config/pianobar/config

# lightshow fifo settings. Used with stream-in option.
#
# To use a fifo you will need to add an alsa plugin to /etc/asound.conf
# A copy of the plugin is included in lightshowpi/config/contrib
use_fifo = False

# ---------------------------------------------------------------
# mode specific configurations shared by audio-in and stream-in
# ---------------------------------------------------------------
# The number of input channels, typically 1 or 2:
# 1 - mono / mic input
# 2 - stereo input
input_channels = 1

# The rate at which to sample input from the usb dongle
input_sample_rate = 48000

1
Jason Justice's profile photoTom Enos's profile photo
4 comments
 
Thanks, I'll look into that
Add a comment...

Caleb B

Hardware Discussion  - 
 
+Tom Enos​ I wanted to see if you ever tested 433mhz receivers with light show pi. as I am interested in the possibility of using it 
1
Caleb B's profile photoTom Enos's profile photo
10 comments
 
Just what's in the config file.
Add a comment...

Luca Silva

Software Help (LightshowPi)  - 
 
Hello, it's me, again... I'm having some troubles with lightshow pi, this time with the stream in mode. Shairport works fine the audio from the jack comes out normally but the light do not react in any way. I would really like to solve this problem since selecting the song everytime is kind of annoying. But still thanks for providing this software and thanks even more for the support :D
1
Luca Silva's profile photo
15 comments
 
rgb strip* argh damn you autocorrect
Add a comment...

Caleb B

Hardware Discussion  - 
 
OK I'm considering adding a relay board but wanted to connect it over cat 5 cable. instead of running extension cable the 100ft distance. Wasn't sure how it would work over that distance and if there would be a delay. 
1
Caleb B's profile photoKnC Mc's profile photo
15 comments
KnC Mc
 
+Tom Enos & +Russell Pyburn have both mentioned they were going to try wireless transmitters. Not sure where they are at with it though. Search the group for 433 and you should find a few threads discussing it. ;)
Add a comment...

David Rio

Hardware Discussion  - 
 
Hi everyone,

I was wondering if anyone has successfully used WS281* or SK6812 based neopixels with lightshowpi. If so, could you please send the config file you used?

Thanks.
1
Tom Enos's profile photo
 
It's more then a config item. +Ken B has a version that uses an AllPixel as a go between.
If you look around here you will find links to his repo.

Other then that the ws281x leds are not supported.
Add a comment...

Russell Pyburn

General Discussion  - 
 
Here's what I've done with BiblioPixel so far. I'm using audio in so it was actually easier for me to use their built in audio analysis classes. I've tweaked on the EQ class to make the color spectrum transition throughout the matrice (like rolling a color wheel behind it), and I added the white dancing dots on the bottom portion of the display (white looks overwhelming on camera). It's a start!

https://youtu.be/zAPNOqtKFI0
5
Russell Pyburn's profile photo
2 comments
 
my next project is to find a strong enough but flexible enough mesh that i could secure the leds with and wrap around a tree, etc...
Add a comment...