|
|
11 månader sedan | |
|---|---|---|
| README.md | 11 månader sedan |
LakiBeam HTTP Configuration is an HTTP-based configuration management library specifically designed for radar devices. The library provides a complete set of device configuration reading, setup, and management interfaces over the standard HTTP protocol.
Based on RESTful HTTP interfaces
Supports synchronous and asynchronous HTTP requests
Provides read and write functions for device configuration
Obtain firmware information
System monitoring data
Network configuration management
Set sensor parameters
Radar scanning parameter Settings
Filter configuration
Host network configuration
GET: obtains configuration information
PUT: modifies configuration parameters
DELETE: deletes a specific configuration
'/api/v1/system/firmware' : Obtain firmware information
'/api/v1/system/monitor' : obtains system monitoring data
'/api/v1/sensor/overview' : Get the sensor overview configuration
'/api/v1/sensor/scan_range' : indicates the scanning range
You can install aiohttp using pip
$ pip install aiohttp
```python from LakiBeamHTTP import LakiBeamHTTP, Firmware
laki_http = LakiBeamHTTP(
local_ip="192.168.8.1", # local ip
local_port="8080", # local port
web_ip="192.168.8.2", # device IP
web_port="80" # device port
)
firmware = Firmware("", "", "", "", "") if await laki_http.get_firemware(firmware):
print(f"设备型号: {firmware.model}")