janitoo_nut package

Submodules

janitoo_nut.nut module

The Nut Janitoo helper

class janitoo_nut.nut.NutThread(options=None)[source]

Bases: janitoo.thread.JNTBusThread

The Nut thread&

init_bus()[source]

Build the bus

class janitoo_nut.nut.NutUps(bus=None, addr=None, **kwargs)[source]

Bases: janitoo.component.JNTComponent

This class abstracts a roowifi and gives attributes for telemetry data, as well as methods to command the robot

check_heartbeat()[source]

Check that the component is ‘available’

get_battery_charge(node_uuid, index)[source]

Return the battery charge

get_battery_chemistry(node_uuid, index)[source]

Return the battery chemistry

get_battery_runtime(node_uuid, index)[source]

Return the battery runtime

get_battery_voltage(node_uuid, index)[source]

Return the battery voltage

get_status(node_uuid, index)[source]

Return the status

get_ups_stats()[source]
janitoo_nut.nut.make_thread(options, force=False)[source]
janitoo_nut.nut.make_ups(**kwargs)[source]

janitoo_nut.server module

The NUT server

class janitoo_nut.server.NutServer(options)[source]

Bases: janitoo.server.JNTServer

The Nut Server

Module contents