Skip to content

Commit

Permalink
update: Include long description
Browse files Browse the repository at this point in the history
  • Loading branch information
JbPasquier committed Mar 15, 2022
1 parent 056af36 commit 69c6028
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ Python interface for Okofen (oekofen) JSON API

```python
import pyokofen
import time

boiler = pyokofen.Okofen()
# Set here you ip:port/password/ - eg. 1.1.1.1:4321/XXXX/
boiler.credentials("1.1.1.1", "4321", "XXXX")
try boiler.update():
try boiler.credentials("1.1.1.1", "4321", "XXXX"):
print("It works!")
print("Current temperature: " + boiler.get("hk0", "L_roomtemp_act"))
print("Target temperature: " + boiler.get("hk0", "L_roomtemp_set"))
time.sleep(30)
boiler.update()
print("Current temperature: " + boiler.get("hk0", "L_roomtemp_act"))
except:
print('Oh no!')
```
Expand Down
6 changes: 4 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import setuptools

from pathlib import Path

setuptools.setup(
name="PyOkofen",
version="1.0.0",
version="1.0.1",
author="Jean-Baptiste Pasquier",
author_email="[email protected]",
description="JSON to python API for Okofen boilers",
Expand All @@ -12,6 +12,8 @@
packages=("pyokofen",),
python_requires=">=3.8.0",
install_requires=["requests"],
long_description=(Path(__file__).parent / "README.md").read_text(),
long_description_content_type="text/markdown",
classifiers=[
"Intended Audience :: Developers",
"Operating System :: OS Independent",
Expand Down

0 comments on commit 69c6028

Please sign in to comment.