ioBroker / AdapterRequests

This Place is used to track the status of new Adapter-Requests.
248 stars 36 forks source link

Logitech Circle Adapter #232

Open senger1985 opened 5 years ago

senger1985 commented 5 years ago

Ich bin schon seit längerem auf der Suche, um die Logitech Circle in ioBroker zu integrieren.

Durch Zufall bin ich auf die API von der Logitech Circle gestoßen, nur weiß ich nicht genau, wie ich dafür einen Adapter schreiben muss, damit man die Cam in ioBroker integriert.

Im Forum habe ich auch schon einige Posts gesehen, die eine Logitech Circle haben und diese auch gerne, im Vis integriert haben wollen.

Hier der Link, zur API: https://developers.logitech.com/circle/

DutchmanNL commented 5 years ago

example of home bridge integration : https://www.npmjs.com/package/homebridge-logi-circle-controls

Apollon77 commented 5 years ago

Please someone test if this works with ham adapter ...

senger1985 commented 5 years ago

I could test it. But I get the following error message:

host.senger1985 2019-08-26 23:54:12.996 error instance system.adapter.ham.1 terminated with code 1 ()
Caught 2019-08-26 23:54:12.993 error by controller[2]: [2019-8-26 23:54:12] [<Optional: the desired name for the platform (mostly affects Homebridge logs) | Default: 'Logi Circle Controls'>] Error reading config: accessories is a requir
Caught 2019-08-26 23:54:12.992 error by controller[1]: [2019-8-26 23:54:11] Plugin /opt/iobroker/node_modules/homebridge-plugin-wrapper package.json does not contain the keyword 'homebridge-plugin'.
Caught 2019-08-26 23:54:12.991 error by controller[0]: [2019-8-26 23:54:11] Plugin /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-plugin-wrapper package.json does not contain the keyword 'homebridge-plugin'.
Apollon77 commented 5 years ago

Platforms should be an array of objects. So it should look like

Platforms: [ {...}, {...} ]

With two

senger1985 commented 5 years ago

I have created a second instance.

host.senger1985 2019-08-26 23:59:28.237 error instance system.adapter.ham.1 terminated with code 1 ()
host.senger1985 2019-08-26 23:59:28.237 error Caught by controller[2]: [2019-8-26 23:59:28] [Logi Circle] Error reading config: accessories is a required field
host.senger1985 2019-08-26 23:59:28.237 error Caught by controller[1]: [2019-8-26 23:59:27] Plugin /opt/iobroker/node_modules/homebridge-plugin-wrapper package.json does not contain the keyword 'homebridge-plugin'.
host.senger1985 2019-08-26 23:59:28.234 error Caught by controller[0]: [2019-8-26 23:59:27] Plugin /opt/iobroker/node_modules/iobroker.ham/node_modules/homebridge-plugin-wrapper package.json does not contain the keyword 'homebridge-plugin'.
Apollon77 commented 5 years ago

Config invalid. You need to have at least an empty „accessories“ as told by error message

senger1985 commented 5 years ago

I'm not sure how to enter it. I have the ID below:        "accessories":          "CAM-ID"        ] entered.

host.senger1985 2019-08-27 00:24:24.421 error Caught by controller[3]: If "null" is intended as an empty value be sure to mark the schema as .nullable()
host.senger1985 2019-08-27 00:24:24.421 error Caught by controller[3]: [2019-8-27 00:24:24] [Logi Circle] Error reading config: accessories[0] must be a object type, but the final value was: null (cast from the value `"xxxxxxxxxx"

The code at the beginning: "accessories": [], Have the brackets to be empty or must there be the name of the cam?

Apollon77 commented 5 years ago

Please check the readme of the plugin. There are examples!

Accessories is as platforms an array of objects so needs to have the same structure basically

senger1985 commented 5 years ago

Thx you for your patience. Now I can control my cam. Perfect it would be now if I could somehow get the stream.

DutchmanNL commented 5 years ago

Not supported by the plugin, but I found an nodejs example to use the API

https://github.com/gkoehler/LogiCircleDownloader