All Projects → jihao → colorfulclouds-hass

jihao / colorfulclouds-hass

Licence: MIT license
A hass component to integrate with colorfulclouds (彩云天气)

Programming Languages

python
139335 projects - #7 most used programming language

colorfulclouds

GitHub Release GitHub Activity custom_updater License

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

example example

Installation

custom_updater

custom_updater:
  track:
    - cards
    - components
  component_urls:
    - https://raw.githubusercontent.com/jihao/colorfulclouds-hass/master/colorfulclouds.json
    - ...

手工安装

  1. Using the tool of choice open the directory (folder) for your HA configuration (where you find configuration.yaml).
  2. If you do not have a custom_components directory (folder) there, you need to create it.
  3. In the custom_components directory (folder) create a new folder called colorfulclouds.
  4. Download all the files from the custom_components/colorfulclouds/ directory (folder) in this repository.
  5. Place the files you downloaded in the new directory (folder) you created.
  6. 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

Example configuration.yaml

weather:
  - platform: colorfulclouds
    api_key: YOUR_API_KEY 
    latitude: 30.7046
    longitude: 121.6544

Configuration options

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 经度

Contributions are welcome!

If you want to contribute to this please read the Contribution guidelines


Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].