Access camera images over SCION network¶
We provide a
camerapp Debian package to easily install and run
camerapp in the SCIONLab environment.
To install the
camerapp package, run:
sudo apt install scion-apps-camerapp
See Installation for details.
To use the image fetcher, you will need to specify the address of an image server. A sample image server that can be contacted by any client is set up at
Images can be fetched like this:
scion-imagefetcher -c 17-ffaa:1:89,[127.0.0.1]:0 -s 17-ffaa:0:1102,[184.108.40.206]:42002
-s specifies the image server whereas
-c specifies your machine.
-c flag can be omitted if a SCION localhost address is configured. To do this, add your
SCION host to the
/etc/hosts file. Below you can see an example:
# regular IPv4 hosts # .... # regular IPv6 hosts # .... # SCION hosts 17-ffaa:0:1,[192.168.1.1] localhost
imagefetcher is also available via the webapp.
imageserver application keeps looking for
.jpg files in the current directory, and offers them for download to clients on the SCION network. The assumption is that the application is used in conjunction with an application that periodically writes an image to the file system. After an amount of time (currently set to 10 minutes), the image files are deleted to limit the amount of storage used.
The image server is launched as follows:
scion-imageserver -s 17-ffaa:1:89,[127.0.0.1]:40002 &
-s specifies your server address. Again, it can be omitted by specifying a SCION localhost like above. The server then
uses localhost to bind to. In this case, the port can be specified with the
scion-imageserver -p 40002 &