yi-hack-Allwinner-v2 icon indicating copy to clipboard operation
yi-hack-Allwinner-v2 copied to clipboard

MQTT motion_files topic has empty files []

Open marcospg75 opened this issue 2 years ago • 15 comments

Hello, When a motion detection happen, I receive a motion_files topic with the start and end times and the related files recorded but this files are always empty. But if you check with the web service, you can find them recorded in the SDCard at the camera

Firmware: 0.2.1 Camera: 1080p HOME AI+ BFUS

Example:

yicam_1/motion_files { "start":"2022-04-06T12:27:42+0200", "end":"1970-01-01T01:00:00+0100", "files":[ ] }

marcospg75 avatar Apr 06 '22 10:04 marcospg75

I know, the problem is the timezone.

EDIT

I fixed the problem, next release...

roleoroleo avatar Apr 07 '22 19:04 roleoroleo

I know, the problem is the timezone.

EDIT

I fixed the problem, next release...

Great! thank you very much!!

marcospg75 avatar Apr 07 '22 21:04 marcospg75

Any workaround while you develop next release?

marcospg75 avatar Apr 08 '22 08:04 marcospg75

No, it's binary code. But I'm almost done.

roleoroleo avatar Apr 13 '22 11:04 roleoroleo

Any news on this?

jjcasmar avatar May 18 '22 18:05 jjcasmar

Fixed here: https://github.com/roleoroleo/yi-hack-Allwinner-v2/commit/9cfe97ad89196519237091779dde3663f6d9e066

roleoroleo avatar May 20 '22 12:05 roleoroleo

Is this patch already in a release? Or should I compile master myself?

jjcasmar avatar May 20 '22 12:05 jjcasmar

I see it is in 0.2.2, which is the version I have in my camera, but I still receive an empty list of files

jjcasmar avatar May 20 '22 12:05 jjcasmar

Check if your configuration is ok. Set the timezone both in the app and in the webpage.

roleoroleo avatar May 20 '22 13:05 roleoroleo

afaik, its is correct., in the app and in the webpage, and the timestamp inside the mqtt payload is correct

jjcasmar avatar May 20 '22 13:05 jjcasmar

Please, send me another example of the json message.

roleoroleo avatar May 20 '22 14:05 roleoroleo

  "start": "2022-05-20T18:06:34+02:00",
  "end": "2022-05-20T18:07:35+02:00",
  "files": []
}

The timestamps are correct, I in Madrid (CET-1CEST,M3.5.0,M10.5.0/3)

jjcasmar avatar May 20 '22 16:05 jjcasmar

Are there files? /tmp/sd/record/2022Y05M20D16H/06MxxSxx.mp4 /tmp/sd/record/2022Y05M20D16H/07MyySyy.mp4

roleoroleo avatar May 21 '22 13:05 roleoroleo

/tmp/sd/record/2022Y05M20D16H
root@door_camera:/tmp/sd/record/2022Y05M20D16H# ls
E206M36S24.jpg  E206M36S24.mp4  E207M02S58.jpg  E207M02S58.mp4

jjcasmar avatar May 21 '22 13:05 jjcasmar

Your cam uses different format for file names. I need to add some line of code.

roleoroleo avatar May 21 '22 15:05 roleoroleo

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Dec 09 '22 03:12 stale[bot]