DEV Community

Cover image for Contralert
Mayank Sharma
Mayank Sharma

Posted on

Contralert

Contralert

My Workflow

Contralert is a utility device which produces different sound tones for every issue created, pull request opened, and pull request closed using Github Actions

Submission Category:

Interesting IoT

Yaml File or Link to Code

Banner

Contralert is a utility device which produces different sound tones for every issue created, pull request opened, and pull request closed using Github Actions

Setup and Installation

  • Go to repo Settings/Secrets and add a new repository secret with name as MTQT_BROKER_PASSWORD and value as key.

  • Now edit the .yaml files in .github/workflows with your details of mqqt broker for each topic i.e Issue Open , Pull Requet Open and Pull Request Closed.

     protocol: mqtt
     host: hostname
     port: 1883
     topic: "mqtt-action/test"
     message: true
     username: 'your-username'
     password: ${{ secrets.MQTT_BROKER_PASSWORD }}
    Enter fullscreen mode Exit fullscreen mode
  • Now connect a buzzer to NodeMCU gpio pin and enter the mqtt broker details in the .ino file.

  • Upload the code to NodeMCU using Arduino IDE to the board and that's it.

  • The device will connect to the MQTT Server and will generate a tone for respective Github Action.

Usage

  • Just…




Additional Resources / Info

Figma Link

Youtube Link

Top comments (1)

Collapse
 
mayankofficial999 profile image
Mayank Sharma