From 732fac4d7e44e440c0bfbc2b37b41c4a7699765a Mon Sep 17 00:00:00 2001 From: Matthias Kleine Date: Thu, 29 Oct 2020 21:10:36 +0100 Subject: [PATCH] 0.0.10 --- README.md | 8 ++++++++ io-package.json | 6 +++++- main.js | 4 ++++ 3 files changed, 17 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0f47e08..d71631a 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,8 @@ All you need is the IP address of your device and the api developer key. ## Configuration +Tested with LaMetric firmware *2.0.28* and *2.1.2* (recommended) + You can get your personal key [here](https://developer.lametric.com/). ![api-key](docs/apiKey.png) @@ -35,6 +37,8 @@ You can read more about notifications here: https://lametric-documentation.readt - Send blockly notifications (with configurable priority, sound, icons, text, ...) - Control special apps like radio, stopwatch and weather +Features are limited by the [official API features](https://lametric-documentation.readthedocs.io/en/latest/reference-docs/lametric-time-reference.html). + ## Blockly You can use a simple string as message, which will be shown as a single frame @@ -112,6 +116,10 @@ show(); ## Changelog +### 0.0.10 + +* (klein0r) Switched to axios lib + ### 0.0.9 * (klein0r) Added missing translations diff --git a/io-package.json b/io-package.json index e6e53d2..6cfce91 100644 --- a/io-package.json +++ b/io-package.json @@ -1,8 +1,12 @@ { "common": { "name": "lametric", - "version": "0.0.9", + "version": "0.0.10", "news": { + "0.0.10": { + "en": "Switched to axios lib", + "de": "Zu axios library gewechselt" + }, "0.0.9": { "en": "Added missing translations", "de": "Fehlende Übersetzungen hinzugefügt" diff --git a/main.js b/main.js index 5b40caf..db5ba9d 100644 --- a/main.js +++ b/main.js @@ -645,9 +645,13 @@ class LaMetric extends utils.Adapter { // `error.request` is an instance of XMLHttpRequest in the browser and an instance of // http.ClientRequest in node.js this.log.info(error.message); + + this.setState('info.connection', false, true); } else { // Something happened in setting up the request that triggered an Error this.log.error(error.message); + + this.setState('info.connection', false, true); } }.bind(this) );