Code Monkey home page Code Monkey logo

iobroker.uv-protect's Introduction

Logo

ioBroker.uv-protect

NPM version Downloads Number of Installations (latest) Number of Installations (stable) Known Vulnerabilities Test and Release

License Donate

uv-protect adapter for ioBroker

UV-Protect from openUV-API


Support adapter development

If you like it, please consider a donation:

paypal


What is Sentry.io and what is reported to the servers of that company?

Sentry.io is a service for developers to get an overview about errors from their applications. And exactly this is implemented in this adapter.

When the adapter crashes or an other Code error happens, this error message that also appears in the ioBroker log is submitted to Sentry. When you allowed iobroker GmbH to collect diagnostic data then also your installation ID (this is just a unique ID without any additional infos about you, email, name or such) is included. This allows Sentry to group errors and show how many unique users are affected by such an error. All of this helps me to provide error free adapters that basically never crashs.


Changelog

WORK IN PROGRESS

  • (simatec) Dependencies updated

0.6.0 (2024-02-05)

  • (simatec) Dependencies updated
  • (simatec) gulp deleted
  • (simatec) @iobroker/adapter-dev
  • (simatec) Translation updated

0.5.1 (2023-11-02)

  • (simatec) Dependencies updated

0.5.0 (2023-10-11)

  • (simatec) Dependencies updated
  • (simatec) Fix units
  • (simatec) Code clean

0.4.2 (2023-09-05)

  • (simatec) Dependencies updated
  • (simatec) test and release updated
  • (simatec) Translation updated

0.4.1 (2023-06-19)

  • (simatec) Dependencies updated
  • (simatec) Fix Adapter Stop

0.4.0 (2023-03-18)

  • (simatec) Dependencies updated
  • (simatec) Repo updated

0.3.7 (2022-11-01)

  • (simatec) Fix Axios Request
  • (simatec) Dependencies updated

0.3.6 (2022-07-11)

  • (simatec) Fix Request
  • (simatec) timeout added
  • (simatec) Dependencies updated

0.3.5 (2022-02-08)

  • (simatec) Fix value types
  • (simatec) Fix Axios Request
  • (simatec) Dependencies updated

0.3.4 (2021-11-17)

  • (simatec) Dependencies updated
  • (simatec) test and release updated

0.3.3 (31.07.2021)

  • (simatec) Bugfix async/await function

0.3.2 (28.07.2021)

  • (simatec) Bugfix

0.3.1 (28.06.2021)

  • (simatec) Date / time formatted

0.3.0 (24.06.2021)

  • (simatec) code cleaning
  • (simatec) added translate to system language for states
  • (simatec) Bugfix Timestamp
  • (simatec) value formating
  • (simatec) Dependencies updated
  • (simatec) name for states updated

0.2.3

  • (simatec) apiKey auto encrypted

0.2.2

  • (simatec) apiKey encrypted
  • (simatec) fix async function

0.2.1

  • (simatec) Fix for latest Repo

0.2.0

  • (simatec) jsonConfig for Admin5 added

0.1.0

  • (simatec) First Beta

0.0.1

  • (simatec) initial release

License

MIT License

Copyright (c) 2021 - 2024 simatec

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

iobroker.uv-protect's People

Contributors

dependabot[bot] avatar mcm1957 avatar simatec avatar watcherkb avatar

Watchers

 avatar  avatar  avatar

iobroker.uv-protect's Issues

Please fix errors reported by adapter checker

โ— [E510] "/admin/i18n/uk/translations.json" or "admin/i18n/uk.json" not found, but admin support is declared
๐Ÿ‘€ [W171] "common.title" is deprecated in io-package.json
๐Ÿ‘€ [W105] "common.titleLang" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
๐Ÿ‘€ [W109] "common.desc" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)
๐Ÿ‘€ [W145] Each "common.news" should be translated into all supported languages (en, de, ru, pt, nl, fr, it, es, pl, uk, zh-cn)

Fixing with next release is sufficient

Update stable version in repo from 0.4.2 to 0.5.0

Think about update stable version to 0.5.0

Version: stable=0.4.2 (51 days old) => latest=0.5.0 (15 days old)
Installs: stable=174 (53.21%), latest=51 (15.6%), total=327

Click to use developer portal
Click to edit

Note: This is an automatically generated message and not personally authored by bluefox!

Test fails due to sentry problem

test-and-release fails due to sentry problem:

https://github.com/simatec/ioBroker.uv-protect/actions/runs/6730210168/job/18292633659#step:8:19

Run npm i -g @sentry/cli

