Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. [Diskussion] js-controller 1.5.11 ab sofort im Stable Repository

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    24
    1
    1.3k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.3k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    14
    1
    2.6k

[Diskussion] js-controller 1.5.11 ab sofort im Stable Repository

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
js-controller
158 Beiträge 37 Kommentatoren 24.9k Aufrufe 20 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • S Offline
    S Offline
    Semenchkare
    schrieb am zuletzt editiert von
    #7

    mit sudo ./reinstall.sh hat es jetzt bei mir auch funktioniert...

    Viele Grüße

    Semenchkare

    raspberry 5 8GB mit iobroker,
    raspberry 5 8GB mit Raspberrymatic

    apollon77A 1 Antwort Letzte Antwort
    0
    • S Semenchkare

      hallo,
      habe npm 6.90 und node/nodejs 12.20 installiert und bei mir klappt ein update mit
      iobroker stop
      iobroker update
      iobroker upgrade self
      iobroker start

      nicht.
      Meldungen:

      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Delete Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Quick Mode Off Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Checked Checkbox 2.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Exit.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Menu 2.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Public Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Checkmark Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Error.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Collect.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Xlarge Icons.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Sound Recording Copyright Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Process Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Enter.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Comments.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Support.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Maintenance.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Quick Mode Off.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Reuse Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Expired.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Inspection Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/VIP.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Bullish Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/No Idea Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Toggle Off.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Quick Mode On Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Toggle On.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Double Tap Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Advertising Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Checkmark.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Menu 2 Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Public.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Video Projector.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Upload.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Bad Decision Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Approve.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/High Priority.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Bearish Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Invite Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Business.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Advertising.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Approve Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Light at the End of Tunnel.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Overtime Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Sound Recording Copyright.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Upload Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Menu Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Bullish.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Appointment Reminders.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Toggle Off Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/High Priority Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Students Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Overtime.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Checked.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/To Do.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Toggle On Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Info Squared Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Unchecked Checkbox.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Bar Chart Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Horizontal Settings Mixer.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Appointment Reminders Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Quick Mode On.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Curriculum Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Video Projector Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Students.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Businessman Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/VIP Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Private.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Delete.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Info.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Flow Chart Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Support Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Businesswoman Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Light at the End of Tunnel Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Menu.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/In Transit.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Flow Chart.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Inspection.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Invite.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Comments Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Curriculum.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Businessman.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Double Tap.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Help Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Vertical Settings Mixer.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Error Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Enter Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Bearish.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Info Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Businesswoman.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Expired Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Checked Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/In Transit Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Xlarge Icons Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Help.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Exit Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Info Squared.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Private Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Bar Chart.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Collect Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/No Idea.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Work.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Process.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Business Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Vertical Settings Mixer Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/To Do Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Bad Decision.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Work Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Checked Checkbox 2 Filled.png': Operation not permitted
      chmod: changing permissions of '/opt/iobroker/node_modules/iobroker.icons-icons8/www/interface/yellow/Unchecked Checkbox Filled.png': Operation not permitted
      Chmod finished. Restart controller
      

      probiere ich es über den anderen weg
      iobroker stop
      npm install iobroker.js-controller --production
      iobroker start

      erhalte ich folgende Fehlermeldungen:

      npm WARN babel-eslint@5.0.4 requires a peer of eslint@<2.3.0 but none is installed. You must install peer dependencies yourself.
      
      npm ERR! path /opt/iobroker/node_modules/.bin/iobroker
      npm ERR! code EEXIST
      npm ERR! Refusing to delete /opt/iobroker/node_modules/.bin/iobroker: is outside /opt/iobroker/node_modules/iobroker.js-controller and not a link
      npm ERR! File exists: /opt/iobroker/node_modules/.bin/iobroker
      npm ERR! Move it away, and try again.
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /root/.npm/_logs/2019-05-30T05_28_02_740Z-debug.log
      
      
      apollon77A Offline
      apollon77A Offline
      apollon77
      schrieb am zuletzt editiert von
      #8

      @Semenchkare mit nodejs 12 bist du aber recht experimentell. Beachte bitte den nodejs 12 Thread wegen der inkompatiblen Adapter!

      Sie permission Fehler können vorkommen und können ignoriert werden. Für ich zu known hinzu.

      Das andere kann vorkommen wenn npm mal komische Dinge getan hat oder man mal das node-modules manuell kopiert hat. Die angemeckerten files einfach löschen.

      Aber hast es gelöst. Super!!

      Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

      • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
      • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
      sigi234S 1 Antwort Letzte Antwort
      0
      • S Semenchkare

        mit sudo ./reinstall.sh hat es jetzt bei mir auch funktioniert...

        apollon77A Offline
        apollon77A Offline
        apollon77
        schrieb am zuletzt editiert von
        #9

        @Semenchkare lass am besten den Installation Fixer nochmal laufen weil du ja jetzt mit sudo Dinge getan hast

        Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

        • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
        • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
        1 Antwort Letzte Antwort
        0
        • apollon77A apollon77

          @Semenchkare mit nodejs 12 bist du aber recht experimentell. Beachte bitte den nodejs 12 Thread wegen der inkompatiblen Adapter!

          Sie permission Fehler können vorkommen und können ignoriert werden. Für ich zu known hinzu.

          Das andere kann vorkommen wenn npm mal komische Dinge getan hat oder man mal das node-modules manuell kopiert hat. Die angemeckerten files einfach löschen.

          Aber hast es gelöst. Super!!

          sigi234S Offline
          sigi234S Offline
          sigi234
          Forum Testing Most Active
          schrieb am zuletzt editiert von sigi234
          #10

          @apollon77 sagte in [Diskussion] js-controller 1.5.11 ab sofort im Stable Repository:

          mit nodejs 12 bist du aber recht experimentell

          Hallo Ingo, welche Node Version wird eigentlich empfohlen? Stable 8.16.0?
          Möchte auf die 10er gehen..........

          Bitte benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.
          Immer Daten sichern!

          1 Antwort Letzte Antwort
          0
          • apollon77A Offline
            apollon77A Offline
            apollon77
            schrieb am zuletzt editiert von
            #11

            Am Ende werden wir mit dem Controller 1.5.11 die empfohlene Version demnächst auf nodejs 10 anheben. Node 8 geht auch noch. Nodejs 6 ist end of life und sollte abgelöst werden. Es gibt die Tage noch ein how to für nodejs updates.

            Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

            • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
            • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
            1 Antwort Letzte Antwort
            5
            • ChaotC Offline
              ChaotC Offline
              Chaot
              schrieb am zuletzt editiert von Chaot
              #12

              Ich hatte (eher ungenutzt) ein Script für die Abfrage der Astrozeiten am laufen:

              Das gibt nach dem Update die Fehlermeldung:

              javascript.0	2019-05-30 15:25:12.509	error	Cannot get astro date for "nightEnd"
              javascript.0	2019-05-30 15:25:12.507	error	Cannot get astro date for "night"
              

              Ansonsten scheint alles zu laufen.
              Da ich das Script nicht mehr nutze habe ich es vorerst deaktiviert. Aber vielleicht kann man ja am Script erkennen ob in der Version noch ein Fehler vorhanden ist.

              Das betroffene Script:

              ```
              /* System Tageszeoten

              Skript meldet Tageszeiten

              Nacht;Frühmorgens;Morgengrauen;Vormittag;Mittag;Nachmittag;Dämmerung;Abend;
              Basis: http://www.homematic-inside.de/tecbase/homematic/scriptlibrary/item/tageszeit-in-abschnitte-unterteilen
              oder hier: https://github.com/ioBroker/ioBroker.javascript#astro--funktion

              https://github.com/iobroker/ioBroker.javascript/blob/master/README.md#getastrodate

              erstellt: 01.06.2015 von Pix
              11.12.2015 getAstroDate ermittelt nun auch Sonnenaufgang und Untergang
              Astrotag (isAstroDay) eingebaut
              23.02.2018 checkSec eingebaut (Uhrzeit sekundengenau?)
              andere Astrozeiten werden nun auch gespeichert
              Neuer Pfad
              24.02.2018 Unterteilung in zwei Bereiche
              27.02.2018 Bestimmung, welche AstroZeit aktuell ist (mit der ioBroker-Funktion compareTime)
              Beschreibung Objekt Astrotag korrigiert
              Objekte werden jetzt bei jedem Zeitplan angelegt, falls nicht (mehr) vorhanden
              */

              const sec = false; // Sekunden darstellen oder nicht
              const fC = false; // forceCreation ein/aus
              const pfad = "Astro"; // Pfad zum Objekt - Objektbaum-Hauptverzeichnis

              // *****************************************************************************
              // TAGESZEITEN - T E I L

              // Tageszeiten nach eigenem Gusto (Shifts siehe schedules weiter unten)
              const tageszeiten = ["Nacht", // Night
              "Morgendämmerung", // nightEnd
              "Morgen",
              "Vormittag",
              "Mittag",
              "Nachmittag",
              "Abenddämmerung",
              "Abend"];

              const idTageszeit = "javascript." + instance + "." + pfad + ".Tageszeit.current" /Tageszeit/,
              idTageszeitNext = "javascript." + instance + "." + pfad + ".Tageszeit.next";

              function createTageszeiten() {
              createState(idTageszeit, "nächsten Wechsel abwarten", fC, {
              name: "Tageszeit",
              desc: "Name der Tageszeit",
              type: "string"
              });
              createState(idTageszeitNext, "nächsten Wechsel abwarten", fC, {
              name: "nächste Tageszeit",
              desc: "Name der nächsten Tageszeit",
              type: "string"
              });
              }

              function neue_tageszeit(abschnitt) {
              createTageszeiten(); // Objekte anlegen, falls noch nicht geschehen
              var akt = tageszeiten[parseInt(abschnitt, 10)],
              // wenn aktuelles Element ist letztes, dann nächstes ist erstes :-D
              nxt = (abschnitt + 1 === tageszeiten.length) ? tageszeiten[0] : tageszeiten[parseInt(abschnitt + 1, 10)];
              setState(idTageszeit, akt);
              setState(idTageszeitNext, nxt);
              log("neue Tagezeit: " + akt);
              log("nächte kommende Tagezeit: " + nxt);
              }

              // Nacht
              schedule({
              astro: "night",
              shift: 120
              }, function () {
              neue_tageszeit(0);
              });

              // Morgengdämmerung
              schedule({
              astro: "nightEnd"
              }, function () {
              neue_tageszeit(1);
              });

              // Morgen
              schedule({
              astro: "sunrise"
              }, function () {
              neue_tageszeit(2);
              });

              // Vormittag (beginnt 120min vor Sonnenhöchststand)
              schedule({
              astro: "solarNoon",
              shift: -120
              }, function () {
              neue_tageszeit(3);
              });

              // Mittag
              schedule({
              astro: "solarNoon"
              }, function () {
              neue_tageszeit(4);
              });

              // Nachmittag
              schedule({
              astro: "solarNoon",
              shift: 60
              }, function () {
              neue_tageszeit(5);
              });

              // Abenddämmerung (nach Sonnenuntergang)
              schedule({
              astro: "dusk"
              }, function () {
              neue_tageszeit(6);
              });

              // Abend
              schedule({
              astro: "night"
              }, function () {
              neue_tageszeit(7);
              });

              // *****************************************************************************
              // A S T O - T E I L

              /* Objekt Astrotag
              Astrotag liegt zwischen Sonnauf- und untergang,
              Astronacht liegt zwischen Sonnenunter- und aufgang */
              const idAstrotag = "javascript." + instance + "." + pfad + ".Astrotag";
              const idAstrotime = "javascript." + instance + "." + pfad + ".Astrozeit";

              // Array für Funktion compareTime (sind leider nicht alle Astrozeiten, die auch mit Astro-Function möglich sind)
              const astrotime_arr = [
              "sunrise",
              "sunriseEnd",
              "goldenHourEnd",
              "goldenHour",
              "sunsetStart",
              "sunset",
              "dusk",
              "nauticalDusk",
              "night",
              "nightEnd",
              "nauticalDawn",
              "dawn"
              ];

              // Objekt für Uhrzeiten der Astrozeiten
              const astrotime = {
              "elements" : [
              // Astrotag beginnt
              {
              "fname" : "sunrise", // function name
              "de" : {
              "name" : "Sonnenaufgang",
              "nxt" : "nächster",
              "desc" : ""
              },
              "en" : {
              "name" : "Sunrise",
              "desc" : "top edge of the sun appears on the horizon"
              },
              "astroday" : true //during astroday
              },
              {
              "fname" : "sunriseEnd", // function name
              "de" : {
              "name" : "Ende Sonnenaufgang",
              "nxt" : "nächstes",
              "desc" : ""
              },
              "en" : {
              "name" : "End of sunrise",
              "desc" : "bottom edge of the sun touches the horizon"
              },
              "astroday" : true //during astroday
              },
              {
              "fname" : "goldenHourEnd", // function name
              "de" : {
              "name" : "Ende der goldenen Stunde am Morgen",
              "nxt" : "nächstes",
              "desc" : ""
              },
              "en" : {
              "name" : "End of golden hour",
              "desc" : "morning golden hour (soft light, best time for photography) ends"
              },
              "astroday" : true //during astroday
              },
              {
              "fname" : "solarNoon", // function name
              "de" : {
              "name" : "Sonnenhöchststand",
              "nxt" : "nächster",
              "desc" : ""
              },
              "en" : {
              "name" : "Solar noon",
              "desc" : "sun is in the highest position"
              },
              "astroday" : true //during astroday
              },
              {
              "fname" : "goldenHour", // function name
              "de" : {
              "name" : "Goldene Stunde (am Abend)",
              "nxt" : "nächste",
              "desc" : ""
              },
              "en" : {
              "name" : "Golden hour",
              "desc" : "evening golden hour starts"
              },
              "astroday" : true //during astroday
              },
              {
              "fname" : "sunsetStart", // function name
              "de" : {
              "name" : "Beginn Sonnenuntergang",
              "nxt" : "nächster",
              "desc" : ""
              },
              "en" : {
              "name" : "Sunset starts",
              "desc" : "bottom edge of the sun touches the horizon"
              },
              "astroday" : true //during astroday
              },
              // Astronacht beginnt
              {
              "fname" : "sunset", // function name
              "de" : {
              "name" : "Sonnenuntergang",
              "nxt" : "nächster",
              "desc" : ""
              },
              "en" : {
              "name" : "Sunset",
              "desc" : "sun disappears below the horizon, evening civil twilight starts"
              },
              "astroday" : false //during astronight
              },
              {
              "fname" : "dusk",
              "de" : {
              "name" : "Abenddämmerung",
              "nxt" : "nächste",
              "desc" : ""
              },
              "en" : {
              "name" : "Dusk",
              "desc" : "evening nautical twilight starts"
              },
              "astroday" : false //during astronight
              },
              {
              "fname" : "nauticalDusk",
              "de" : {
              "name" : "nautische Abenddämmerung",
              "nxt" : "nächste",
              "desc" : ""
              },
              "en" : {
              "name" : "Nautical dusk",
              "desc" : "evening astronomical twilight starts"
              },
              "astroday" : false //during astronight
              },
              {
              "fname" : "night",
              "de" : {
              "name" : "Nacht",
              "nxt" : "nächste",
              "desc" : ""
              },
              "en" : {
              "name" : "Night",
              "desc" : "dark enough for astronomical observations"
              },
              "astroday" : false //during astronight
              },
              {
              "fname" : "nadir",
              "de" : {
              "name" : "Nadir",
              "nxt" : "nächster",
              "desc" : "Fußpunkt gegenüber dem Zenit"
              },
              "en" : {
              "name" : "Nadir",
              "desc" : "darkest moment of the night, sun is in the lowest position"
              },
              "astroday" : false //during astronight
              },
              {
              "fname" : "nightEnd",
              "de" : {
              "name" : "Nachtende",
              "nxt" : "nächstes",
              "desc" : ""
              },
              "en" : {
              "name" : "Night ends",
              "desc" : "morning astronomical twilight starts"
              },
              "astroday" : false //during astronight
              },
              {
              "fname" : "nauticalDawn",
              "de" : {
              "name" : "nautische Morgendämmerung",
              "nxt" : "nächste",
              "desc" : ""
              },
              "en" : {
              "name" : "Nautical dawn",
              "desc" : "morning nautical twilight starts"
              },
              "astroday" : false //during astronight
              },
              {
              "fname" : "dawn",
              "de" : {
              "name" : "Morgendämmerung",
              "nxt" : "nächste",
              "desc" : ""
              },
              "en" : {
              "name" : "dawn",
              "desc" : "morning nautical twilight ends, morning civil twilight starts"
              },
              "astroday" : false //during astronight
              }

              ]
              

              };

              function writeAstroTimes(i) {
              // führende Nummer zur Sortierung in Admin/Objekte
              var nr = (i+1 < 10) ? "0" + (i+1) : (i+1);
              // Erstelle Objekt, falls nicht bereits vorhanden
              var idAstroObject = "javascript." + instance + "." + pfad + "." + nr + " - " + astrotime.elements[i].fname;
              createState(idAstroObject, " ", fC, {
              name: astrotime.elements[i].de.nxt + " " + astrotime.elements[i].de.name + " Uhrzeit",
              desc: astrotime.elements[i].en.desc,
              type: "string"
              });

              setTimeout(function() { // kurz warten, damit Objekte ggf. erst angelgt werden können
                  var astrotag = getState(idAstrotag).val,
                      temp;
                  var today = new Date();
                  var tomorrow = today.setDate(today.getDate()+1);
                  var next_event;
                  if (astrotag) { 
                      // Wenn Tag (Aufgang vorbei (erst wieder morgen, Untergang kommt noch heute)
                      next_event = (astrotime.elements[i].astroday) ? tomorrow : today; // prüfen
                      temp = getAstroDate(astrotime.elements[i].fname, next_event);
                  } else { 
                      // nach Nacht (Untergang vorbei (erst wieder morgen, Aufgang kommt heute oder morgen)
                      next_event = (astrotime.elements[i].astroday) ? today : tomorrow; // prüfen
                      temp = getAstroDate(astrotime.elements[i].fname, next_event);
                  /* // Rudimente aus altem Skript zur Erinnerung -> Nachfrage bei Bluefox
                  sonnenuntergang = getAstroDate("sunset", tomorrow);
                  nacht = (today.getHours() > 12 && today.getHours() <= 23) ? getAstroDate("night", today) : getAstroDate("night", tomorrow);
                  nachtende = (today.getHours() > 12 && today.getHours() <= 23) ? getAstroDate("night", tomorrow) : getAstroDate("night", today);
                  sonnenaufgang = (today.getHours() > 12 && today.getHours() <= 23) ? getAstroDate("sunrise", tomorrow) :  getAstroDate("sunrise", today); // es ist vor Mitternacht (bzw. vor 23:XXUhr), dann morgen, sonst heute
                  */
                  }
                  setState(idAstroObject, checkSec(temp.toLocaleTimeString()) );
                  
              }, 3 * 1000);
              

              }

              // Zeit mit oder ohne Sekunden anzeigen
              function checkSec (zeit) {
              if (!sec) {
              var newString_arr = zeit.split(":");
              var newString = newString_arr[0] + ":" + newString_arr[1];
              return (newString);
              } else return (zeit);
              }

              function getAstrotime (j) {
              // Objekt anlegen, falls nicht bereits geschehen
              createState(idAstrotime, " ", fC, {
              type: "string",
              name: "aktuelle Astrozeit",
              desc: "Anzeige der aktuellen Astrozeit durch ioBroker-Funktion compareTime()"
              });
              // aktuelle Astrozeit bestimmen
              var k = (j == (astrotime_arr.length-1) ) ? 0 : (j+1); // wenn j max ist, dann ist k min
              var startTime = astrotime_arr[j];
              var endTime = astrotime_arr[k];
              //log("Astrozeit zwischen " + j + " und " + k + " von " + astrotime_arr.length);
              if (!startTime || !endTime) {
              log("Fehler","error");
              } else {
              var astrotime_check = (compareTime(startTime, endTime, "between") ) ;
              if (astrotime_check) {
              setState(idAstrotime, startTime);
              //log("Astrozeit: " + startTime);
              }
              }
              }

              function getAstroday() {
              // Astrotag bestimmen (boolean)
              createState(idAstrotag, false, fC, {
              type: "boolean",
              name: "Astrologischer Tag",
              desc: "Liegt die aktuelle Zeit zwischen Sonnenauf- und untergang"
              });
              setState(idAstrotag, isAstroDay());
              }

              function iterateAstrotimes() {
              // Zeiten für jede Astrozeit schreiben
              for (var i = 0; i < astrotime.elements.length; i++) {
              writeAstroTimes(i);
              }
              // aktuelle Astrozeit ermitteln
              for (var j = 0; j < astrotime_arr.length; j++) {
              getAstrotime(j);
              }
              }

              // Astrotag checken
              schedule("*/1 * * * *", function () { // jede Minute
              getAstroday();
              iterateAstrotimes();
              });

              iterateAstrotimes();
              getAstroday();

              ioBroker auf NUC unter Proxmox; VIS: 12" Touchscreen und 17" Touch; Lichtsteuerung, Thermometer und Sensoren: Tasmota (39); Ambiente Beleuchtung: WLED (9); Heizung: DECT Thermostate (9) an Fritz 6690; EMS-ESP; 1 Echo V2; 3 Echo DOT; 1 Echo Connect; 2 Echo Show 5; Unifi Ap-Ac Lite.

              paul53P 1 Antwort Letzte Antwort
              0
              • ChaotC Chaot

                Ich hatte (eher ungenutzt) ein Script für die Abfrage der Astrozeiten am laufen:

                Das gibt nach dem Update die Fehlermeldung:

                javascript.0	2019-05-30 15:25:12.509	error	Cannot get astro date for "nightEnd"
                javascript.0	2019-05-30 15:25:12.507	error	Cannot get astro date for "night"
                

                Ansonsten scheint alles zu laufen.
                Da ich das Script nicht mehr nutze habe ich es vorerst deaktiviert. Aber vielleicht kann man ja am Script erkennen ob in der Version noch ein Fehler vorhanden ist.

                Das betroffene Script:

                ```
                /* System Tageszeoten

                Skript meldet Tageszeiten

                Nacht;Frühmorgens;Morgengrauen;Vormittag;Mittag;Nachmittag;Dämmerung;Abend;
                Basis: http://www.homematic-inside.de/tecbase/homematic/scriptlibrary/item/tageszeit-in-abschnitte-unterteilen
                oder hier: https://github.com/ioBroker/ioBroker.javascript#astro--funktion

                https://github.com/iobroker/ioBroker.javascript/blob/master/README.md#getastrodate

                erstellt: 01.06.2015 von Pix
                11.12.2015 getAstroDate ermittelt nun auch Sonnenaufgang und Untergang
                Astrotag (isAstroDay) eingebaut
                23.02.2018 checkSec eingebaut (Uhrzeit sekundengenau?)
                andere Astrozeiten werden nun auch gespeichert
                Neuer Pfad
                24.02.2018 Unterteilung in zwei Bereiche
                27.02.2018 Bestimmung, welche AstroZeit aktuell ist (mit der ioBroker-Funktion compareTime)
                Beschreibung Objekt Astrotag korrigiert
                Objekte werden jetzt bei jedem Zeitplan angelegt, falls nicht (mehr) vorhanden
                */

                const sec = false; // Sekunden darstellen oder nicht
                const fC = false; // forceCreation ein/aus
                const pfad = "Astro"; // Pfad zum Objekt - Objektbaum-Hauptverzeichnis

                // *****************************************************************************
                // TAGESZEITEN - T E I L

                // Tageszeiten nach eigenem Gusto (Shifts siehe schedules weiter unten)
                const tageszeiten = ["Nacht", // Night
                "Morgendämmerung", // nightEnd
                "Morgen",
                "Vormittag",
                "Mittag",
                "Nachmittag",
                "Abenddämmerung",
                "Abend"];

                const idTageszeit = "javascript." + instance + "." + pfad + ".Tageszeit.current" /Tageszeit/,
                idTageszeitNext = "javascript." + instance + "." + pfad + ".Tageszeit.next";

                function createTageszeiten() {
                createState(idTageszeit, "nächsten Wechsel abwarten", fC, {
                name: "Tageszeit",
                desc: "Name der Tageszeit",
                type: "string"
                });
                createState(idTageszeitNext, "nächsten Wechsel abwarten", fC, {
                name: "nächste Tageszeit",
                desc: "Name der nächsten Tageszeit",
                type: "string"
                });
                }

                function neue_tageszeit(abschnitt) {
                createTageszeiten(); // Objekte anlegen, falls noch nicht geschehen
                var akt = tageszeiten[parseInt(abschnitt, 10)],
                // wenn aktuelles Element ist letztes, dann nächstes ist erstes :-D
                nxt = (abschnitt + 1 === tageszeiten.length) ? tageszeiten[0] : tageszeiten[parseInt(abschnitt + 1, 10)];
                setState(idTageszeit, akt);
                setState(idTageszeitNext, nxt);
                log("neue Tagezeit: " + akt);
                log("nächte kommende Tagezeit: " + nxt);
                }

                // Nacht
                schedule({
                astro: "night",
                shift: 120
                }, function () {
                neue_tageszeit(0);
                });

                // Morgengdämmerung
                schedule({
                astro: "nightEnd"
                }, function () {
                neue_tageszeit(1);
                });

                // Morgen
                schedule({
                astro: "sunrise"
                }, function () {
                neue_tageszeit(2);
                });

                // Vormittag (beginnt 120min vor Sonnenhöchststand)
                schedule({
                astro: "solarNoon",
                shift: -120
                }, function () {
                neue_tageszeit(3);
                });

                // Mittag
                schedule({
                astro: "solarNoon"
                }, function () {
                neue_tageszeit(4);
                });

                // Nachmittag
                schedule({
                astro: "solarNoon",
                shift: 60
                }, function () {
                neue_tageszeit(5);
                });

                // Abenddämmerung (nach Sonnenuntergang)
                schedule({
                astro: "dusk"
                }, function () {
                neue_tageszeit(6);
                });

                // Abend
                schedule({
                astro: "night"
                }, function () {
                neue_tageszeit(7);
                });

                // *****************************************************************************
                // A S T O - T E I L

                /* Objekt Astrotag
                Astrotag liegt zwischen Sonnauf- und untergang,
                Astronacht liegt zwischen Sonnenunter- und aufgang */
                const idAstrotag = "javascript." + instance + "." + pfad + ".Astrotag";
                const idAstrotime = "javascript." + instance + "." + pfad + ".Astrozeit";

                // Array für Funktion compareTime (sind leider nicht alle Astrozeiten, die auch mit Astro-Function möglich sind)
                const astrotime_arr = [
                "sunrise",
                "sunriseEnd",
                "goldenHourEnd",
                "goldenHour",
                "sunsetStart",
                "sunset",
                "dusk",
                "nauticalDusk",
                "night",
                "nightEnd",
                "nauticalDawn",
                "dawn"
                ];

                // Objekt für Uhrzeiten der Astrozeiten
                const astrotime = {
                "elements" : [
                // Astrotag beginnt
                {
                "fname" : "sunrise", // function name
                "de" : {
                "name" : "Sonnenaufgang",
                "nxt" : "nächster",
                "desc" : ""
                },
                "en" : {
                "name" : "Sunrise",
                "desc" : "top edge of the sun appears on the horizon"
                },
                "astroday" : true //during astroday
                },
                {
                "fname" : "sunriseEnd", // function name
                "de" : {
                "name" : "Ende Sonnenaufgang",
                "nxt" : "nächstes",
                "desc" : ""
                },
                "en" : {
                "name" : "End of sunrise",
                "desc" : "bottom edge of the sun touches the horizon"
                },
                "astroday" : true //during astroday
                },
                {
                "fname" : "goldenHourEnd", // function name
                "de" : {
                "name" : "Ende der goldenen Stunde am Morgen",
                "nxt" : "nächstes",
                "desc" : ""
                },
                "en" : {
                "name" : "End of golden hour",
                "desc" : "morning golden hour (soft light, best time for photography) ends"
                },
                "astroday" : true //during astroday
                },
                {
                "fname" : "solarNoon", // function name
                "de" : {
                "name" : "Sonnenhöchststand",
                "nxt" : "nächster",
                "desc" : ""
                },
                "en" : {
                "name" : "Solar noon",
                "desc" : "sun is in the highest position"
                },
                "astroday" : true //during astroday
                },
                {
                "fname" : "goldenHour", // function name
                "de" : {
                "name" : "Goldene Stunde (am Abend)",
                "nxt" : "nächste",
                "desc" : ""
                },
                "en" : {
                "name" : "Golden hour",
                "desc" : "evening golden hour starts"
                },
                "astroday" : true //during astroday
                },
                {
                "fname" : "sunsetStart", // function name
                "de" : {
                "name" : "Beginn Sonnenuntergang",
                "nxt" : "nächster",
                "desc" : ""
                },
                "en" : {
                "name" : "Sunset starts",
                "desc" : "bottom edge of the sun touches the horizon"
                },
                "astroday" : true //during astroday
                },
                // Astronacht beginnt
                {
                "fname" : "sunset", // function name
                "de" : {
                "name" : "Sonnenuntergang",
                "nxt" : "nächster",
                "desc" : ""
                },
                "en" : {
                "name" : "Sunset",
                "desc" : "sun disappears below the horizon, evening civil twilight starts"
                },
                "astroday" : false //during astronight
                },
                {
                "fname" : "dusk",
                "de" : {
                "name" : "Abenddämmerung",
                "nxt" : "nächste",
                "desc" : ""
                },
                "en" : {
                "name" : "Dusk",
                "desc" : "evening nautical twilight starts"
                },
                "astroday" : false //during astronight
                },
                {
                "fname" : "nauticalDusk",
                "de" : {
                "name" : "nautische Abenddämmerung",
                "nxt" : "nächste",
                "desc" : ""
                },
                "en" : {
                "name" : "Nautical dusk",
                "desc" : "evening astronomical twilight starts"
                },
                "astroday" : false //during astronight
                },
                {
                "fname" : "night",
                "de" : {
                "name" : "Nacht",
                "nxt" : "nächste",
                "desc" : ""
                },
                "en" : {
                "name" : "Night",
                "desc" : "dark enough for astronomical observations"
                },
                "astroday" : false //during astronight
                },
                {
                "fname" : "nadir",
                "de" : {
                "name" : "Nadir",
                "nxt" : "nächster",
                "desc" : "Fußpunkt gegenüber dem Zenit"
                },
                "en" : {
                "name" : "Nadir",
                "desc" : "darkest moment of the night, sun is in the lowest position"
                },
                "astroday" : false //during astronight
                },
                {
                "fname" : "nightEnd",
                "de" : {
                "name" : "Nachtende",
                "nxt" : "nächstes",
                "desc" : ""
                },
                "en" : {
                "name" : "Night ends",
                "desc" : "morning astronomical twilight starts"
                },
                "astroday" : false //during astronight
                },
                {
                "fname" : "nauticalDawn",
                "de" : {
                "name" : "nautische Morgendämmerung",
                "nxt" : "nächste",
                "desc" : ""
                },
                "en" : {
                "name" : "Nautical dawn",
                "desc" : "morning nautical twilight starts"
                },
                "astroday" : false //during astronight
                },
                {
                "fname" : "dawn",
                "de" : {
                "name" : "Morgendämmerung",
                "nxt" : "nächste",
                "desc" : ""
                },
                "en" : {
                "name" : "dawn",
                "desc" : "morning nautical twilight ends, morning civil twilight starts"
                },
                "astroday" : false //during astronight
                }

                ]
                

                };

                function writeAstroTimes(i) {
                // führende Nummer zur Sortierung in Admin/Objekte
                var nr = (i+1 < 10) ? "0" + (i+1) : (i+1);
                // Erstelle Objekt, falls nicht bereits vorhanden
                var idAstroObject = "javascript." + instance + "." + pfad + "." + nr + " - " + astrotime.elements[i].fname;
                createState(idAstroObject, " ", fC, {
                name: astrotime.elements[i].de.nxt + " " + astrotime.elements[i].de.name + " Uhrzeit",
                desc: astrotime.elements[i].en.desc,
                type: "string"
                });

                setTimeout(function() { // kurz warten, damit Objekte ggf. erst angelgt werden können
                    var astrotag = getState(idAstrotag).val,
                        temp;
                    var today = new Date();
                    var tomorrow = today.setDate(today.getDate()+1);
                    var next_event;
                    if (astrotag) { 
                        // Wenn Tag (Aufgang vorbei (erst wieder morgen, Untergang kommt noch heute)
                        next_event = (astrotime.elements[i].astroday) ? tomorrow : today; // prüfen
                        temp = getAstroDate(astrotime.elements[i].fname, next_event);
                    } else { 
                        // nach Nacht (Untergang vorbei (erst wieder morgen, Aufgang kommt heute oder morgen)
                        next_event = (astrotime.elements[i].astroday) ? today : tomorrow; // prüfen
                        temp = getAstroDate(astrotime.elements[i].fname, next_event);
                    /* // Rudimente aus altem Skript zur Erinnerung -> Nachfrage bei Bluefox
                    sonnenuntergang = getAstroDate("sunset", tomorrow);
                    nacht = (today.getHours() > 12 && today.getHours() <= 23) ? getAstroDate("night", today) : getAstroDate("night", tomorrow);
                    nachtende = (today.getHours() > 12 && today.getHours() <= 23) ? getAstroDate("night", tomorrow) : getAstroDate("night", today);
                    sonnenaufgang = (today.getHours() > 12 && today.getHours() <= 23) ? getAstroDate("sunrise", tomorrow) :  getAstroDate("sunrise", today); // es ist vor Mitternacht (bzw. vor 23:XXUhr), dann morgen, sonst heute
                    */
                    }
                    setState(idAstroObject, checkSec(temp.toLocaleTimeString()) );
                    
                }, 3 * 1000);
                

                }

                // Zeit mit oder ohne Sekunden anzeigen
                function checkSec (zeit) {
                if (!sec) {
                var newString_arr = zeit.split(":");
                var newString = newString_arr[0] + ":" + newString_arr[1];
                return (newString);
                } else return (zeit);
                }

                function getAstrotime (j) {
                // Objekt anlegen, falls nicht bereits geschehen
                createState(idAstrotime, " ", fC, {
                type: "string",
                name: "aktuelle Astrozeit",
                desc: "Anzeige der aktuellen Astrozeit durch ioBroker-Funktion compareTime()"
                });
                // aktuelle Astrozeit bestimmen
                var k = (j == (astrotime_arr.length-1) ) ? 0 : (j+1); // wenn j max ist, dann ist k min
                var startTime = astrotime_arr[j];
                var endTime = astrotime_arr[k];
                //log("Astrozeit zwischen " + j + " und " + k + " von " + astrotime_arr.length);
                if (!startTime || !endTime) {
                log("Fehler","error");
                } else {
                var astrotime_check = (compareTime(startTime, endTime, "between") ) ;
                if (astrotime_check) {
                setState(idAstrotime, startTime);
                //log("Astrozeit: " + startTime);
                }
                }
                }

                function getAstroday() {
                // Astrotag bestimmen (boolean)
                createState(idAstrotag, false, fC, {
                type: "boolean",
                name: "Astrologischer Tag",
                desc: "Liegt die aktuelle Zeit zwischen Sonnenauf- und untergang"
                });
                setState(idAstrotag, isAstroDay());
                }

                function iterateAstrotimes() {
                // Zeiten für jede Astrozeit schreiben
                for (var i = 0; i < astrotime.elements.length; i++) {
                writeAstroTimes(i);
                }
                // aktuelle Astrozeit ermitteln
                for (var j = 0; j < astrotime_arr.length; j++) {
                getAstrotime(j);
                }
                }

                // Astrotag checken
                schedule("*/1 * * * *", function () { // jede Minute
                getAstroday();
                iterateAstrotimes();
                });

                iterateAstrotimes();
                getAstroday();

                paul53P Offline
                paul53P Offline
                paul53
                schrieb am zuletzt editiert von
                #13

                @Chaot sagte:

                Das gibt nach dem Update die Fehlermeldung:

                Das liegt nicht am Update.

                Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                ChaotC 1 Antwort Letzte Antwort
                0
                • ostseereiterO Offline
                  ostseereiterO Offline
                  ostseereiter
                  schrieb am zuletzt editiert von
                  #14

                  mit welchen Befehl updatet man nun genau.Ich schaue nicht ganz durch.
                  mein iobroker läuft mit:
                  v8.14.0 (Es gibt eine neuere Version: v8.16.0)
                  NPM 6.4.1

                  Gruß OSR

                  Plattform
                  Linux x64 CPUs2 AMD G-T56N Processor 1646 MHz 8GB RAM

                  S 1 Antwort Letzte Antwort
                  0
                  • ostseereiterO ostseereiter

                    mit welchen Befehl updatet man nun genau.Ich schaue nicht ganz durch.
                    mein iobroker läuft mit:
                    v8.14.0 (Es gibt eine neuere Version: v8.16.0)
                    NPM 6.4.1

                    S Offline
                    S Offline
                    skokarl
                    schrieb am zuletzt editiert von
                    #15

                    @ostseereiter sagte in [Diskussion] js-controller 1.5.11 ab sofort im Stable Repository:

                    mit welchen Befehl updatet man nun genau.Ich schaue nicht ganz durch.
                    mein iobroker läuft mit:
                    v8.14.0 (Es gibt eine neuere Version: v8.16.0)
                    NPM 6.4.1

                    Ich habs so gemacht.
                    ohne Gewähr
                    ################
                    iobroker stop
                    iobroker update
                    iobroker upgrade self
                    iobroker start
                    ################
                    ohne Gewähr

                    IOBroker mit Proxmox auf Celeron Nuc mit 16 GB und Debian11, Sonos API, Echo Show 15 als Wandtablet, Homematic IP, HUE, Sonos, Echos, DS718+ als Backup

                    ostseereiterO apollon77A 2 Antworten Letzte Antwort
                    0
                    • S skokarl

                      @ostseereiter sagte in [Diskussion] js-controller 1.5.11 ab sofort im Stable Repository:

                      mit welchen Befehl updatet man nun genau.Ich schaue nicht ganz durch.
                      mein iobroker läuft mit:
                      v8.14.0 (Es gibt eine neuere Version: v8.16.0)
                      NPM 6.4.1

                      Ich habs so gemacht.
                      ohne Gewähr
                      ################
                      iobroker stop
                      iobroker update
                      iobroker upgrade self
                      iobroker start
                      ################
                      ohne Gewähr

                      ostseereiterO Offline
                      ostseereiterO Offline
                      ostseereiter
                      schrieb am zuletzt editiert von
                      #16

                      @skokarl sagte in [Diskussion] js-controller 1.5.11 ab sofort im Stable Repository:

                      Ich habs so gemacht.
                      ohne Gewähr
                      ################
                      iobroker stop
                      iobroker update
                      iobroker upgrade self
                      iobroker start
                      ################
                      ohne Gewähr

                      Oje das überlege ich mir noch.

                      Gruß OSR

                      Plattform
                      Linux x64 CPUs2 AMD G-T56N Processor 1646 MHz 8GB RAM

                      1 Antwort Letzte Antwort
                      0
                      • chmilli1C Offline
                        chmilli1C Offline
                        chmilli1
                        schrieb am zuletzt editiert von
                        #17

                        bei mir geht nach dem Update auf 1.5.11 nicht mehr Multihost zum einrichten.......(Hatte alles neu gemacht....)

                        Auf dem slave kommt nur no connect to <ip.adress>:9001

                        apollon77A 1 Antwort Letzte Antwort
                        0
                        • paul53P paul53

                          @Chaot sagte:

                          Das gibt nach dem Update die Fehlermeldung:

                          Das liegt nicht am Update.

                          ChaotC Offline
                          ChaotC Offline
                          Chaot
                          schrieb am zuletzt editiert von
                          #18

                          @paul53 sagte in [Diskussion] js-controller 1.5.11 ab sofort im Stable Repository:

                          @Chaot sagte:

                          Das gibt nach dem Update die Fehlermeldung:

                          Das liegt nicht am Update.

                          Und warum sollte das plötzlich an der geografischen Lage liegen? Bisher hat es ja funktioniert.

                          ioBroker auf NUC unter Proxmox; VIS: 12" Touchscreen und 17" Touch; Lichtsteuerung, Thermometer und Sensoren: Tasmota (39); Ambiente Beleuchtung: WLED (9); Heizung: DECT Thermostate (9) an Fritz 6690; EMS-ESP; 1 Echo V2; 3 Echo DOT; 1 Echo Connect; 2 Echo Show 5; Unifi Ap-Ac Lite.

                          paul53P 1 Antwort Letzte Antwort
                          0
                          • ChaotC Chaot

                            @paul53 sagte in [Diskussion] js-controller 1.5.11 ab sofort im Stable Repository:

                            @Chaot sagte:

                            Das gibt nach dem Update die Fehlermeldung:

                            Das liegt nicht am Update.

                            Und warum sollte das plötzlich an der geografischen Lage liegen? Bisher hat es ja funktioniert.

                            paul53P Offline
                            paul53P Offline
                            paul53
                            schrieb am zuletzt editiert von
                            #19

                            @Chaot sagte:

                            Bisher hat es ja funktioniert.

                            Irgendwann kommt die erste Nacht im Sommer, in der es nicht mehr funktioniert. Bei Dir war es offenbar die letzte Nacht.

                            Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                            Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                            ChaotC 1 Antwort Letzte Antwort
                            0
                            • A Offline
                              A Offline
                              Alexander.G
                              schrieb am zuletzt editiert von
                              #20

                              Homoran Administrators 1. Apr. 2019, 20:45

                              @Paulchen67 sagte in Update js-Controller geht nicht auf Ubuntu:

                              Seit gut 3 Monaten läuft
                              

                              Damit bist du ein ganz heißer Kandidat für den Fixer.

                              Zu diesem Zeitpunkt gab es noch ein paar kleinere Unzulänglichkeiten beim Installer.

                              Ich glaube ich habe das selbe Problem. Darf man an der Lösung teilhaben. :v:

                              HomoranH 1 Antwort Letzte Antwort
                              0
                              • A Alexander.G

                                Homoran Administrators 1. Apr. 2019, 20:45

                                @Paulchen67 sagte in Update js-Controller geht nicht auf Ubuntu:

                                Seit gut 3 Monaten läuft
                                

                                Damit bist du ein ganz heißer Kandidat für den Fixer.

                                Zu diesem Zeitpunkt gab es noch ein paar kleinere Unzulänglichkeiten beim Installer.

                                Ich glaube ich habe das selbe Problem. Darf man an der Lösung teilhaben. :v:

                                HomoranH Offline
                                HomoranH Offline
                                Homoran
                                Global Moderator Administrators
                                schrieb am zuletzt editiert von
                                #21

                                @Alexander-G sagte in [Diskussion] js-controller 1.5.11 ab sofort im Stable Repository:

                                Homoran Administrators 1. Apr. 2019, 20:45

                                @Paulchen67 sagte in Update js-Controller geht nicht auf Ubuntu:

                                Seit gut 3 Monaten läuft
                                

                                Damit bist du ein ganz heißer Kandidat für den Fixer.

                                Zu diesem Zeitpunkt gab es noch ein paar kleinere Unzulänglichkeiten beim Installer.

                                Ich glaube ich habe das selbe Problem. Darf man an der Lösung teilhaben. :v:

                                Doppelpost?

                                kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                                Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                                der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                                1 Antwort Letzte Antwort
                                0
                                • A Offline
                                  A Offline
                                  Alexander.G
                                  schrieb am zuletzt editiert von
                                  #22

                                  Erwischt:fearful: geht aber trotzdem nicht. Denke da stimmt was mit den Rechten nicht. Müsste vielleicht als user iobroker ausgeführt werden.

                                  Update js-controller from @1.4.2 to @1.5.11
                                  NPM version: 6.9.0
                                  npm install iobroker.js-controller@1.5.11 --unsafe-perm --production --save --prefix "/opt/iobroker" (System call)
                                  Unhandled rejection Error: EACCES: permission denied, open '/home/alex/.npm/_cacache/tmp/f306aabc'
                                  npm ERR! cb() never called!
                                  
                                  npm ERR! This is an error with npm itself. Please report this error at:
                                  npm ERR!     <https://npm.community>
                                  npm install --production (System call) in "/opt/iobroker/node_modules/iobroker.js-controller"
                                  Unhandled rejection Error: EACCES: permission denied, open '/home/alex/.npm/_cacache/tmp/126b0347'
                                  Unhandled rejection Error: EACCES: permission denied, open '/home/alex/.npm/_cacache/tmp/4a51c853'
                                  Unhandled rejection Error: EACCES: permission denied, open '/home/alex/.npm/_cacache/tmp/365a4574'
                                  Unhandled rejection Error: EACCES: permission denied, open '/home/alex/.npm/_cacache/tmp/1c9fce69'
                                  Unhandled rejection Error: EACCES: permission denied, open '/home/alex/.npm/_cacache/tmp/58df30fd'
                                  Unhandled rejection Error: EACCES: permission denied, open '/home/alex/.npm/_cacache/tmp/a1f3b7c8'
                                  Unhandled rejection Error: EACCES: permission denied, open '/home/alex/.npm/_cacache/tmp/370b61b8'
                                  Unhandled rejection Error: EACCES: permission denied, open '/home/alex/.npm/_cacache/tmp/1bba2609'
                                  Unhandled rejection Error: EACCES: permission denied, open '/home/alex/.npm/_cacache/tmp/f575bebd'
                                  Unhandled rejection Error: EACCES: permission denied, open '/home/alex/.npm/_cacache/tmp/e0f4d885'
                                  npm ERR! cb() never called!
                                  
                                  npm ERR! This is an error with npm itself. Please report this error at:
                                  npm ERR!     <https://npm.community>
                                  Cannot install iobroker.js-controller: 1
                                  
                                  
                                  apollon77A 1 Antwort Letzte Antwort
                                  0
                                  • paul53P paul53

                                    @Chaot sagte:

                                    Bisher hat es ja funktioniert.

                                    Irgendwann kommt die erste Nacht im Sommer, in der es nicht mehr funktioniert. Bei Dir war es offenbar die letzte Nacht.

                                    ChaotC Offline
                                    ChaotC Offline
                                    Chaot
                                    schrieb am zuletzt editiert von
                                    #23

                                    @paul53
                                    Ok.
                                    Danke

                                    ioBroker auf NUC unter Proxmox; VIS: 12" Touchscreen und 17" Touch; Lichtsteuerung, Thermometer und Sensoren: Tasmota (39); Ambiente Beleuchtung: WLED (9); Heizung: DECT Thermostate (9) an Fritz 6690; EMS-ESP; 1 Echo V2; 3 Echo DOT; 1 Echo Connect; 2 Echo Show 5; Unifi Ap-Ac Lite.

                                    1 Antwort Letzte Antwort
                                    0
                                    • opossumO Offline
                                      opossumO Offline
                                      opossum
                                      schrieb am zuletzt editiert von opossum
                                      #24

                                      Hallo,

                                      ich hatte heute morgen um 03:00:00 ein ganz merkwürdiges Verhalten des iobroker, nach dem ich gestern die Version 1.5.11 des js-controllers installiert hatte. War das schon mein Fehler? 03:00:00 darum, weil der BackitUp-Adapter so eingestellt ist, dass er alle 10 Tage ein komplettes Backup auf ein Backupverzeichnis schreibt. Dazu wird ja iobroker gestoppt. Beim Hochfahren hatte ich dann diese merkwürdigen Fehlermeldungen. Jede Menge Fehler im Log, es wurden alle CUXD-Geräte gelöscht, dann neu angelegt. Habe dann mal hier gesucht. Ich wollte dann zurück auf jscontroller 1.4.2. Das schlug dann gründlich fehl. Alle Adapter rot, selbst der Admin ging nicht mehr. Der wechselte immer zwischen rot und grün. Im Log konnte ich sehen, dass der http://ipadresse:8081 ständig gestartet und terminated wurde. Mir blieb dann nur, ein komplettes Backup über die Kommandozeile zurückzuspielen. Nach einem Reboot läuft nun iobroker wieder zuverlässig. Mich würde aber nun interessieren, wie man ein Downgrade des js-controllers tatsächlich korrekt durchführt. Ist das irgendwo nachzulesen?Mir würde ein Link reichen.
                                      Ich habe von diesen Ereignissen und Fehlern von heute nacht das log gesichert. Interessant ist das ab 03:00:00 Uhr. Vielleicht kann da mal jemand draufschauen?

                                      iobroker.2019-05-31_ab_03_00_00.log

                                      Vielen Dank und viele Grüße

                                      https://schlepper-petersdorf.jimdofree.com/

                                      v522533V apollon77A 2 Antworten Letzte Antwort
                                      0
                                      • opossumO opossum

                                        Hallo,

                                        ich hatte heute morgen um 03:00:00 ein ganz merkwürdiges Verhalten des iobroker, nach dem ich gestern die Version 1.5.11 des js-controllers installiert hatte. War das schon mein Fehler? 03:00:00 darum, weil der BackitUp-Adapter so eingestellt ist, dass er alle 10 Tage ein komplettes Backup auf ein Backupverzeichnis schreibt. Dazu wird ja iobroker gestoppt. Beim Hochfahren hatte ich dann diese merkwürdigen Fehlermeldungen. Jede Menge Fehler im Log, es wurden alle CUXD-Geräte gelöscht, dann neu angelegt. Habe dann mal hier gesucht. Ich wollte dann zurück auf jscontroller 1.4.2. Das schlug dann gründlich fehl. Alle Adapter rot, selbst der Admin ging nicht mehr. Der wechselte immer zwischen rot und grün. Im Log konnte ich sehen, dass der http://ipadresse:8081 ständig gestartet und terminated wurde. Mir blieb dann nur, ein komplettes Backup über die Kommandozeile zurückzuspielen. Nach einem Reboot läuft nun iobroker wieder zuverlässig. Mich würde aber nun interessieren, wie man ein Downgrade des js-controllers tatsächlich korrekt durchführt. Ist das irgendwo nachzulesen?Mir würde ein Link reichen.
                                        Ich habe von diesen Ereignissen und Fehlern von heute nacht das log gesichert. Interessant ist das ab 03:00:00 Uhr. Vielleicht kann da mal jemand draufschauen?

                                        iobroker.2019-05-31_ab_03_00_00.log

                                        Vielen Dank und viele Grüße

                                        v522533V Offline
                                        v522533V Offline
                                        v522533
                                        schrieb am zuletzt editiert von v522533
                                        #25

                                        @opossum

                                        genau das hatte ich auch. Bei mir ging das auch mit dem komplett backup los. als ich iobroker dann wieder starten konnte hat der javascript adapter gesponnen. habe dann nach und nach alle scripte abgeschalten um den fehler zu suchen. bei mir lags an diesem logscript: https://github.com/Mic-M/iobroker.logfile-script/blob/master/iobroker_logfile-script.js. als ich das deaktiviert hatte lief es wieder. keine ahnung warum...

                                        Gruß Chris

                                        apollon77A 1 Antwort Letzte Antwort
                                        1
                                        • opossumO Offline
                                          opossumO Offline
                                          opossum
                                          schrieb am zuletzt editiert von
                                          #26

                                          Hallo, @v522533,

                                          danke für die Nachricht. Das ging bei mir leider nicht mehr, bei mir waren alle Adapter rot, der Admin ging als einziger kurz auf grün, dann wieder auf rot. Schuld war sicherlich mein versuchter Downgrade auf 1.4.2. Da ich ja immer auf dieses Backup zugreifen konnte, war es kein Problem. Nur die Diagramme haben nun eine kurzzeitige Lücke, aber das kann ich verschmerzen.
                                          Hoffe, dass mir noch jemand Auskunft gibt, was bei mir falsch gelaufen ist.

                                          Gruß
                                          Egbert

                                          https://schlepper-petersdorf.jimdofree.com/

                                          1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate
                                          FAQ Cloud / IOT
                                          HowTo: Node.js-Update
                                          HowTo: Backup/Restore
                                          Downloads
                                          BLOG

                                          306

                                          Online

                                          32.5k

                                          Benutzer

                                          81.7k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe