OpenMarine

Full Version: Node red control of pypilot?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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
(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
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.
(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
I don't know node-red but in a python script you might also import pypilotClient, example here.