GithubHelp home page GithubHelp logo

keeakita / iotmoist Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 43 KB

Server code for my IoT humidifier

License: MIT License

Makefile 1.28% HTML 7.90% CSS 3.05% JavaScript 23.72% Ruby 56.17% Shell 7.87%

iotmoist's People

Contributors

keeakita avatar

Stargazers

 avatar

Watchers

 avatar

iotmoist's Issues

Rate limits

Instead of just limit oscillations, go ahead and ban anyone who tries to go crazy on it with requests. I may end up doing this proxying through Apache instead of in the application server itself

Clean up JSON data types

Right now just about everything is a string. This made it nice and easy to just write and read straight from VFS, but it should be standardized on booleans.

Expose current power value to API

Right now the API lets you read the LED status. If everything is working fine, one of the LEDs being active indicates power is on, but it'd be nice to be able to detect when the circuit is on but there is no light, since that means something broke. This should be exposed in the JSON, something like has_power.

Proper privilege handling

Right now the server has to run as root to set up the pins properly and write values. This is kind of awful security wise. Possible solutions:

  1. Set CAP_SYS_RAWIO - That's still a lot of power
  2. Have the program give up its root privileges

GUI

This project isn't very engaging to people who don't know how to use CURL or some other tool to interact with it. Come up with a fancy GUI page that lets people just click buttons to change state.

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.