Take a snapshot and stream camera view
- RaspberryPi 2 (2017-09-07-raspbian-stretch)
- Olympus Air A01
- Python(2.7.13)
- pip(9.0.1)
- Node.js(v9.0.0)
- Connect to raspberry pi with ssh
- Clone this repositry at user home(~/)
- Edit config file. you must rewrite
[DESCRIPTION]
in each config files. - Edit
/camera/config.py
- Edit
/portforwarding.sh
- Edit
/init.sh
- Change directory to
/streaming/
and runnpm install
- Run
./init.sh
. finish install, RaspberryPi will ReBoot.
- Turn on OlynpusAir and check power led is lighting blue.
- Turn on RaspberryPi and check turning OlympusAir's power led to green. (It mean connection between RaspberryPi and OlympusAir is done.)
- Wait about 30 seconds.
(To confirm that the camera server is available, check that
add_camera
is recorded in api server's logs.)
Confirm that add_camera
is recorded in supsnap api server's logs.
There isn't it? Maybe RaspberryPi can't start server or can't connect to api server.
Check connection between RaspberryPi and OlympusAir and your network environment of RaspberryPi.
Login camera server and do ping [YOUR SUPSNAP API SERVER'S IP ADDRESS]
.
If it failed, camera sercer can't connect to api server.Check your network of RaspberryPi.
Login api server and do 'curl 192.168.255.254:[YOUR CAMERA SERVER'S PORT]'.
If it don't return I'm supsnap camera server!
, api server can't connect to camera server.
Do ps aux | grep sshd
.
Pay attention to only port forwarding process of the camera server.
Are there some process?
It must be unique.
If it's plural, api server can't connect to camera server correctly.
Do sudo kill [THOSE PROCESS ID]
and reconfirm the process is unique.