... | @@ -111,11 +111,13 @@ image from the camera and overwrite any existing now.jpg |
... | @@ -111,11 +111,13 @@ image from the camera and overwrite any existing now.jpg |
|
3. `cd camera` - (change directory)/enter into the camera folder
|
|
3. `cd camera` - (change directory)/enter into the camera folder
|
|
4. `nano camera.sh` - create/edit a file called 'camera.sh'
|
|
4. `nano camera.sh` - create/edit a file called 'camera.sh'
|
|
5. enter the following "shell code":
|
|
5. enter the following "shell code":
|
|
|
|
|
|
```
|
|
```
|
|
wget <full snapshot url, as before> -O now.jpg
|
|
wget <full snapshot url, as before> -O now.jpg
|
|
sleep 3 # in seconds, between frames
|
|
sleep 3 # in seconds, between frames
|
|
./camera.sh
|
|
./camera.sh
|
|
```
|
|
```
|
|
|
|
|
|
6. to save the file, press CTRL-O (output), then confirm the
|
|
6. to save the file, press CTRL-O (output), then confirm the
|
|
filename with enter
|
|
filename with enter
|
|
7. to exit, press CTRL-X
|
|
7. to exit, press CTRL-X
|
... | @@ -198,7 +200,7 @@ advanced: for multiple cameras, just add more `img` tags with |
... | @@ -198,7 +200,7 @@ advanced: for multiple cameras, just add more `img` tags with |
|
the `src` attribute pointing at the correct snapshot filename
|
|
the `src` attribute pointing at the correct snapshot filename
|
|
e.g. `<img src="cam1.jpg">` `<img src="cam2.jpg">` etc
|
|
e.g. `<img src="cam1.jpg">` `<img src="cam2.jpg">` etc
|
|
|
|
|
|
## you're done... for now
|
|
## you're done... for now :)
|
|
|
|
|
|
congratulations, you have created your first camera server
|
|
congratulations, you have created your first camera server
|
|
|
|
|
... | | ... | |