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. ioBroker Allgemein
  4. Bild aus einem Datenpunkt verschicken (Synology Adapter)

NEWS

  • Monatsrückblick Januar/Februar 2026 ist online!
    BluefoxB
    Bluefox
    18
    1
    690

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

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

Bild aus einem Datenpunkt verschicken (Synology Adapter)

Scheduled Pinned Locked Moved ioBroker Allgemein
synology kameratelegram
3 Posts 2 Posters 374 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.
  • Marcel saßM Offline
    Marcel saßM Offline
    Marcel saß
    wrote on last edited by Marcel saß
    #1

    Moin,

    ich würd gerne das Bild aus einem Datenpunkt verschicken. Per http: link funktioniert es auch.

    Sobald ich in dem Skript aber den Datenpunkt selbst angebe, geht es ja leider nicht.

    Das Problem ist das Link im Datenpunkt ändert sich alle Naselang mal.
    So sieht das aus:
    var cam3_img = 'http://admin:XXXXX@XXXX//Streaming/Channels/4/picture'; // Pfad zum Kamerabild
    Da würde ich halt gerne einen Datenpunkt(Variable) angeben

    gespeichert wird das Bild so:

    function saveImage() {
        request.get({url: cam3_img, encoding: 'binary'}, function (err, response, body) {
            fs.writeFile(img_path + 'cam3_1.jpg', body, 'binary', function(err) {
            if (err) {
                log('Fehler beim Speichern von Bild 1: ' + err, 'warn');
            } else {
                log('Bild 1 gespeichert.');
                sendImage(img_path + 'cam3_1.jpg');
            }
          }); 
        });
    
    

    Wäre klasse wenn mir jemand helfen könnte.

    UncleSamU 1 Reply Last reply
    0
    • Marcel saßM Marcel saß

      Moin,

      ich würd gerne das Bild aus einem Datenpunkt verschicken. Per http: link funktioniert es auch.

      Sobald ich in dem Skript aber den Datenpunkt selbst angebe, geht es ja leider nicht.

      Das Problem ist das Link im Datenpunkt ändert sich alle Naselang mal.
      So sieht das aus:
      var cam3_img = 'http://admin:XXXXX@XXXX//Streaming/Channels/4/picture'; // Pfad zum Kamerabild
      Da würde ich halt gerne einen Datenpunkt(Variable) angeben

      gespeichert wird das Bild so:

      function saveImage() {
          request.get({url: cam3_img, encoding: 'binary'}, function (err, response, body) {
              fs.writeFile(img_path + 'cam3_1.jpg', body, 'binary', function(err) {
              if (err) {
                  log('Fehler beim Speichern von Bild 1: ' + err, 'warn');
              } else {
                  log('Bild 1 gespeichert.');
                  sendImage(img_path + 'cam3_1.jpg');
              }
            }); 
          });
      
      

      Wäre klasse wenn mir jemand helfen könnte.

      UncleSamU Offline
      UncleSamU Offline
      UncleSam
      Developer
      wrote on last edited by
      #2

      @Marcel-saß sagte in Bild aus einem Datenpunkt verschicken (Synology Adapter):

      Sobald ich in dem Skript aber den Datenpunkt selbst angebe, geht es ja leider nicht.

      Was meinst du damit? Was hast du denn schon versucht?

      Wenn du einen Wert aus einem Datenpunkt willst, dann kannst du einfach getState('name.des.datenpunktes') aufrufen.

      Und bitte: Code Tags </> verwenden!

      Bitte bei Problemen mit meinen Adaptern, Issue auf GitHub erfassen: Loxone | I2C | Luxtronik2
      ♡-lichen Dank an meine Sponsoren

      Marcel saßM 1 Reply Last reply
      0
      • UncleSamU UncleSam

        @Marcel-saß sagte in Bild aus einem Datenpunkt verschicken (Synology Adapter):

        Sobald ich in dem Skript aber den Datenpunkt selbst angebe, geht es ja leider nicht.

        Was meinst du damit? Was hast du denn schon versucht?

        Wenn du einen Wert aus einem Datenpunkt willst, dann kannst du einfach getState('name.des.datenpunktes') aufrufen.

        Und bitte: Code Tags </> verwenden!

        Marcel saßM Offline
        Marcel saßM Offline
        Marcel saß
        wrote on last edited by Marcel saß
        #3

        @UncleSam ist geändert das Bild bleibt aber leer mit 1kbyte

        var cam5_img = getState('SurveillanceStation.cameras.Garage.linkSnapshot'); // Pfad zum Kamerabild

        im Log:
        10857) Cannot send photo [chatId - 800613961]: Error: ETELEGRAM: 400 Bad Request: IMAGE_PROCESS_FAILED

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        Support us

        ioBroker
        Community Adapters
        Donate
        FAQ Cloud / IOT
        HowTo: Node.js-Update
        HowTo: Backup/Restore
        Downloads
        BLOG

        324

        Online

        32.7k

        Users

        82.6k

        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