Difference between revisions of "Gyrophare"

From Fixme.ch
Jump to: navigation, search
(Created page with "=== Information === 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...")
 
Line 1: Line 1:
=== Information ===
+
= Information =
  
 
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 =
  
 
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'''.
Line 15: Line 15:
  
 
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>.
 +
 +
= Hardware =
 +
 +
The hardware is the following:
 +
 +
* WeMos D1 Mini
 +
* Relay Shield for WeMos D1 Mini
 +
* A red warning light (230V)

Revision as of 23:50, 17 March 2017

Information

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

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.

Hardware

The hardware is the following:

  • WeMos D1 Mini
  • Relay Shield for WeMos D1 Mini
  • A red warning light (230V)