Hello to all, I want insert camer pictures from my ip camera, I have a Dahua room,
I have already installed the plugin and the webcam block but it is not clear to me how to see the snapshots.
I tried to save the snapshots on my nas and it works, the camera saves the images, but creates folders for per minute ...
could someone help me?
the camera saves a snapshot every 7 seconds, but I can change it ... look at the attachment
Webcam
-
proger
- Observer

- Posts: 35
- Joined: Tue Jan 16, 2018 4:52 pm
- Location: Norway
- Station model: davis vantage vue
- Software: Meteobridge
- Contact:
Re: Webcam
My webcam ftp to website to a folder called webcamphoto/snap every 2 minutes
then you have to run a cronjob to rename the photofile with a rename script
my script look like this
<?php
$fileList = glob('*.jpg');
var_dump($fileList);
foreach (glob("FI9900EP_00626E6F8B2B/snap/*.jpg") as $filename) {
echo "Renaming " . $filename . " now.</br>";
if(file_exists($filename)) {
rename($filename, "webcam2" . ".jpg");
echo $filename . " is now webcam2" . ".jpg</br>";
}
}
I run the cronjob from cron-job.org every 2 minutes
then you have to run a cronjob to rename the photofile with a rename script
my script look like this
<?php
$fileList = glob('*.jpg');
var_dump($fileList);
foreach (glob("FI9900EP_00626E6F8B2B/snap/*.jpg") as $filename) {
echo "Renaming " . $filename . " now.</br>";
if(file_exists($filename)) {
rename($filename, "webcam2" . ".jpg");
echo $filename . " is now webcam2" . ".jpg</br>";
}
}
I run the cronjob from cron-job.org every 2 minutes
Re: Webcam
the situation is different from me, my room creates folders for me and there is no way to remove the folders!
how can I do?
how can I do?
-
proger
- Observer

- Posts: 35
- Joined: Tue Jan 16, 2018 4:52 pm
- Location: Norway
- Station model: davis vantage vue
- Software: Meteobridge
- Contact:
Re: Webcam
I am no familiar with that camera. But you have to find a solution to upload photofiles from camera to website and then rename photofile with the rename script