Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • P pi-cameraserver
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Kinabalu Coders
  • pi-cameraserver
  • Wiki
  • a simpler camera server

a simpler camera server · Changes

Page history
Update a simpler camera server authored Jul 22, 2019 by null pointer's avatar null pointer
Show whitespace changes
Inline Side-by-side
a-simpler-camera-server.md
View page @ d3af310d
......@@ -147,12 +147,31 @@ note: do not close the terminal window, let it run endlessly
in case the window gets closed, just re-do step 1, 3, 9
advanced: if you have more cameras, repeat these steps, and open
more terminal windows (one per camera) fetching the unique camera
#### advanced camera scripts
if you have more than one camera, repeat these steps with more
terminal windows (one per camera) fetching the unique camera
snapshot url. don't forget to change the `-O` parameter so that each
camera will be written to a different snapshot file e.g.
"`wget ... -O cam1.jpg`", "`wget ... -O cam2.jpg`", etc
alternatively, you can also create a single file `.sh` like this:
```
wget <cam 1 snapshot url, as before> -O cam1.jpg
wget <cam 2 snapshot url, as before> -O cam2.jpg
wget <cam X snapshot url, as before> -O camX.jpg
sleep 3
./camera.sh
```
lastly, if you don't like the `sleep 3` and `./camera.sh` line
that calls the file over and over again, you can also use the
`watch` command to schedule periodic running of the file
e.g. `watch -n 5 ./camera.sh` - note: it is beyond the scope
of this document to discuss usage of this command, but feel
free to try it out :)
### camera server - part 1: preparing the environment
we must install `php` on the raspberry pi so we can run a
......
Clone repository
  • a simpler camera server
  • Home