cours:ds4h_iot_2018
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
cours:ds4h_iot_2018 [2018/10/19 05:44] – [Main commercial platforms] tigli | cours:ds4h_iot_2018 [2018/12/17 19:48] (Version actuelle) – [Optionnal Project] tigli | ||
---|---|---|---|
Ligne 120: | Ligne 120: | ||
- | ==== Optionnal | + | ==== Optional |
This project aims to use a IoT devices simulator in a Smart Home Context. | This project aims to use a IoT devices simulator in a Smart Home Context. | ||
Ligne 133: | Ligne 133: | ||
---- | ---- | ||
- | ([[cours: | + | ([[cours: |
- | |||
- | == Web Services Accesses == | ||
- | |||
- | // be careful, if you want to use Web Services to access to ThingSpeak first you must create channels to publish data and get the corresponding keys // | ||
- | |||
- | * Dataflow that publishes/ | ||
- | |||
- | // This example uses a key of the 275 public channel : https:// | ||
- | |||
- | < | ||
- | [{" | ||
- | </ | ||
- | |||
- | | ||
- | * Dataflow that gets weather information on OpenWeatherMap Web Service (here, students can use my API key but without any guarantee). In case of problem, get your own API key after free registration. | ||
- | |||
- | < | ||
- | </ | ||
- | |||
- | == Dataflow that gets information from OpenHAB == | ||
- | * using a OpenHab MQTT flow | ||
- | < | ||
- | | ||
- | </ | ||
- | |||
- | * using the OpenHab REST API | ||
- | < | ||
- | [{" | ||
- | |||
- | </ | ||
- | |||
- | |||
- | == Loop to read OpenHab sensor value == | ||
- | |||
- | < | ||
- | [{" | ||
- | [{" | ||
- | </ | ||
- | |||
- | == Correction for optionnal Home IO manipulations == | ||
- | |||
- | // Find in the Home I/O installation directory, a zip/csv file that gives the sensors list with prefixes A,B,C ... // | ||
- | |||
- | |||
- | * Dataflow that get boolean sensors information in room A | ||
- | |||
- | < | ||
- | [{" | ||
- | " | ||
- | </ | ||
- | |||
- | * Dataflow that controls lights in room A | ||
- | < | ||
- | [{" | ||
- | </ | ||
- | |||
- | ** Link one Home IO virtual switch to a real light in OpenHab ** | ||
- | |||
- | < | ||
- | [{" |