2019-07-20 16:11:24 +00:00
|
|
|
WeMo control
|
|
|
|
============
|
|
|
|
|
|
|
|
The plan:
|
|
|
|
---------
|
|
|
|
|
|
|
|
1. Use Fauxmo to create a virtual switch 'Movie Lights' recognized on the
|
2019-07-24 15:48:46 +00:00
|
|
|
NAS at port 20000 on a MacVLAN IP address in the IP range 224-240
|
2019-07-20 16:11:24 +00:00
|
|
|
2. Fauxmo will run in a docker file and be able to talk to another container,
|
2019-07-21 00:35:25 +00:00
|
|
|
which runs our golang executable. Other container host will be movielights
|
|
|
|
(added via add-host option)
|
2019-07-20 16:11:24 +00:00
|
|
|
3. Our golang executable will then talk to the actual wemo switches
|
|
|
|
|
|
|
|
TODO:
|
|
|
|
-----
|
|
|
|
|
|
|
|
Figure out how to discover the IP addresses. Options are:
|
|
|
|
|
|
|
|
* Do a discovery at startup
|
|
|
|
* ~~Do a discovery before an event~~ I don't like this one due to latency
|
|
|
|
* Do a discovery after an event
|
|
|
|
* Do a discovery on a time basis
|
|
|
|
|
|
|
|
Discovery is currently via a node module. Would prefer to use go here
|