Author Topic: Weather34 and Hikvision IP Camera (DS-2CD2T55FWD-I5)  (Read 426 times)

0 Members and 1 Guest are viewing this topic.

Offline rul3zo

  • Member
  • *
  • Posts: 5
    • PWS
Weather34 and Hikvision IP Camera (DS-2CD2T55FWD-I5)
« on: October 11, 2019, 08:36:50 AM »
Hi,
I try to connect hikvision camera (DS-2CD2T55FWD-I5, Firmware: V5.5.61 build 180718) to a script-based website from Weather34, but camera requires login and password. I was configure the camera ( link format to camera) for skip the login process, but did not work ...
There is a possibility in this camera or in this script  an unauthorized image from camera.

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1485
    • My PWS at Leuven Belgium Europe
Re: Weather34 and Hikvision IP Camera (DS-2CD2T55FWD-I5)
« Reply #1 on: October 12, 2019, 03:50:48 AM »
Hi,
I try to connect hikvision camera (DS-2CD2T55FWD-I5, Firmware: V5.5.61 build 180718) to a script-based website from Weather34, but camera requires login and password. I was configure the camera ( link format to camera) for skip the login process, but did not work ...
There is a possibility in this camera or in this script  an unauthorized image from camera.

You can add the password and loginID to the url. Example:
If this is an url   http://yourhome.ddns.net:554/cam/xyz.jpg
Add the loginID (f.i.  admin) and password  (f.i. mypass) as  http://admin:mypass@yourhome.ddns.net:554/cam/xyz.jpg
Be aware that when using such an  URL there are a lot of special characters NOT allowed in the loginID or password.
F.I. do not use characters such as & : . # or @  as they have other meanings in an URL

Wim
Support for Leuven-Template & Scripts  at this forum
Support for the PWS_Dashboard (HWS-template) for WD a.o.  http://pwsdashboard.com/
Script sponsors https://support.leuven-template.eu/userlistScripts.php
Template sponsors https://support.leuven-template.eu/userlist.php

Offline rul3zo

  • Member
  • *
  • Posts: 5
    • PWS
Re: Weather34 and Hikvision IP Camera (DS-2CD2T55FWD-I5)
« Reply #2 on: October 12, 2019, 08:16:07 AM »
Thank you for your response Wim!
However, I tried tan record path and other ...

for example:
http://login:pass@myadress.com:8989/onvif-http/snapshot
or
http://login:pass@myadress.com:8989/ISAPI/Streaming/channels/101/picture
or
http://login:pass@myadress.com:8989/Streaming/Channels/1/picture?snapshotImageType=JPEG
... end
http://myadress.com:8989/ISAPI/streaming/channels/101/picture?auth=YWRtaW46MTIzNDU=
(coding pass and login in web adress)

Unfortunately, the script does't always see the image. When I type this adresess in browser (to check if the address is correct), always have asks for the password and login :(

Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1485
    • My PWS at Leuven Belgium Europe
Re: Weather34 and Hikvision IP Camera (DS-2CD2T55FWD-I5)
« Reply #3 on: October 12, 2019, 08:35:03 AM »
Thank you for your response Wim!
However, I tried tan record path and other ...
for example:
. . . shortened . . .
http://myadress.com:8989/ISAPI/streaming/channels/101/picture?auth=YWRtaW46MTIzNDU=
(coding pass and login in web adress)

Unfortunately, the script does't always see the image. When I type this adresess in browser (to check if the address is correct), always have asks for the password and login :(
https://ipcamtalk.com/threads/get-still-image-through-url-from-hikvision-nvr-solved.6279/
It mentions that the last link should works as
http://user:password@192.168.0.xxx/ISAPI/Streaming/channels/101/picture

There are tons of different messages when you google for   hikvision  onvif-http/snapshot

