moritzmhmk / homebridge-camera-rpi

raspberry pi camera plugin for homebridge
MIT License
159 stars 29 forks source link

options in config.json aren't recognized in homebridge mode #23

Closed thymjan closed 6 years ago

thymjan commented 6 years ago

I tried to set options ("rotation": 180) in homebridge mode (not standalone). The options mentioned in the "cameras"-line in the "platforms"-part are not recognized. Always the default values from the CameraAccessory.js-file are used.

First part of the config.json is parsed an set up correctly (the "bridge"-part).

{
        "bridge": {
                "name": "cambridge",
                "username": "CC:75:4D:E3:CE:30",
                "port": 51826,
                "pin": "031-45-154"
        },

        "description": "This is the description",

        "platforms": [
                {
                "platform": "rpi-camera",
                "cameras": [{"name": "Pi Camera", "id": "Pi Camera", "rotation": 180}]
                }
                ]
}
tokamac commented 6 years ago

Hi, try: "rotate": 180 instead of: "rotation": 180

moritzmhmk commented 6 years ago

read the README of this repo, the documentation on npmjs is not updated yet - will be fixed soon.

thymjan commented 6 years ago

Thanks for the fast help and the great work!