Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • 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

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. Gesucht: Script: Sonnenwinkel berechnen?

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    3.0k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    1.1k

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.4k

Gesucht: Script: Sonnenwinkel berechnen?

Scheduled Pinned Locked Moved Skripten / Logik
101 Posts 27 Posters 29.1k Views 7 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O oFbEQnpoLKKl6mbY5e13

    @bahnuhr

    Woher bekommst du denn die anderen Informationen wie Sonnenaufgang usw.?

    K Offline
    K Offline
    klassisch
    Most Active
    wrote on last edited by
    #101

    @ofbeqnpolkkl6mby5e13 sagte in Gesucht: Script: Sonnenwinkel berechnen?:

    Woher bekommst du denn die anderen Informationen wie Sonnenaufgang usw.?

    Nicht immer ganz leicht zu finden, steht aber in der Doc zum JS Adapter

    https://github.com/ioBroker/ioBroker.javascript/blob/master/docs/en/javascript.md

    Following values can be used as attribute in astro-function:

    "sunrise": sunrise (top edge of the sun appears on the horizon)
    "sunriseEnd": sunrise ends (bottom edge of the sun touches the horizon)
    "goldenHourEnd": morning golden hour (soft light, best time for photography) ends
    "solarNoon": solar noon (sun is in the highest position)
    "goldenHour": evening golden hour starts
    "sunsetStart": sunset starts (bottom edge of the sun touches the horizon)
    "sunset": sunset (sun disappears below the horizon, evening civil twilight starts)
    "dusk": dusk (evening nautical twilight starts)
    "nauticalDusk": nautical dusk (evening astronomical twilight starts)
    "night": night starts (dark enough for astronomical observations)
    "nightEnd": night ends (morning astronomical twilight starts)
    "nauticalDawn": nautical dawn (morning nautical twilight starts)
    "dawn": dawn (morning nautical twilight ends, morning civil twilight starts)
    "nadir": nadir (darkest moment of the night, sun is in the lowest position)
    

    Note: to use "astro"-function the "latitude" and "longitude" must be defined in javascript adapter settings.

    Note: On some places sometimes it could be so, that no night/nightEnd exists. Please read here about it.

    Note: you can use "on" function for schedule with small modification:

    on({time: "*/2 * * * *"}, function () {
    log((new Date()).toString() + " - Will be triggered every 2 minutes!");
    });

    on({time: {hour: 12, minute: 30}}, function () {
    log((new Date()).toString() + " - Will be triggered at 12:30!");
    });

    on({astro: "sunset", shift: 10}, function () {
    log((new Date()).toString() + " - 10 minutes after sunset!");
    });

    ENDE Zitat aus der Doc

    1 Reply Last reply
    1
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    Support us

    ioBroker
    Community Adapters
    Donate

    733

    Online

    32.6k

    Users

    82.3k

    Topics

    1.3m

    Posts
    Community
    Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
    ioBroker Community 2014-2025
    logo
    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Home
    • Recent
    • Tags
    • Unread 0
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe