Skip to content

Display the temperature of a swiss lake on your MagicMirror.

License

Notifications You must be signed in to change notification settings

roufri/MMM-SwissLakeTemperature

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MMM-SwissLakeTemperature

Display the temperature of a Swiss lake at a given point on your MagicMirror.

This module uses data from the Alplakes API (formerly the EPFL Meteolakes API).

Example screenshots

Hot

Warm

Average

Cold

Freezing

Installation

Navigate into your MagicMirror's modules folder:

cd ~/MagicMirror/modules

Clone this repository:

git clone https://github.com/roufri/MMM-SwissLakeTemperature

Configure the module in your config.js file.

Using the module

To use this module, add the following configuration block to the modules array in the config/config.js file:

modules: [
	{
		module: 'MMM-SwissLakeTemperature',
		position: 'top_left',
		header: 'Water temperature',
		config: {
			latitude: '47.36539',
			longitude: '8.54305',
			lake: 'zurich',
			depth: '1'
		}
	},
]

Configuration options

Option Description
latitude Latitude (x-coordinate) of the point in the lake (WGS 84).

Type: String
Default 47.36539 (pointing to Zurich Bellevue)
longitude Longitude (y-coordinate) of the point in the lake (WGS 84).

Type: String
Default 8.54305 (pointing to Zurich Bellevue)
lake The desired lake to measure the temperature.
Check available lakes here (go down to Schemas > Lakes > Enum)

Type: String
Default zurich
depth Depth where the water temperature should be measured (in metres).

Type: String
Default 1

Dependencies

This module uses the Alplakes API which is free and does not require a key.

Find the WGS 84 coordinates

  1. Go to https://map.geo.admin.ch/.
  2. Find your lake and press right click on the desired point.
  3. Get the coordinates where it says «WGS 84 (lat/lon)».

Coordinates

About

Display the temperature of a swiss lake on your MagicMirror.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published