Commit Graph

13 Commits

Author SHA1 Message Date
Pim van den Berg 7048014a22 feat: add support for reading counters 2023-09-11 20:07:59 +02:00
Pim van den Berg a11df838f8 feat: add support for writing manual operations
Initiating and finishing a manual operation works a bit strange. First
of all the Maximum Manual Operation Time is controlled by a setting
(--id 4) and defaults to 0 (infinite). And instead of waiting for the
timer to expire (which you have to do when its set to 0) you can finish
a manual operation by passing "--no-check".

Note: For some reason no response is given when a manual operation is
written to. That's why execute_action() returns succesfully (with None)
when its executing the "setmanual" action and the response queue size is 0.
2023-09-11 20:07:59 +02:00
Pim van den Berg 63f06400ef feat: add support for reading manual operations 2023-07-21 16:34:12 +02:00
Pim van den Berg 381dd4c6ec feat(itho-wpu): setsetting support
With action "setsetting" settings of an Itho WPU can be modified.
2023-07-19 16:31:49 +02:00
Pim van den Berg 7a1140e26c feat(itho-wpu): getsettings support
A loop around getsetting based on the settings available in the
database to retrieve all settings from the WPU.

Example usage:
> ./itho-wpu.py --action getsettings
> 0. Niet Gebruikt: 0 (min: 0, max: 65535, step: 1)
> 1. Hardware Configuratie: 70 (min: 0, max: 65535, step: 1)
> 2. Jaar Inbedrijfstelling: 2010 (min: 2004, max: 2099, step: 1)
2023-07-19 15:35:04 +02:00
Pim van den Berg d28acae756 feat(itho-wpu): getsetting support
Action "getsetting" retrieves the value of a setting byi the provided id.

Example usage:
> ./itho-wpu.py --action getsetting --settingid 1
> 1. Hardware Configuratie: 70 (min: 0, max: 65535, step: 1)
> ./itho-wpu.py --action getsetting --settingid 2
> 2. Jaar Inbedrijfstelling: 2010 (min: 2004, max: 2099, step: 1)
2023-07-19 15:35:04 +02:00
Pim van den Berg 8bde04ba41 fix(readme): suppress direnv loading output in cron
By default direnv outputs this while executing:
```
direnv: loading ~/python-itho-wpu/.envrc
```

In a cronjob this results in emails, or when no MTA is configured:
```
CRON[1095]: (CRON) info (No MTA installed, discarding output)
```
2022-12-25 14:02:55 +01:00
Pim van den Berg 8f02e2b833 fix(readme): install odbcinst1debian2
odbcinst1debian2 is a dependency of odbc-mdbtools.
2022-12-25 13:55:04 +01:00
Pim van den Berg 8c7d0ed947 docs(readme): save par file from Service Tool as HeatPump.par
mdbtools 0.9.3-1 is not able to handle filenames with special characters like "$".
2021-05-30 13:52:21 +02:00
Pim van den Berg 153da73b08 docs(readme): update mdbtools to 0.9.3-1
mdbtools 0.9.3-1 from Debian Unstable also seems to work.
2021-05-30 13:46:19 +02:00
Pim van den Berg cb3cde86be docs(readme): add grafana dashboard and demo 2021-03-25 14:56:53 +01:00
Pim van den Berg 57954bafb4 docs(readme): installation and execution instructions 2021-03-17 21:19:14 +01:00
Pim van den Berg 4e6d4c8666 docs(readme): initial commit 2020-10-16 19:17:51 +02:00