Difference between revisions of "LED Lighting"

From Fixme.ch
Jump to: navigation, search
(Devices)
(Tags: Mobile edit, Mobile web edit)
(Control)
(Tags: Mobile edit, Mobile web edit)
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
= Control =
 
= Control =
 +
* You can control them with our good old [https://foo.fixme.ch/trigger.html trigger].
 
* You can control LED strips with the official app Magic Home Pro for [https://play.google.com/store/apps/details?id=com.zengge.wifi Android] or [https://itunes.apple.com/us/app/magic-home-pro/id1187808229?mt=8 iOS].
 
* You can control LED strips with the official app Magic Home Pro for [https://play.google.com/store/apps/details?id=com.zengge.wifi Android] or [https://itunes.apple.com/us/app/magic-home-pro/id1187808229?mt=8 iOS].
 
* You can also use the [https://github.com/beville/flux_led flux_led] library, or some [https://git.fixme.ch/francois/34c3/src/master/led implementation] from FIXME.
 
* You can also use the [https://github.com/beville/flux_led flux_led] library, or some [https://git.fixme.ch/francois/34c3/src/master/led implementation] from FIXME.
 +
* A script for controlling through Blender objects exists [https://fixme.ch/wiki/File:Flux_controller.blend.zip here]
 +
 +
== API ==
 +
* https://git.fixme.ch/FIXME/led-ctrl-2018
 +
* A service has been created to be on Foo to control the leds through an API
 +
* Everything is in the repo, but it's a python script using Flask that runs on Apache though wsgi
 +
* Usage example:
 +
<pre>
 +
curl https://led.fixme.ch/ -XGET
 +
curl https://led.fixme.ch/status -XGET
 +
curl https://led.fixme.ch/ctrl -XPOST -d 'do=on'
 +
curl https://led.fixme.ch/ctrl -XPOST -d 'do=off'
 +
curl https://led.fixme.ch/ctrl -XPOST -d 'do=police'
 +
curl https://led.fixme.ch/ctrl -XPOST -d 'do=color&r=255&g=0&b=0'
 +
</pre>
  
 
= Devices =
 
= Devices =
Line 7: Line 23:
 
* Here the list of the current IPs and MAC addresses:
 
* Here the list of the current IPs and MAC addresses:
 
<pre>
 
<pre>
192.168.130.78 60:01:94:96:09:0c
+
192.168.130.78 60:01:94:96:09:0C
192.168.130.80 dc:4f:22:81:56:8a
+
192.168.130.80 DC:4F:22:81:56:8A
192.168.130.105 dc:4f:22:81:3b:fe
+
192.168.130.105 DC:4F:22:81:3B:FE
192.168.130.130 dc:4f:22:81:5d:f5
+
192.168.130.130 DC:4F:22:81:5D:F5
192.168.130.134 60:01:94:95:8a:a8
+
192.168.130.134 60:01:94:95:8A:A8
192.168.130.143 60:01:94:95:a6:e0
+
192.168.130.143 60:01:94:95:A6:E0
192.168.130.173 60:01:94:95:a6:e1
+
192.168.130.173 60:01:94:95:A6:E1
192.168.130.225 dc:4f:22:81:5e:03
+
192.168.130.225 DC:4F:22:81:5E:03
192.168.130.237 dc:4f:22:81:53:37
+
192.168.130.237 DC:4F:22:81:53:37
192.168.130.238 dc:4f:22:81:53:33
+
192.168.130.238 DC:4F:22:81:53:33
 +
</pre>
 +
 
 +
== Mapping ==
 +
From North to South:
 +
<pre>
 +
192.168.130.105 DC:4F:22:81:3B:FE
 +
192.168.130.80 DC:4F:22:81:56:8A
 +
192.168.130.78 60:01:94:96:09:0C
 +
192.168.130.173 60:01:94:95:A6:E1
 +
192.168.130.238 DC:4F:22:81:53:33
 +
192.168.130.225 DC:4F:22:81:5E:03
 +
</pre>
 +
From East to West:
 +
<pre>
 +
192.168.130.134 60:01:94:95:8A:A8
 +
192.168.130.237 DC:4F:22:81:53:37
 +
192.168.130.143 60:01:94:95:A6:E0
 +
192.168.130.130 DC:4F:22:81:5D:F5
 
</pre>
 
</pre>

Revision as of 17:43, 14 January 2018

Control

  • You can control them with our good old trigger.
  • You can control LED strips with the official app Magic Home Pro for Android or iOS.
  • You can also use the flux_led library, or some implementation from FIXME.
  • A script for controlling through Blender objects exists here

API

  • https://git.fixme.ch/FIXME/led-ctrl-2018
  • A service has been created to be on Foo to control the leds through an API
  • Everything is in the repo, but it's a python script using Flask that runs on Apache though wsgi
  • Usage example:
curl https://led.fixme.ch/ -XGET
curl https://led.fixme.ch/status -XGET
curl https://led.fixme.ch/ctrl -XPOST -d 'do=on'
curl https://led.fixme.ch/ctrl -XPOST -d 'do=off'
curl https://led.fixme.ch/ctrl -XPOST -d 'do=police'
curl https://led.fixme.ch/ctrl -XPOST -d 'do=color&r=255&g=0&b=0'

Devices

  • Each line are controlled by a wifi device
  • Here the list of the current IPs and MAC addresses:
192.168.130.78	60:01:94:96:09:0C
192.168.130.80	DC:4F:22:81:56:8A
192.168.130.105	DC:4F:22:81:3B:FE
192.168.130.130	DC:4F:22:81:5D:F5
192.168.130.134	60:01:94:95:8A:A8
192.168.130.143	60:01:94:95:A6:E0
192.168.130.173	60:01:94:95:A6:E1
192.168.130.225	DC:4F:22:81:5E:03
192.168.130.237	DC:4F:22:81:53:37
192.168.130.238	DC:4F:22:81:53:33

Mapping

From North to South:

192.168.130.105	DC:4F:22:81:3B:FE
192.168.130.80	DC:4F:22:81:56:8A
192.168.130.78	60:01:94:96:09:0C
192.168.130.173	60:01:94:95:A6:E1
192.168.130.238	DC:4F:22:81:53:33
192.168.130.225	DC:4F:22:81:5E:03

From East to West:

192.168.130.134	60:01:94:95:8A:A8
192.168.130.237	DC:4F:22:81:53:37
192.168.130.143	60:01:94:95:A6:E0
192.168.130.130	DC:4F:22:81:5D:F5