Giter Club home page Giter Club logo

hikvision-download-assistant's People

Contributors

cfryanr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

hikvision-download-assistant's Issues

New Hikvision Firmware Gives "totalMatches" Error.

Newest hikvision firmware gives this error and I have recompiled the jar file to remove this error but I am NOT a programmer so please someone check this:

ERROR: Unrecognized field "totalMatches" (class rr.hikvisiondownloadassistant.Model$CMSearchResult), not marked as ignorable (6 known properties: "searchID", "numOfMatches", "version", "responseStatusStrg", "responseStatus", "matchList"])
at [Source: (StringReader); line: 6, column: 31] (through reference chain: rr.hikvisiondownloadassistant.Model$CMSearchResult["totalMatches"])

The fix I did was to put in the missing field below inside the Model.java source code and recompiled everything as described by creator
private long totalMatches;

here is the code with the line I added:
@getter
@NoArgsConstructor
public static class CMSearchResult {
private String version; // e.g. 2.0
private String searchID;
private boolean responseStatus;
private String responseStatusStrg; // e.g. OK, e.g. MORE (when paginating), e.g. NO MATCHES (for empty result)
private long numOfMatches;
private long totalMatches; // HERE IS THE LINE I ADDED
private List matchList;
}

Here is the file working on the latest firmware for my Hikvision ds-2cd2087g2-lu camera

hikvision-download-assistant-modified-by-klo.zip

Feature request: delete downloaded videos on camera

Hi!
A great effort, which helped me a lot (being on Linux only, this is my only way of downloading what my cameras recorded on their SC cards!). Thanks a lot!

Would it be possible to add a "delete after successful download", or just "delete all" feature, to prevent the SD card from overflowing?
One could then have a script download everything on the camera regularly, without the hassle of using the Hikvision web frontend to erase/reformat the SD Card...

Thanks again,
Jan

curl: (22) The requested URL returned error: 404 Not Found

Hello
I have tried your script on my new Hikvision DS-2CD2087G2-LU
The script finds all the images but gets error when trying to download them

I use Hikvision to make timelapses and take images every 2 seconds.
I save images directly to my PC's samba share and to the Hikvision SD card in case of power loss (hikvision camera are on UPS)
If I have a power loss I do not have Windows... I run Linux so here your script could help me getting files back to the PC when the PC are booted up again.

--- when I manually run this line I get this error:

$ java -jar ../hikvision-download-assistant.jar 192.168.3.230 admin PASSWORD --from-time 16:00 --to-time 16:05 | cut -d '|' -f 5 | while read curl_cmd; do eval $curl_cmd; done

Type|EventType|Start|End|Curl
-----------------------------
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found

Found 0 videos and 149 photos
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (22) The requested URL returned error: 404 Not Found

etc...etc...

--- When I dont try to download the images, the script lists the files

 java -jar ../hikvision-download-assistant.jar 192.168.3.230 admin PASSWORD --from-time 16:00 --to-time 16:05 | cut -d '|' -f 5
Getting photos and videos from "Saturday Oct 16, 2021 at 4:00:00 pm CEST" to "Saturday Oct 16, 2021 at 4:05:00 pm CEST"

Type|EventType|Start|End|Curl
-----------------------------
curl -f --anyauth --user admin:PASSWORD 'http://192.168.3.230/Streaming/tracks/103/?starttime=20211016T140002Z&endtime=20211016T140002Z&name=ch01_0800024600000175058_00&size=530036' --output 2021-10-16T16-00-02.jpeg
curl -f --anyauth --user admin:PASSWORD 'http://192.168.3.230/Streaming/tracks/103/?starttime=20211016T140004Z&endtime=20211016T140004Z&name=ch01_0800024600000175059_00&size=528035' --output 2021-10-16T16-00-04.jpeg
curl -f --anyauth --user admin:PASSWORD 'http://192.168.3.230/Streaming/tracks/103/?starttime=20211016T140006Z&endtime=20211016T140006Z&name=ch01_0800024600000175060_00&size=529072' --output 2021-10-16T16-00-06.jpeg
curl -f --anyauth --user admin:PASSWORD 'http://192.168.3.230/Streaming/tracks/103/?starttime=20211016T140008Z&endtime=20211016T140008Z&name=ch01_0800024600000175061_00&size=528430' --output 2021-10-16T16-00-08.jpeg
curl -f --anyauth --user admin:PASSWORD 'http://192.168.3.230/Streaming/tracks/103/?starttime=20211016T140010Z&endtime=20211016T140010Z&name=ch01_0800024600000175062_00&size=528643' --output 2021-10-16T16-00-10.jpeg

ERROR: Index 1 out of bounds for length 1

java -jar hikvision-download-assistant.jar 192.168.5.5 admin password123 --from-time 2pm --to-time 3pm
Getting photos and videos from "Monday Mar 15, 2021 at 2:00:00 PM IST" to "Monday Mar 15, 2021 at 3:00:00 PM IST"

Anyone is using the project getting the above error? @cfryanr any idea why am I getting this..?
Tried the steps mentioned in the project, wondering why this is not working. Kindly do help me with this regard.

Thanks,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.