Code Monkey home page Code Monkey logo

cappy's Introduction

Cappy

Check your glucose with Cappy. A simplified view of your Nightscout CGM data.

Very much a work in progress. The basic data is present, but no styling to speak off.

Notes/Journal

  • Currently the build process is very messy. Experimenting with esbuild, eschewing webpack.
  • Wrote a simple fsevents watch bash script to rebuild the client.
    • Requires fswatch (brew install fswatch).
  • Netlify-lambda handles the serverless functions locally.
  • Attempted parcel v2 beta, but fell back to v1 over proxy/cors issues.
  • Used simple parcel-bundler server instead, obtained from comments in Parcel github issues.
  • Still use esbuild for the netlify functions.
  • Sticking with netlify-lambda for api functions.
  • Experimenting with Rebasss.js. A hodge podge of styling right now.

Deploy to Netlify

You will need the following environment variables defined in Netlify:

NS_TOKEN=<subject token from nightscout>
NS_URI=<https://yourinstance.herokuapp.com/api/v3>
DEV_API_HOST=<insert your local api server hostpost here. i.e. http://localhost:9000>
  • You can create the token in Nightscout by clicking Admin Tools > Add new Subject.
  • Be sure to include your full Nightscout url starting with https: and ending with /api/v3.

cappy's People

Contributors

colw avatar

Watchers

 avatar James Cloos avatar  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.