Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [Diskussion] js-controller 1.5.11 ab sofort im Stable Repository

    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

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

    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      Semenchkare last edited by 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
      
      
      apollon77 1 Reply Last reply Reply Quote 0
      • BBTown
        BBTown last edited by

        das update verlief geräuschlos und alle adapter waren umgehend wieder grün

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

          Bin seit gestern auf der aktuellen Version von der 1.2.5.

          Alle Adapter waren sofort wieder grün. Alles so wie immer.

          1 Reply Last reply Reply Quote 0
          • S
            Semenchkare last edited by

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

            apollon77 1 Reply Last reply Reply Quote 0
            • apollon77
              apollon77 @Semenchkare last edited by

              @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!!

              sigi234 1 Reply Last reply Reply Quote 0
              • apollon77
                apollon77 @Semenchkare last edited by

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

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

                  @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..........

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

                    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.

                    1 Reply Last reply Reply Quote 5
                    • Chaot
                      Chaot last edited by 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 😄
                      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();

                      paul53 1 Reply Last reply Reply Quote 0
                      • paul53
                        paul53 @Chaot last edited by

                        @Chaot sagte:

                        Das gibt nach dem Update die Fehlermeldung:

                        Das liegt nicht am Update.

                        Chaot 1 Reply Last reply Reply Quote 0
                        • ostseereiter
                          ostseereiter last edited by

                          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 1 Reply Last reply Reply Quote 0
                          • S
                            skokarl @ostseereiter last edited by

                            @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

                            ostseereiter apollon77 2 Replies Last reply Reply Quote 0
                            • ostseereiter
                              ostseereiter @skokarl last edited by

                              @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.

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

                                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

                                apollon77 1 Reply Last reply Reply Quote 0
                                • Chaot
                                  Chaot @paul53 last edited by

                                  @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.

                                  paul53 1 Reply Last reply Reply Quote 0
                                  • paul53
                                    paul53 @Chaot last edited by

                                    @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.

                                    Chaot 1 Reply Last reply Reply Quote 0
                                    • A
                                      Alexander.G last edited by

                                      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. ✌

                                      Homoran 1 Reply Last reply Reply Quote 0
                                      • Homoran
                                        Homoran Global Moderator Administrators @Alexander.G last edited by

                                        @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. ✌

                                        Doppelpost?

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          Alexander.G last edited by

                                          Erwischt😨 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
                                          
                                          
                                          apollon77 1 Reply Last reply Reply Quote 0
                                          • Chaot
                                            Chaot @paul53 last edited by

                                            @paul53
                                            Ok.
                                            Danke

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

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

                                            944
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            js-controller
                                            37
                                            158
                                            19326
                                            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