Skip to main content
GPL v3 License Pypi packaged release Build status Code Coverage Code Climate Status Issue Count Requirements Status Contributions welcome

DucoBox

Script to monitor a Duco ventilation system.

Installation

Every release is uploaded to pip so it can be installed simply by using pip.

# Python2
pip2 install duco.ducobox

# Python3
pip3 install duco.ducobox

Usage

After installation, the python module is available

  • as executable, to launch from terminal:

ducobox --help
  • as python module, to launch from terminal:

python -m duco.ducobox --help
  • as python module, to import in your script:

import duco.ducobox as duco

Stored configuration

The network configuration of your setup is stored in an ini-file. If the network configuration file is not found, it is created.

The script first tries to find all of the nodes in the network, by executing the network command. It creates objects for all of the found nodes. If nodes are found, the network configuration is saved to the provided network configuration file.

The network configuration file gives an overview of all the nodes with their specific parameters. These fields can be adapted for each node:

  • name: convenience name for the node (any string)

  • blacklist: flag to blacklist (don’t use this node) from the network (True, or False)

The rest of the fields should not be adapted outside the script.

Logging data

The script can log the sampled data to a database.

InfluxDB

Data can be logged to an influxDB server, by passing a configuration file to the –influxdb option of the script.

Format of this configuration file through an example:

[InfluxDB]
url = localhost
port = 8086
user = root
password = root
database = ducobox-example

Other databases

The script is setup in a generic way, so adding more kinds of databases should be easy.

Hints

Serial cable details

TODO: provide serial cable details

Allowing non-root user to access serial port (Ubuntu, Linux)

  1. Add user to dialout group:

adduser <username> dialout
  1. Use udev to allow users of dialout group to serial device

Content for /etc/udev/rules.d/50-ttyusb.rules

SUBSYSTEM=="tty", KERNEL=="ttyUSB0", GROUP="dialout", MODE="0660"
  1. Reboot

reboot

InfluxDB and Grafana

The script was in first place designed to log sample data to an InfluxDB server. Grafana can be used as a frontend to create views on the InfluxDB data.

Issues and new Features

In case you have any problems with usage of the plugin, please open an issue on GitHub. Provide as many valid information as possible, as this will help us to resolve Issues faster. We would also like to hear your suggestions about new features which would help your Continuous Integration run better.

Contribute

There is a Contribution guide available if you would like to get involved in development of the plugin. We encourage anyone to contribute to our repository. Missing a feature or node, but you’re not sure how to start with it? Create an issue.

Metadata

Release files for duco.ducobox 0.3.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for duco.ducobox 0.3.1
File Interpreter ABI Platform
duco.ducobox-0.3.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Release files / duco.ducobox-0.3.1-py2.py3-none-any.whl

Download URL duco.ducobox-0.3.1-py2.py3-none-any.whl
Size 13.8 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
5eade50763e2a844a6e58ccd360c62d307e026e3fe965c74445d651b19c813f1
BLAKE2b-256 checksum
How to use checksums
622e49c9af44d3c1bb8710fb5c688f474a9219bb9645d88d41cbd08f27985b85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.3.1 This release

1 release file

0.3.0

2 release files

0.2.1

2 release files

0.1.0

2 release files

0.0.14

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.7

2 release files

0.0.5

1 release file

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page