goliatone / rpi-pir-sensor

Prototype for PIR motion sensor
0 stars 0 forks source link

Auto registering: explore alternative methods #22

Open goliatone opened 8 years ago

goliatone commented 8 years ago

Currently we are using a POST request against menagerie's ThingController.register. We could use an auto-discovery system like zeroconf.

goliatone commented 8 years ago

Goals:

goliatone commented 8 years ago

If the sensor pi is running inside a docker container, we might lack the introspective capabilities to get an updated IP when we want to. It might be that we can get it through a env var on boot but then we can't update- unless we provide a http/tcp endpoint.

One way would be to register the RPi as it's own device, then have an agent that would keep the information about the device up to date. Then, we would have (virtual) devices for each rpi-sensor.

We do not want to access the docker instance remotely, we want to access the pi :)