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.3.tar.gz (84.2 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.3.tar.gz.

File metadata

File hashes

Hashes for islabtech_upw_sensor_v1_mock_api-0.1.3.tar.gz
Algorithm Hash digest
SHA256 ab688c0d6c7314a737e7057cfd28a5a87d3ea9d4f4deeed54ff6f607beef503f
MD5 33de7beee4cb084010c9124eabb6fc46
BLAKE2b-256 0eb840c7b540e0673f7d5b8d12d0bc6a929bcec88d8bfac0c00daf30a313a9d1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for islabtech_upw_sensor_v1_mock_api-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b56c6c2010891c24b9e4c713bf5feadda21aa581e7c6b95982ed6ec7b6ccae2e
MD5 9cdc78f93fe97131f13f168ec2f8a7f2
BLAKE2b-256 bac20c95298dfe022c787858d04556eae7c0d83b2a685c8cbff36155d063d49d

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