LimelightLib Python
Discover all connected Limelights, and interact with them via REST and Websockets
import limelight
import limelightresults
import json
import time
discovered_limelights = limelight.discover_limelights(debug=True)
print("discovered limelights:", discovered_limelights)
if discovered_limelights:
limelight_address = discovered_limelights[0]
ll = limelight.Limelight(limelight_address)
results = ll.get_results()
status = ll.get_status()
print("-----")
print("targeting results:", results)
print("-----")
print("status:", status)
print("-----")
print("temp:", ll.get_temp())
print("-----")
print("name:", ll.get_name())
print("-----")
print("fps:", ll.get_fps())
print("-----")
print("hwreport:", ll.hw_report())
ll.enable_websocket()
# print the current pipeline settings
print(ll.get_pipeline_atindex(0))
# update the current pipeline and flush to disk
pipeline_update = {
'area_max': 98.7,
'area_min': 1.98778
}
ll.update_pipeline(json.dumps(pipeline_update),flush=1)
print(ll.get_pipeline_atindex(0))
# switch to pipeline 1
ll.pipeline_switch(1)
# update custom user data
ll.update_python_inputs([4.2,0.1,9.87])
try:
while True:
result = ll.get_latest_results()
parsed_result = limelightresults.parse_results(result)
if parsed_result is not None:
print("valid targets: ", parsed_result.validity, ", pipelineIndex: ", parsed_result.pipeline_id,", Targeting Latency: ", parsed_result.targeting_latency)
#for tag in parsed_result.fiducialResults:
# print(tag.robot_pose_target_space, tag.fiducial_id)
time.sleep(1) # Set this to 0 for max fps
except KeyboardInterrupt:
print("Program interrupted by user, shutting down.")
finally:
ll.disable_websocket()
Metadata
Release files for limelightlib-python 0.9.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| limelightlib_python-0.9.6.tar.gz | 5.0 kB | Without provenance | Details for limelightlib_python-0.9.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| limelightlib_python-0.9.6-py3-none-any.whl | Python 3 | none | any | Details for limelightlib_python-0.9.6-py3-none-any.whl |
Total release size: 10.4 kB
Release files / limelightlib_python-0.9.6.tar.gz
| Download URL | limelightlib_python-0.9.6.tar.gz |
|---|---|
| Size | 5.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
515fbae330582feeb09b5b74ef4ca0bb40868aa01358b2117354cbb53ea8ca75
|
|
BLAKE2b-256 checksum How to use checksums |
084558e63a0aeec9191a89b08e5f8ae9ee949dfd69858ee47abbb099438c3826
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Release files / limelightlib_python-0.9.6-py3-none-any.whl
| Download URL | limelightlib_python-0.9.6-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f34e24c009bbe469bfe564f8024aad90971c2659eb65a8f721fb03596993ae4
|
|
BLAKE2b-256 checksum How to use checksums |
eaa3c88fcefaa6dc498c02c6d6627252ee8a6efc066a9bd63010e8d7fbe46719
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/5.0.0 CPython/3.12.3
|
Security for limelightlib-python 0.9.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.