cURL based Monitors - How?
Posted: Wed Jun 05, 2024 1:22 am
Hi all, a total newbie here, I've had a look around the online doco and forums, but not finding an answer that helps.
Bare with me while i explain.. I'm trying to get some Kasa KC100 working.. I CAN get them to write out an .mp4 by issuing a cURL command such as this..
Where the username is the username as created in the Kasa App that the camera was initialised as , and the password is its password in base64.
Now, further to this , i am then also able to make the 3 KC100's i have , work in 'Home Asssistant' , by using 'Kasa Cameras' add-on , which then enables a couple of output streams within Home Assistant, for the cameras, at ...
HLS ->
RTMP ->

which i 'can' then plug that rtmp url into ZoneMinder as an ffmpeg monitor.. (Which works)!
BUT.. what i would like to do , is bypass the whole need for HomeAssistant.. while its an impressive product, i dont want yet another machine in the loop. But i cant for the life of me, figure out a way to add the cURL command/url (eg)
..and go directly from camera, into a monitor, that ZM understands.
Any thoughts?
Thanks in Advance.
Bare with me while i explain.. I'm trying to get some Kasa KC100 working.. I CAN get them to write out an .mp4 by issuing a cURL command such as this..
Code: Select all
curl -vv -k -u Kasa@anon.com:UGFzc3dvcmQ= --ignore-content-length "https://192.168.1.38:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd" --output - | ffmpeg -y -i - frontdoor.mp4
Now, further to this , i am then also able to make the 3 KC100's i have , work in 'Home Asssistant' , by using 'Kasa Cameras' add-on , which then enables a couple of output streams within Home Assistant, for the cameras, at ...
HLS ->
Code: Select all
http://<Homeassistant IP>:43330/hls/<CAMERA NAME>.m3u8
Code: Select all
rtmp://<Homeassistant IP>:43331/live/<CAMERA NAME>
which i 'can' then plug that rtmp url into ZoneMinder as an ffmpeg monitor.. (Which works)!
BUT.. what i would like to do , is bypass the whole need for HomeAssistant.. while its an impressive product, i dont want yet another machine in the loop. But i cant for the life of me, figure out a way to add the cURL command/url (eg)
Code: Select all
curl -vv -k -u Kasa@anon.com:UGFzc3dvcmQ= --ignore-content-length "https://192.168.1.38:19443/https/stream/mixed?video=h264&audio=g711&resolution=hd" --output - | ffmpeg -y -i - frontdoor.mp4
Any thoughts?
Thanks in Advance.