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.2.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.2.tar.gz.

File metadata

File hashes

Hashes for islabtech_upw_sensor_v1_mock_api-0.1.2.tar.gz
Algorithm Hash digest
SHA256 386af206932d1937185ccb80d1da247c7e29fcb8ee7e1f9e954202d7214d0849
MD5 e7014c8f2f29e5f40b3655cc3ce836cf
BLAKE2b-256 a14238887d7b8f34fe4db1f893c0726f462ef7d146baa9a417b33dda278fd818

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for islabtech_upw_sensor_v1_mock_api-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9a88fb3258414e5c1e8960e990ecd5fbf52d5e2b5ae9d30211400a1e4c8fede0
MD5 19561980f66cb5f6529119ff9f4f9f7a
BLAKE2b-256 f54c83302bc23983dc6d4ca3892e22a13f9404103a3d58f496859c50be07e8c5

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