Skip to main content

A lightweight parameter remote controller for embedded device debugging

Project description

Parameter Remote Controller

A lightweight parameter remote controller for modifying parameters remotely during embedded device debugging.

Features

  • Lightweight HTTP server suitable for running on embedded devices
  • Clean web interface for visual parameter modification
  • Flexible parameter definition mechanism supporting multiple parameter types
  • Simple API interface for easy integration into actual programs

Installation

pip install param-controller

Usage

1. Define Parameters

from param_ctl import ParamManager

# Create parameter manager
pm = ParamManager()

# Register parameters
pm.register("threshold", 128, int, "Image processing threshold", (0, 255))
pm.register("kp", 1.0, float, "PID proportional coefficient", (0, 10))
pm.register("ki", 0.1, float, "PID integral coefficient", (0, 1))
pm.register("kd", 0.5, float, "PID derivative coefficient", (0, 5))

2. Start Server

from param_ctl import ParamServer

# Create and start parameter server
server = ParamServer(pm, host="0.0.0.0", port=8080)
server.start()

3. Use Parameters in Program

# Get parameter value
threshold = pm.get("threshold")

# Use parameter
ret, binary = cv2.threshold(gray, threshold, 255, cv2.THRESH_BINARY)

# You can also use parameter objects directly
pid_controller = PID(pm.get("kp"), pm.get("ki"), pm.get("kd"))

4. Modify Parameters via Web Interface

Open your browser and visit http://<device-ip>:8080 to access the parameter control interface.

Examples

See the example code in the examples directory.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

param_controller-0.1.2.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

param_controller-0.1.2-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file param_controller-0.1.2.tar.gz.

File metadata

  • Download URL: param_controller-0.1.2.tar.gz
  • Upload date:
  • Size: 7.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for param_controller-0.1.2.tar.gz
Algorithm Hash digest
SHA256 29fd58aa6472a8c649fc4bfd162b27821e6d4f9b180085deaaf797ad86198b66
MD5 d8c11dfa97fa4ad4eb610e90e134675e
BLAKE2b-256 b9b7bb7ca31bc64dfe497b95c46f728e77d80c763a9b00a0636179b9a9e20bd2

See more details on using hashes here.

Provenance

The following attestation bundles were made for param_controller-0.1.2.tar.gz:

Publisher: python-publish.yml on Kori-Sama/param-ctl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file param_controller-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for param_controller-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 594a1884217e794356f17af5095fa4da8de1b56ed04e7de64a7548dd5a47bd76
MD5 e563cf2f338235d7df1c49751f10ccd5
BLAKE2b-256 228419ab7734e0a2792c7da4b568b7e91329e2b9a0a844bd303cfe07ca3d6af2

See more details on using hashes here.

Provenance

The following attestation bundles were made for param_controller-0.1.2-py3-none-any.whl:

Publisher: python-publish.yml on Kori-Sama/param-ctl

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page