Success! For the last months I have been able to stream from my camera using a local stream! I have a non-downgradeable camera (the working, older, firmware is not valid for my version of the device) so the normal route was not valid for me.
Anyhow, What I did was simply redirecting all hubble.in traffic to a node.js application that I threw together. It listens to all the vhosts used, imitates and proxies all the calls, modifies where needed and dump all certificates, secrets etc to files on disk. Using the p2p secrets I am then able to stream from the camera. The secrets expire about every four weeks or so, but then I just update the information and continue to stream.
Perhaps someone is keen on making this more stable or rafining it to a home assistant module (I dont have the time and it works good enough for me) please feel fre to do so by contributing or by forking it or just stealing the codeā¦
Now that the stream component supports audio has anyone managed to get audio working with these cameras? I can get audio working on all my other Unifi cameras in HA, and I can hear the audio when viewing the Motorola camera feeds via VLC or other RTSP apps but not in HA.
What codec type does VLC show for the audio stream?
Some security cameras use old codecs such as G.711 which is primarily used for things like VoIP and are not really supported in most file container types such as .mp4 or .ts. Since http streaming uses those containers, we canāt use these audio codecs unless we transcode them. We may decide to implement audio transcoding in the future, but as of now this is not supported.
Just tried setting this up, and Iām having issues. You mention that *.hubble.in traffic needs to be forwarded to the proxy youāve setup. I changed the DNS entries for the *.hubble.in domain to the proxy, but the proxy doesnāt seem to be forwarding anything. Iām assuming the devices are using my DNS server and Iāve verified the proxy is using 8.8.8.8. I can get 404 errors by using app.hubble.in, so I know itās configured correctly. I just feel like Iām missing something.
Thank you for putting this together. Once I have the keys and certs how would I go about accessing the camera rtsp feed?
The basic idea here is that you connect via the mobile app and let this connect to the proxy. The phone should use a dns that points *hubble.in to the proxy, and the proxy and everything else should use 8.8.8.8 as dns.
This thread has helped me get an rtsp stream for my focus 88 camera so for that I just wanted to say thanks everyone!
While doing some packet sniffing I found some commands that I didnāt see mentioned anywhere on the web so just wanted to throw them up here in case they were useful to anyone. They worked for my focus 88, model 2855, fw version 03.10.11.
Night vision: 2 = off, 1 = on, 0 = auto http://IPADDRESS/?action=command&command=set_night_vision&value=2 http://IPADDRESS/?action=command&command=set_night_vision&value=1 http://IPADDRESS/?action=command&command=set_night_vision&value=0
Move the camera for a specific length of time. For example 1500 = 1.5sec http://IPADDRESS/?action=command&command=move_right_duration&value=1500 http://IPADDRESS/?action=command&command=move_left_duration&value=1500 http://IPADDRESS/?action=command&command=move_forward_duration&value=1500 http://IPADDRESS/?action=command&command=move_backward_duration&value=1500
Great information about the firmware downgrade. I was using an older Motorola 667 wifi camera (firmware 03.10.26) with only the temperature sensor working.
After the downgrade I was able to see a video stream using the video.cgi http link, the RTSP stream wonāt work. Are there any other users with this issue?
An other thing I noticed is that the temperature sensor (the camera does feel warm as well) is acting weird after the downgrade:
The sudden spike and weird spiky readings started right after the downgrade (before that you see the correct temperature with small waves when the heating started and the room cooled down again). Is this a know issue with the .11 firmware or is the camera acting up?
Did you ever find a solution to the infrared issue? Iāve been unable to find a command to turn on/off/auto the ir leds but when opening the test_infra.html site on the camera it seems to enable the leds (need to do some more testing to make sure this fixed the issue).
The weird spikes somehow stopped a few days ago (Iāve got these weird reading for about 1 month). Not sure what happened but it seemed like an issue with the camera (the reading was weird when using the web interface as well)ā¦
I believe the IR LEDs are controlled by the night vision commands I posted above:
Night vision: 2 = off, 1 = on, 0 = auto http://IPADDRESS/?action=command&command=set_night_vision&value=2 http://IPADDRESS/?action=command&command=set_night_vision&value=1 http://IPADDRESS/?action=command&command=set_night_vision&value=0