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.

:snake: 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.1.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.1.tar.gz.

File metadata

File hashes

Hashes for islabtech_upw_sensor_v1_mock_api-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e5427578df4e16b6d801861fee70bd0b8757fd7528d1788666a40ac6afe10a65
MD5 6826875f4931db025d7137dfef015846
BLAKE2b-256 4f759fc47c9a7fabbaed53496f232edf445d2cb9a7585677b7e276f3f30216e5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for islabtech_upw_sensor_v1_mock_api-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bba0b80f38fce8075938e73fed8871fb7072019b7325995cfe1d727a55a21efc
MD5 2021a72cfcb0af26a16fcb04009e63f9
BLAKE2b-256 b9d28aa46b54f834811a4ffb0ebcbfb3e6379296e6dab7781fd829062eedd7d4

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