Mock API simulating the Rest+Modbus/TCP API of the ISLabTech UPW sensor
Project description
UPW Sensor API
API for the ISLabTech UPW Sensor
REST API
The entire REST API is documented in OpenAPI/Swagger..
Modbus/TCP
The Modbus/TCP interface is documented in this PDF.
🐍 Mock API
Run the mock API locally with Python:
pip3 install islabtech_upw_sensor_v1_mock_api
python3 -m islabtech_upw_sensor_v1_mock_api
Run it with the web app:
python3 -m islabtech_upw_sensor_v1_mock_api --web-app /path/to/web-app-git-repo
Access it with cURL:
curl -X GET http://localhost:5000/api/v1/measurements/latest
curl -X GET http://localhost:5000/api/v1/system/status
curl -X PATCH http://localhost:5000/api/v1/settings/network/wifi -H "Content-Type: application/json" \
-d '{"ssid": "my wifi", "password": "my password"}'
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file islabtech_upw_sensor_v1_mock_api-0.1.6.tar.gz.
File metadata
- Download URL: islabtech_upw_sensor_v1_mock_api-0.1.6.tar.gz
- Upload date:
- Size: 84.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0792b9893c48c93ad08f76fcdad32cf88591f05fa4b62b4a14b5ce9723d936f
|
|
| MD5 |
8352fea640cefc088cde098e433e738b
|
|
| BLAKE2b-256 |
0dab707adbeb37551027ddb73da9f350e7585ebbf37e4d7c26a6cfcd2e7a8cea
|
File details
Details for the file islabtech_upw_sensor_v1_mock_api-0.1.6-py3-none-any.whl.
File metadata
- Download URL: islabtech_upw_sensor_v1_mock_api-0.1.6-py3-none-any.whl
- Upload date:
- Size: 11.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74e62c7db1ae054b662297b108cbccbdec65937ae1f6cd7f4eb1799063494a93
|
|
| MD5 |
00580db6c93245cfcb912270ded36089
|
|
| BLAKE2b-256 |
841735f7b14574dbccf379db7cad69bd24ac9fc14d015be2f556b0e14aefe17a
|