Profile

Cover photo
Anthony Tod
17 followers|55,747 views
AboutPosts

Stream

Anthony Tod

Developer Discussion  - 
 
Problem after sync'ing my fork.

I am trying to get to the point of a pull request for terminal simulation of the brightness channels, which Tom Enos has coached me towards getting to this point.

Things were looking good, but now I have run a sync, I get the following when I try to run synchronised.

ImportError: No module named wiringpi

I have tried running install.sh again in case there were new behaviours.

Anyone know how I have messed up?

sudo python synchronized_lights.py --file /media/test/Aerosmith/Pump\ \(1989\)/16Hz-20kHz-Exp-1f-10sec.mp3
[sudo] password for big_red_frog:
Traceback (most recent call last):
File "synchronized_lights.py", line 135, in <module>
import hardware_controller as hc
File "/home/big_red_frog/lightshowpi/py/hardware_controller.py", line 60, in <module>
import wiringpi
ImportError: No module named wiringpi

1
Tom Enos's profile photoAnthony Tod's profile photo
3 comments
 
pull request is up, hope I pulled the right levers...
Add a comment...

Anthony Tod

commented on a video on YouTube.
Shared publicly  - 
 
Thank you, new to this and was a little lost

Anthony Tod

Software Help (LightshowPi)  - 
 
Struggling with getting light_simulator.py to work.

Hi all, I am in the middle of a mashup project where I have my own coded arduino hanging off a USB port on the raspberry pi running ubuntu mate, with a 60 LED RGB strip on it.

I have code working to allow me to pump 30 frames a second from the raspberry pi over serial to the arduino which handles the bitbashing to the LEDS, and this should mean I can compose my light effects on the raspberry and just push out the LED buffer for display.

Next step is to get my head around LightShowPi.

My intention is to get light_simulator.py working, and then likely gut it to instead render into my 60 pixel buffer in some meaningful though simplistic way and push it out of the serial port.

HOWEVER

I have I believe successfully installed LightShowPi onto ubuntu mate.
I cloned the raspian install script and nothing complained during install.

I modified the networking=server in the overrides.cfg I cloned from default.cfg.

I exported into two terminal the SYNCHRONIZED_LIGHTS_HOME

I launch in the one terminal

python light_simulator.py
/home/big_red_frog/lightshowpi/py/hardware_controller.py:60: DeprecationWarning: The wiringpi2 module has been deprecated, please 'import wiringpi' instead.
import wiringpi2 as wiringpi
streaming on port: 8888
Network client mode starting...
listening on port: 8888

and it sits there.....

I launch in the other terminal

sudo python synchronized_lights.py
/home/big_red_frog/lightshowpi/py/hardware_controller.py:60: DeprecationWarning: The wiringpi2 module has been deprecated, please 'import wiringpi' instead.
import wiringpi2 as wiringpi
streaming on port: 8888


and after a suitable delay I get rauchous midi like music playing, but I see no change in the light_simulator.py terminal, it just sits and waits.

So a few questions...

Why does it force me to use sudo in the synchonized_lights.py, if I am set to server, I thought it would know I wasn't using GPIO and therefore would not trigger the dependancies, what am I likely missing.

How can I debug why I get no change in the simulator window, can I confirm I am getting actual 8 channel data driving from the source? Can I confirm if anything at all is coming into the simulator etc....

Huge appreciation and thanks to anyone that can get me focused in...

1
Anthony Tod's profile photoTom Enos's profile photo
70 comments
 
update wiringpi
sudo pip install wiringpi --upgrade
Add a comment...
Basic Information
Gender
Male
Links