Skip to content
/ ScaleWS Public

Get, process and visualize data acquired from a wifi body scale (Withings WS50).

Notifications You must be signed in to change notification settings

ababol/ScaleWS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScaleWS

Get and process data acquired from the scale (Withings WS50)

What it does

Demo GIF

You can also add/update/delete a value by using the user interface.

Install

  1. Make sure you have node installed.

  2. Make sure you have access to a mongoDB database.

  3. Install the required node dependencies:

npm install
  1. (Optional) You can stock the data to a different collection by editing the config.js file, by default the data are stocked in mongodb://localhost/scalews_dev.
    You can also import our dumped MongoDB collection.

  2. Launch the Node Server: (it should install the client/bower dependencies automatically)

grunt dev

##How to hack the scale

Customization

Client

Add a predefined view

You can add a predefined view (Average/Text/Chart/Menu) by editing the public/js/config.js file.

    views: {
      chart: { // type of view
        0: {
          el: "chart-weight", // DOM element (id)
          title: "Weight Chart", // Title of the view
          theme: dark, // Theme of the view -> public/styles/js/dark-light-theme.js
          type: 1 // What data do you want to display? Here 1 === weight
        },

You have also to add the DOM element in the view/index.jade file.

Add a custom view

You can add your own view by editing the public/js/view/App.View.js file.
You have to add your view(s) in the function below:

initViews: function() {
  // Here is an example with HighChart Views
  // HighChartView -> public/views/measure/HighChart.View.js
  // Config -> public/js/config.js
  _.each(Config.views.chart, function(c) {
    new HighChartView(c, this.collection);
  }, this);
  // Add your custom view here
  // ...
}

API

DemoAPI GIF

You can also add/update/delete data thanks to the API.
See the description of the API View for more details.

Resources

##How does ScaleWS work ##MongoDB Dump Download & extract the dump DB and use this command to restore it:

mongorestore --noIndexRestore

##Slides

About

Get, process and visualize data acquired from a wifi body scale (Withings WS50).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published