Install the Scouting App

Now that we have a working web server with CGI support running on the Raspberry Pi, we are ready to download and install the scouting app. The scouting app source code is hosted on Github here: The Ubuntu installation on the Raspberry Pi comes with the git command that we will use to download the scouting app.

On the Raspberry Pi, create a 'git' directory: mkdir git, and the change directory into it: cd git. Then use the 'git clone' command to download the repository:

ubuntu@ubuntu:~/git$ git clone

Cloning into 'webscout'...

remote: Enumerating objects: 313, done.

remote: Counting objects: 100% (313/313), done.

remote: Compressing objects: 100% (292/292), done.

remote: Total 313 (delta 17), reused 310 (delta 17), pack-reused 0

Receiving objects: 100% (313/313), 8.92 MiB | 6.59 MiB/s, done.

Resolving deltas: 100% (17/17), done.


The 'git clone' command will create a 'webscout' directory that contains all of the scouting code developed and submitted for use so far. The '2019' folder contains the scouting app for "Destination Deep Space". The '2020' folder contains the scouting app for "Infinite Recharge".

If you look in one of these folders you will see a 'www' directory. This maps to '/var/www' on the Raspberry Pi. If you look in the 'www' directory, you will see the 'cgi-bin' directory and the 'html' directory, just as we have configured the Apache2 web server.

Before we install this code, we should remove the '/var/www/html/index.html' file provided by Apache as a test HTML page. The reason is because the scouting app provides its own default starting page:

ubuntu@ubuntu:~$ sudo rm /var/www/html/index.html



Now we can copy the scouting app into the location to be served by the Apache web server. To install the "Infinite Recharge" scouting app, change directory into 'webscout/2020' and copy the 'www' directory to '/var'. The 'cp -r' option tells the copy command to work recursively to copy the contents of a directory:

ubuntu@ubuntu:~/git$ cd webscout/2020

ubuntu@ubuntu:~/git/webscout/2020$ ls www

ubuntu@ubuntu:~/git/webscout/2020$ ls www

cgi-bin html

ubuntu@ubuntu:~/git/webscout/2020$ ls /var/www

cgi-bin html

ubuntu@ubuntu:~/git/webscout/2020$ ls www/html

admin.html index.html scoutpics upload.html

ubuntu@ubuntu:~/git/webscout/2020$ ls /var/www/html

ubuntu@ubuntu:~/git/webscout/2020$ sudo cp -r www /var


Now you can launch your browser and enter the IP address of your Raspberry Pi in the URL window and you should see the scouting app 'Start' Page:

When you click on 'Start Scouting', you'll notice that the app is preloaded with some early FRC New England events, including two versions of '2020 Week Zero':

You can delete these events by deleting the corresponding event file in the /var/www/cgi-bin/matchdata directory:

ubuntu@ubuntu:~/git/webscout/2020$ cd /var/www/cgi-bin/matchdata/

ubuntu@ubuntu:/var/www/cgi-bin/matchdata$ ls

2020nhgrs.dat 2020nhgrs.elims 2020nhgrs.semis 2020week0.dat 2020wzero.dat

ubuntu@ubuntu:/var/www/cgi-bin/matchdata$ sudo rm 2020week0.dat


Refresh your browser to view the changes.

Copyright 2020
  • Facebook - Black Circle
  • Twitter - Black Circle
  • YouTube - Black Circle
  • Instagram - Black Circle
Follow us on these platforms