Component to integrate with colorfulclouds.
此组件对接彩云天气API V2.5,本版本尚在开发中,最终释出的特性与变更未完全确定。如果突然不能用了,请提 issue
This component will set up the following platforms.
Platform | Description |
---|---|
weather |
colorfulclouds 彩云天气 weather 组件. |
Demo: lovelace-ui weather-forecast & custom:weather-card
custom_updater
custom_updater:
track:
- cards
- components
component_urls:
- https://raw.githubusercontent.com/jihao/colorfulclouds-hass/master/colorfulclouds.json
- ...
手工安装
- Using the tool of choice open the directory (folder) for your HA configuration (where you find
configuration.yaml
). - If you do not have a
custom_components
directory (folder) there, you need to create it. - In the
custom_components
directory (folder) create a new folder calledcolorfulclouds
. - Download all the files from the
custom_components/colorfulclouds/
directory (folder) in this repository. - Place the files you downloaded in the new directory (folder) you created.
- Add
colorfulclouds
to your HA configuration.
Using your HA configuration directory (folder) as a starting point you should now also have this:
custom_components/colorfulclouds/__init__.py
custom_components/colorfulclouds/weather.py
weather:
- platform: colorfulclouds
api_key: YOUR_API_KEY
latitude: 30.7046
longitude: 121.6544
Key | Type | Required | Default | Description |
---|---|---|---|---|
api_key |
string |
True |
None | 彩云天气 API TOKEN |
api_version |
string |
False |
V2.5 | 彩云天气 API Version |
latitude |
string |
False |
hass.config.latitude | 纬度 |
longitude |
string |
False |
hass.config.longitude | 经度 |
If you want to contribute to this please read the Contribution guidelines