Skip to content

Latest commit

 

History

History
36 lines (23 loc) · 2.42 KB

README.md

File metadata and controls

36 lines (23 loc) · 2.42 KB

Netatmo Weather Display

A weather display web application for presenting temperature information gathered by locally installed Netatmo weather sensors.

Optimized for 1st generation iPad. Using Chrome browser on iPad allows us to "hide" the browser chrome by tapping on the date.

Screenshot

Screenshot of the Netatmo Weather Display

Requirements

  1. Netatmo weather station — you will need the MAC address of the big module. My setup consists of big module and three additional modules, thus the app is optimized for the amount.
  2. Netatmo connect dev app created (this is needed to authorize fetching the data via Netatmo API) — you will need to make note of the client ID and client secret under App Technical Parameters.
  3. Your latitude and longitude for weather forecast by Finnish Meteorological Institute and for sunrise/sunset times — get these by opening Google Maps on desktop and right-clicking on the map; you can see the coordinates on the top of the popup.
  4. Web server with PHP support (local is fine).

Installation

  1. Clone the repository to web server.
  2. Rename config.example.php to config.php and adjust the definitions inside it.
  3. Open the site on the server.

Local development

When developing and testing locally, you may bump into an error message saying SSL certificate problem: self signed certificate. In this case, you should download the cacert.pem certificate bundle and define the location of this file in php.ini directive like so:

curl.cainfo = "c:\example_folder\cacert.pem"

If you're using Local by Flywheel on Windows, the correct file is php.ini.hbs and can fe found under Local Sites\<sitename>\conf\php-x.y.z where x.y.z is the PHP version currently utilized by the site. Add the line, restart the site.

Credits

Weather forecast from Norwegian Meteorological Institute's developer API.

Icons from Feather Icons. Weather symbols from Yr.