Skip to main content

Ahoy DTU webthing

Project description

ahoy_dtu_webthing

A webthing adapter to provide the AhyoDTU interface via the webthing API.

Example

# webthing has been started on host 192.168.0.23

curl http://192.168.0.23:7122/0/properties 

{
   "name": "Terrasse",
   "serial": "114180123418",
   "p_dc": 23
   ....
}

To install this software you can use PIP package manager as shown below

sudo pip install ahoy_dtu_webthing

After this installation you can use the Webthing http endpoint in your Python code or from the command line with

sudo dtu --command listen --port 7122 --base_uri http://10.1.11.35/

Here the webthing API is bound to the local port 7122. Additionally, the base uri of the AhyoDTU REST api must be set.

As an alternative to the list command, you can also use the register command to register and start the webthing service as a systemd entity. This way, the webthing service is started automatically at boot time. Starting the server manually with the listen command is no longer necessary.

sudo dtu --command register --port 7122 --base_uri http://10.1.11.35/

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

ahoy_dtu_webthing-1.2.22.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

ahoy_dtu_webthing-1.2.22-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file ahoy_dtu_webthing-1.2.22.tar.gz.

File metadata

  • Download URL: ahoy_dtu_webthing-1.2.22.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for ahoy_dtu_webthing-1.2.22.tar.gz
Algorithm Hash digest
SHA256 55c02d6ab0760d7af15cc8d8523222c580e9e4c43ac3599e68ec574db85793b0
MD5 66137289f2ce910c8b5f535ebe7e75fa
BLAKE2b-256 5dc56fe053b58cb8c889b5c38a1d5f5cecaece1948dfea286947d2a5de4acbec

See more details on using hashes here.

File details

Details for the file ahoy_dtu_webthing-1.2.22-py3-none-any.whl.

File metadata

File hashes

Hashes for ahoy_dtu_webthing-1.2.22-py3-none-any.whl
Algorithm Hash digest
SHA256 c5be8eae6716d0d2f906c46863c443b7a73bc6574c5888aca196d7786ba442b7
MD5 48c477523e5db77544a67eb38cd8ef65
BLAKE2b-256 5e2de420ae440f943c1a843f9bb69a09af3397b77e77ca27b30d0d1e80965afd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page