simple single threaded raspberry pi webserver for displaying streaming
output via firefox and chrome browser similar to a security
web camera but for the flir lepton module. (only single user)
Uses Mjpeg streaming which is semi-realtime (no streaming).
Does not work with Internet Explorer.
Once unzipped.
sudo python web.py
starts a listener on port 8080 of your pi.
Access via firefox
http://YourRaspberryIpAddress:8080 from your client machine (ie where your browser is located).
For chrome you will need to open the ChromeOnly.html and edit your
raspiberry ip address into it. And then open the chromeonly.html from your desktop
as chrome needs additional help in working but it can work.
The exe's are compiled with
Raspberry pi b+ (512 meg edition) and left for your convenience.
Wiring of the lepton is /dev/spidev0.1 which is ce1 (pin 26) ?
Uses python and pil so you will have to have those installed.
For other Models of pi assumed you can just remake the source code from the sub directories.
/agcenable
/frame
run the command
make
in each of the above directories, should result in new
compiled version for your particular pi version
Most of the code is original pure engineering with some glue logic. The only real difference is agc
enable/disable in the Lepton_I2C.cpp module.
Im sure it can be made better but its food for thought.
Works well, allows me to walk around with nexus tablet and view output from battery
packed pi with wifi adapter.
You can resize automatically the image etc. Means you no longer need an output
on the pi module as previously i was using a adafruit tft module.
Cheers and good luck.
Traceback (most recent call last):
File "web.py", line 7, in <module>
import Image
ImportError: No module named Image
Tried this and it worked:
sudo apt-get install python-imaging python-imaging-tk
getting this error when open web browser failed read:maybe noise on spi bus or incorrect wiring web.py