OpenMarine
Node red control of pypilot? - Printable Version

+- OpenMarine (https://forum.openmarine.net)
+-- Forum: Pypilot (https://forum.openmarine.net/forumdisplay.php?fid=17)
+--- Forum: General discussion (https://forum.openmarine.net/forumdisplay.php?fid=18)
+--- Thread: Node red control of pypilot? (/showthread.php?tid=3789)



Node red control of pypilot? - PaddyB - 2021-12-02

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


RE: Node red control of pypilot? - seandepagnier - 2021-12-02

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


RE: Node red control of pypilot? - PaddyB - 2021-12-03

(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


RE: Node red control of pypilot? - stelian - 2021-12-03

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.


RE: Node red control of pypilot? - PaddyB - 2021-12-03

(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


RE: Node red control of pypilot? - ironman - 2021-12-03

I don't know node-red but in a python script you might also import pypilotClient, example here.