Coder Social home page Coder Social logo

Comments (6)

Apollon77 avatar Apollon77 commented on July 1, 2024

If you want to have the filedata then the third parameter in Javascrip adapter call onFile needs to be "true" and not false. In the current case "with false" no file data are provided at all

from iobroker.doorbird.

pzystorm avatar pzystorm commented on July 1, 2024

Then someone should change this on the page https://github.com/iobroker-community-adapters/ioBroker.doorbird/ as the code is from there :)
Actually I dont know which one is the best solution for the sendTo telegram command: use the string fileName or use the binary fileData.

from iobroker.doorbird.

Schmakus avatar Schmakus commented on July 1, 2024

If you want to have the filedata then the third parameter in Javascrip adapter call onFile needs to be "true" and not false. In the current case "with false" no file data are provided at all

Ok, with "true" the original function will work?

from iobroker.doorbird.

Schmakus avatar Schmakus commented on July 1, 2024

Then someone should change this on the page https://github.com/iobroker-community-adapters/ioBroker.doorbird/ as the code is from there :)

Actually I dont know which one is the best solution for the sendTo telegram command: use the string fileName or use the binary fileData.

Could you check with true parameter and binary file?

from iobroker.doorbird.

pzystorm avatar pzystorm commented on July 1, 2024

yeah, cool, i have tried this:

onFile("doorbird.0", "TakeSnapshot_1.jpg", true, function (id, fileName, size, fileData, mimeType) {
    sendTo('telegram.0', "send" , {
        text: fileData,
        type: 'photo'
    });
});

works, too! then i leave it like this. thanks :)

from iobroker.doorbird.

Schmakus avatar Schmakus commented on July 1, 2024

I've updated the doc.

from iobroker.doorbird.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.