Skip to content

Smashing.io Widget for Netatmo Personal Weather Stations

Notifications You must be signed in to change notification settings

gazzmanzx6/smashing_netatmo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

A Smashing widget to display readings from your Netatmo Personal Weather Station (PWS).

Dependencies

You need an account and Weather Station from Netatmo.

You also need to register your own app at Netatmo Developer to get access to all readings from your PWS. Once the app is created you need to generate a refresh_token as username and password are no longer accepted by the Netatmo API.

Add to dashing's gemfile:

gem 'curb'
gem 'json'
gem 'sinatra'
gem 'thin'
gem 'net-http'
gem 'oauth2'

and run bundle install.

Usage

Update your settings in config/netatmo.yml

Copy the app.rb file to the smashing-dashboards/dashboard folder and run it using:

ruby app.rb -o 0.0.0.0

Then in the browser navigate to http://localhost:4567 Click on the link to authenticate via the Netatmo site.

This will save the access & refresh tokens in the tokens.json file.

Add the widget HTML to your dashboard

    <li data-row="1" data-col="5" data-sizex="1" data-sizey="5">
      <div data-id="netatmo" data-view="Netatmo"></div>
    </li>

About

Smashing.io Widget for Netatmo Personal Weather Stations

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 48.4%
  • CoffeeScript 22.3%
  • HTML 15.7%
  • SCSS 13.6%