GithubHelp home page GithubHelp logo

vtt-info / pico_w_http_relays Goto Github PK

View Code? Open in Web Editor NEW

This project forked from brunofjesus/pico_w_http_relays

0.0 0.0 0.0 5 KB

Control Relays or other inputs via HTTP with the Pico W

Python 100.00%

pico_w_http_relays's Introduction

Pico W HTTP Relay

Control a relay (or any other output) via HTTP

HTTP Endpoints

  • /on: turns the input on
  • /off: turns the input off
  • /status: outputs the status

As of now you can use any method (POST, GET, PUT), they will all do the same.

Configuration

This program gets the configs from the config.json file in the pico, you can either place a configured one or you can just connect to your machine USB port and configure it via the serial connection (with minicom, cutecom or similar).

The following commands are supported via serial:

  • set:ssid: your_ssid: set wifi SSID to connect to
  • set:pass: your_password: set wifi password
  • set:debug: 1/0: activate debug messages
  • set:relay: on/off/status: same as the HTTP endpoints
  • ifconfig: print network information

The pin is hardcoded to GP22 on relay.py, I will maybe add that to the configs.

Limitations

Right now this only supports 1 input, I'll probably change this in order to support more inputs if I feel the need for it.

pico_w_http_relays's People

Contributors

brunofjesus avatar

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.