Succes, Wim
Support for Leuven-Template & Scripts  at this forum
Support for the PWS_Dashboard (HWS-template) for WD a.o.  http://pwsdashboard.com/
Script sponsors https://support.leuven-template.eu/userlistScripts.php
Template sponsors https://support.leuven-template.eu/userlist.php

Offline rul3zo

  • Member
  • *
  • Posts: 5
    • PWS
Re: Weather34 and Hikvision IP Camera (DS-2CD2T55FWD-I5)
« Reply #4 on: October 12, 2019, 02:13:05 PM »
Unfortunately, it still doesn't work. ..

http://pobiedziska.e-meteo.pl - mini webcam
and
http://pobiedziska.e-meteo.pl/webcam.php


Online wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1485
    • My PWS at Leuven Belgium Europe
Re: Weather34 and Hikvision IP Camera (DS-2CD2T55FWD-I5)
« Reply #5 on: October 12, 2019, 04:32:33 PM »
Unfortunately, it still doesn't work. ..

http://pobiedziska.e-meteo.pl - mini webcam
and
http://pobiedziska.e-meteo.pl/webcam.php

On an iPad it works OK
On a Mac it  works OK in Safari and in FireFox
It does not work in Chrome, the inspect console shows this error:
Quote
[Deprecation] Subresource requests whose URLs contain embedded credentials (e.g. `https://user:pass@host/`) are blocked. See https://www.chromestatus.com/feature/5669008342777856 for more details.

That is a pity.

So you have to upload a jpg form the camera to your website every so many minutes and use the link to the uploaded picture in your scripts.
That only works if your camera can upload a jpg or png with always the same name.

Wim
« Last Edit: October 12, 2019, 04:37:38 PM by wvdkuil »
Support for Leuven-Template & Scripts  at this forum
Support for the PWS_Dashboard (HWS-template) for WD a.o.  http://pwsdashboard.com/
Script sponsors https://support.leuven-template.eu/userlistScripts.php
Template sponsors https://support.leuven-template.eu/userlist.php

Offline rul3zo

  • Member
  • *
  • Posts: 5
    • PWS
Re: Weather34 and Hikvision IP Camera (DS-2CD2T55FWD-I5)
« Reply #6 on: October 13, 2019, 03:29:24 AM »
That's right, ... additionally, it doesn't work on PC in "internet explorer 11". I will have to fasten a PHP script that changes "subsequent" file names from the server on the ftp server to one "image.jpg" - http://pobiedziska.e-meteo.pl/camera or I will still try to test the password encoding in the address - "?auth=YWRtaW46MTIzNDU=" on this website: https://www.base64encode.org/


ok, now I have encrypted the login and password in the address. Now it doesn't work in IE from Microsoft (which means nothing important) and
android mob.phones
Thank you Wim for your time and help.
« Last Edit: October 13, 2019, 08:28:51 AM by rul3zo »

Online PaulMy

  • Forecaster
  • *****
  • Posts: 4551
    • KomokaWeather
Re: Weather34 and Hikvision IP Camera (DS-2CD2T55FWD-I5)
« Reply #7 on: October 13, 2019, 10:47:59 AM »
Quote
So you have to upload a jpg form the camera to your website every so many minutes and use the link to the uploaded picture in your scripts.
That only works if your camera can upload a jpg or png with always the same name.
Quote
I will have to fasten a PHP script that changes "subsequent" file names from the server on the ftp server to one "image.jpg

This may help  http://www.wxforum.net/index.php?topic=33009.0

Enjoy,
Paul


Davis Vantage Pro 2 Plus 24-FARS Wireless
Envoy/USB DataLogger/Cumulus v.1.9.4   -   Vue Console/WiFiLogger/CumulusMX
Komoka, ON  Canada
www.komokaweather.ca   www.komokaweather.com   www.komokaweather.com/weather28/  
www.komokaweather.com/pws/index.php
Blitzortung Station #1076 www.lightningmaps.org/blitzortung7/america/index.php?bo_page=statistics&bo_show=network&lang=en&bo_station_id=969