Package to simplify the communication to a instance of the rpi-radio-alarm
pip install rpi-radio-alarm
This package includes two classes.
This class can handle commands and arguments and send them to the rpi-radio-alarm and return the response
This is done in the do_command(cmd, args)
, cmd
has to be one of constants.COMMANDS
and args
is a dictionary with the appropiate values.
The RpiArgumentParser
parses string input to correct arguments for the ApiHelper.
This class defines for the ApiHelper
how to parse the response from the rpi-radio-alarm.