Python module for writing boatd behavior scripts.
$ pip install python-boatdclient
A boat controlled by boatd
heading
:
Return the current heading of the boat in degrees
position
:
Return a tuple in the form (latitude, longitude)
version
:
Return the version of boatd
wind
:
Return a tuple in the form (direction, speed)
. This contains the direction of the wind in degrees and the speed the wind is blowing in knots.
def __init__(self, host='localhost', port=2222)
Create a boat instance, connecting to boatd at host
on port port
def __rudder__(self, angle)
Set the angle of the rudder to be angle
degrees
def __sail__(self, angle)
Set the angle of the sail to angle
degrees