Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

Adding Cameras to the Database

Thomas Norling edited this page Jun 7, 2016 · 9 revisions

Compared to parsing cameras adding cameras is relatively simple. Navigate to NetworkCameras/Discovery/Add_cameras/ while logged into the development machine. Then enter:

python addCamera.py filepath non_ip

Where 'filepath' is the filepath to the output textfile generated by your parsing script. If you are adding IP cameras 'non_ip' would be replaced by 'ip'

You will be prompted to enter the username and password for the database. After you have successfully logged on to the database you will be asked a series of questions. When it asks you for a temp table name enter the name of the website (e.g. What shows up on the header of the website using '' as spaces), for source enter the base url, replacing '.' with ''. For example if your source website is 'bbc.uk' your source would be 'bbc_uk'. It will then ask if the information it found was correct, look over it and verify with either a 'y' or an 'n'. Lastly it will ask you if the cameras you are trying to add are traffic cameras, answer with a 'y' or an 'n'. If the cameras are added successfully the console will show a readout of how many fields were changed in the database table.

After you have successfully added your cameras, don't forget to delete your text file.

Clone this wiki locally