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

 找回密码
 立即注册
查看: 5311|回复: 0

[技术探讨] 【求助】小白想问问,为什么我的api key有用却用不了

[复制链接]

3

主题

31

帖子

88

积分

注册会员

Rank: 2

积分
88
金钱
57
HASS币
0
发表于 2020-3-31 20:16:29 | 显示全部楼层 |阅读模式
第一次用了和风天气,报错,后来我就放弃了,我觉得还可能是和风天气的api key问题
但是紧接着第二次申请了京东万象云的key,一样的报错,求大神指条明路:

报错内容:
Error loading /volume1/@appstore/homeassistant/var/config/configuration.yaml: while scanning for the next tokenfound character '\t' that cannot start any token  in "/volume1/@appstore/homeassistant/var/config/configuration.yaml", line 64, column 1
(我不知道home-assistant.log文件在哪,如果这个信息不足,是否能告诉我日志文件的位置?


京东万象云key在浏览器地址栏请求的结果:
{"code":"10000","charge":false,"msg":"查询成功","result":{"HeWeather5":[{"aqi":{"city":{"aqi":"75","qlty":"良","pm25":"55","pm10":"63","no2":"24","so2":"3","co":"0.6","o3":"92"}},"basic":{"city":"北京","cnty":"中国","id":"CN101010100","lat":"39.90498734","lon":"116.4052887","update":{"loc":"2020-03-31 20:06","utc":"2020-03-31 12:06"}},"daily_forecast":............*?"txt":"属弱紫外线辐射天气,无需特别防护。若长期在户外,建议涂擦SPF在8-12之间的防晒护肤品。"}}}]}}
先行谢过了!
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-25 23:46 , Processed in 0.151375 second(s), 23 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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