docs: update/format readme and info
- apply auto-formats - tweak configuration example - update info to match readme - update directory files
This commit is contained in:
parent
945a50dff3
commit
4b79b3f80f
32
README.md
32
README.md
@ -14,9 +14,9 @@ _Component to integrate with [NiceHash][nicehash]_
|
|||||||
|
|
||||||
**This component will set up the following platforms.**
|
**This component will set up the following platforms.**
|
||||||
|
|
||||||
Platform | Description
|
| Platform | Description |
|
||||||
-- | --
|
| -------- | --------------------------- |
|
||||||
`sensor` | Show info from NiceHash API
|
| `sensor` | Show info from NiceHash API |
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
@ -26,18 +26,18 @@ Platform | Description
|
|||||||
1. Download _all_ the files from the `custom_components/nicehash/` directory (folder) in this repository.
|
1. Download _all_ the files from the `custom_components/nicehash/` directory (folder) in this repository.
|
||||||
1. Place the files you downloaded in the new directory (folder) you created.
|
1. Place the files you downloaded in the new directory (folder) you created.
|
||||||
1. Generate [NiceHash][nicehash] API key
|
1. Generate [NiceHash][nicehash] API key
|
||||||
- Supported API Permissions
|
- Supported API Permissions
|
||||||
- Wallet Permissions > View balances...
|
- Wallet Permissions > View balances...
|
||||||
- Mining Permissions > View mining data...
|
- Mining Permissions > View mining data...
|
||||||
- See this [repository](https://github.com/nicehash/rest-clients-demo) for assistance
|
- See this [repository](https://github.com/nicehash/rest-clients-demo) for assistance
|
||||||
1. Add `nicehash` to `configuration.yaml`
|
1. Add `nicehash` to `configuration.yaml`
|
||||||
```
|
```
|
||||||
nicehash:
|
nicehash:
|
||||||
organization_id: <org_id>
|
organization_id: <org_id>
|
||||||
api_key: <api_key_code>
|
api_key: <api_key_code>
|
||||||
api_secret: <api_secret_key_code>
|
api_secret: <api_secret_key_code>
|
||||||
currency: "EUR" (default = "USD")
|
currency: EUR (default = USD)
|
||||||
```
|
```
|
||||||
1. Restart Home Assistant
|
1. Restart Home Assistant
|
||||||
|
|
||||||
Using your HA configuration directory (folder) as a starting point you should now also have this:
|
Using your HA configuration directory (folder) as a starting point you should now also have this:
|
||||||
@ -46,8 +46,10 @@ Using your HA configuration directory (folder) as a starting point you should no
|
|||||||
custom_components/nicehash/translations/en.json
|
custom_components/nicehash/translations/en.json
|
||||||
custom_components/nicehash/__init__.py
|
custom_components/nicehash/__init__.py
|
||||||
custom_components/nicehash/const.py
|
custom_components/nicehash/const.py
|
||||||
|
custom_components/nicehash/data_coordinators.py
|
||||||
custom_components/nicehash/manifest.json
|
custom_components/nicehash/manifest.json
|
||||||
custom_components/nicehash/sensor.py
|
custom_components/nicehash/sensor.py
|
||||||
|
custom_components/nicehash/sensors.py
|
||||||
```
|
```
|
||||||
|
|
||||||
<!---->
|
<!---->
|
||||||
@ -56,7 +58,6 @@ custom_components/nicehash/sensor.py
|
|||||||
|
|
||||||
If you want to contribute to this please read the [Contribution guidelines](CONTRIBUTING.md)
|
If you want to contribute to this please read the [Contribution guidelines](CONTRIBUTING.md)
|
||||||
|
|
||||||
|
|
||||||
[nicehash]: https://nicehash.com
|
[nicehash]: https://nicehash.com
|
||||||
[buymecoffee]: https://www.buymeacoffee.com/brianberg
|
[buymecoffee]: https://www.buymeacoffee.com/brianberg
|
||||||
[buymecoffeebadge]: https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg?style=for-the-badge
|
[buymecoffeebadge]: https://img.shields.io/badge/buy%20me%20a%20coffee-donate-yellow.svg?style=for-the-badge
|
||||||
@ -72,4 +73,3 @@ If you want to contribute to this please read the [Contribution guidelines](CONT
|
|||||||
[maintenance-shield]: https://img.shields.io/badge/maintainer-Brian%20Berg%20%40brianberg-blue.svg?style=for-the-badge
|
[maintenance-shield]: https://img.shields.io/badge/maintainer-Brian%20Berg%20%40brianberg-blue.svg?style=for-the-badge
|
||||||
[releases-shield]: https://img.shields.io/github/v/release/brianberg/ha-nicehash?style=for-the-badge
|
[releases-shield]: https://img.shields.io/github/v/release/brianberg/ha-nicehash?style=for-the-badge
|
||||||
[releases]: https://github.com/brianberg/ha-nicehash/releases
|
[releases]: https://github.com/brianberg/ha-nicehash/releases
|
||||||
|
|
||||||
|
30
info.md
30
info.md
@ -12,32 +12,33 @@ _Component to integrate with [NiceHash][nicehash]_
|
|||||||
|
|
||||||
**This component will set up the following platforms**
|
**This component will set up the following platforms**
|
||||||
|
|
||||||
Platform | Description
|
| Platform | Description |
|
||||||
-- | --
|
| -------- | --------------------------- |
|
||||||
`sensor` | Show info from NiceHash API
|
| `sensor` | Show info from NiceHash API |
|
||||||
|
|
||||||
{% if not installed %}
|
{% if not installed %}
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
<!-- 1. Click install
|
<!-- 1. Click install
|
||||||
1. In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "NiceHash" -->
|
1. In the HA UI go to "Configuration" -> "Integrations" click "+" and search for "NiceHash" -->
|
||||||
|
|
||||||
1. Generate [NiceHash][nicehash] API key
|
1. Generate [NiceHash][nicehash] API key
|
||||||
- Supported API Permissions
|
- Supported API Permissions
|
||||||
- Wallet Permissions > View balances...
|
- Wallet Permissions > View balances...
|
||||||
- Mining Permissions > View mining data...
|
- Mining Permissions > View mining data...
|
||||||
- See this [repository](https://github.com/nicehash/rest-clients-demo) for assistance
|
- See this [repository](https://github.com/nicehash/rest-clients-demo) for assistance
|
||||||
1. Add `nicehash` to `configuration.yaml`
|
1. Add `nicehash` to `configuration.yaml`
|
||||||
```
|
```
|
||||||
nicehash:
|
nicehash:
|
||||||
organization_id: <org_id>
|
organization_id: <org_id>
|
||||||
api_key: <api_key_code>
|
api_key: <api_key_code>
|
||||||
api_secret: <api_secret_key_code>
|
api_secret: <api_secret_key_code>
|
||||||
```
|
currency: EUR (default = USD)
|
||||||
|
```
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
|
||||||
<!-- ## Configuration is done in the UI -->
|
<!-- ## Configuration is done in the UI -->
|
||||||
|
|
||||||
<!---->
|
<!---->
|
||||||
@ -57,4 +58,3 @@ Platform | Description
|
|||||||
[maintenance-shield]: https://img.shields.io/badge/maintainer-Brian%20Berg%20%40brianberg-blue.svg?style=for-the-badge
|
[maintenance-shield]: https://img.shields.io/badge/maintainer-Brian%20Berg%20%40brianberg-blue.svg?style=for-the-badge
|
||||||
[releases-shield]: https://img.shields.io/github/v/release/brianberg/ha-nicehash?style=for-the-badge
|
[releases-shield]: https://img.shields.io/github/v/release/brianberg/ha-nicehash?style=for-the-badge
|
||||||
[releases]: https://github.com/brianberg/ha-nicehash/releases
|
[releases]: https://github.com/brianberg/ha-nicehash/releases
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user