Code Monkey home page Code Monkey logo

intercom-restfull-integration-esp8266-platformio's Introduction

intercom-integration-esp8266-platformio

A tiny RESTfull API for opening an old intercom that has to emulate reciever pick-up and after setupable delay closing the physical gate circuit.

ToDo:

NECESSARY:

  • make a fritzing schematic

  • find out the current going through the phycisal gate circuit when opening the gate

  • post photos of the intercom circuit

  • json config load (arduinoJson6)

    • try the official example way with a struct Config ?
    • find Guy with the Swedish Accent's approach with ArduinoJson5 and see how to pin the lib in platformio.ini
  • if that doesn't work - fallback to either arduinoJson5 or line parsing a text file

  • create a user at my http server for OTA

  • OTA

AFTER 1st working version:

  • HTTPS letsenrypt โ†’ for PUT on /config
  • multi WiFi credentials
  • GitLab CI/CD integration (Docker)
  • Authentication for sensitive endpoints (or all? - configurable)

REST End-points:

  • GET: /open or /o > get method for easier cli integration like so: curl 192.168.1.101/open
  • GET: /health or /h
  • PUT: /delay_ms?t=500
  • PUT: /pulse_length_ms?t=500
  • GET: /restart
  • PUT: /OTA/address?a="http://lepi.pl/OTA/RPLUS-intercom"
  • GET: /OTA/reload > check for updates at address
  • GET: /config โ†’ json with config but only https and with AUTHENTICATION

BOM:

  • resistors: 2x 1kohm [min.500ohm (over 1kohm doesn't close the relay) (12mA per pin on Wemos)]
  • transistors: 2x CTBC 547B JS (I hope they're not running JavaScript xD)
  • 2x relay RZ2 G4,5 ITT West Germany (>29 yrs old)
  • micro-usb power supply

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.