RealTimeOpenControl

RealTime OpenControl (RTOC)

Documentation Status Builds 3.0v PyPI pyversions PyPI version fury.io PyPI license GitHub release Github all releases

Version 3.0

Usecase Documentation Web App Android App

New in version 3.0

RealTime OpenControl is a simple way for real-time data recording, visualization and editing.

RTOC is made for communication with different devices (IoT) in a network or local sensors or devices providing data. It collects Data from any source and provides easy and intuitive user interaction. The simplest way is, to run RTOC with the user-frontend. But it can also run a HTML-Server providing plots and events. This is the best way to view the data, if RTOC is running on screen-less devices, like a Raspberry Pi. And in any other case, you can get full access and control of RTOC with a simple Telegram-Bot all over the world, without many configurations. This bot is also capable of sending messages or warnings, if events are triggered. Read more about Events later on.

There are different ways to access data on an RTOC-Server:

Possible applications

Recording data and events

Basis for a RTOC-Server are plugins, which collect data in any way and provide their functions and parameters. These plugins are represented by simple python-plugins, which can be downloaded from the RTOC-plugin-repository for specific devices. You can also write your own plugins for it. If you want to publish your plugin in my repository, just send me a message.

Every plugin can send measurements and events to the RTOC-Server.

A measurement represents the collected data. Events occur in certain conditions (for example if a measured value is higher than a limit value) and can trigger actions, which will be performed after the event. Also these events can be used to trigger PushNotifications in Telegram.

Getting Started

RTOC is written in Python 3. Tested on Windows and Linux.

Python3 (and pip3) need to be installed on the System. But you can also download the Stand-Alone-Builts for Windows and Linux below. RTOC can be installed and used in different ways:

Click here for a complete setup-tutorial

Write simple Python-Plugin

Python plugins are integrated into RTOC and can be used to

Plugins can not access all measurements. This can be done with a websocket connection to RTOC.

Example-Plugins here.

Documentation

Read the Wiki for full documentation

Default/Example Plugins:

You can get more plugins from the RTOC-plugin-repository. Simply follow the steps described in the documentation:

No GUI

In some cases you don’t want to run the GUI (e.g. raspberry). Then you can still configure RTOC in a terminal: python3 -m RTOC.RTLogger -c

If you just want to run the Websocket-Server after configuration, you can do this with python3 -m RTOC.RTLogger. The best way, to run this code on embedded devices, is, to setup a systemd-service for automated startup. But you can also run/stop RTOC in background with ‘python3 -m RTOC.RTLogger -s start/stop’.

If you want to start the HTML server on port 8050, you need to run it with ‘python3 -m RTOC.RTLogger -w’.

GUI

Übersicht

Complete GUI-tutorial here.

Simple local Websocket-Server

Websocket clients can establish a connection to the RTOC server on the same computer or in the network (check firewall settings). With the necessary port shares on the router and dynamic DNS, the RTOC server can also be accessed from the Internet.

Websocket communication-protocoll is in JSON format, which allows communication in all programming languages and also, for example, with an ESP8266/ESP32 microcontroller. The communication can also be end-to-end-encrypted with AES. In this case, you need to implement the right encryption yourself.

A client can

The server will

Example for Websockets here.

Include Telegram-messanger

Tutorial for Telegram here.

Built With

External libraries and scripts

All icons used in this software (including plugins) are kindly provided by Icons8

Contributing

Please read CONTRIBUTING.md for details on my code of conduct, and the process for submitting pull requests to me.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details

Coffee

Feel free to buy me some coffee with milk