Skip to content

Commit

Permalink
* (Apollon77) Try to prevent adapter crashes when internet is not ava…
Browse files Browse the repository at this point in the history
…ilable

* (Apollon77) Add Sentry for crash reporting
* do not store password_repeat
* remove admin<3 support and add correct admin dependency
  • Loading branch information
Apollon77 committed Mar 18, 2022
1 parent 8d31592 commit db7b07d
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 344 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,3 +121,18 @@ jobs:
# Prerelease versions create pre-releases on GitHub
prerelease: ${{ contains(steps.extract_release.outputs.VERSION, '-') }}
body: ${{ steps.extract_release.outputs.BODY }}

- name: Notify Sentry.io about the release
run: |
npm i -g @sentry/cli
export SENTRY_AUTH_TOKEN=${{ secrets.SENTRY_AUTH_TOKEN }}
export SENTRY_URL=https://sentry.iobroker.net
export SENTRY_ORG=iobroker
export SENTRY_PROJECT=iobroker-netatmo
export SENTRY_VERSION=iobroker.netatmo@${{ steps.extract_release.outputs.VERSION }}
sentry-cli releases new $SENTRY_VERSION
sentry-cli releases set-commits $SENTRY_VERSION --auto
sentry-cli releases finalize $SENTRY_VERSION
# Add the following line BEFORE finalize if sourcemap uploads are needed
# sentry-cli releases files $SENTRY_VERSION upload-sourcemaps build/
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
[![Translation status](https://weblate.iobroker.net/widgets/adapters/-/telegram/svg-badge.svg)](https://weblate.iobroker.net/engage/adapters/?utm_source=widget)
[![Downloads](https://img.shields.io/npm/dm/iobroker.telegram.svg)](https://www.npmjs.com/package/iobroker.telegram)

**This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers.** For more details and for information how to disable the error reporting see [Sentry-Plugin Documentation](https://github.com/ioBroker/plugin-sentry#plugin-sentry)! Sentry reporting is used starting with js-controller 3.0.

## Configuration
Ask [@BotFather](https://telegram.me/botfather) to create new bot ```/newbot```.

Expand Down Expand Up @@ -703,6 +705,11 @@ msg.payload = {
-->

## Changelog

### __WORK IN PROGRESS__
* (Apollon77) Try to prevent adapter crashes when internet is not available
* (Apollon77) Add Sentry for crash reporting

### 1.11.1 (2022-01-27)
* (bluefox) fixed the receiving files

Expand Down
336 changes: 0 additions & 336 deletions admin/index.html

This file was deleted.

1 change: 1 addition & 0 deletions admin/index_m.html
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@
return showMessage(_('Password confirmation is not equal with password'));
}
//obj.password = encrypt('Zgfr56gFe87jJON', obj.password);
delete obj.passwordRepeat;

callback(obj);
}
Expand Down
Loading

0 comments on commit db7b07d

Please sign in to comment.