Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter iobroker.uv-protect 0.3.x

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Test Adapter iobroker.uv-protect 0.3.x

    This topic has been deleted. Only users with topic management privileges can see it.
    • simatec
      simatec Developer Most Active @BBTown last edited by

      @bbtown
      Danke für dein Feedback.
      Werde ich mir die Tage mal anschauen

      1 Reply Last reply Reply Quote 0
      • simatec
        simatec Developer Most Active last edited by

        Ab sofort steht die Version 0.3.0 auf Github und auf npm zur Verfügung.

        Changelog

        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
        1 Reply Last reply Reply Quote 1
        • simatec
          simatec Developer Most Active @BBTown last edited by

          @bbtown sagte in Test Adapter iobroker.uv-protect 0.2.x:

          Was mir auffällt ist, das es offensichtlich bei deinem Adapter keinen Unterscheid zwischen dem aktuellen Wert "UV" und dem erwarteten Tages-Max-Wert "UV_max" zu geben scheint.

          Sollte nicht sein ... Eventuell war es Zufall, dass der aktuelle Wert gerade auch der Max-Wert war.

          509aa5e3-9bd5-4ead-94ed-3052b60b60e8-image.png

          die "UV_Bewertung" beim openuv.io Adapter kommt freundlicherweise in deutsch und muss somit nicht noch übersetzt werden

          Ich habe für die states in Version 0.3.0 eine Übersetzung eingebaut

          erst nachdem ich danach gegoogelt habe, habe ich herausgefunden was diese "safe_exposure_time" überhaupt aussagen sollen - vielleicht kann man das offensichtlicher machen (??)

          Habe ich in Version 0.3.0 ausführlicher beschrieben

          alle Zeitangaben enthalten das Datum, was meines Erachtens unnötig ist. Hier wäre es womöglich benutzerfreundlicher wenn nur die Zeiten (SS:mm) in den Datenpunkten vorhanden wären

          Da muss ich mal überlegen ... Einige User wollen die Zeitangabe genau so, um sie weiter zu verarbeiten

          sigi234 1 Reply Last reply Reply Quote 1
          • sigi234
            sigi234 Forum Testing Most Active @simatec last edited by

            @simatec sagte in Test Adapter iobroker.uv-protect 0.3.x:

            Habe ich in Version 0.3.0 ausführlicher beschrieben

            Wo?

            H simatec 2 Replies Last reply Reply Quote 0
            • H
              holgerwolf @sigi234 last edited by holgerwolf

              Ich bin auch auf ein "spannendes" Problem gestossen, was nicht unbedingt was mit dem Adapter zu tun hat.
              Die Zeitangaben, die der Adapter ausliest sind am Ende alle mit einem "Z" versehen:
              2021-06-24T21:41:29.621Z

              Ich denke damit wird signalisiert, dass die Zeit UTC ist. Bei der Anzeige ( z Bsp mit dem timesvalue Widget) wird dann in die lokale Zeitzone umgerechnet, was in dem Fall aber falsch ist.
              Alle anderen Zeit-Objekte in iobroker sind ohne dieses Z und damit klappt die Anzeige dann auch. Wenn ich im Objekt das "Z" entferne, passt es auch.

              Kann man das in der API irgendwo einstellen?

              simatec 1 Reply Last reply Reply Quote 0
              • simatec
                simatec Developer Most Active @sigi234 last edited by

                @sigi234 In den Bezeichnungen der States ist die Beschreibung

                1 Reply Last reply Reply Quote 0
                • simatec
                  simatec Developer Most Active @holgerwolf last edited by

                  @holgerwolf Ich baue die Zeit auf die korrekte Zeitzone im Adapter um ... Also stimmt das "Z" natürlich nicht mehr ...
                  Werde ich formatieren ...

                  lobomau 1 Reply Last reply Reply Quote 0
                  • lobomau
                    lobomau @simatec last edited by

                    Installation lief problemlos.
                    Wie oft werden die Werte bei uv-protect aktualisiert?
                    Ich kann ja auf alle 30min stellen dann sind 48 von 50 Abrufe am Tag weg. Reicht ja auch eigentlich.
                    Aber man könnte auch auf alle 15min stellen, wenn man nachts darauf verzichtet.
                    Idee wäre also auf den Abruf während der Nacht/Dämmerung verzichten zu können.

                    simatec 1 Reply Last reply Reply Quote 0
                    • simatec
                      simatec Developer Most Active @lobomau last edited by

                      @lobomau
                      Default sind es alle 60 Minuten.
                      Bei 15 Minuten wären allerdings Mittag um 12 Uhr die 50 Requests aufgebraucht

                      Oder du machst den Cron halt noch detaillierter und gibst ihm feste Zeiten tagsüber und am Abend und in der Nacht halt gar nicht.

                      Hier ein Beispiel, wie er nur tagsüber alle 20 Minuten abfragen würde

                      806d3c2b-4d8e-479c-b8a0-7501c2a03b70-image.png

                      lobomau 1 Reply Last reply Reply Quote 0
                      • lobomau
                        lobomau @simatec last edited by

                        @simatec Danke. Oh-man. Da hatte ich ein Brett vorm Kopf. Eigentlich kenne ich diese Möglichkeit den cron einzustellen.

                        1 Reply Last reply Reply Quote 0
                        • simatec
                          simatec Developer Most Active last edited by

                          Ab sofort steht die Version 0.3.1 auf Github und auf npm zur Verfügung.

                          Changelog

                          0.3.1 (28.06.2021)

                          • (simatec) Date / time formatted
                          1 Reply Last reply Reply Quote 0
                          • JohGre
                            JohGre last edited by

                            Habe den Adapter anstatt openuv installiert, leider funktioniert er nur einmal gleich nach dem Starten, alle weiteren Aufrufe, die ja zeitgesteuert sind, werfen einen Fehler.

                            2022-03-05 16:00:00.431 - debug: uv-protect.0 (209986) Redis Objects: Use Redis connection: 10.0.0.227:9001
                            2022-03-05 16:00:00.463 - debug: uv-protect.0 (209986) Objects client ready ... initialize now
                            2022-03-05 16:00:00.465 - debug: uv-protect.0 (209986) Objects create System PubSub Client
                            2022-03-05 16:00:00.466 - debug: uv-protect.0 (209986) Objects create User PubSub Client
                            2022-03-05 16:00:00.527 - debug: uv-protect.0 (209986) Objects client initialize lua scripts
                            2022-03-05 16:00:00.532 - debug: uv-protect.0 (209986) Objects connected to redis: 10.0.0.227:9001
                            2022-03-05 16:00:00.566 - debug: uv-protect.0 (209986) Redis States: Use Redis connection: 10.0.0.227:9000
                            2022-03-05 16:00:00.586 - debug: uv-protect.0 (209986) States create System PubSub Client
                            2022-03-05 16:00:00.587 - debug: uv-protect.0 (209986) States create User PubSub Client
                            2022-03-05 16:00:00.625 - debug: uv-protect.0 (209986) States connected to redis: 10.0.0.227:9000
                            2022-03-05 16:00:01.757 - info: uv-protect.0 (209986) starting. Version 0.3.5 in /opt/iobroker/node_modules/iobroker.uv-protect, node: v14.19.0, js-controller: 4.0.18
                            2022-03-05 16:00:01.805 - debug: uv-protect.0 (209986) System language: en
                            2022-03-05 16:00:01.805 - debug: uv-protect.0 (209986) System longitude: 13. System latitude: 48.
                            2022-03-05 16:00:01.817 - debug: uv-protect.0 (209986) API Request started ...
                            2022-03-05 16:00:32.248 - warn: uv-protect.0 (209986) Request error: Error: Request failed with status code 503
                            2022-03-05 16:00:38.255 - info: uv-protect.0 (209986) Terminated (NO_ERROR): Without reason
                            
                            FredF 1 Reply Last reply Reply Quote 0
                            • FredF
                              FredF Most Active Forum Testing @JohGre last edited by

                              @johgre
                              Und wo ist ein Fehler (error)?
                              Die Instanz steht auf Log-Stufe debug - da kommen dann viele Meldungen. Besser umstellen auf info

                              JohGre 1 Reply Last reply Reply Quote 0
                              • JohGre
                                JohGre @FredF last edited by

                                @fredf vorletzte Zeile, im ioBroker log zwar ein warn, aber als response ein HTML Error und somit keine Daten

                                FredF 1 Reply Last reply Reply Quote 0
                                • FredF
                                  FredF Most Active Forum Testing @JohGre last edited by

                                  @johgre Code 503 sagt laut suche, dass der Server nicht antwortet. API key eingetragen?

                                  1 Reply Last reply Reply Quote 0
                                  • JohGre
                                    JohGre last edited by

                                    @fredf Ja, API Key ist eingetragen (und auch der richtige) und beim starten werden auch einmalig Daten geholt.

                                    2022-03-05 14:08:22.246 - debug: uv-protect.0 (207612) Redis Objects: Use Redis connection: 10.0.0.227:9001
                                    2022-03-05 14:08:22.272 - debug: uv-protect.0 (207612) Objects client ready ... initialize now
                                    2022-03-05 14:08:22.275 - debug: uv-protect.0 (207612) Objects create System PubSub Client
                                    2022-03-05 14:08:22.275 - debug: uv-protect.0 (207612) Objects create User PubSub Client
                                    2022-03-05 14:08:22.312 - debug: uv-protect.0 (207612) Objects client initialize lua scripts
                                    2022-03-05 14:08:22.316 - debug: uv-protect.0 (207612) Objects connected to redis: 10.0.0.227:9001
                                    2022-03-05 14:08:22.341 - debug: uv-protect.0 (207612) Redis States: Use Redis connection: 10.0.0.227:9000
                                    2022-03-05 14:08:22.356 - debug: uv-protect.0 (207612) States create System PubSub Client
                                    2022-03-05 14:08:22.357 - debug: uv-protect.0 (207612) States create User PubSub Client
                                    2022-03-05 14:08:22.379 - debug: uv-protect.0 (207612) States connected to redis: 10.0.0.227:9000
                                    2022-03-05 14:08:23.036 - info: uv-protect.0 (207612) starting. Version 0.3.5 in /opt/iobroker/node_modules/iobroker.uv-protect, node: v14.19.0, js-controller: 4.0.18
                                    2022-03-05 14:08:23.072 - debug: uv-protect.0 (207612) System language: en
                                    2022-03-05 14:08:23.072 - debug: uv-protect.0 (207612) System longitude: 13. System latitude: 48.
                                    2022-03-05 14:08:23.082 - debug: uv-protect.0 (207612) API Request started ...
                                    2022-03-05 14:08:23.592 - debug: uv-protect.0 (207612) API Request successfully completed
                                    2022-03-05 14:08:23.592 - debug: uv-protect.0 (207612) {"result":{"uv":1.8666,"uv_time":"2022-03-05T13:08:23.511Z","uv_max":2.597,"uv_max_time":"2022-03-05T11:17:22.820Z","ozone":346.6,"ozone_time":"2022-03-05T12:04:38.489Z","safe_exposure_time":{"st1":89,"st2":107,"st3":143,"st4":179,"st5":286,"st6":536},"sun_info":{"sun_times":{"solarNoon":"2022-03-05T11:17:22.820Z","nadir":"2022-03-04T23:17:22.820Z","sunrise":"2022-03-05T05:39:49.203Z","sunset":"2022-03-05T16:54:56.436Z","sunriseEnd":"2022-03-05T05:43:03.240Z","sunsetStart":"2022-03-05T16:51:42.399Z","dawn":"2022-03-05T05:08:40.125Z","dusk":"2022-03-05T17:26:05.514Z","nauticalDawn":"2022-03-05T04:32:38.608Z","nauticalDusk":"2022-03-05T18:02:07.031Z","nightEnd":"2022-03-05T03:56:17.360Z","night":"2022-03-05T18:38:28.279Z","goldenHourEnd":"2022-03-05T06:21:47.708Z","goldenHour":"2022-03-05T16:12:57.931Z"},"sun_position":{"azimuth":0.571989127405678,"altitude":0.5310458359058243}}}}
                                    2022-03-05 14:08:23.837 - debug: uv-protect.0 (207612) API Request done
                                    2022-03-05 14:08:29.845 - info: uv-protect.0 (207612) Terminated (NO_ERROR): Without reason
                                    2022-03-05 15:00:00.413 - debug: uv-protect.0 (208702) Redis Objects: Use Redis connection: 10.0.0.227:9001
                                    2022-03-05 15:00:00.444 - debug: uv-protect.0 (208702) Objects client ready ... initialize now
                                    2022-03-05 15:00:00.446 - debug: uv-protect.0 (208702) Objects create System PubSub Client
                                    2022-03-05 15:00:00.447 - debug: uv-protect.0 (208702) Objects create User PubSub Client
                                    2022-03-05 15:00:00.490 - debug: uv-protect.0 (208702) Objects client initialize lua scripts
                                    2022-03-05 15:00:00.495 - debug: uv-protect.0 (208702) Objects connected to redis: 10.0.0.227:9001
                                    2022-03-05 15:00:00.528 - debug: uv-protect.0 (208702) Redis States: Use Redis connection: 10.0.0.227:9000
                                    2022-03-05 15:00:00.551 - debug: uv-protect.0 (208702) States create System PubSub Client
                                    2022-03-05 15:00:00.552 - debug: uv-protect.0 (208702) States create User PubSub Client
                                    2022-03-05 15:00:00.594 - debug: uv-protect.0 (208702) States connected to redis: 10.0.0.227:9000
                                    2022-03-05 15:00:01.506 - info: uv-protect.0 (208702) starting. Version 0.3.5 in /opt/iobroker/node_modules/iobroker.uv-protect, node: v14.19.0, js-controller: 4.0.18
                                    2022-03-05 15:00:01.563 - debug: uv-protect.0 (208702) System language: en
                                    2022-03-05 15:00:01.563 - debug: uv-protect.0 (208702) System longitude: 13. System latitude: 48.
                                    2022-03-05 15:00:01.572 - debug: uv-protect.0 (208702) API Request started ...
                                    2022-03-05 15:00:32.016 - warn: uv-protect.0 (208702) Request error: Error: Request failed with status code 503
                                    2022-03-05 15:00:38.025 - info: uv-protect.0 (208702) Terminated (NO_ERROR): Without reason
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • P
                                      ps1304 @simatec last edited by ps1304

                                      @simatec erstmal danke für den Adapter - habe ich neu installiert auf iobroker - bekomme für alle Datenpunkte Fehlermeldungen ala:

                                      Object uv-protect.0.sun_info.sun_position.altitude is invalid: Default value has to be type "number" but received type "string"
                                      System iobroker: 4.0.19node.js 16.14 / NPM 8.3.1 auf proxmox vm installiert

                                      Ist der Fehler bekannt?

                                      Komplettes Log zum Adapterstart:

                                      2022-03-13 15:42:50.792  - info: host.iobroker-master instance system.adapter.uv-protect.0 started with pid 50746
                                      2022-03-13 16:42:52.812  - warn: uv-protect.0 (50746) Object uv-protect.0.uv is invalid: Default value has to be type "number" but received type "string"
                                      2022-03-13 16:42:52.815  - warn: uv-protect.0 (50746) This object will not be created in future versions. Please report this to the developer.
                                      2022-03-13 16:42:52.835  - warn: uv-protect.0 (50746) Object uv-protect.0.uv_max is invalid: Default value has to be type "number" but received type "string"
                                      2022-03-13 16:42:52.835  - warn: uv-protect.0 (50746) This object will not be created in future versions. Please report this to the developer.
                                      2022-03-13 16:42:52.848  - warn: uv-protect.0 (50746) Object uv-protect.0.ozone is invalid: Default value has to be type "number" but received type "string"
                                      2022-03-13 16:42:52.849  - warn: uv-protect.0 (50746) This object will not be created in future versions. Please report this to the developer.
                                      2022-03-13 16:42:52.862  - warn: uv-protect.0 (50746) Object uv-protect.0.safe_exposure_time.st1 is invalid: Default value has to be type "number" but received type "string"
                                      2022-03-13 16:42:52.862  - warn: uv-protect.0 (50746) This object will not be created in future versions. Please report this to the developer.
                                      2022-03-13 16:42:52.872  - warn: uv-protect.0 (50746) Object uv-protect.0.safe_exposure_time.st2 is invalid: Default value has to be type "number" but received type "string"
                                      2022-03-13 16:42:52.873  - warn: uv-protect.0 (50746) This object will not be created in future versions. Please report this to the developer.
                                      2022-03-13 16:42:52.883  - warn: uv-protect.0 (50746) Object uv-protect.0.safe_exposure_time.st3 is invalid: Default value has to be type "number" but received type "string"
                                      2022-03-13 16:42:52.883  - warn: uv-protect.0 (50746) This object will not be created in future versions. Please report this to the developer.
                                      2022-03-13 16:42:52.931  - warn: uv-protect.0 (50746) Object uv-protect.0.safe_exposure_time.st4 is invalid: Default value has to be type "number" but received type "string"
                                      2022-03-13 16:42:52.932  - warn: uv-protect.0 (50746) This object will not be created in future versions. Please report this to the developer.
                                      2022-03-13 16:42:52.940  - warn: uv-protect.0 (50746) Object uv-protect.0.safe_exposure_time.st5 is invalid: Default value has to be type "number" but received type "string"
                                      2022-03-13 16:42:52.940  - warn: uv-protect.0 (50746) This object will not be created in future versions. Please report this to the developer.
                                      2022-03-13 16:42:52.948  - warn: uv-protect.0 (50746) Object uv-protect.0.safe_exposure_time.st6 is invalid: Default value has to be type "number" but received type "string"
                                      2022-03-13 16:42:52.948  - warn: uv-protect.0 (50746) This object will not be created in future versions. Please report this to the developer.
                                      2022-03-13 16:42:53.036  - warn: uv-protect.0 (50746) Object uv-protect.0.sun_info.sun_position.azimuth is invalid: Default value has to be type "number" but received type "string"
                                      2022-03-13 16:42:53.036  - warn: uv-protect.0 (50746) This object will not be created in future versions. Please report this to the developer.
                                      2022-03-13 16:42:53.043  - warn: uv-protect.0 (50746) Object uv-protect.0.sun_info.sun_position.altitude is invalid: Default value has to be type "number" but received type "string"
                                      2022-03-13 16:42:53.044  - warn: uv-protect.0 (50746) This object will not be created in future versions. Please report this to the developer.
                                      2022-03-13 16:42:53.102  - warn: uv-protect.0 (50746) Object uv-protect.0.uv_alert is invalid: Default value has to be type "boolean" but received type "string"
                                      2022-03-13 16:42:53.102  - warn: uv-protect.0 (50746) This object will not be created in future versions. Please report this to the developer.
                                      2022-03-13 16:42:53.110  - warn: uv-protect.0 (50746) Object uv-protect.0.uv_warn is invalid: Default value has to be type "boolean" but received type "string"
                                      2022-03-13 16:42:53.110  - warn: uv-protect.0 (50746) This object will not be created in future versions. Please report this to the developer.
                                      2022-03-13 16:42:53.119  - info: uv-protect.0 (50746) starting. Version 0.3.4 in /opt/iobroker/node_modules/iobroker.uv-protect, node: v16.14.0, js-controller: 4.0.19```
                                      simatec 1 Reply Last reply Reply Quote 0
                                      • simatec
                                        simatec Developer Most Active @ps1304 last edited by

                                        @ps1304
                                        Das sind nur Warnungen… Fixe ich in der nächsten Version

                                        P Z 2 Replies Last reply Reply Quote 0
                                        • P
                                          ps1304 @simatec last edited by

                                          @simatec danke dir für die schnelle antwort und deinen adapter

                                          1 Reply Last reply Reply Quote 0
                                          • Z
                                            zolpetol @simatec last edited by zolpetol

                                            @simatec
                                            Bei mir leider auch nur aktuelle Daten direkt nach dem Starten des Adapter, danach folgende Meldungen und keine Aktualisierung mehr:

                                            2022-03-26 15_21_10-logs - iobroker.jpg

                                            APi-Key ist eingetragen

                                            16:43h: zur Zeit funktioniert die Aktualisierung
                                            19:19h. wieder vorbei Code 403 oder auch Code 500

                                            simatec 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            892
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            13
                                            41
                                            2616
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo