Skip to content
  • 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
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. Skripten / Logik
  4. JavaScript
  5. [gelöst] schedule bringt Fehler

NEWS

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

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.8k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    15
    1
    2.0k

[gelöst] schedule bringt Fehler

[gelöst] schedule bringt Fehler

Scheduled Pinned Locked Moved JavaScript
javascript
3 Posts 2 Posters 170 Views 2 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.
  • falke69F Offline
    falke69F Offline
    falke69
    wrote on last edited by falke69
    #1

    Hallo zusammen,

    ich habe mir ein Script zurecht gebastelt, was einen Ordner auf das Vorhandensein einer bestimmten
    Datei prüfen soll.

    Das Script funktioniert, aber ich bekomme den schedule nicht richtig eingebunden.

    Kann mir bitte jemand helfen?

    Danke

    const fs = require("fs");
    
    const path = "/opt/iobroker/test/test.txt";
    
    if (fs.existsSync(path)) {
      // path exists
      console.log("exists:", path);
      setState("0_userdata.0.Test.datei", true);
    } else {
      console.log("NOT exist:", path);
      setState("0_userdata.0.Test.datei", false);
    }
    
    schedule('* * * * *');
    
    

    Fehlerlog

    schedule callback missing
    
    AsgothianA 1 Reply Last reply
    0
    • falke69F falke69

      Hallo zusammen,

      ich habe mir ein Script zurecht gebastelt, was einen Ordner auf das Vorhandensein einer bestimmten
      Datei prüfen soll.

      Das Script funktioniert, aber ich bekomme den schedule nicht richtig eingebunden.

      Kann mir bitte jemand helfen?

      Danke

      const fs = require("fs");
      
      const path = "/opt/iobroker/test/test.txt";
      
      if (fs.existsSync(path)) {
        // path exists
        console.log("exists:", path);
        setState("0_userdata.0.Test.datei", true);
      } else {
        console.log("NOT exist:", path);
        setState("0_userdata.0.Test.datei", false);
      }
      
      schedule('* * * * *');
      
      

      Fehlerlog

      schedule callback missing
      
      AsgothianA Offline
      AsgothianA Offline
      Asgothian
      Developer
      wrote on last edited by
      #2

      @falke69 sagte in schedule bringt Fehler:

      Kann mir bitte jemand helfen?

      Bitte Lesen:
      https://www.iobroker.net/docu/index-81.htm?page_id=5809&lang=de

      Runter scrollen bis zur Erklärung von "schedule"

      A.

      ioBroker auf RPi4 - Hardware soweit wie möglich via Zigbee.
      "Shit don't work" ist keine Fehlermeldung, sondern ein Fluch.

      falke69F 1 Reply Last reply
      0
      • AsgothianA Asgothian

        @falke69 sagte in schedule bringt Fehler:

        Kann mir bitte jemand helfen?

        Bitte Lesen:
        https://www.iobroker.net/docu/index-81.htm?page_id=5809&lang=de

        Runter scrollen bis zur Erklärung von "schedule"

        A.

        falke69F Offline
        falke69F Offline
        falke69
        wrote on last edited by
        #3

        @asgothian

        Danke!
        Das hatte ich leider bei meiner Suche nicht gefunden.

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


        Support us

        ioBroker
        Community Adapters
        Donate

        585

        Online

        32.4k

        Users

        81.3k

        Topics

        1.3m

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

        • Don't have an account? Register

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