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.6.tar.gz (8.4 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.6-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: param_controller-0.1.6.tar.gz
  • Upload date:
  • Size: 8.4 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.6.tar.gz
Algorithm Hash digest
SHA256 eb3d0a9c3f4cb7a0b4fc68442aa64dd1fc3c60e59218e8075cccaf9324dc1773
MD5 7ab3d5d9003fe165e66df83cd5ed6e30
BLAKE2b-256 ee913e6b1f4b8f8aed12c06f6ed394f2bc77d7e91ec07066f483c925fa1c5153

See more details on using hashes here.

Provenance

The following attestation bundles were made for param_controller-0.1.6.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.6-py3-none-any.whl.

File metadata

File hashes

Hashes for param_controller-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 292410ca3378eed5a8767f06bfd65fe0af1258653069cc233b91be18da049100
MD5 aef589086de42db529ca5b008f6b24b6
BLAKE2b-256 fcbb7c3713f0f1835dd00956b7b188d56a56725c66784eb85c33ac4c297cece3

See more details on using hashes here.

Provenance

The following attestation bundles were made for param_controller-0.1.6-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