Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Skripten / Logik
    4. JavaScript
    5. JPG Bild von Webcam um 90° drehen

    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

    JPG Bild von Webcam um 90° drehen

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

      Hallo,

      Ich habe eine Webcamb bei der man das Bild nihct drehen kann, somit müsste ich es mit einer IObroker lösung in Javascript drehen, abspeichern und via Telgramm versenden.
      das Bild abholen, speichern und senden Funktioniert bereits, leider weis ich nicht wie ich es drehen kann.

      danke das Ihr mir dabei helft den Code zu erweitern

      request.get({url: 'http://192.168.170.24/jpg/image.jpg', encoding: 'binary'}, function (err, response, body) {
      fs.writeFileSync(dest_path + '3dDruck.jpg', body, 'binary');
      sendTo('telegram.0', dest_path + '3dDruck.jpg');
      

      danke

      T 1 Reply Last reply Reply Quote 0
      • T
        tiego @tiego last edited by

        @tiego
        Hallo,

        ich habe eine Lösung gefunden, weis aber nicht ob es der beste Weg ist,...

            request.get({url: 'http://192.168.170.24/jpg/image.jpg', encoding: 'binary'}, function (err, response, body) {
            fs.writeFileSync(dest_path + '3dDruck.jpg', body, 'binary'); 
            exec('convert /opt/iobroker/iobroker-data/files/rpi2.admin/img/3dDruck.jpg -rotate 270 /opt/iobroker/iobroker-data/files/rpi2.admin/img/3dDruck.jpg');
            });
        

        Wenn jemand eine besseren bzw. performanteren weg kennt wäre ich froh.

        danke

        Flexer 1 Reply Last reply Reply Quote 0
        • Flexer
          Flexer @tiego last edited by

          @tiego Gibts da auch eine möglichkeit das in Blockly zu realisieren?

          crunchip 1 Reply Last reply Reply Quote 0
          • crunchip
            crunchip Forum Testing Most Active @Flexer last edited by

            @flexer du kannst im blockly je javascript Funktion einbauen
            533e44b4-16c0-4cc0-9645-696d833bb9a6-image.png

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

            Support us

            ioBroker
            Community Adapters
            Donate

            512
            Online

            31.9k
            Users

            80.2k
            Topics

            1.3m
            Posts

            3
            4
            326
            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