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.5.tar.gz (8.1 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.5-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: param_controller-0.1.5.tar.gz
  • Upload date:
  • Size: 8.1 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.5.tar.gz
Algorithm Hash digest
SHA256 890b7a48a730f4ad69f5b67028e6bbc239b6f544c7cf8b710e8449ab8903683f
MD5 0dd595f88814ad29fa4c62571ab87052
BLAKE2b-256 23a3c8e979fd7f9731d5e4d3071b3d5caefa65ee859df653729eebfaf972621a

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for param_controller-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 5faf10ab35d455f5bd54de826e1c22a4067eaa9346ea9c49d08dedfaba88ae07
MD5 50c280e00fa0ba932c390c920a96c09c
BLAKE2b-256 0cced40b4dba764e008f481b8f97554b285ceb172576714e35950fa60684bcbc

See more details on using hashes here.

Provenance

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