ycardon / gigaset-elements-proxy

a simple web and MQTT bridge with gigaset-elements APIs (no more maintained)
GNU General Public License v3.0
18 stars 5 forks source link

Gigaset Cameras #29

Closed acs-lux closed 2 years ago

acs-lux commented 4 years ago

Hi. This is a great add-on. Is there any more info you can give for accessing the camera video locally? The documentation says details need to be in a config file but which details, how and what config file? Would be the icing on the cake to be able to get a live video from my cam in hassio. Many thanks for your work.

h4nc commented 4 years ago

Hi,

I don't have Gigaset camaras, so I can't help with the configuration.

However I can help with the confusion about the config file. Seems like you are using the gigaset elements proxy as an add-on in hassio.

In this case the configuration is done directly in the add-on section (in the Configuration tab). So you don't need to find that config file (which you would need to find if you used install option 2 or 3).

ycardon commented 4 years ago

Hello,

The (brief) instructions are in that config file : https://github.com/ycardon/gigaset-elements-proxy/blob/master/config/default.yaml

# camera id (found with /api/v1/me/cameras)
camera_id: 'xxxx'

# camera local IP (used for local streaming)
camera_ip: 'xxx.xxx.xxx.xxx'

# camera local password
# $> echo –n "LUCKOTVF<MAC-address-reverse-order-uppercase-nocolon>YCAMVF" | base64
# or discover it by sniffing your network while changing your camera config in the mobile app:
# $> ssh <router> "tcpdump -i lbr0 -s0 -w - host <camera_ip>" | wireshark -k -i -
camera_password: '****'

I broke my camera so I hope it still works... The camera password is hardcoded with the Mac address of you camera.

for instance, if your mac address is ab:cd:ef:gh:ij then the password is

Then you have to encode it in Base64

acs-lux commented 4 years ago

Hi,Ok many thanks. So this is how its configured in the hassio haddon?I'll give it a go and let you know how I get on.

acs-lux commented 4 years ago

Hi. I tried both ways. VLC wont open either the local or remote live views. Links dont open anything and browser gives an error. What am I missing? How did you actually view the video?

I put everything in the config and restarted the add on. No errors in the log.

ycardon commented 4 years ago

I've checked back in the code

https://github.com/ycardon/gigaset-elements-proxy/blob/3b30e3077ff3c05da6fa9e1692d076c44f32f662/src/web-server.ts#L16-L31

You've got (at least, "you had" when I coded it) two options to get camera stream:

To test the second one, you can just call the following url in your browser:

http://admin:<CAM_PASSWORD>@<CAM_IP>/stream.jpg

If it's not working, that means that Gigaset have fixed the vulnerability (which is a good thing)

acs-lux commented 4 years ago

Perfect, local works for me but not live from gigaset server. I'm a happy man now.

KubaDavid commented 3 years ago

Perfect, local works for me but not live from gigaset server. I'm a happy man now.

@acs-lux Is it still working for you? I've tried all possible combinations but I just can't access local stream...

acs-lux commented 3 years ago

My camera died. I use Tp-Lnk c200 now.