Skip to main content

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

islabtech_upw_sensor_v1_mock_api-0.1.6.tar.gz (84.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

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

File metadata

File hashes

Hashes for islabtech_upw_sensor_v1_mock_api-0.1.6.tar.gz
Algorithm Hash digest
SHA256 a0792b9893c48c93ad08f76fcdad32cf88591f05fa4b62b4a14b5ce9723d936f
MD5 8352fea640cefc088cde098e433e738b
BLAKE2b-256 0dab707adbeb37551027ddb73da9f350e7585ebbf37e4d7c26a6cfcd2e7a8cea

See more details on using hashes here.

File details

Details for the file islabtech_upw_sensor_v1_mock_api-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for islabtech_upw_sensor_v1_mock_api-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 74e62c7db1ae054b662297b108cbccbdec65937ae1f6cd7f4eb1799063494a93
MD5 00580db6c93245cfcb912270ded36089
BLAKE2b-256 841735f7b14574dbccf379db7cad69bd24ac9fc14d015be2f556b0e14aefe17a

See more details on using hashes here.

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