Stream

Join this community to post or comment

Bennett Lauber

Software Help (LightshowPi)  - 
 
Quick question:

What Git repository should I be using to get the webUI?

I've been using the following with a fresh jessie lite:

sudo apt-get install git-core
cd ~
git clone https://tom_slick@bitbucket.org/tom_slick/lightshowpi.git
cd lightshowpi
git fetch && git checkout Webui_stable
cd /home/pi/lightshowpi
sudo chmod +x install.sh
sudo ./install.sh
sudo reboot

Everything works except PiFM, Yes I changed the gpio.

On two separate Pis (an A+ and a 2B) when i set FM to true, and reboot when I play a song, the lights flash, and then the server locks up.
1
Bennett Lauber's profile photoTom Enos's profile photo
3 comments
 
You can post here.
https://groups.google.com/forum/#!forum/lightshowpi-dev

But I am working on a newer version that is a little different.
https://bitbucket.org/tom_slick/lightshowpi-webui

It is being updated to use the master branch and will have all the added features of the master branch when finished.  It will be able to run from the command line or the webui.  Still in the alpha stage right now, but it works.
Add a comment...

Stu Dapples

Software Help (LightshowPi)  - 
 
Hi Folks,

OK, I've been bugging the life out of Todd, I think he may be getting bored of me now!
I have been trying to install and run LightshowPi for a couple of days and getting there, I think!
Just run the install.sh file and everything appeared to work until it got to the rpy_audio_levels where it failed - see picture for details!
Anyone got any thoughts?
Picture doesn't look big enough to be of use? It is telling me not to use file as it is a result of failed Cythin compile?!!!

Please note! I am VERY new to this so be gentle :)

Stu
1
Tom Enos's profile photoStu Dapples's profile photo
16 comments
 
We have lift off! 7 out of 8 channels is not bad! Bit of wiring I think...

Thank you all so much for your advice and support, much appreciated.

My next trial is to run some proper mp3 tunes through and see how they behave.... Not sure where all the settings are but I'm going to have a read up.

I'm sure I'll be back on the boards asking questions again soon,

Stu 
Add a comment...

Geoff Grant

Software Help (LightshowPi)  - 
 

I have shairport-sync installed and running. How do I setup the config file to recognize the stream from it?

I tried the command shairport-sync -v -o stdout

I get an error saying invalid output specified

Any help here?
1
Geoff Grant's profile photoTom Enos's profile photo
3 comments
 
The only thing I see different is Aaron used the full path
/usr/local/bin/shairport-sync -v -o stdout

And again what was the full trackback of the error?
Add a comment...

Ronald Merema

Software Help (LightshowPi)  - 
 
How to install Lightshowpi + webui

I have tried several times to instaal lightshowpi, everythime with issues and errors. I could not find a good tutorial how to install lightshowpi with webui.
Now i have all sorted oud.

You can install lightshow pi with and without webui, i tell it all from scratch with a fresh SD with only wheezy or jessie installed.

1 - lightshowpi

sudo raspi-config
- expand sd card
- set time zone
sudo reboot

sudo apt-get update
sudo apt-get upgrade
sudo reboot

sudo apt-get install git-core
cd ~
git clone https://togiles@bitbucket.org/togiles/lightshowpi.git
cd lightshowpi
git fetch && git checkout stable
cd /home/pi/lightshowpi
sudo chmod +x install.sh
sudo ./install.sh
sudo reboot


2 - lightshowpi wit webui

sudo raspi-config
- expand sd card
- set time zone
sudo reboot

sudo apt-get update
sudo apt-get upgrade
sudo reboot

sudo apt-get install git-core
cd ~
git clone https://tom_slick@bitbucket.org/tom_slick/lightshowpi.git
cd lightshowpi
git fetch && git checkout Webui_stable
cd /home/pi/lightshowpi
sudo chmod +x install.sh
sudo ./install.sh
sudo reboot

Acces webui in your browser with: <ipadres>:8080
example: 192.173.1.223:8080

This is a complete tutorial how to install Lightshowpi, maybe not every command is neccesary, but it works.

I hope this tutorial wil help somebody
1
Add a comment...

Gary Webb

Software Help (LightshowPi)  - 
 
I have installed lightshowpi but when i try and run it to check my hardware setup it says cannot find default etc.What have i done wrong i have the set up with a 40 pin raspberry pi 2 a t cobbler to help out and also i am using a expander. I am using this because it is the only configuration i can find in the wiring diagrams.I would love to just use something simpler but have not found anything yet or seen any diagrams ,sorry to you all but i am a beginner and i just want to sort this out before i reach 60
1
Gary Webb's profile photoTom Enos's profile photo
4 comments
 
You should be fine.  If you use the same folder and the install went fine the first time then everything was already set.  If it would make you feel better then delete the symlink and run the installer again, but you do not need to 

