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. Blockly
  5. exec raspistill (gelöst)

NEWS

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

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

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.4k

exec raspistill (gelöst)

Scheduled Pinned Locked Moved Blockly
3 Posts 2 Posters 569 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.
  • cHefroCkerC Offline
    cHefroCkerC Offline
    cHefroCker
    wrote on last edited by cHefroCker
    #1

    Hallo

    Was kann ich da noch falsch machen? :)
    Ich führe per Blockly diese Funkition aus.
    Das Bild wird wenn vorhanden versendet, der Befehl wird aber nicht ausgeführt. EXEC ist im Adapter freigegeben, ausserdem hat jeder die berechtigung um raspistill auszuführen, der ordner tmp ist jeder schreibberechtigt.

    Über die Konsole kann ich Fotos schiessen

    exec ("/opt/vc/bin/raspistill -o ./tmp/cam.jpg");
    sendphoto();
    
    function sendphoto() {
        setTimeout(waittime, 6000);
    }
    function waittime() {
        sendTo('telegram.0', "./tmp/cam.jpg")
    }
    
    return 0;
    
    1 Reply Last reply
    0
    • cHefroCkerC Offline
      cHefroCkerC Offline
      cHefroCker
      wrote on last edited by
      #2

      Ich konnte mein Problem lösen, wo der Fehler genau lag kann ich nicht nachvollziehen, aber mit diesen Codezeilen ging es am Schluss trotzdem :)

      exec("raspistill -o /tmp/Pic.png");
      sendphoto();
      
      function sendphoto() {
          setTimeout(waittime, 6000);
      }
      function waittime() {
          sendTo('telegram.0', "/tmp/Pic.png")
      }
      exec("sudo rm /tmp/Pic.png")
      return 0;
      

      Der Pfad oben hat nicht richtig gestummen, habe ei paarmal an den Berechtigungen von raspistill herumexperimentiert. Am Schluss war nur noch das problem mit dem löschen des alten files :)

      Jetzt läuft alles :)

      GlasfaserG 1 Reply Last reply
      0
      • cHefroCkerC cHefroCker

        Ich konnte mein Problem lösen, wo der Fehler genau lag kann ich nicht nachvollziehen, aber mit diesen Codezeilen ging es am Schluss trotzdem :)

        exec("raspistill -o /tmp/Pic.png");
        sendphoto();
        
        function sendphoto() {
            setTimeout(waittime, 6000);
        }
        function waittime() {
            sendTo('telegram.0', "/tmp/Pic.png")
        }
        exec("sudo rm /tmp/Pic.png")
        return 0;
        

        Der Pfad oben hat nicht richtig gestummen, habe ei paarmal an den Berechtigungen von raspistill herumexperimentiert. Am Schluss war nur noch das problem mit dem löschen des alten files :)

        Jetzt läuft alles :)

        GlasfaserG Offline
        GlasfaserG Offline
        Glasfaser
        wrote on last edited by
        #3

        @cHefroCker sagte in EXEC raspistill:

        /tmp/Pic.png

        Der Punkt vor ./ war auch der Fehler ....!

        Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

        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

        640

        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