Giter Site home page Giter Site logo

water-quality-dials's Introduction

water-quality-dials

This is a svelte app. You need node installed.

  1. Clone the repo
  2. cd into the directory root, then npm install.
  3. npm generate
  4. npm run dev to run it locally at https://localhost:5000

Configuring the dials

This uses a blob of json on the page to feed microcopy and other configuration info. The settings file can be found in ./functions/settings.json. The configuration is rendered to a <script> tag on the index and consumed as App props.

example

"south": {
    "name": "South Branch",
    "description": "Near Eleanor Boat House",
    "min": 0,
    "max": 100,
    "main_dial_stops": 10,
    "main_gauge_stops": 5
}

Supported options are:

key value
name The main gauge name. Appears in bold at the top of each guage
description Small italic descriptor underneath the name
min The lowest possible value reflected on the gauges. Probably 0.
max The highest possible value reflected on the gauges. Probably 100.
main_dial_stops The number of tick marks along the main dial.
main_gauge_stops The number of main ticks on the chart at the bottom.

Deploying/publishing

  1. Run npm run generate to make ./public/index.html
  2. Run npm run build to create the javascript and css bundle files.
  3. The HTML contents are rendered to the index file and are suitable for a pym iframe.
  4. The bundle files and HTML index should be uploaded to the web server.

water-quality-dials's People

Contributors

ryanbmarx avatar

Watchers

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