https://github.com/teemoo7/mmm-alplakeslivetemperature
Displays live temperature of a given lake in the Alps (Switzerland, Italy, France, ...)
https://github.com/teemoo7/mmm-alplakeslivetemperature
alps france italy lake live magicmirror magicmirror-module magicmirror2 switzerland temperature
Last synced: 6 months ago
JSON representation
Displays live temperature of a given lake in the Alps (Switzerland, Italy, France, ...)
- Host: GitHub
- URL: https://github.com/teemoo7/mmm-alplakeslivetemperature
- Owner: teemoo7
- License: mit
- Created: 2024-11-15T09:55:03.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-01-08T17:26:44.000Z (9 months ago)
- Last Synced: 2025-02-05T18:37:56.973Z (8 months ago)
- Topics: alps, france, italy, lake, live, magicmirror, magicmirror-module, magicmirror2, switzerland, temperature
- Language: JavaScript
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MMM-AlplakesLiveTemperature
[MagicMirror²](https://github.com/MichMich/MagicMirror/) module to display live temperature of a given lake in the Alps (Switzerland, Italy, France, ...).
Note that not all lakes are covered by the API provider.
## Installation
1. Navigate to the `MagicMirror/modules` directory.
2. Execute `git clone https://github.com/teemoo7/MMM-AlplakesLiveTemperature.git`
3. Run `npm install` in the `MagicMirror/modules/MMM-AlplakesLiveTemperature` directory
4. Configure the module with your settings as per below
5. Restart MagicMirror## Update
1. Navigate to the `MagicMirror/modules/MMM-AlplakesLiveTemperature` directory.
2. Execute `git pull` to pull the latest version of the repository.
3. Run `npm install` to update dependencies if needed.## Usage
To use this module, add the following configuration block to the modules array in the `config/config.js` file.
You can either display the average temperature of the lake:
```js
modules: [
{
module: "MMM-AlplakesLiveTemperature",
position: "top_left",
config: {
title: "Lac Léman",
lake: "geneva",
}
},
]
```Or the temperature at a specific point in the lake:
```js
modules: [
{
module: "MMM-AlplakesLiveTemperature",
position: "top_left",
config: {
title: "Plage du Jardin Doret",
lake: "geneva",
latitude: 46.46172,
longitude: 6.834985,
depth: 2
}
},
]
```## Configuration
### Options
| Field | Required | Description | Default |
|------------------|----------|-----------------------------------------------------------------------|----------------------------------|
| `title` | `false` | The title to be displayed (lake name or beach name, up to you) | (empty) |
| `lake` | `true` | The lake name as defined by API provider Alplakes (see below) | |
| `depth ` | `false` | The depth (in meters) at which temperature is to be retrieved | `1` |
| `latitude ` | `false` | Latitude coordinate of the location | (empty) |
| `longitude` | `false` | The depth (in meters) at which temperature is to be retrieved | (empty) |
| `refresh` | `false` | Refresh interval (in milliseconds) | `(60 * 60 * 1000)` (1 hour) |
| `animationSpeed` | `false` | Animation time to display results (in milliseconds) | `2000` |
| `units` | `false` | Units for temperature. Values can be `metric` (°C) or `imperial` (°F) | Value from global config `units` |## Alplakes API
Relies on [Alplakes API](https://www.alplakes.eawag.ch/).
Lake values include: `geneva`, `zurich`, `biel`, `joux`, `garda`, `lugano`, etc