<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mayank Sharma</title>
    <description>The latest articles on DEV Community by Mayank Sharma (@mayankofficial999).</description>
    <link>https://dev.to/mayankofficial999</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F771328%2Fff0a2ad0-30c6-4070-804d-aee30f2ef334.jpeg</url>
      <title>DEV Community: Mayank Sharma</title>
      <link>https://dev.to/mayankofficial999</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mayankofficial999"/>
    <language>en</language>
    <item>
      <title>Contralert</title>
      <dc:creator>Mayank Sharma</dc:creator>
      <pubDate>Thu, 09 Dec 2021 07:19:38 +0000</pubDate>
      <link>https://dev.to/mayankofficial999/contralert-4k5a</link>
      <guid>https://dev.to/mayankofficial999/contralert-4k5a</guid>
      <description>&lt;h2&gt;
  
  
  Contralert
&lt;/h2&gt;

&lt;p&gt;&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/JXIDHynqHH4"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h3&gt;
  
  
  My Workflow
&lt;/h3&gt;

&lt;p&gt;Contralert is a utility device which produces different sound tones for every issue created, pull request opened, and pull request closed using Github Actions&lt;/p&gt;

&lt;h3&gt;
  
  
  Submission Category:
&lt;/h3&gt;

&lt;p&gt;Interesting IoT&lt;/p&gt;

&lt;h3&gt;
  
  
  Yaml File or Link to Code
&lt;/h3&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--566lAguM--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/mayankofficial999"&gt;
        mayankofficial999
      &lt;/a&gt; / &lt;a href="https://github.com/mayankofficial999/Contralert"&gt;
        Contralert
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;p&gt;&lt;a rel="noopener noreferrer" href="https://github.com/mayankofficial999/Contralert./ContralertBanner.png"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--LmdRHIVx--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://github.com/mayankofficial999/Contralert./ContralertBanner.png" alt="Banner"&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;
Contralert is a utility device which produces different sound tones for every issue created, pull request opened, and pull request closed using Github Actions
&lt;/p&gt;

&lt;h2&gt;
Setup and Installation&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Go to repo Settings/Secrets and add a new repository secret with name as MTQT_BROKER_PASSWORD and value as key.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;div class="highlight highlight-source-yaml position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt; &lt;span class="pl-ent"&gt;protocol&lt;/span&gt;: &lt;span class="pl-s"&gt;mqtt&lt;/span&gt;
 &lt;span class="pl-ent"&gt;host&lt;/span&gt;: &lt;span class="pl-s"&gt;hostname&lt;/span&gt;
 &lt;span class="pl-ent"&gt;port&lt;/span&gt;: &lt;span class="pl-c1"&gt;1883&lt;/span&gt;
 &lt;span class="pl-ent"&gt;topic&lt;/span&gt;: &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;"&lt;/span&gt;mqtt-action/test&lt;span class="pl-pds"&gt;"&lt;/span&gt;&lt;/span&gt;
 &lt;span class="pl-ent"&gt;message&lt;/span&gt;: &lt;span class="pl-c1"&gt;true&lt;/span&gt;
 &lt;span class="pl-ent"&gt;username&lt;/span&gt;: &lt;span class="pl-s"&gt;&lt;span class="pl-pds"&gt;'&lt;/span&gt;your-username&lt;span class="pl-pds"&gt;'&lt;/span&gt;&lt;/span&gt;
 &lt;span class="pl-ent"&gt;password&lt;/span&gt;: &lt;span class="pl-s"&gt;${{ secrets.MQTT_BROKER_PASSWORD }}&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Now connect a buzzer to NodeMCU gpio pin and enter the mqtt broker details in the .ino file.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;Upload the code to NodeMCU using Arduino IDE to the board and that's it.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;The device will connect to the MQTT Server and will generate a tone for respective Github Action.&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
Usage&lt;/h2&gt;


&lt;ul&gt;
&lt;li&gt;Just…&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;br&gt;
  &lt;/div&gt;
&lt;br&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/mayankofficial999/Contralert"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;br&gt;
&lt;/div&gt;
&lt;br&gt;


&lt;h3&gt;
  
  
  Additional Resources / Info
&lt;/h3&gt;

&lt;p&gt;&lt;a href="https://www.figma.com/file/EAmoVJHJ0qbHAsxvfnhcMP/Contralert?node-id=0%3A1"&gt;Figma Link&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://youtu.be/JXIDHynqHH4"&gt;Youtube Link&lt;/a&gt;&lt;/p&gt;

</description>
      <category>actionshackathon21</category>
    </item>
  </channel>
</rss>
