Difference between revisions of "Gyrophare"
From Fixme.ch
Binary Brain (Talk | contribs) |
Binary Brain (Talk | contribs) |
||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Category:Ongoing_Projects]] | |
− | + | The "Gyrophare" (''warning light'', in french) is an IoT device located in the middle of the hackerspace (at least when this page was written). | |
− | The "Gyrophare" (''warning light'' in french) is an IoT device located in the middle of the hackerspace (at least when this page was written). | + | |
= Control = | = Control = | ||
Line 7: | Line 6: | ||
You can control the Gyrophare via HTTP by calling a <code>GET</code> on '''/on''' and on '''/off'''. | You can control the Gyrophare via HTTP by calling a <code>GET</code> on '''/on''' and on '''/off'''. | ||
− | + | Its current IP address is static (hardcoded in the WeMos) and is <code>62.220.135.210</code>. | |
+ | Its URL is: <code>gyro.fixme.ch</code>. | ||
For example: | For example: | ||
+ | curl http://gyro.fixme.ch/on | ||
+ | curl http://gyro.fixme.ch/off | ||
curl http://62.220.135.210/on | curl http://62.220.135.210/on | ||
curl http://62.220.135.210/off | curl http://62.220.135.210/off | ||
Note that both request (also <code>GET http://62.220.135.210/</code>) are answered with a <code>OK</code>. | Note that both request (also <code>GET http://62.220.135.210/</code>) are answered with a <code>OK</code>. | ||
+ | |||
+ | {{warning|Sending to much request will make it freeze and stop responding, making it impossible to turn off. Do not do it.}} | ||
= Hardware = | = Hardware = | ||
Line 23: | Line 27: | ||
* Relay Shield for WeMos D1 Mini | * Relay Shield for WeMos D1 Mini | ||
* A red warning light (230V) | * 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: https://git.fixme.ch/BinaryBrain/Gyrophare | ||
+ | |||
+ | = Authors = | ||
+ | |||
+ | [[User:Binary_Brain]] |
Latest revision as of 18:40, 24 January 2021
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.
Its current IP address is static (hardcoded in the WeMos) and is 62.220.135.210
.
Its URL is: gyro.fixme.ch
.
For example:
curl http://gyro.fixme.ch/on curl http://gyro.fixme.ch/off 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 responding, 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: https://git.fixme.ch/BinaryBrain/Gyrophare