Comments (5)
Thank you very much @RickCarlino
from farmbot-js.
With python its as simple as request_id1 = bot.send_message("Hello, this is being controlled through the API ")
from farmbot-js.
A few things:
- 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.
- 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.
Awesome, Thanks. Great Work!
from farmbot-js.
@WathikAhmed This feature is now available in v14.2.2:
bot.sendMessage("info", "Hello, world!");
from farmbot-js.
Related Issues (17)
- Unicode characters not properly decoded
- Deps outdated HOT 8
- Cannot use import statement outside a module (NodeJS) HOT 1
- Turn on light HOT 4
- farmbot Js token parse error .i am unable to connect farmbot function whenever i call start function it throws me this error
- Execute a sequence by sending CeleryScript HOT 2
- Disconnecting Farmbot mqtt connection HOT 4
- Need to handle errors in Farmbot.proto.publish
- Node JS issue: ReferenceError: atob is not defined HOT 4
- Verbose event logging required HOT 2
- Packaging support for running this lib in the browser HOT 3
- Is there a way to access the photos that have been taken via this API? HOT 4
- Does this library work with the current OS/cloud platform? HOT 5
- Trouble compiling or running in browser HOT 7
- js api executeSequence requires ID..but where to get? HOT 4
- project showcase MQTT from openhab HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from farmbot-js.