ahoy-dtu-webthing


Nameahoy-dtu-webthing JSON
Version 1.2.22 PyPI version JSON
download
home_page
SummaryAhoy DTU webthing
upload_time2023-10-19 04:48:53
maintainer
docs_urlNone
authorGregor Roth
requires_python>=3.8
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # ahoy_dtu_webthing
A webthing adapter to provide the [AhyoDTU](https://ahoydtu.de/)  interface via the [webthing API](https://iot.mozilla.org/wot/).

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](https://realpython.com/what-is-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/
```  

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "ahoy-dtu-webthing",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8",
    "maintainer_email": "",
    "keywords": "",
    "author": "Gregor Roth",
    "author_email": "gregor.roth@web.de",
    "download_url": "https://files.pythonhosted.org/packages/5d/c5/6fe053b58cb8c889b5c38a1d5f5cecaece1948dfea286947d2a5de4acbec/ahoy_dtu_webthing-1.2.22.tar.gz",
    "platform": null,
    "description": "# ahoy_dtu_webthing\nA webthing adapter to provide the [AhyoDTU](https://ahoydtu.de/)  interface via the [webthing API](https://iot.mozilla.org/wot/).\n\nExample\n```\n# webthing has been started on host 192.168.0.23\n\ncurl http://192.168.0.23:7122/0/properties \n\n{\n   \"name\": \"Terrasse\",\n   \"serial\": \"114180123418\",\n   \"p_dc\": 23\n   ....\n}\n```\n\nTo install this software you can use [PIP](https://realpython.com/what-is-pip/) package manager as shown below\n```\nsudo pip install ahoy_dtu_webthing\n```\n\nAfter this installation you can use the Webthing http endpoint in your Python code or from the command line with\n```\nsudo dtu --command listen --port 7122 --base_uri http://10.1.11.35/\n```\nHere the webthing API is bound to the local port 7122. Additionally, the base uri of the AhyoDTU REST api must be set. \n\nAs an alternative to the *list* command, you can also use the *register* command to register and start the webthing service as a systemd entity.\nThis way, the webthing service is started automatically at boot time. Starting the server manually with the *listen* command is no longer necessary.\n```\nsudo dtu --command register --port 7122 --base_uri http://10.1.11.35/\n```  \n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Ahoy DTU webthing",
    "version": "1.2.22",
    "project_urls": null,
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5e2de420ae440f943c1a843f9bb69a09af3397b77e77ca27b30d0d1e80965afd",
                "md5": "48c477523e5db77544a67eb38cd8ef65",
                "sha256": "c5be8eae6716d0d2f906c46863c443b7a73bc6574c5888aca196d7786ba442b7"
            },
            "downloads": -1,
            "filename": "ahoy_dtu_webthing-1.2.22-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "48c477523e5db77544a67eb38cd8ef65",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8",
            "size": 15494,
            "upload_time": "2023-10-19T04:48:51",
            "upload_time_iso_8601": "2023-10-19T04:48:51.658290Z",
            "url": "https://files.pythonhosted.org/packages/5e/2d/e420ae440f943c1a843f9bb69a09af3397b77e77ca27b30d0d1e80965afd/ahoy_dtu_webthing-1.2.22-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5dc56fe053b58cb8c889b5c38a1d5f5cecaece1948dfea286947d2a5de4acbec",
                "md5": "66137289f2ce910c8b5f535ebe7e75fa",
                "sha256": "55c02d6ab0760d7af15cc8d8523222c580e9e4c43ac3599e68ec574db85793b0"
            },
            "downloads": -1,
            "filename": "ahoy_dtu_webthing-1.2.22.tar.gz",
            "has_sig": false,
            "md5_digest": "66137289f2ce910c8b5f535ebe7e75fa",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8",
            "size": 14881,
            "upload_time": "2023-10-19T04:48:53",
            "upload_time_iso_8601": "2023-10-19T04:48:53.188280Z",
            "url": "https://files.pythonhosted.org/packages/5d/c5/6fe053b58cb8c889b5c38a1d5f5cecaece1948dfea286947d2a5de4acbec/ahoy_dtu_webthing-1.2.22.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-10-19 04:48:53",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "ahoy-dtu-webthing"
}
        
Elapsed time: 0.13496s