Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
September 11, 2020 04:05 am GMT

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

GitHub logo 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:


Original Link: https://dev.to/mxarc/a-github-action-to-trigger-a-light-on-your-room-385b

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To