added [13](https://github.com/simatec/ioBroker.uv-protect/actions/runs/6730210168/job/18292633659#step:8:14) packages in 1s
error: project not found

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output.
Please attach the full debug log to all bug reports.
Error: Process completed with exit code 1.

wrong value types (?)

it seems there are some wrong value types

`

uv-protect.0 2022-02-08 00:10:01.262 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:10:01.262 warn Object uv-protect.0.uv_warn is invalid: Default value has to be type "boolean" but received type "string"
uv-protect.0 2022-02-08 00:10:01.255 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:10:01.255 warn Object uv-protect.0.uv_alert is invalid: Default value has to be type "boolean" but received type "string"
uv-protect.0 2022-02-08 00:10:01.233 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:10:01.232 warn Object uv-protect.0.sun_info.sun_position.altitude is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:10:01.183 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:10:01.183 warn Object uv-protect.0.sun_info.sun_position.azimuth is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:10:01.114 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:10:01.114 warn Object uv-protect.0.safe_exposure_time.st6 is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:10:01.103 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:10:01.102 warn Object uv-protect.0.safe_exposure_time.st5 is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:10:01.094 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:10:01.093 warn Object uv-protect.0.safe_exposure_time.st4 is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:10:01.081 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:10:01.081 warn Object uv-protect.0.safe_exposure_time.st3 is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:10:01.072 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:10:01.069 warn Object uv-protect.0.safe_exposure_time.st2 is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:10:01.060 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:10:01.059 warn Object uv-protect.0.safe_exposure_time.st1 is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:10:01.045 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:10:01.041 warn Object uv-protect.0.ozone is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:10:01.023 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:10:01.022 warn Object uv-protect.0.uv_max is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:10:01.001 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:10:00.999 warn Object uv-protect.0.uv is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:08:37.958 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:08:37.957 warn Object uv-protect.0.uv_warn is invalid: Default value has to be type "boolean" but received type "string"
uv-protect.0 2022-02-08 00:08:37.949 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:08:37.949 warn Object uv-protect.0.uv_alert is invalid: Default value has to be type "boolean" but received type "string"
uv-protect.0 2022-02-08 00:08:37.925 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:08:37.924 warn Object uv-protect.0.sun_info.sun_position.altitude is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:08:37.873 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:08:37.873 warn Object uv-protect.0.sun_info.sun_position.azimuth is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:08:37.790 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:08:37.789 warn Object uv-protect.0.safe_exposure_time.st6 is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:08:37.777 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:08:37.776 warn Object uv-protect.0.safe_exposure_time.st5 is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:08:37.759 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:08:37.758 warn Object uv-protect.0.safe_exposure_time.st4 is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:08:37.743 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:08:37.743 warn Object uv-protect.0.safe_exposure_time.st3 is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:08:37.729 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:08:37.728 warn Object uv-protect.0.safe_exposure_time.st2 is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:08:37.680 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:08:37.679 warn Object uv-protect.0.safe_exposure_time.st1 is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:08:37.663 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:08:37.662 warn Object uv-protect.0.ozone is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:08:37.606 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:08:37.606 warn Object uv-protect.0.uv_max is invalid: Default value has to be type "number" but received type "string"
uv-protect.0 2022-02-08 00:08:37.584 warn This object will not be created in future versions. Please report this to the developer.
uv-protect.0 2022-02-08 00:08:37.582 warn Object uv-protect.0.uv is invalid: Default value has to be type "number" but received type "string"
`

Update stable version in repo from 0.4.1 to 0.4.2

Think about update stable version to 0.4.2

Version: stable=0.4.1 (93 days old) => latest=0.4.2 (15 days old)
Installs: stable=176 (55.52%), latest=45 (14.2%), total=317

Click to use developer portal
Click to edit

Note: This is an automatically generated message and not personally authored by bluefox!

Request error: AxiosError: timeout of 5000ms exceeded

Describe the bug
The adapter is not able to collect data on a regular basis as per CRON due to timeouts (not always, but frequently), resulting in the following log entry:

Request error: AxiosError: timeout of 5000ms exceeded

To Reproduce
Configure the adapter with proper Token and the following CRON: */30 5-22 * * *

Versions:

  • Adapter version: 0.3.6
  • JS-Controller version: v16.16.0
  • Node version: v16.16.0
  • Operating system: Debian on Proxmox

Additional context
Add any other context about the problem here.

Update stable version in repo from 0.4.2 to 0.5.1

Think about update stable version to 0.5.1

Version: stable=0.4.2 (73 days old) => latest=0.5.1 (15 days old)
Installs: stable=186 (56.71%), latest=45 (13.72%), total=328

Click to use developer portal
Click to edit

Note: This is an automatically generated message and not personally authored by bluefox!

Nach js-controller Update auf 5.0.3 "already running"

Describe the bug
Nach Update des js-controllers auf 5.0.3 wird nach dem Abruf der Daten vermutlich nicht richtig beendet.
Bei jedem Abruf erfolgt im LOG die Warnmeldung:
instance system.adapter.uv-protect.0 already running with pid 1769
Als Quelle gibt das Log den host.iobroker und nicht den Adapter an.

Expected behavior
Pid 1769 sollte nach dem Abruf gekillt werden.

Versions:

  • Adapter version: 0.4.0
  • JS-Controller version: 5.0.3
  • Node version: v18.16.0
  • Operating system: Debian 11

Bug: wrong data? / Feature request - UV-Index

Hi there!

Thank you for the great work - giving us a UV instrument at hand! Diving deeper into the sience of UV radiation, I saw that the UV index is something more "easy to handle" for human beeings.

openuv.io offers this information, but the adapter does not.

So - that is my feature request

I looked into the math behind UV, and found the formular

UV-Index = power / 25

power is measured in W / mยฒ

But the adapter shows (f.e.) 0,8 mW/mยฒ - That means the uV Index in Mรผlheim / Ruhr, Germany is 0,000032. That doesn't make sense. So either my formular is wrong, or the data / the adapter is giving me wrong measurements or calculations!

The adapter version is 0.4.2,
Node.js: v18.17.1
NPM: 9.6.7

Kind Regards, Uwe

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.