Author Topic: Hikvision FTP access  (Read 3322 times)

0 Members and 1 Guest are viewing this topic.

Offline Jáchym

  • Meteotemplate Developer
  • Forecaster
  • *****
  • Posts: 8605
    • Meteotemplate
Hikvision FTP access
« on: February 07, 2016, 12:40:01 PM »
Hi guys,
my friend has the Hikvision camera and we have a problem with the FTP upload.
Basically, the camera now uploads all the images into a directory "IP-camera", which however is directly in the root of the folder next to the httpdocs - this obviously means that it cannot be accessed from the web because it is above the www (httpdocs) directory.

The problem is that only he can see the images, when you use the IP address, it loads, but only if he looks at it from his server from the same IP
try: http://www.lefkas-weather.com/camera.html

The other problem is that the camera always creates a new image - the images pile up on the server.

He asked me if I could write a PHP script, that would always take the latest image, rename it to some static name and delete the rest. Because currently, not only do the images pile up, but they all have a name based on the current timestamp, which also makes it impossible to use on any page because you cannot have a static link to the image.

Writing the actual PHP script is not a problem and I know how to do it, but the problem is that obviously unless the images are somewhere in the httpdocs, I cannot access them via PHP and make a copy to some accessible directory. The idea is to run this script by a CRON - probably using Meteobridge built-in CRON functionality. But again, that PHP script must be in the httpdocs so that I can set the URL for the CRON job.

It is slightly complicated given I also do not have direct access to his camera settings. I have access to the FTP where I see the IP camera directory, but it does not really help.

Im sure some of you have this camera so if anyone knows how to set the FTP uploads so that it can be accessed from the outside, I would very much appreciate any advice.

Thanks

Offline PaulMy

  • Forecaster
  • *****
  • Posts: 5520
    • KomokaWeather
Re: Hikvision FTP access
« Reply #1 on: February 07, 2016, 01:06:58 PM »
Hi Jachym,
Is this link helpful where we have a script to rename the uploaded time stamped image, as well as how to have the built in Hikvision IP FTP send to webserver. http://www.wxforum.net/index.php?topic=23310.msg275235#msg275235

EDIT: Missed this link http://www.wxforum.net/index.php?topic=28118.0

Paul
« Last Edit: February 07, 2016, 01:09:48 PM by PaulMy »

 

anything