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).
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.
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'
}
},
]
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 |
This module uses the Alplakes API which is free and does not require a key.
- Go to https://map.geo.admin.ch/.
- Find your lake and press right click on the desired point.
- Get the coordinates where it says «WGS 84 (lat/lon)».