Coder Social home page Coder Social logo

Send log using web about farmbot-js HOT 5 CLOSED

farmbot avatar farmbot commented on July 28, 2024
Send log using web

from farmbot-js.

Comments (5)

WathikAhmed avatar WathikAhmed commented on July 28, 2024 2

Thank you very much @RickCarlino

from farmbot-js.

WathikAhmed avatar WathikAhmed commented on July 28, 2024

With python its as simple as request_id1 = bot.send_message("Hello, this is being controlled through the API ")

from farmbot-js.

RickCarlino avatar RickCarlino commented on July 28, 2024

A few things:

  1. I do agree that having synchronous return values like the example above is nice (common in languages like Ruby, Python, etc..) but this is not possible on the browser due to Javascript's I/O model. If anyone finds this issue via search, I recommend reading a tutorial about Javascript promises.
  2. FarmBotJS does not have a send_message helper yet. No one has requested it until now. I can add this to a future version of FBJS, though. Thanks for letting us know.

from farmbot-js.

WathikAhmed avatar WathikAhmed commented on July 28, 2024

Awesome, Thanks. Great Work!

from farmbot-js.

RickCarlino avatar RickCarlino commented on July 28, 2024

@WathikAhmed This feature is now available in v14.2.2:

bot.sendMessage("info", "Hello, world!");

from farmbot-js.

Related Issues (17)

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.