pepoalexado

What is pepoalexado

  • Created to turn on / off the lights with Alexa and listen to the temperature, get GPIO output and json data to the Raspberry Pi distributed in the IOT house
    pepoalexado
    usage /usr/local/bin/pepoalexado host user password [write->chno:0-17 [DO:0|1] [timer->1 to 300000ms]] or read->json_name

  • GPIO 3 ON
    pepoalexado iot001.local remote hand 3 1

  • GPIO 3 OFF
    pepoalexado iot001.local remote hand 3 0

  • Acquire json data of I2C gas sensor BME680
    pepoalexado iot001.local remote hand gpio_i2c
    { “date”: “08:47:11”, “temp”: “27.5℃”, “hum”: “79.7%”, “pres”: “1006hPa”, “gas”: “2055427Ω”, “iaq”: “17” }

  • Acquire barometric pressure data of I2C gas sensor BME680
    pepoalexado iot001.local remote hand gpio_i2c.pres
    1020hPa

  • Get low / high outdoor illuminance-> Use for judgment such as turning on the lights in the room when the outdoor illuminance becomes dark pepoalexado iot01f.local remote hand ai2di12
    low

  • GPIO port 4 input of iot01f.local low-> high Execute the event registered command dio3high
    dio3high has registered a module camera 10 second video mail, which can activate the module camera of Raspberry Pi connected to another camera from the GPIO input event without camera connection
    Used to activate security cameras on Alexa at Practical IOT House
    pepoalexado iot02f.local remote hand dio3high

  • While a browser such as chrome is browsing https://iot01f, the browser returns voice operation and response with the registered wording.
    pepoalexado iot01f.local remote hand voice_req Turn off the light-> Turn off the light and execute
    pepoalexado iot01f.local remote hand voice_req Tell me the room temperature-> The room temperature is 24.0 ℃

  • Alexaのhomebridge/config.json Setting Example

    Alexa, turn on the dining

    Alexa, dining Turn off the lights

    Alexa, security camera on

    Alexa, security camera off

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    {{{
    "platforms": [
    {
    "platform": "Alexa",
    "name": "Alexa",
    "username": "user",
    "password": "pass"
    }
    ],
    "accessories": [
    {
    "accessory": "CMD",
    "name": "dining",
    "on_cmd": "sudo /usr/local/bin/pepoalexado iot001.local remote hand 3 1",
    "off_cmd": "sudo /usr/local/bin/pepoalexado iot001.local remote hand 3 0"
    },
    {
    "accessory": "CMD",
    "name": "security camera",
    "on_cmd": "sudo /usr/local/bin/pepoalexado iot03f.local remote hand dio3low",
    "off_cmd": "sudo /usr/local/bin/pepoalexado iot02f.local remote hand dio3high"
    },
    }}}
  • Please check the source code below
    https://github.com/kujiranodanna/IOT-House/blob/master/raspberrypi/usr/local/bin/pepoalexado