Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. JS Adapter 8.7.0 und suncalc

    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

    JS Adapter 8.7.0 und suncalc

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Maul
      Thomas Maul last edited by Thomas Maul

      Hi,

      ich habe heute auf (Beta repository) auf 8.7.0 upgegraded.

      Ich bin mir nich sicher, aber es kommt bei Ausführung des Scripts:

      var sunpos = suncalc.getPosition(date(), breite, laenge);
      var h = sunpos.altitude * 180 / Math.PI;
      return h;

      eine fehlermeldung, bin mir aber nicht sicher, ob das an dieser Version liegt oder schon bei der vorherigen der Fall war:
      a08ca241-5a38-4c6d-9d46-5cb89a399da6-image.png

      Homoran haus-automatisierung 2 Replies Last reply Reply Quote 0
      • Homoran
        Homoran Global Moderator Administrators @Thomas Maul last edited by

        @thomas-maul kein require suncalc?

        meines Wissens ist jetzt suncalc2 im js Adapter integriert

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

          @homoran sagte: ist jetzt suncalc2 im js Adapter integriert

          Das im JS-Adapter zur Verfügung gestellt wird mit:

          const suncalc = require('suncalc');
          
          1 Reply Last reply Reply Quote 1
          • haus-automatisierung
            haus-automatisierung Developer Most Active @Thomas Maul last edited by haus-automatisierung

            @thomas-maul sagte in JS Adapter 8.7.0 und suncalc:

            ich habe heute auf (Beta repository) auf 8.7.0 upgegraded.

            Von welcher Version denn? Du konntest vorher suncalc ohne ein require verwenden?! Würde mich wundern

            1 Reply Last reply Reply Quote 1
            • Thomas Maul
              Thomas Maul last edited by

              @paul53 Danke, jetzt funktioniert es. War wohl zu blind. Ging vorher auch nicht, dh hat nix mit dem Update zu schaffen.

              1 Reply Last reply Reply Quote 0
              • Thomas Maul
                Thomas Maul last edited by

                Das mit dem require habe ich wohl auch nicht ganz verstanden und deswegen nicht im Code gehabt. Amateur halt 😉

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

                Support us

                ioBroker
                Community Adapters
                Donate

                977
                Online

                31.8k
                Users

                80.0k
                Topics

                1.3m
                Posts

                4
                6
                275
                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