Skip to content
@gamename-iot-porch-lights

gamename-iot-porch-lights

This is an iot implementation that controls lighting of my front porch. Lighting is keyed off of sunrise and sunset times.

All of the repos in this organization are prefixed with "GIPL" for Gamename Iot Porch Lights. Since I have lots of repos and project, this helps me identify what repo is associated with which project at a glance.

This is a hybrid implementation. The cloud controls when the lights are turned on/off. A local esp32 (called the "GIPL-device") controls the actual LED strip. The esp32 is an AWS IoT Thing. It communicates with AWS via MQTT topics.

On a daily basis, an AWS EventBridge scheduler fires off the lambda "GIPL-Scheduler" function. This function does 2 things. First, it queries US Naval Observatory for sunrise and sunset times based on my longitude and latitude. Then, it schedules 2 invocations of the "GIPL-illuminator" lambda (one each for sunrise/sunset timestamps).

Each of the 2 schedules will fire once per day at the appointed times. The "GIPL-illuminator" lambda, which is invoked by this scheduled run, sends a message to the local "GIPL-device" (esp32) specifying whether to turn on or off the light strip.

The esp32 is dumb. It only responds to two things: switching lights on/off or running an OTA firmware deployment upgrade.

Popular repositories Loading

  1. GIPL-device GIPL-device Public

    An ESP32 AWS IoT device located on the porch which controls the ws2812b LED strip

    C

  2. GIPL-scheduler GIPL-scheduler Public

    AWS Lambda to determine sunrise/sunset times + schedule LED on/off events accordingly

    Python

  3. GIPL-illuminator GIPL-illuminator Public

    AWS Lambda to set porch LEDs ON or OFF

    Python

  4. .github .github Public

Repositories

Showing 4 of 4 repositories
  • GIPL-device Public

    An ESP32 AWS IoT device located on the porch which controls the ws2812b LED strip

    gamename-iot-porch-lights/GIPL-device’s past year of commit activity
    C 0 0 0 0 Updated Nov 5, 2024
  • .github Public
    gamename-iot-porch-lights/.github’s past year of commit activity
    0 0 0 0 Updated Nov 4, 2024
  • GIPL-scheduler Public

    AWS Lambda to determine sunrise/sunset times + schedule LED on/off events accordingly

    gamename-iot-porch-lights/GIPL-scheduler’s past year of commit activity
    Python 0 0 0 0 Updated Nov 4, 2024
  • GIPL-illuminator Public

    AWS Lambda to set porch LEDs ON or OFF

    gamename-iot-porch-lights/GIPL-illuminator’s past year of commit activity
    Python 0 0 0 0 Updated Nov 4, 2024

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Most used topics

Loading…