Commit Graph

14 Commits

Author SHA1 Message Date
46f23a13d3 feat(dbus): Add extend_interface function for dynamic interface naming
This function constructs a fully qualified interface name by appending
segments to a predefined base name. It simplifies and standardizes the
process of generating extended interface names in the middleware.
2025-04-18 19:21:53 +02:00
b442369b42 feat(dbus): Add initial D-Bus middleware implementation
Introduce a D-Bus middleware module for revpi_middleware, including an
interface definition and a `BusProvider` class to handle D-Bus
communication. This forms the foundation for middleware interactions
using D-Bus.
2025-04-18 19:21:53 +02:00
11b68a0c15 feat(process_image): Add D-Bus interface for piControl driver
Introduced D-Bus interfaces in `process_image` to interact with the
piControl driver. Added `InterfacePiControl` class with methods to reset
the driver and signal driver reset events. This improves driver
management and integration via D-Bus.
2025-04-18 19:21:53 +02:00
91a1fae411 feat(dbus): Add ResetDriverWatchdog helper as global dbus helper
Introduced a new helper class `ResetDriverWatchdog`, a thread-based
watchdog to detect the `reset_driver` action. The implementation is
adapted from the revpipyload project and includes methods to
register/unregister callbacks and manage the watchdog lifecycle. This
addition improves monitoring capabilities for the process image.
2025-04-18 19:21:53 +02:00
049ddfdc0f chore: Update proginit to 1.4.0 2025-04-18 19:21:53 +02:00
Sven Sager
0380311a9d feat: Add systemd file and data to integrate the app as a daemon 2025-04-18 19:21:53 +02:00
Sven Sager
c1bd98c444 feat: Add dummy main application script
The script uses the logger system and prints an string. You can try
the programm call with and without `-vv`so see the differences of
logging levels.
2025-04-17 12:06:14 +02:00
Sven Sager
92666f117d build: Add all necessary files for the build system
All basic files for testing, building and distributing the project
are added here. The Makefile can set up the virtual environment and
create different package types from the project.
2025-04-17 12:06:14 +02:00
Sven Sager
8124a687f0 test: Add tests directory with a dummy test
For local and automated testing of the source code, the testing
folder is added. This includes all the tests that the module has to
go through. The project also uses pytest-cov, which can also create
coverage reports.
2025-04-17 12:06:14 +02:00
Sven Sager
2b36297afb feat: Add the data directory for additional data files for the project
The data directory will hold everything your projekt needs and more.
You can create SystemD unit files or other templates, which packagers
can use.
2025-04-17 12:06:14 +02:00
Sven Sager
a9b6bb076c feat: Add proginit application basic module
The proginit.py module provides standards for programs. These include
program parameters, program configuration files and the log system.
2025-04-17 12:06:14 +02:00
Sven Sager
cc5eb516bf feat: Add python base project files
These files create a callable Python package and manage the version
number of the complete project in the __about__.py file only. All other
parts, including Makefile, will use that version number.
2025-04-17 12:06:14 +02:00
Sven Sager
251bec2b38 docs: Use 'reuse' for SPDX Headers and Licenses 2025-04-17 12:06:14 +02:00
Sven Sager
1a53494d13 docs: Start git project with python git-ignore and Readme 2025-04-17 11:38:25 +02:00