This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Node red control of pypilot?
#1
Mybe not node red though, so I want to create a simple on/off switch to enable/standby. There's an ESP32 which could do the job of monitoring the switch easily then send a true/false mqtt message to get the data into node-red - then what?
Ia there a http put or something that will tell pypilot to turn on/off? Or what are the options?
Also, would be useful for testing the motor driver to send commands to move the actuator full travel repeatedly - that possible somehow? 
All this  info is no doubt available online but you guys will probably be far quicker then me searching  Cool

TIA
Reply
#2
it is currently implemented in various ways, and the python version can run under micropython on esp32 giving wifi control.

As for control through node-red, I believe is simply not implemented.

You can use scripts, or even invoke pypilot_client directly
Reply
#3
(2021-12-02, 08:04 PM)seandepagnier Wrote: You can use scripts, or even invoke pypilot_client directly

Anyone have any pointers to any examples or how-to of either of those? 
Ta
Reply
#4
for example : "pypilot_client ap.enabled=1"

you can even run this from another device over the network, add -s xxx.xxx.xxx.xxx IP address argument to the above command.

"pypilot_client -i" will print information about all the values you can (mostly) read and (sometimes) write.
Reply
#5
(2021-12-03, 10:41 AM)stelian Wrote: for example : "pypilot_client ap.enabled=1"

you can even run this from another device over the network, add -s xxx.xxx.xxx.xxx IP address argument to the above command.

"pypilot_client -i" will print information about all the values you can (mostly) read and (sometimes) write.

Thanks! Sounds like that should do what I need.  Cool
Reply
#6
I don't know node-red but in a python script you might also import pypilotClient, example here.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)