Metadata-Version: 2.4
Name: mywatering-client
Version: 0.2.3
Summary: MyWatering client
Project-URL: Homepage, https://codeberg.org/berk76/mywatering-client
Project-URL: Repository, https://codeberg.org/berk76/mywatering-client
Project-URL: Issues, https://codeberg.org/berk76/mywatering-client
Author-email: Jaroslav Beran <jaroslav.beran@gmail.com>
License-Expression: GPL-3.0
Requires-Python: >=3.10
Requires-Dist: adafruit-circuitpython-dht>=4.0.7
Requires-Dist: requests>=2.32.3
Requires-Dist: retry>=0.9.2
Requires-Dist: rpi-gpio>=0.7.1
Description-Content-Type: text/markdown

# My watering client

My watering client is counterpart of [my watering project](https://codeberg.org/berk76/watering).

## Installation

```
uv tool install mywatering-client
```

NOTE: If you are facing installation troubles you might need to install `python3-dev` package.

```
sudo apt-get update
sudo apt-get install python3-dev
```

## Running

Run it manually from commandline.

```
watering-cli temperature -s "https://your.server.com" -c <client number> -u <user> -p <password>
watering-cli water -s "https://your.server.com" -c <client number> -u <user> -p <password>
```

And then you can put it in your cron.

```
PATH="/home/myusername/.local/bin:$PATH"
0 * * * * watering-cli temperature -s "https://my.server.com" -c 1 -u myusername -p mypassword > /home/myusername/temperature.log 2>&1
*/5 * * * * watering-cli water -s "https://my.server.com" -c 1 -u myusername -p mypassword > /home/myusername/watering.log 2>&1
```

## Contributing

Please sync repository and install `pre-commit` before commiting and pushing your changes.

```
uv sync
uv run pre-commit install
```
