Skip to content
A solution which allows to decouple communicating "Internet of Things"-based devices.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea
Configuration
Monitoring
VirtualFunctions
VirtualValues
.gitignore
BrokerConnection.py
BrokerConnectionRepository.py
ConfigurationFactory.py
ConfigurationStrategy.py
LICENSE
README.md
Utilities.py
VDHApp.py
VirtualDevice.py
VirtualDeviceHost.py
VirtualDeviceRepository.py
requirements.txt

README.md

Virtual Device Host

Description

This solution allows to decouple communicating "Internet of Things"-based devices. This decoupling allows to simplify device communication and usage as well as to influence the exchanged data. Exchanged data can then be aggregated, projected or simply modified to be published to a MQTT broker as data of a so-called virtual device. Effectively, this allows to virtualize IoT devices and thus abstract from existing sensors and actors. Focus of the solution lies in extensibility as well as configurability to allow the solution to potentially act as a platform for future projects.

Setup

  1. install dependencies
sudo apt-get install libxml2-dev
sudo apt-get install libxslt-dev
  1. create virtual environment
python3 -m venv vdh-venv
  1. load virtual environment
source vdh-venv/bin/activate
  1. install pip dependencies
pip install -r requirements.txt

Manual usage

  1. if necessary, create configuration strategy file in directory Configuration (look inside for examples)

  2. load virtual environment

source vdh-venv/bin/activate
  1. run with configuration strategy file name as argument
python VDHApp.py MyFirstConfigurationStrategy

Background usage

  1. if necessary, create configuration strategy file in directory Configuration (look inside for examples)

  2. follow guide in wiki

License

LGPL-3.0 License

You can’t perform that action at this time.