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

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

[经验分享] Deprecated

  [复制链接]

1

主题

22

帖子

177

积分

注册会员

Rank: 2

积分
177
金钱
155
HASS币
0
发表于 2022-11-12 00:28:54 | 显示全部楼层
看一下~~~~紫薯布丁
回复

使用道具 举报

2

主题

39

帖子

404

积分

论坛分享达人

积分
404
金钱
365
HASS币
0
发表于 2022-11-12 00:36:30 | 显示全部楼层
本帖最后由 天加山的白菜 于 2022-11-12 00:38 编辑
sgcc_electricity
#11 0x55f9c1d34d27 <unknown>
#12 0x55f9c1d23dc2 <unknown>
#13 0x55f9c1d349e1 <unknown>
#14 0x55f9c1d23c93 <unknown>
#15 0x55f9c1cf5ce4 <unknown>
#16 0x55f9c1cf74d2 <unknown>
#17 0x55f9c1fb0542 <unknown>
#18 0x55f9c1fbfce7 <unknown>
#19 0x55f9c1fbf9e4 <unknown>
#20 0x55f9c1fc413a <unknown>
#21 0x55f9c1fc05b9 <unknown>
#22 0x55f9c1fa5e00 <unknown>
#23 0x55f9c1fd75d2 <unknown>
#24 0x55f9c1fd7778 <unknown>
#25 0x55f9c1fefa1f <unknown>
#26 0x7f667bb79fa3 start_thread
#27 0x7f667add006f clone
. 1 retry times left.
Traceback (most recent call last):
  File "/app/data_fetcher.py", line 30, in fetch
    return self._fetch()
  File "/app/data_fetcher.py", line 47, in _fetch
    self._login(driver)
  File "/app/data_fetcher.py", line 80, in _login
    driver.get(LOGIN_URL)
  File "/usr/local/lib/python3.8/site-packages/undetected_chromedriver/__init__.py", line 505, in get_wrapped
    return orig_get(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/undetected_chromedriver/__init__.py", line 543, in get
    return super().get(url)
  File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 441, in get
    self.execute(Command.GET, {'url': url})
  File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 429, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 243, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: net::ERR_NAME_NOT_RESOLVED
  (Session info: headless chrome=90.0.4430.212)
Stacktrace:
#0 0x55f9c1fe47f9 <unknown>
#1 0x55f9c1f843b3 <unknown>
#2 0x55f9c1ccc016 <unknown>
#3 0x55f9c1cc9d4f <unknown>
#4 0x55f9c1cb71f9 <unknown>
#5 0x55f9c1cb8045 <unknown>
#6 0x55f9c1cb7541 <unknown>
#7 0x55f9c1cb6aba <unknown>
#8 0x55f9c1cb5ae7 <unknown>
#9 0x55f9c1cb5f51 <unknown>
#10 0x55f9c1cce0d7 <unknown>
#11 0x55f9c1d34d27 <unknown>
#12 0x55f9c1d23dc2 <unknown>
#13 0x55f9c1d349e1 <unknown>
#14 0x55f9c1d23c93 <unknown>
#15 0x55f9c1cf5ce4 <unknown>
#16 0x55f9c1cf74d2 <unknown>
#17 0x55f9c1fb0542 <unknown>
#18 0x55f9c1fbfce7 <unknown>
#19 0x55f9c1fbf9e4 <unknown>
#20 0x55f9c1fc413a <unknown>
#21 0x55f9c1fc05b9 <unknown>
#22 0x55f9c1fa5e00 <unknown>
#23 0x55f9c1fd75d2 <unknown>
#24 0x55f9c1fd7778 <unknown>
#25 0x55f9c1fefa1f <unknown>
#26 0x7f667bb79fa3 start_thread
#27 0x7f667add006f clone
2022-11-12 00:27:49  [INFO    ] ---- Webdriver initialized.
2022-11-12 00:27:59  [ERROR   ] ---- state-refresh task failed, reason is Message: unknown error: net::ERR_NAME_NOT_RESOLVED
  (Session info: headless chrome=90.0.4430.212)
Stacktrace:
#0 0x555da2d427f9 <unknown>
#1 0x555da2ce23b3 <unknown>
#2 0x555da2a2a016 <unknown>
#3 0x555da2a27d4f <unknown>
#4 0x555da2a151f9 <unknown>
#5 0x555da2a16045 <unknown>
#6 0x555da2a15541 <unknown>
#7 0x555da2a14aba <unknown>
#8 0x555da2a13ae7 <unknown>
#9 0x555da2a13f51 <unknown>
#10 0x555da2a2c0d7 <unknown>
#11 0x555da2a92d27 <unknown>
#12 0x555da2a81dc2 <unknown>
#13 0x555da2a929e1 <unknown>
#14 0x555da2a81c93 <unknown>
#15 0x555da2a53ce4 <unknown>
#16 0x555da2a554d2 <unknown>
#17 0x555da2d0e542 <unknown>
#18 0x555da2d1dce7 <unknown>
#19 0x555da2d1d9e4 <unknown>
#20 0x555da2d2213a <unknown>
#21 0x555da2d1e5b9 <unknown>
#22 0x555da2d03e00 <unknown>
#23 0x555da2d355d2 <unknown>
#24 0x555da2d35778 <unknown>
#25 0x555da2d4da1f <unknown>
#26 0x7f2c47255fa3 start_thread
#27 0x7f2c464ac06f clone



刚开始账号密码成功登录的时候发现有两个户号,手机APP登录看了一下发现在账户下绑定了光伏发电的户号。删除光伏。然后再看LOG就变这样了,似乎登陆不了。


国网浙江
win1164 -- hyper-v -- haos_ova-9.3

Home Assistant 2022.11.2
Supervisor 2022.10.2
Operating System 9.3
前端版本: 20221108.0 - latest


回复

使用道具 举报

2

主题

20

帖子

212

积分

中级会员

Rank: 3Rank: 3

积分
212
金钱
192
HASS币
0
发表于 2022-11-12 01:56:36 | 显示全部楼层
谢谢分享
回复

使用道具 举报

18

主题

587

帖子

4283

积分

元老级技术达人

积分
4283
金钱
3661
HASS币
182
 楼主| 发表于 2022-11-12 08:03:28 | 显示全部楼层
天加山的白菜 发表于 2022-11-12 00:36
刚开始账号密码成功登录的时候发现有两个户号,手机APP登录看了一下发现在账户下绑定了光伏发电的户号。 ...

看日志是DNS解析失败。请检查网络是否连上了?
回复

使用道具 举报

1

主题

41

帖子

298

积分

中级会员

Rank: 3Rank: 3

积分
298
金钱
257
HASS币
0
发表于 2022-11-12 09:09:55 | 显示全部楼层
过了一天,似乎好了,完美,感谢楼主!论坛有你更精彩!
电费.jpg

回复

使用道具 举报

1

主题

48

帖子

204

积分

中级会员

Rank: 3Rank: 3

积分
204
金钱
156
HASS币
0
发表于 2022-11-12 13:41:44 | 显示全部楼层
学习,试下看自己能否成功,谢谢
回复

使用道具 举报

14

主题

123

帖子

2028

积分

金牌会员

Rank: 6Rank: 6

积分
2028
金钱
1900
HASS币
40
发表于 2022-11-12 14:32:58 | 显示全部楼层
大佬 我安装提示这个
安装加载项失败
The command '/bin/sh -c cd /app && python3 -m pip install --upgrade pip -i https://pypi.douban.com/simple/ && pip3 install --no-cache-dir requests selenium==4.5.0 schedule==1.1.0 ddddocr==1.4.7 undetected_chromedriver==3.1.6 -i https://pypi.douban.com/simple && rm -rf /tmp/* && rm -rf /root/.cache/* && sed -i 's#http://deb.debian.org#http://mirrors.aliyun.com/#g' /etc/apt/sources.list && apt-get --allow-releaseinfo-change update && apt install jq chromium chromium-driver -y' returned a non-zero code: 1
回复

使用道具 举报

18

主题

587

帖子

4283

积分

元老级技术达人

积分
4283
金钱
3661
HASS币
182
 楼主| 发表于 2022-11-12 14:33:49 | 显示全部楼层
mcone 发表于 2022-11-12 14:32
大佬 我安装提示这个
安装加载项失败
The command '/bin/sh -c cd /app && python3 -m pip install --upgra ...

网络问题,重试即可
回复

使用道具 举报

14

主题

123

帖子

2028

积分

金牌会员

Rank: 6Rank: 6

积分
2028
金钱
1900
HASS币
40
发表于 2022-11-12 14:41:03 | 显示全部楼层
louis_lee 发表于 2022-11-12 14:33
网络问题,重试即可

不行  科学上网了也
回复

使用道具 举报

3

主题

100

帖子

675

积分

高级会员

Rank: 4

积分
675
金钱
575
HASS币
0
发表于 2022-11-12 14:47:53 | 显示全部楼层
很奇怪 ,edge访问95598页面下不去,用IE模式倒是没问题,是江苏的缘故吗
2022-11-12 14:42:08  [INFO    ] ---- Service start!
2022-11-12 14:42:09  [INFO    ] ---- patching driver executable /usr/bin/chromedriver
2022-11-12 14:42:10  [INFO    ] ---- Webdriver initialized.
2022-11-12 14:42:23  [INFO    ] ---- Login successfully on https://www.95598.cn/osgweb/login
2022-11-12 14:42:25  [INFO    ] ---- get all user id: ['32030766*****', '32067000*****', '320662492****']
2022-11-12 14:42:27  [INFO    ] ---- Get electricity charge balance for 32030766***** successfully, balance is 0.0 CNY.
2022-11-12 14:42:28  [INFO    ] ---- Get electricity charge balance for 32067000***** successfully, balance is 112.0 CNY.
2022-11-12 14:42:30  [INFO    ] ---- Get electricity charge balance for 32066249***** successfully, balance is 0.0 CNY.
2022-11-12 14:44:15  [ERROR   ] ---- Webdriver quit abnormly, reason: Message: no such element: Unable to locate element: {"method":"css selector","selector":".total"}
  (Session info: headless chrome=90.0.4430.212)
Stacktrace:
#0 0x5606340be7f9 <unknown>
#1 0x56063405e3b3 <unknown>
#2 0x560633da6016 <unknown>
#3 0x560633dda81e <unknown>
#4 0x560633e108fb <unknown>
#5 0x560633dfdded <unknown>
#6 0x560633e0e9e1 <unknown>
#7 0x560633dfdc93 <unknown>
#8 0x560633dcfce4 <unknown>
#9 0x560633dd14d2 <unknown>
#10 0x56063408a542 <unknown>
#11 0x560634099ce7 <unknown>
#12 0x5606340999e4 <unknown>
#13 0x56063409e13a <unknown>
#14 0x56063409a5b9 <unknown>
#15 0x56063407fe00 <unknown>
#16 0x5606340b15d2 <unknown>
#17 0x5606340b1778 <unknown>
#18 0x5606340c9a1f <unknown>
#19 0x7fd5bcc58fa3 start_thread
#20 0x7fd5bbeaf06f clone
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-23 09:51 , Processed in 0.131418 second(s), 32 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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