『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
楼主: plutosherry

[插件集成] 彩云天气 动态图标完整版【Caiyun Weather for lovelace】【原创】

  [复制链接]

5

主题

188

帖子

1375

积分

金牌会员

Rank: 6Rank: 6

积分
1375
金钱
1187
HASS币
0
发表于 2019-2-2 16:50:57 | 显示全部楼层
用了九楼的js和yaml了还是这个样子怎么回事
回复

使用道具 举报

5

主题

188

帖子

1375

积分

金牌会员

Rank: 6Rank: 6

积分
1375
金钱
1187
HASS币
0
发表于 2019-2-2 17:03:54 | 显示全部楼层
奇怪现在又不报错不过lovelace里面除了home抬头有显示 其他都是空白
回复

使用道具 举报

8

主题

59

帖子

389

积分

论坛分享达人

积分
389
金钱
325
HASS币
20
发表于 2019-2-3 08:04:50 来自手机 | 显示全部楼层
论坛写的过于简单,怎么配置都没有说
回复

使用道具 举报

8

主题

361

帖子

3725

积分

论坛元老

Rank: 8Rank: 8

积分
3725
金钱
3364
HASS币
10
发表于 2019-2-5 00:37:52 | 显示全部楼层
本帖最后由 s2233 于 2019-2-5 00:45 编辑
情非殇 发表于 2019-2-1 10:34
请问这个lovelace怎么用,数据都有了,就是不显示面板

这个实体的缩进不太一样,这是我一个分页的,能用
resources:
  - type: js
    url: /local/lovelace_ui/resources/caiyun-weather-card.js
title: Home Assistant
views:
  - badges:
      - sensor.date
      - sensor.time
      - sensor.processor_use
      - sensor.memory_use_percent
      - sensor.guo_cheng_battery_level
      - sensor.guo_cheng_battery_state
      - sun.sun
    cards:
      - entity_carwash: sensor.caiyun_now_carwash
        entity_current_conditions: sensor.now_caiyun_weather
        entity_forecast_aqi_1: sensor.caiyun_air_aqi_1
        entity_forecast_aqi_2: sensor.caiyun_air_aqi_2
        entity_forecast_aqi_3: sensor.caiyun_air_aqi_3
        entity_forecast_aqi_4: sensor.caiyun_air_aqi_4
        entity_forecast_carwash_1: sensor.caiyun_carwash_1
        entity_forecast_carwash_2: sensor.caiyun_carwash_2
        entity_forecast_carwash_3: sensor.caiyun_carwash_3
        entity_forecast_carwash_4: sensor.caiyun_carwash_4
        entity_forecast_precipitation_1: sensor.caiyun_precipitation_1
        entity_forecast_precipitation_2: sensor.caiyun_precipitation_2
        entity_forecast_precipitation_3: sensor.caiyun_precipitation_3
        entity_forecast_precipitation_4: sensor.caiyun_precipitation_4
        entity_forecast_skycon_1: sensor.caiyun_weather_1
        entity_forecast_skycon_2: sensor.caiyun_weather_2
        entity_forecast_skycon_3: sensor.caiyun_weather_3
        entity_forecast_skycon_4: sensor.caiyun_weather_4
        entity_forecast_temphigh_1: sensor.caiyun_high_temperature_1
        entity_forecast_temphigh_2: sensor.caiyun_high_temperature_2
        entity_forecast_temphigh_3: sensor.caiyun_high_temperature_3
        entity_forecast_temphigh_4: sensor.caiyun_high_temperature_4
        entity_forecast_templow_1: sensor.caiyun_low_temperature_1
        entity_forecast_templow_2: sensor.caiyun_low_temperature_2
        entity_forecast_templow_3: sensor.caiyun_low_temperature_3
        entity_forecast_templow_4: sensor.caiyun_low_temperature_4
        entity_hourly_summary: sensor.caiyun_weather_hourly_des
        entity_humidity: sensor.now_caiyun_humidity
        entity_minutely_summary: sensor.caiyun_weather_minutely_des
        entity_now_air_aqi: sensor.now_caiyun_aqi
        entity_now_aqipm25: sensor.now_caiyun_pm25
        entity_now_temphigh: sensor.caiyun_now_high_temperature
        entity_now_templow: sensor.caiyun_now_low_temperature
        entity_precipitation: sensor.now_caiyun_precipitation
        entity_pressure: sensor.now_caiyun_pressure
        entity_sun: sun.sun
        entity_temperature: sensor.now_caiyun_temperature
        entity_visibility: sensor.now_caiyun_vis
        entity_wind_bearing: sensor.now_caiyun_wind_dir
        entity_wind_speed: sensor.now_caiyun_wind_spd
        location: 天气
        title: 彩云天气
        type: 'custom:caiyun-weather-card'
      - entities:
          - input_select.timer_climate
          - input_select.timer_switch
          - input_select.timer_state
          - sensor.timer_setting
          - input_number.timer_hour
          - input_number.timer_min
          - input_number.timer_sec
          - timer.timer
          - script.timer_start
          - script.timer_cancel
        show_header_toggle: false
        title: 通用延时器
        type: entities
      - entities:
          - automation.not_home_manual_open_kill_mosquito_push
          - automation.alarm_clock_at_0630am
          - automation.alarm_clock_at_1500pm
          - automation.alarm_clock_at_1700pm
          - automation.alarm_clock_at_1800pm
          - automation.air_conditioning_operation_remind_to_close_the_door
          - automation.auto_door_light
          - automation.air_conditioning_operation_remind_to_close_the_windows
          - automation.auto_kill_mosquito
          - automation.kill_mosquito
          - automation.off_kill_mosquito_sunrise
          - automation.kill_mosquito_tts_before_sunset_1_hours
          - automation.kill_mosquito_tts_after_sunset_1_hours
          - automation.not_home_open_kill_mosquito_push
        show_header_toggle: false
        title: 自动化
        type: entities
      - entities:
          - switch.wall_switch_158d00024e3b30
          - switch.wall_plug_158d00022f4286
        show_header_toggle: false
        title: 开关
        type: entities
      - entities:
          - script.aqara_add_device
        show_header_toggle: false
        title: 脚本
        type: entities
    path: home
    title: 主页

