yi-hack-Allwinner-v2
yi-hack-Allwinner-v2 copied to clipboard
MQTT motion_files topic has empty files []
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":[ ] }
I know, the problem is the timezone.
EDIT
I fixed the problem, next release...
I know, the problem is the timezone.
EDIT
I fixed the problem, next release...
Great! thank you very much!!
Any workaround while you develop next release?
No, it's binary code. But I'm almost done.
Any news on this?
Fixed here: https://github.com/roleoroleo/yi-hack-Allwinner-v2/commit/9cfe97ad89196519237091779dde3663f6d9e066
Is this patch already in a release? Or should I compile master myself?
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
Check if your configuration is ok. Set the timezone both in the app and in the webpage.
afaik, its is correct., in the app and in the webpage, and the timestamp inside the mqtt payload is correct
Please, send me another example of the json message.
"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)
Are there files? /tmp/sd/record/2022Y05M20D16H/06MxxSxx.mp4 /tmp/sd/record/2022Y05M20D16H/07MyySyy.mp4
/tmp/sd/record/2022Y05M20D16H
root@door_camera:/tmp/sd/record/2022Y05M20D16H# ls
E206M36S24.jpg E206M36S24.mp4 E207M02S58.jpg E207M02S58.mp4
Your cam uses different format for file names. I need to add some line of code.
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.