Giter VIP home page Giter VIP logo

getwell's Introduction

GetWell

A tool for monitoring the state of vaccination refrigeration units.

Data Model

  • Fridge The permanent (i.e. name, location) and latest transient data of a fridge.
  • FridgeStatus A single report of transient data (i.e. usingBattery, battery level).

Source Layout

cloud/ - Cloud code

  • main.js code deployed on Parse. Publishes FridgeStatus objects to Fridges and sends pushes if the update warrants concern.
  • cron.js node.js code which periodically to detects Fridges which are not updated (automatically by a FridgeStatus being published)

config/ - Configuration directory for cloud code. Automatically created by Parse

fridge_sim/ - scripts used for simulating a series of fridges. Each assumes a fridgestatus directory.

  • create_mock_files.py [int threshold] Downloads the list of all known Fridge objects from Parse and creates a file that allows the fridge to be mocked. If specified, threshold states the percentage that should be mocked as powered, else 100% are powered.
  • update_all_statuses.py Should be run in the background during demos. Sends heartbeat signals.
  • update_chagned_statuses.py Should be run in the background during dmeos. Sends updates more quickly if a mock file is modified.
  • discharge.py [fridge] Simulates a fridge being disconnected from power. fridge is the name of a fridge without spaces.
  • charge.py [fridge] Simulates a fridge being reconnected to power. fridge is the name of a fridge without spaces.
  • malfunction.py [fridge] Simulates a fridge malfunction. It will stop sending heartbeats in update_all_statuses.py. fridge is the name of a fridge without spaces.

ios/ - A project which allows users to register for pushes when a fridge needs attention

www/ - HTML5 web application displaying global fridge statuses.

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.