Retrieving Foscam System Logs

Hello, I would like to automatically export the system logs from either my camera’s or ideally from my Foscam NVR through scripting or any other automation solution.

I’m testing with CGI (/cgi-bin/CGIProxy.fcgi?cmd=getLog) but this doesn’t get me the time & date or I don’t know how to interpret the output:

<CGI_Result>
0
330
10
1470953580%2Badmin%2B167880896%2B3
1470953579%2Badmin%2B167880896%2B4
1470953551%2Badmin%2B167880896%2B3
1470953550%2Badmin%2B167880896%2B4
1470953522%2Badmin%2B167880896%2B3
1470953521%2Badmin%2B167880896%2B4
1470953487%2Badmin%2B167880896%2B3
1470953486%2Badmin%2B167880896%2B4
1470953458%2Badmin%2B167880896%2B3
1470953457%2Badmin%2B167880896%2B4
</CGI_Result

And I can only get like 10 entries at the time, so I might loose entries. Maybe I’m making a syntax error with regards to the date/time entries.

Also I’ve been looking at https://github.com/steve-bate/openhab-foscam but I’m not a Python guy, so not sure how to get it working on Windows as well.

Any samples or snippets (ideally I want to use PowerShell) that someone can share?

These are my camera’s:
Fl9805W
Fl9828P V2

My NVR: FN3104H

Thank you so much in advance.

You’ll need to do a Google search for the Foscam Camera API specification. It will tell you how to get all the log entries and how to interpret the output.

The value before the first “%2B” is the Posix timesstamp for the log entry.