Skip to content
This repository has been archived by the owner on Sep 8, 2019. It is now read-only.

Latest commit

 

History

History

python-scripts

The used scripts all require Python 3!!!

Directory Structure

  • rmpdiscovery: the library containing the discovery and advertise service. The discovery service may be run alongside the MBP to discover devices. The advertise service may be used by devicees to register themselves at the MBP.

  • type-scripts: premade python scripts for sensors; may also containt services (.conf) descriptions

  • the files rmpadvertise., rmpdiscovery. and rmpvaluelogger.* are used to deploy and run the respective services using systemd.

  • discoverygui.py offers a basic GUI to view the devices currently registered for monitoring

Installing services

The discovery service is installed alongside the MBP using the install.sh script. To install and run the advertise service, use the install-advertise.sh script.

The services are installe using systemd so they can be started and stop, using:

sudo systemctl start <service>
sudo systemctl stop <service>

Discovery service

The discovery service is implemented in the discovery package. The following diagram hopefully clarifies the structure:

discovery package

The discovery gateways detect new devices in their network and register them at the discovery service. For each network technology there must be a specialized implementation of the DiscoveryGateway class.

Necessary Libraries

The file python-packages.py lists all used python packages. They can be installed using

sudo pip install -r python-packages.txt