GithubHelp home page GithubHelp logo

nodemcu-esp8266-homebridge-switch's Introduction

๐Ÿ’ซ About Me:

๐Ÿ‘‹ Hey there, I'm Esham Aaqib!

๐ŸŒ Who Am I?
I'm a DevOps Engineer passionate about automating workflows and optimizing systems for reliability and scale. Whether implementing CI/CD pipelines, orchestrating containers, or managing cloud infrastructure, I love making developers' lives easier and systems more robust.

๐ŸŒ Socials:

LinkedIn Twitter

๐Ÿ’ป Tech Stack:

Shell Script Python Markdown C++ Apache Groovy AWS Azure Datadog Google Cloud Jenkins Nginx AmazonDynamoDB MariaDB MySQL Postgres Redis LINUX Ansible Kubernetes Raspberry Pi Terraform Docker Arduino

๐Ÿ“Š GitHub Stats:



nodemcu-esp8266-homebridge-switch's People

Contributors

aaqib12 avatar eshamaaqib avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

sh0ckwavezero

nodemcu-esp8266-homebridge-switch's Issues

Modulating on/off instead of having it constantly on?

Hey there,

Thank you so much for providing this script, it works perfectly for me! So much so that I want to expand my usage of it to control a mister system. The only complication is that instead of having the "/LED=ON" request causing the relay to stay on permanently, I would love it if it were possible to modulate the relay on for 3 seconds then off for 5 and to repeat this forever until it receives the "/LED=OFF" request. The problem is that; a) I have very little experience programming for Arduinos and b) despite this, I realise that instead of simply having digitalWrite(ledPin, HIGH); to be the command that is run when the script is requested to turn on, it should instead be something like:

digitalWrite(ledPin, HIGH);
delay(3000);
digitalWrite(ledPin, LOW);
delay(5000);

But in a loop, this is where my knowledge of Arduino IDE programming reaches its limits. The two problems I am unable to overcome are:

  1. How would I loop this command for an infinite number of times?

  2. How could you stop this loop and simply do digitalWrite(ledPin, LOW); when the "/LED=OFF" request is made?

I would really appreciate it if you could help me out as I have been unable to find any similar situations online and my distinct lack of Arduino programming means that I have been unable to solve this myself.

Thank you in advance for any assistance,

Kind regards,
Tom

Connect more than 1 relay.

Hey thanks for the awesome code. Just wanted to know if it is possible to connect more than one relay. Cheers ๐Ÿป

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.