Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update README.md #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update README.md
  • Loading branch information
bluefoxlee committed May 10, 2021
commit 27891b49de03f98e21c321317c10514be473168e
37 changes: 24 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<a href="https://www.buymeacoffee.com/tsunglung" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="30" width="120"></a>

Home assistant support for [Opendata CWB](https://opendata.cwb.gov.tw/index). [The readme in Traditional Chinese](https://github.com/tsunglung/OpenCWB/blob/master/README_zh-tw.md).

Home assistant support for [Opendata CWB](https://opendata.cwb.gov.tw/index) (Taiwan Centtal Bureau).
[中文版說明](https://github.com/tsunglung/OpenCWB/blob/master/README_zh-tw.md).


This integration is based on [OpenWeatherMap](https://openweathermap.org) ([@csparpa](https://pypi.org/user/csparpa), [pyowm](https://github.com/csparpa/pyowm)) to develop.
Expand All @@ -11,29 +12,39 @@ You can install component with [HACS](https://hacs.xyz/) custom repo: HACS > Int

Or manually copy `opencwb` folder to `custom_components` folder in your config folder.

Then restart HA.
And `do not forget` to restart Home Assistant.

# Setup
# Pre-reqirement

**Apply a API key in Opendata CWB**
1. Open the [Opendata CWB](https://opendata.cwb.gov.tw/devManual/insrtuction) Web Site
2. Register your account
**Apply a API key from Opendata CWB**
1. Browse to [Opendata CWB](https://opendata.cwb.gov.tw/userLogin) account page.
2. Login or [register an account](https://pweb.cwb.gov.tw/CWBMEMBER3/register/authorization).
3. Get your personal API Key.

# Config

**Please use the config flow of Home Assistant**
**Please follow the config flow of Home Assistant**


1. With GUI. Configuration > Integration > Add Integration > OpneCWB
1. If the integration didn't show up in the list please REFRESH the page
2. If the integration is still not in the list, you need to clear the browser cache.
2. Enter API key.
3. Enter the location name of Taiwan. Please reference to the name in the [doc](https://opendata.cwb.gov.tw/opendatadoc/CWB_Opendata_API_V1.2.pdf) appendix A.
1. Some location name need to include the city name.
a. If the integration didn't show up in the list please REFRESH the page.
b. If the integration is still not in the list, you need to clear the browser cache.
2. Enter API key from previous step.
3. Enter the location name of Taiwan (in Chinese. XD). Please reference to the offical [documents](https://opendata.cwb.gov.tw/opendatadoc/CWB_Opendata_API_V1.2.pdf) appendix A.
a. Some location name need to include the city name.

# Option

1. You could setup for the scan interval. One call per hour or per day.

Buy Me A Coffee

If you think the add-on is useful for you, please consider to buy me a coffee for support my work.

<a href="https://www.buymeacoffee.com/tsunglung" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="30" width="120"></a>

And for people live in Taiwan, you could use services below since Paypal might not wirk due to the goverment policy.

| LINE Pay | LINE Bank | JKao Pay |
| :------------: | :------------: | :------------: |
| <img src="https://github.com/tsunglung/OpenCWB/blob/master/linepay.jpg" alt="Line Pay" height="200" width="200"> | <img src="https://github.com/tsunglung/OpenCWB/blob/master/linebank.jpg" alt="Line Bank" height="200" width="200"> | <img src="https://github.com/tsunglung/OpenCWB/blob/master/jkopay.jpg" alt="JKo Pay" height="200" width="200"> |