janitoo_tutorial package

Submodules

janitoo_tutorial.thread_tutorial2 module

The Raspberry rantanplan

class janitoo_tutorial.thread_tutorial2.TutorialThread(options=None)[source]

Bases: janitoo.thread.JNTBusThread

The basic thread

init_bus()[source]

Build the bus

janitoo_tutorial.thread_tutorial2.make_thread(options, force=False)[source]

janitoo_tutorial.thread_tutorial3 module

The Raspberry rantanplan

class janitoo_tutorial.thread_tutorial3.TutorialThread(options=None)[source]

Bases: janitoo.thread.JNTBusThread

The basic thread

init_bus()[source]

Build the bus

janitoo_tutorial.thread_tutorial3.make_thread(options, force=False)[source]

janitoo_tutorial.thread_tutorial4 module

The Raspberry rantanplan

class janitoo_tutorial.thread_tutorial4.TutorialThread(options=None)[source]

Bases: janitoo.thread.JNTBusThread

The basic thread

init_bus()[source]

Build the bus

janitoo_tutorial.thread_tutorial4.make_thread(options, force=False)[source]

janitoo_tutorial.tutorial2 module

The Raspberry tutorial

class janitoo_tutorial.tutorial2.AmbianceComponent(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_raspberry_dht.dht.DHTComponent

A component for ambiance

class janitoo_tutorial.tutorial2.CpuComponent(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_hostsensor_raspberry.component.HardwareCpu

A water temperature component

class janitoo_tutorial.tutorial2.TemperatureComponent(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_raspberry_1wire.components.DS18B20

A water temperature component

class janitoo_tutorial.tutorial2.TutorialBus(**kwargs)[source]

Bases: janitoo.bus.JNTBus

A bus to manage Tutorial

get_temperature_cb(node_uuid=None, index=None)[source]

Callback for average temperature

loop(stopevent)[source]

Retrieve data Don’t do long task in loop. Use a separated thread to not perturbate the nodeman

start(mqttc, trigger_thread_reload_cb=None)[source]

Start the bus

stop()[source]

Stop the bus

janitoo_tutorial.tutorial2.make_ambiance(**kwargs)[source]
janitoo_tutorial.tutorial2.make_cpu(**kwargs)[source]
janitoo_tutorial.tutorial2.make_temperature(**kwargs)[source]

janitoo_tutorial.tutorial3 module

The Raspberry tutorial

class janitoo_tutorial.tutorial3.AmbianceComponent(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_raspberry_dht.dht.DHTComponent

A component for ambiance

class janitoo_tutorial.tutorial3.CpuComponent(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_hostsensor_raspberry.component.HardwareCpu

A water temperature component

class janitoo_tutorial.tutorial3.LedComponent(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_raspberry_gpio.gpio.LedComponent

A component for a Led (on/off)

class janitoo_tutorial.tutorial3.TemperatureComponent(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_raspberry_1wire.components.DS18B20

A water temperature component

class janitoo_tutorial.tutorial3.TutorialBus(**kwargs)[source]

Bases: janitoo.bus.JNTBus

A bus to manage Tutorial

bus_acquire(blocking=True)[source]

Get a lock on the bus

bus_locked()[source]

Get status of the lock

bus_release()[source]

Release a lock on the bus

check_heartbeat()[source]

Check that the component is ‘available’

condition_values()[source]
create_fsm()[source]

Create the fsm

get_state(node_uuid, index)[source]

Get the state of the fsm

loop(stopevent)[source]

Retrieve data Don’t do long task in loop. Use a separated thread to not perturbate the nodeman

on_check()[source]

Make a check using a timer.

on_enter_reporting()[source]
on_enter_ringing()[source]
on_enter_sleeping()[source]
on_exit_sleeping()[source]
polled_sensors
start(mqttc, trigger_thread_reload_cb=None)[source]

Start the bus

states = ['booting', 'sleeping', 'reporting', 'ringing']

The tutorial states :

stop()[source]

Stop the bus

stop_check()[source]

Check that the component is ‘available’

transitions = [{'dest': 'reporting', 'source': 'sleeping', 'trigger': 'wakeup', 'conditions': 'condition_values'}, {'dest': 'reporting', 'source': '*', 'trigger': 'report', 'conditions': 'condition_values'}, {'dest': 'sleeping', 'source': '*', 'trigger': 'sleep'}, {'dest': 'ringing', 'source': 'reporting', 'trigger': 'ring', 'conditions': 'condition_values'}]

The transitions

janitoo_tutorial.tutorial3.make_ambiance(**kwargs)[source]
janitoo_tutorial.tutorial3.make_cpu(**kwargs)[source]
janitoo_tutorial.tutorial3.make_led(**kwargs)[source]
janitoo_tutorial.tutorial3.make_temperature(**kwargs)[source]

janitoo_tutorial.tutorial4 module

The Raspberry tutorial

class janitoo_tutorial.tutorial4.AmbianceComponent(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_raspberry_dht.dht.DHTComponent

A component for ambiance

class janitoo_tutorial.tutorial4.CpuComponent(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_hostsensor_raspberry.component.HardwareCpu

A water temperature component

class janitoo_tutorial.tutorial4.LedComponent(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_raspberry_gpio.gpio.LedComponent

A component for a Led (on/off)

class janitoo_tutorial.tutorial4.TemperatureComponent(bus=None, addr=None, **kwargs)[source]

Bases: janitoo_raspberry_1wire.components.DS18B20

A water temperature component

class janitoo_tutorial.tutorial4.TutorialBus(**kwargs)[source]

Bases: janitoo_factory.buses.fsm.JNTFsmBus

A bus to manage Tutorial

condition_values()[source]
get_state(node_uuid, index)[source]

Get the state of the fsm

loop(stopevent)[source]

Retrieve data Don’t do long task in loop. Use a separated thread to not perturbate the nodeman

on_check()[source]

Make a check using a timer.

on_enter_reporting()[source]
on_enter_ringing()[source]
on_enter_sleeping()[source]
on_exit_sleeping()[source]
polled_sensors
start(mqttc, trigger_thread_reload_cb=None)[source]

Start the bus

states = None

The tutorial states :

stop()[source]

Stop the bus

stop_check()[source]

Check that the component is ‘available’

transitions = None

The transitions

janitoo_tutorial.tutorial4.make_ambiance(**kwargs)[source]
janitoo_tutorial.tutorial4.make_cpu(**kwargs)[source]
janitoo_tutorial.tutorial4.make_led(**kwargs)[source]
janitoo_tutorial.tutorial4.make_temperature(**kwargs)[source]

Module contents