回复

使用道具 举报

8

主题

361

帖子

3725

积分

论坛元老

Rank: 8Rank: 8

积分
3725
金钱
3364
HASS币
10
发表于 2019-2-5 00:48:42 | 显示全部楼层
这位置的语句太长了,该怎么截取呢?  
捕获.PNG

彩云一定要这么贴心么。。。。

回复

使用道具 举报

26

主题

2096

帖子

8508

积分

论坛元老

Rank: 8Rank: 8

积分
8508
金钱
6407
HASS币
30

论坛元老

发表于 2019-2-5 07:43:14 | 显示全部楼层
s2233 发表于 2019-2-5 00:37
这个实体的缩进不太一样,这是我一个分页的,能用
resources:
  - type: js

非常感谢
回复

使用道具 举报

2

主题

240

帖子

1276

积分

论坛积极会员

积分
1276
金钱
1036
HASS币
0
发表于 2019-2-8 08:20:36 | 显示全部楼层
FrankLv 发表于 2019-1-31 00:24
LZ不好意思啊,星期显示我考虑不周全,我把自己的坑给填好了,还有修正了日出日落的显示问题,文字太多排 ...

感谢分享,我也用的这个毛玻璃特效的,但是彩云天气嵌套不了,能否分享一下配置
回复

使用道具 举报

1

主题

167

帖子

608

积分

高级会员

Rank: 4

积分
608
金钱
441
HASS币
0
发表于 2019-2-8 12:38:22 | 显示全部楼层

本帖最后由 suwill 于 2019-2-11 21:11 编辑

请问下彩云天气api的url里的经纬度,是什么坐标系的,用百度地图那个坐标拾取工具好使么?

回复

使用道具 举报

9

主题

228

帖子

2044

积分

超级版主

Rank: 8Rank: 8

积分
2044
金钱
1791
HASS币
100

突出贡献

发表于 2019-2-8 20:27:50 | 显示全部楼层
这个接口支持jsonp,为啥不做成jsonp的请求方式的,并不一定非要放到yaml里配置rest啊
回复

使用道具 举报

26

主题

94

帖子

1943

积分

金牌会员

Rank: 6Rank: 6

积分
1943
金钱
1814
HASS币
60

教程狂人论坛风云人物突出贡献

发表于 2019-2-9 01:34:00 | 显示全部楼层
本帖最后由 FrankLv 于 2019-2-9 01:38 编辑

今天搞好了我的iqair净化器状态反馈,心情不错。把前几天改的代码再跟新下,此次更新主要还是填坑。
1.完善上次截取文字长度的问题;
2.调整了图中红色部分的显示;
3.对于分钟级预报最多可以显示2行(加上截取文字长度,应该够所截取文字显示),每行最长150px(为保证浏览器显示不会出现字体重叠);
4.日出日落,去掉今天文字提示,保留明天文字提示
A9671412-0CC9-42BE-8155-B5E1FDAF70E3.jpeg


惯例:覆盖源文件
提醒⏰:需要清理浏览器缓存,需要清理浏览器缓存,需要清理浏览器缓存(重要事情说三遍)




caiyun.zip

5.35 KB, 下载次数: 120

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-25 19:47 , Processed in 0.103149 second(s), 33 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表