I go to Gladys locally, integration, camera, I put my stream /dev/video0. I switch to developer mode and I test. I get in the console
error "ffmpeg exited with code 1: /dev/video0: Resource busy\n"
I restarted the Raspberry for it to work, thanks pierre-gilles
I also have an issue on the chatbox when I ask it to display the camera, but I think I have some logs
2021-04-27T21:43:33+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2021-04-27T21:44:33+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2021-04-27T21:44:33+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2021-04-27T21:44:33+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2021-04-27T21:44:33+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
2021-04-27T21:45:46+0200 <warn> index.js:825 (Socket.<anonymous>) Socket disconnected client side. Trying to reconnect...
2021-04-27T21:45:46+0200 <error> index.js:15 (process.<anonymous>) unhandledRejection catched: Promise {
<rejected> NotFoundError: Answer with intent camera.get-image-room.fail and language fr not found
at Brain.getReply (/src/server/lib/brain/brain.getReply.js:18:11)
at MessageHandler.replyByIntent (/src/server/lib/message/message.replyByIntent.js:15:27)
at Camera.command (/src/server/lib/device/camera/camera.command.js:28:25)
}
2021-04-27T21:45:46+0200 <error> index.js:16 (process.<anonymous>) NotFoundError: Answer with intent camera.get-image-room.fail and language fr not found
at Brain.getReply (/src/server/lib/brain/brain.getReply.js:18:11)
at MessageHandler.replyByIntent (/src/server/lib/message/message.replyByIntent.js:15:27)
at Camera.command (/src/server/lib/device/camera/camera.command.js:28:25)
2021-04-27T21:45:47+0200 <warn> poll.js:14 (RtspCameraHandler.poll) Unable to poll camera
This wasn’t caught by the tests because, in my opinion, the tests were too « unitary » on this part of the code and did not test the end-to-end functionality with the library.
It’s possible, but I don’t think that’s really the purpose of Cypress. In this case, it’s just about missing backend « end-to-end » tests (we have them in many places, but not here in this instance), without mocking the calls to the library to be able to test breaking changes in the lib
For info, I started looking into it and indeed, since the update of the node-nlp library, all the places where « context » is used in the questions (i.e., all questions) no longer work Not very complicated to fix, but well, there’s a lot of work.
I think we had a small bug a few weeks ago on this part (on Gladys as well as on Gladys Plus) and I wonder if you might still have the bug because of cache on this part.. if you go to private browsing, or if you clear your browser cache, do you still have the bug?
Otherwise, if it’s not that, how many rooms are in your house?