To delete the symlink
sudo rm /usr/bin/ffmpeg
Add a comment...

Ronald Merema

Software Help (LightshowPi)  - 
 
Hello, i hope somebody can get met help to start with lightshowpi.

I have installed lightshowpi with the following commands in putty.

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install git-core
cd ~
git clone https://tom_slick@bitbucket.org/tom_slick/lightshowpi.git
cd lighshowpi
git fetch && git checkout Webui_stable
sudo ./install.sh (doesn't work, i had to run first:)
sudo chmod +x install.sh

it looks like everything installa fine.

But what to do now?
How do i start lightshow pi web ui
i have searched a lot, but can't find any tutorial




1
Sanjay Jude D'Souza's profile photo
 
py/webapp.py &
This will run the webapp in the background.
to access the webpage http://<IP of Pi>:8080

Add a comment...

Matthias Pröll

Software Help (LightshowPi)  - 
 
Can someone help me?
I wan't that only 1 channel will be used in the same time bacause I use a 5m LED RGB strip and the most time I get white color.... :/
For example for the bass only red and so on ;)

Thank you in advance:)
1
Matthias Pröll's profile photoTom Enos's profile photo

Caleb B

Software Help (LightshowPi)  - 
 
Here +Tom Enos​. Yes I deleted Cache files in music folder
1
Caleb B's profile photoTom Enos's profile photo
3 comments
 
Correct, custom_channel_mapping use 1 - 16 in your case.
Add a comment...

Kevin Aherne

Software Help (LightshowPi)  - 
 
Hi, my first attempt at installing LightshowPi and I keep getting the error:
Cloning into 'WiringPi'...
Fatal: read error: connection reset by peer
./install.sh: line 82: cd: wiringPi: No such file or directory
./install.sh: line 84: ./build: No such file or directory
Houston we have a problem.....
Git and configure WiringPi2 failed with exit code 0

I have run the  sudo apt-get update and tried again..no joy
I have renamed the lightshowpi folder, started again, with the sudo apt-get update prior to the install and still the same error.

Any idea what I'm missing / getting wrong ?
1
Kevin Aherne's profile photo
3 comments
 
LightshowPi installed, thank you Tom.
Add a comment...

Kai Pazdzewicz

Software Help (LightshowPi)  - 
 
Hello,
I'm new in lightshowpi and i require some help.
Every time i want to start the software in audio-in mode it works just fine, but after some time (about 20 seconds, maybe some times more) it shows the error in the screen.

I hope someone can help me how i fix this error message. I tried everything, even switching my USB Sound Card into USB 1.1 mode.
1
August Allen's profile photoTom Enos's profile photo
4 comments
 
+August Allen your issue is different then +Kai Pazdzewicz 's.  
Add a comment...

Garnett Haines

Software Help (LightshowPi)  - 
 
I am trying to setup my USB audio card ( Hexin Sound Audio controller). I am using model B rev2 with Jessie installed. My problem is that I can't find the /etc/modprobe.d/alsa-base.conf file that needs to be modified. Any help would be appreciated.
1
Tom Enos's profile photo
 
Jessie changed that.  I forget where it is now, but there is an easier way

Switch to the master branch and run the installer again to install some new dependencies that have been added.

cd ~/lightshowpi
git fetch && git checkout master
sudo ./install.sh

next in your config set audio_in_card and audio_out_card to the name of your USB sound card
To get the proper name of your card use this command
aplay -L | grep sysdefault

an example of the output looks something like this
sysdefault:CARD=ALSA
sysdefault:CARD=Device

sysdefault:CARD=ALSA is the default alsa device

sysdefault:CARD=Device is my USB sound card (yours my be different)

create your overrides.cfg and add this to it 

[lightshow]
audio_in_card = sysdefault:CARD=Device
audio_out_card = sysdefault:CARD=Device

adjust for what your card returns 
Add a comment...

Bennett Lauber

Software Help (LightshowPi)  - 
 
PiFM

I'm having some issues with PiFM.. It isn't working and when I set FM to true in the webUI it seems to lock things up. Witching back to false, everything runs perfectly.

Is there a troubleshooting guide that anyone can point me to? Where are the logs?

(running on a RPI A+)
1
Tom Enos's profile photo
Add a comment...

Amir Azmi

Software Help (LightshowPi)  - 
 
I've setup shairport-sync and it works i can see my raspberry pi on itunes when i run shairport-sync -v -o stdout. tho when i play a song the command prompt starts going crazy. if set shairport to start on boot it works fine and output sound as normal.

but how do I get this working with lightshowpi?
i've uncommented from defaults.cfg

 mode = stream-in,
stream_command_string = shairport-sync -v -o stdout,

yet I have no idea how to get it to work together.
running synchronized_lights.py simply plays one of the test tunes
i'm also on master branch
what am I doing wrong here?
1
Amir Azmi's profile photo
3 comments
 
