Skip to main content

A python library to retrieve statistics from your Oekofen Pelletronic

Project description

Oekofen API

Usage

  • change 192.168.178.222 to your Oekofen IP
  • change eMlG to your JSON Password (see Touchpad of your Oekofen)
import oekofen_api
import asyncio
import time

client = oekofen_api.Oekofen("192.168.178.222", "eMlG")
asyncio.run(client.update_data())
client.get_status()
client.get_weather_temp()
client.get_heating_circuit_temp()

old_value = client.get_attribute('pu', 'L_tpo_act').get_value()
print(old_value)
while True:
    try:
        asyncio.run(client.update_data())
    except Exception:
        time.sleep(5)
        continue
    new_value = client.get_attribute('pu', 'L_tpo_act').get_value()
    time.sleep(10)
    if new_value != old_value:
        print(old_value, new_value)
        old_value = new_value

#asyncio.run(client.set_heating_circuit_temp(celsius=23))

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

oekofen_api-0.0.6.tar.gz (6.1 kB view details)

Uploaded Source

Built Distribution

oekofen_api-0.0.6-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file oekofen_api-0.0.6.tar.gz.

File metadata

  • Download URL: oekofen_api-0.0.6.tar.gz
  • Upload date:
  • Size: 6.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for oekofen_api-0.0.6.tar.gz
Algorithm Hash digest
SHA256 dbd1a1ef9c4984632d93035b6c602e0435ac30eddbccbb6726e3203fe5d1827f
MD5 02fe2c79d61d2a1c84d9d2b0323f219b
BLAKE2b-256 c4afb4a02ced63cabe8236db0aeafaf3057eab32a0a590d89b1d5af233c7472a

See more details on using hashes here.

File details

Details for the file oekofen_api-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: oekofen_api-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.2

File hashes

Hashes for oekofen_api-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 128dc84c573636bb117b1f4d860a652568cf5437ac1716fbfa01d581b0b2d541
MD5 e7a1fc6ed4b9ab64a5549ed1bd70d601
BLAKE2b-256 8411db9c4c01b5c997403acf8820823015e9e2308d852830d23584e38a63318c

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