Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trouble auto starting PixelWeb on Raspberry Pi 2
#1
Not sure if this is the right place for this question.

I am using a Raspberry Pi 2 to run an AllPixel. Pixel web runs great when I launch it from the console. The trouble I am having is to have it run automatically in the background anytime the Pi boots up.

I have followed the instructions on the PixelWeb wiki:

add @reboot run-pixelweb > /tmp/pixelweb.log to the crontab

Is there something simple I am missing or is there a different way to do it on the Raspberry Pi?

Thanks for any help.
#2
Hmm... anything show up in that log?
Also, you need to add it to the root crontab
#3
I have tried running it in the root cron and in the pi user cron and no luck.

From /var/log/cron.log

Apr 17 13:50:06 Arbor /USR/SBIN/CRON[2127]: (root) CMD (run-pixelweb > /tmp/pixelweb.log)

Not sure if that means it ran. When i look in pixelweb.log the file is blank

On reboot the web page is not available.

Not sure where to go from here.

Thanks
Bill
#4
what happens when you run "sudo run-pixelweb" manually? Please send the output.
Also, with that cron listing in place, reboot and then run "ps aux | grep run-pixelweb" and send me the results.
#5
When I run Pixel-web manually it runs just fine and I am able to configure and control the strips just fine.
Here is the output:
pi@Arbor ~ $ sudo run-pixelweb
INFO - status - Starting PixelWeb Server
INFO - status - Reading server config
INFO - status - Initializing BiblioPixel
INFO - status - Loading modules
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/bibliopixel/led. pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/bibliopixel/driv ers/visualizer.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/bibliopixel/driv ers/serial_driver.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/bibliopixel/driv ers/network.pyc
INFO - status - Scanning: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnim ations/matrix/
ERROR - status - Error loading /usr/local/lib/python2.7/dist-packages/BiblioPixe lAnimations/matrix/CPUUsage.py
ERROR - status - No module named psutil
ERROR - status - Error loading /usr/local/lib/python2.7/dist-packages/BiblioPixe lAnimations/matrix/anim_eq.py
ERROR - status - No module named pyaudio
ERROR - status - Error loading /usr/local/lib/python2.7/dist-packages/BiblioPixe lAnimations/matrix/FFT_Audio_Animation.py
ERROR - status - No module named pyaudio
ERROR - status - Error loading /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/matrix/perlin_simplex.py
ERROR - status - No module named noise
ERROR - image - Please install Python Imaging Library: pip install pillow
ERROR - status - Error loading /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/matrix/ImageShow.py
ERROR - status - Please install Python Imaging Library: pip install pillow
ERROR - status - Error loading /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/matrix/opencv_video.py
ERROR - status - No module named cv2
ERROR - ImageAnim - Please install Python Imaging Library: pip install pillow
ERROR - status - Error loading /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/matrix/ImageAnim.py
ERROR - status - Please install Python Imaging Library: pip install pillow
ERROR - image - Please install Python Imaging Library: pip install pillow
ERROR - status - Error loading /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/matrix/ImageDissolve.py
ERROR - status - Please install Python Imaging Library: pip install pillow
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/matrix/AnalogClock.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/matrix/SpiningTriangle.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/matrix/circlepop.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/matrix/MatrixRain.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/matrix/bloom.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/matrix/LangtonsAnt.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/matrix/TicTacToe.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/matrix/TallCountdown.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/matrix/Text.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/matrix/TallClock.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/matrix/GameOfLife.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/matrix/BinaryClock.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/matrix/pinwheel.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/matrix/Mainframe.pyc
INFO - status - Scanning: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/strip/
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/strip/Wave.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/strip/RGBClock.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/strip/ColorPattern.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/strip/ColorWipe.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/strip/ColorChase.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/strip/PixelPingPong.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/strip/PartyMode.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/strip/FireFlies.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/strip/LarsonScanners.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/strip/Rainbows.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/strip/ColorFade.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/strip/hexclock.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/strip/Alternates.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/strip/WhiteTwinkle.pyc
INFO - status - Loading: /usr/local/lib/python2.7/dist-packages/BiblioPixelAnimations/strip/BinaryEpochClock.pyc
INFO - status - Stopping current config
INFO - status - Starting config...
INFO - status - Config start success!
INFO - status - BiblioPixel Init Complete
Bottle v0.12.8 server starting up (using StoppableServer(server='wsgiref'))...
Listening on http://0.0.0.0:8080/
Hit Ctrl-C to quit.

After a reboot I ran "ps aux | grep run-pixelweb" and here are the results
pi@Arbor ~ $ ps aux | grep run-pixelweb
pi 2254 0.0 0.1 3576 1808 pts/0 S+ 07:27 0:00 grep --color=auto run-pixelweb

Thanks for the help.


Forum Jump:


Users browsing this thread: 1 Guest(s)