Difference between revisions of "Gyrophare"
From Fixme.ch
Binary Brain (Talk | contribs) |
|||
Line 26: | Line 26: | ||
{{warning|Be careful: there is high voltage (230V) in this hack. It's pretty well isolated, except for the relay screws, but unplug the system if you want to look at it.}} | {{warning|Be careful: there is high voltage (230V) in this hack. It's pretty well isolated, except for the relay screws, but unplug the system if you want to look at it.}} | ||
+ | |||
+ | = Software = | ||
+ | |||
+ | The code is here: [[https://git.fixme.ch/BinaryBrain/Gyrophare]] | ||
= Authors = | = Authors = | ||
[[User:Binary_Brain]] | [[User:Binary_Brain]] |
Revision as of 13:24, 4 April 2017
The "Gyrophare" (warning light, in french) is an IoT device located in the middle of the hackerspace (at least when this page was written).
Contents
Control
You can control the Gyrophare via HTTP by calling a GET
on /on and on /off.
It's current IP address is static (hardcoded in the WeMos) and is 62.220.135.210
.
For example:
curl http://62.220.135.210/on curl http://62.220.135.210/off
Note that both request (also GET http://62.220.135.210/
) are answered with a OK
.
Warning: | Sending to much request will make it freeze and stop reponding, making it impossible to turn off. Do not do it. |
Hardware
The hardware is the following:
- WeMos D1 Mini
- Relay Shield for WeMos D1 Mini
- A red warning light (230V)
Warning: | Be careful: there is high voltage (230V) in this hack. It's pretty well isolated, except for the relay screws, but unplug the system if you want to look at it. |
Software
The code is here: [[1]]