+Tom Enos nvm, apparently i had a /.lights.cfg that i forgot to delete that was overwriting the mode= command. it works now
 thanks :)
Add a comment...

Gary Webb

Software Help (LightshowPi)  - 
 
When i try to check the hardware i get the following message:-
python :can't open file'py/hardware_controller.py--state=flash'[errno2]no such file or directory, this i actually tried earlier and i got it working now it has gone as you can see,i even went to cd lightshowpi and tried it but the same pleasde help
1
Gary Webb's profile photoBruce Goheen's profile photo
3 comments
 
No problem, we all get that way
Add a comment...

Amir Azmi

Software Help (LightshowPi)  - 
 
I was using the webui to change the gpio pins and forgot to put a "," between pins and now none of the scripts would run and give me this error:
I've tried reinstalling the stable and webui branch and restarting my pi but it just wont go away
1
Tom Enos's profile photoAmir Azmi's profile photo
2 comments
 
+Tom Enos it worked! thanks!
Add a comment...

Jonathan Odom

Software Help (LightshowPi)  - 
 
update: missing folder in path to include "/home/pi/..... " fixed my issue.

need some help with this error code. got lightshow pi installed and done hardware test and all seems good try to play sample song and get this any help is appreciated. not sure which file is missing are where to check.


Traceback (most recent call last):
  File "py/synchronized_lights.py", line 465, in <module>
    play_song()
  File "py/synchronized_lights.py", line 354, in play_song
    musicfile = decoder.open(song_filename)
  File "/usr/lib/python2.7/decoder.py", line 734, in open
    raise IOError, (2, "No such file or directory: '%s'" % name)
IOError: [Errno 2] No such file or directory: '/home/lightshowpi/music/sample/ovenrake_deck-the-halls.mp3'
1
Jonathan Odom's profile photoDranod's profile photo
3 comments
Dranod
 
Make sure you aren't using a GPIO pin that's in use by something else.
Add a comment...

Caleb B

Software Help (LightshowPi)  - 
 
Ok i have 2 channels flashing the same time, it will play songs individually. But wont play playlist now. Heres the error:

pi@raspberrypi:~/lightshowpi $ sudo python py/synchronized_lights.py --playlist=/home/pi/lightshowpi/music/sample/.playlist
Traceback (most recent call last):
File "py/synchronized_lights.py", line 852, in <module>
play_song()
File "py/synchronized_lights.py", line 676, in play_song
output, fft_calc, music_file, light_delay = setup_audio(song_filename)
File "py/synchronized_lights.py", line 419, in setup_audio
sample_rate = music_file.getframerate()
AttributeError: 'NoneType' object has no attribute 'getframerate'
pi@raspberrypi:~/lightshowpi $
1
Tom Enos's profile photoCaleb B's profile photo
10 comments
Caleb B
 
Its working perfectly, thanks for all the help 
Add a comment...

Caleb B

Software Help (LightshowPi)  - 
 
Ok everything is working, but I cannot seem to get channels 7 and 8 to flash exactly at the same time. Any ideas?
1
Tom Enos's profile photo
 
Are you using custom_channel_mapping?  Did you delete the cache files?
Add a comment...

August Allen

Software Help (LightshowPi)  - 
 
Whoops, +Tom Enos thank you for your response. I accidentally deleted my old post when I went to add a photo of my new error. I started over with a new overrides.cfg and commented out the mode=playlist and uncommented mode=audio-in. My error is in the attached photo. This may be a hardware issue since it's not recognizing my audio_in_card. Hopefully fixes when I get the recommended SABRENT Adapter. Please let me know if you have any other ideas!

My old post I accidentally deleted:

"Successfully setup a Raspberry Pi 2 with 8 channel mechanical relay today using all the great tutorials here, many thanks! I could use some guidance on getting audio-in to work though.

I'm not sure if my issue is hardware/software or both. I altered the overrides.cfg file to mode=audio-in but whenever I run py/synchronized_lights.py it throws the attached error and then the relays flash to a random default song (whether I have audio-in connected or not).

I have purchased the recommended Sabrent Adapter and am waiting for it to arrive, but I believe the USB to 3.5mm adapter I am currently using is compatible. I've tried adjusting the default soundcard according to the wiki but /etc/modprobe.d/alsa-base.conf does not show up, even when showing hidden files.

I'm fairly new to Rpi and programming but so far I have been able to figure everything out for my project alone, but I'm stumped by this one! I'd like to be able to hook up an iPhone and play any song off it. Wiring the lights, Rpi, and relay has been easy - I'm just stuck on hooking up the smartphone. I appreciate any advice, thank you!"


1
Tom Enos's profile photoAugust Allen's profile photo
4 comments
 
Oh good to know. Thanks for all the help!
Add a comment...