Giter Club home page Giter Club logo

keg-server's People

Contributors

marchchad avatar

Stargazers

 avatar

Watchers

 avatar  avatar

keg-server's Issues

Create methods to interface with optional local database

Set up a local mysql database on the raspberry pi.
Database will be used to store information for a configurable amount of time (i.e., n days, weeks, months, etc.).

Implement a method to archive and/or delete local records when confirmation of data present on remote database.

Create intranet admin application

Create local admin application to set for each configured flow meter:

  • Keg ID
  • Flow rate
  • GPIO Pin
  • Units (pints vs liters)
  • Volume kegged

Update token daily

Expand class to regenerate new JWT every 24 hours.
Ideas:

  • create a timing method/class in script
  • create a cron job that gets JWT and writes it to config. Update GetToken method to read token from config.

Check socket heartbeat

Update any method that uses the socket connections to check for the socket heartbeat.
If no heartbeat is present, establish a new connection.

Create local config

Create a local config and update .gitignore to exclude it from the repo.

  • Config should contain application user name and password.
  • Create a template config to include in the repo.

Create production script

Refactor test script into a production level script using classes and methods.

The class should include:

  • Database access to get parameters for:
    • Flow rate
    • Keg id
    • GPIO Pin
    • Units (pints vs liters)
    • Volume kegged

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.