An Interest In:
Web News this Week
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
- April 19, 2024
- April 18, 2024
- April 17, 2024
A GitHub action to trigger a light on your room
DISCLAIMER: This is a work in progress, I've already made it to Proof of Concept.
My journey on the actions hackathon
I'm submitting this post as part of my Actions Hackathon journey.
Motivation
I always imagined open-source mantainers as heroes, since they spend lots of their free time just to share their knowledge with useful software and give back to the oss community.
So I'm making a simple action (my first one tho!) that is able to trigger a lamp on your room when someone opens up an Issue on your configured repositories, now you can feel like a hero when the city needs you!
Submission Category:
Interesting IoT
Yaml File or Link to Code
mxarc / issuetron-3000
Turn on a light signal on the physical world when an issue is opened on one of your repos
issuetron-3000
Turn on a light signal on the physical world when an issue is opened on one of your repos
This is my entry for the dev.to GitHub Actions hackathon
Index
About this
This is a really simple action intended to connect the real world with IoT devices connected to Adafruit IO Cloud.
It allows repo mantainers to keep alerted about new issues on their repos, made for the heros of the Open-Source
I wanted tro try GitHub actions and I thoguth the dev.to hackathon was the best motivation to do it.
How to use
Example workflow file:
on issues types: [opened]jobs do_iot_thing: runs-on: ubuntu-latest name: A job to turn on a light when someone opens an issue steps: -
How I'm making this
I'm using Adafruit IO cloud for the ease of IoT development and device provisioning, since I know most people would like to configure a device the easy way and not have to go through complicated setups like AWS or Azure IoT.
The Action workflow is listening to an "Issue" event and when it's triggered it gets the issue context (like username and issue title) and sends the content over MQTT protocol to an ESP8266 device which I had lying around, it turns on a red lamp which I got from a auto parts store.
I'm planning to add a LCD screen to show more context about the issue that triggered the alarm, but for now it will work as a proof of concept.
You can see the action in action here:
Action en accin 8)
An falta programar algunas medidas precautorias como:
- Evitar llegar al lmite de subs al brooker MQTT (Adafruit IO),
- Montar el circuito con una fuente reguladora
Y tambin enviar el contexto del issue para mostrarlo en una pantalla lcd22:22 PM - 18 Aug 2020
Original Link: https://dev.to/mxarc/a-github-action-to-trigger-a-light-on-your-room-385b
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To