Skip to content

Commit

Permalink
0.0.10
Browse files Browse the repository at this point in the history
  • Loading branch information
klein0r committed Oct 29, 2020
1 parent 4c70a73 commit 732fac4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down Expand Up @@ -112,6 +116,10 @@ show();

## Changelog

### 0.0.10

* (klein0r) Switched to axios lib

### 0.0.9

* (klein0r) Added missing translations
Expand Down
6 changes: 5 additions & 1 deletion io-package.json
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 4 additions & 0 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
Expand Down

0 comments on commit 732fac4

Please sign in to comment.