Why do you need to add public webcams to our project?
Public Monitoring is a dynamically developing project with a daily audience of 1000+ unique visitors and several thousand users use our data through desktop and mobile applications. Thus, by adding your webcams to our database, you will absolutely free of charge increase the number of referrals from us and the visibility of your resource among the audience in the Russian Federation, the CIS and partly in foreign countries.
First of all, you should know that it is not allowed by law to install and publish webcams that violate the privacy of citizens, as well as add webcams from other websites without the permission of their owners.
Therefore, if you are not the owner of the video cameras installed in your city, but would like to see them in our project both on the site and in the API applications, first of all you will need to find out their owner and either independently contact him by proposing non-commercial cooperation with the project, or send us the contact information for the person in charge. But in no case should you publish other people's webcams in your project on your own behalf!
To add several webcams to your project from your website (for example, a city portal), you need to create a file with a list of active webcams in JSON format automatically from your database or manually, provide access to it through Internet for our server and tell us its URL. Thereby you will save yourself from having to manually add each webcam on the project site and keep track of the relevance of the list of your webcams in the Project.
To solve problems with authorship, we recommend changing your login in the project to mysite.com in your Profile, since It will be displayed in the summary information of your webcam on the map.
An example of an array of webcams:
http://mysite.com/webcams.json
(you can specify your version of the link)
[{
"id": "000", # unique webcam number in your surveillance system
"name": "name of the object of observation", (indexed by search engines if public = true)
"lat": 39.962502, # latitude in decimal form of the location of the object of observation
"lon": -83.006104, # longitude in decimal form of the location of the object of observation
"jpeg": "http://mysite.com/webcam1.jpg", # link to download a snapshot from a webcam in jpeg-format
"page": "http://mysite.com/webcam1.htm", # link to the webcam page on your site (for referrals)
"interval": 30, # update interval for images on this webcam (in minutes 15-60)
"check": 60, # webcam inactivity interval before sending crash notification (in minutes > interval)
"enable": true, # true = webcam is currently active, false = temporarily not working
"public": true, # true = webcam for public access (accessible to all), false = only to the owner
"text": "detailed description of the object of observation" (optional, indexed by search engines if public = true)
}, {..}]
The list of webcams will be downloaded automatically from your server once a day at night or at your request.
Make sure that your server returns the correct HTTP header Last-Modified with the time of the last change of the webcam image GMT. This is necessary to prevent re-downloading of unchanged images (saving traffic) and displaying the correct time of the image in the project. You can check and learn more about Last-Modified at last-modified.com.