Skip to content

Commit c0b28d2

Browse files
Update documentation
1 parent 4c8c14c commit c0b28d2

File tree

4 files changed

+42
-8
lines changed

4 files changed

+42
-8
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020 Piotr Machowski
3+
Copyright (c) 2022 Piotr Machowski
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 37 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,26 @@
1-
# MPK Rzeszów sensor
1+
[![HACS Custom][hacs_shield]][hacs]
2+
[![GitHub Latest Release][releases_shield]][latest_release]
3+
[![GitHub All Releases][downloads_total_shield]][releases]
4+
[![Buy me a coffee][buy_me_a_coffee_shield]][buy_me_a_coffee]
5+
[![PayPal.Me][paypal_me_shield]][paypal_me]
6+
7+
8+
[hacs_shield]: https://img.shields.io/static/v1.svg?label=HACS&message=Custom&style=popout&color=orange&labelColor=41bdf5&logo=HomeAssistantCommunityStore&logoColor=white
9+
[hacs]: https://hacs.xyz/docs/faq/custom_repositories
10+
11+
[latest_release]: https://github.com/PiotrMachowski/Home-Assistant-custom-components-MPK-Rzeszow/releases/latest
12+
[releases_shield]: https://img.shields.io/github/release/PiotrMachowski/Home-Assistant-custom-components-MPK-Rzeszow.svg?style=popout
13+
14+
[releases]: https://github.com/PiotrMachowski/Home-Assistant-custom-components-MPK-Rzeszow/releases
15+
[downloads_total_shield]: https://img.shields.io/github/downloads/PiotrMachowski/Home-Assistant-custom-components-MPK-Rzeszow/total
16+
17+
[buy_me_a_coffee_shield]: https://img.shields.io/static/v1.svg?label=%20&message=Buy%20me%20a%20coffee&color=6f4e37&logo=buy%20me%20a%20coffee&logoColor=white
18+
[buy_me_a_coffee]: https://www.buymeacoffee.com/PiotrMachowski
219

3-
[![buymeacoffee_badge](https://img.shields.io/badge/Donate-Buy%20Me%20a%20Coffee-ff813f?style=flat)](https://www.buymeacoffee.com/PiotrMachowski)
4-
[![paypalme_badge](https://img.shields.io/badge/Donate-PayPal-0070ba?style=flat)](https://paypal.me/PiMachowski)
20+
[paypal_me_shield]: https://img.shields.io/static/v1.svg?label=%20&message=PayPal.Me&logo=paypal
21+
[paypal_me]: https://paypal.me/PiMachowski
22+
23+
# MPK Rzeszów sensor
524

625
This sensor use unofficial API provided by MPK Rzeszów.
726

@@ -38,12 +57,23 @@ sensor:
3857

3958
## Installation
4059

41-
Download [*sensor.py*](https://github.com/PiotrMachowski/Home-Assistant-custom-components-MPK-Rzeszow/raw/master/custom_components/mpk_rzeszow/sensor.py) and [*manifest.json*](https://github.com/PiotrMachowski/Home-Assistant-custom-components-MPK-Rzeszow/raw/master/custom_components/mpk_rzeszow/manifest.json) to `config/custom_components/mpk_rzeszow` directory:
60+
### Using [HACS](https://hacs.xyz/) (recommended)
61+
62+
This integration can be added to HACS as a [custom repository](https://hacs.xyz/docs/faq/custom_repositories):
63+
* URL: `https://github.com/PiotrMachowski/Home-Assistant-custom-components-MPK-Rzeszow`
64+
* Category: `Integration`
65+
66+
After adding a custom repository you can use HACS to install this integration using user interface.
67+
68+
### Manual
69+
70+
To install this integration manually you have to download [*mpk_rzeszow.zip*](https://github.com/PiotrMachowski/Home-Assistant-custom-components-MPK-Rzeszow/releases/latest/download/mpk_rzeszow.zip) extract its contents to `config/custom_components/mpk_rzeszow` directory:
4271
```bash
4372
mkdir -p custom_components/mpk_rzeszow
4473
cd custom_components/mpk_rzeszow
45-
wget https://github.com/PiotrMachowski/Home-Assistant-custom-components-MPK-Rzeszow/raw/master/custom_components/mpk_rzeszow/sensor.py
46-
wget https://github.com/PiotrMachowski/Home-Assistant-custom-components-MPK-Rzeszow/raw/master/custom_components/mpk_rzeszow/manifest.json
74+
wget https://github.com/PiotrMachowski/Home-Assistant-custom-components-MPK-Rzeszow/releases/latest/download/mpk_rzeszow.zip
75+
unzip mpk_rzeszow.zip
76+
rm mpk_rzeszow.zip
4777
```
4878

4979
## Hints
@@ -74,3 +104,4 @@ wget https://github.com/PiotrMachowski/Home-Assistant-custom-components-MPK-Rzes
74104
```
75105
76106
<a href="https://www.buymeacoffee.com/PiotrMachowski" target="_blank"><img src="https://bmc-cdn.nyc3.digitaloceanspaces.com/BMC-button-images/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: auto !important;width: auto !important;" ></a>
107+
<a href="https://paypal.me/PiMachowski" target="_blank"><img src="https://www.paypalobjects.com/webstatic/mktg/logo/pp_cc_mark_37x23.jpg" border="0" alt="PayPal Logo" style="height: auto !important;width: auto !important;"></a>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"""MPK Rzeszów"""

custom_components/mpk_rzeszow/manifest.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
"domain": "mpk_rzeszow",
33
"name": "MPK Rzeszów",
44
"documentation": "https://github.com/PiotrMachowski/Home-Assistant-custom-components-MPK-Rzeszow",
5+
"issue_tracker": "https://github.com/PiotrMachowski/Home-Assistant-custom-components-MPK-Rzeszow/issues",
56
"dependencies": [],
67
"codeowners": ["@PiotrMachowski"],
78
"requirements": ["requests"],
8-
"version": "v1.0.1"
9+
"version": "v1.0.2",
10+
"iot_class": "cloud_polling"
911
}

0 commit comments

Comments
 (0)