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

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

[基础教程] 我彻底弃用HA模版Jinja了,因为Python更好更容易 [Pyscript插件]

  [复制链接]

0

主题

5

帖子

92

积分

注册会员

Rank: 2

积分
92
金钱
87
HASS币
0
发表于 2023-3-12 12:02:54 | 显示全部楼层
很好很强大
回复

使用道具 举报

0

主题

5

帖子

42

积分

新手上路

Rank: 1

积分
42
金钱
37
HASS币
0
发表于 2023-3-13 11:04:53 | 显示全部楼层
学习了!!!
回复

使用道具 举报

0

主题

46

帖子

299

积分

中级会员

Rank: 3Rank: 3

积分
299
金钱
253
HASS币
0
发表于 2023-3-15 18:35:30 | 显示全部楼层
大佬,学习了
回复

使用道具 举报

0

主题

3

帖子

26

积分

新手上路

Rank: 1

积分
26
金钱
23
HASS币
0
发表于 2023-3-19 01:34:54 | 显示全部楼层
感谢楼主分享
回复

使用道具 举报

0

主题

54

帖子

336

积分

中级会员

Rank: 3Rank: 3

积分
336
金钱
282
HASS币
0
发表于 2023-3-28 10:26:44 | 显示全部楼层
谢谢!!!!!!!!!!!!!!!!
回复

使用道具 举报

1

主题

9

帖子

70

积分

注册会员

Rank: 2

积分
70
金钱
61
HASS币
0
发表于 2023-4-15 17:14:53 | 显示全部楼层
s6-rc: info: service fix-attrs successfully started
[17:09:20] INFO: Configuring timezone (Asia/Shanghai)...
s6-rc: info: service base-addon-timezone successfully started
s6-rc: info: service base-addon-log-level successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service init-system-packages: starting
s6-rc: info: service init-nginx: starting
s6-rc: info: service init-jupyter: starting
s6-rc: info: service init-nginx successfully started
s6-rc: info: service init-jupyter successfully started
s6-rc: info: service init-notebooks: starting
hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint:
hint:   git config pull.rebase false  # merge (the default strategy)
hint:   git config pull.rebase true   # rebase
hint:   git config pull.ff only       # fast-forward only
hint:
hint: You can replace "git config" with "git config --global" to set a default
hint: preference for all repositories. You can also pass --rebase, --no-rebase,
hint: or --ff-only on the command line to override the configured default per
hint: invocation.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting hass_pyscript_kernel
  Downloading hass_pyscript_kernel-1.0.0-py3-none-any.whl (26 kB)
Collecting aiohttp-socks
  Downloading https://www.piwheels.org/simple/ ... .0-py3-none-any.whl (9.4 kB)
Requirement already satisfied: jupyter-client in /usr/local/lib/python3.9/dist-packages (from hass_pyscript_kernel) (8.0.3)
Requirement already satisfied: jupyter-core in /usr/local/lib/python3.9/dist-packages (from hass_pyscript_kernel) (5.2.0)
Collecting aiohttp
  Downloading aiohttp-3.8.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.0 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.0/1.0 MB 3.4 MB/s eta 0:00:00
Requirement already satisfied: charset-normalizer<4.0,>=2.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp->hass_pyscript_kernel) (3.1.0)
Collecting async-timeout<5.0,>=4.0.0a3
  Downloading https://www.piwheels.org/simple/ ... .2-py3-none-any.whl (5.8 kB)
Collecting aiosignal>=1.1.2
  Downloading https://www.piwheels.org/simple/ ... .1-py3-none-any.whl (7.6 kB)
Collecting frozenlist>=1.1.1
  Downloading frozenlist-1.3.3-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl (158 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 158.8/158.8 kB 14.3 MB/s eta 0:00:00
Collecting multidict<7.0,>=4.5
  Downloading multidict-6.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (114 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 114.2/114.2 kB 13.3 MB/s eta 0:00:00
Requirement already satisfied: attrs>=17.3.0 in /usr/local/lib/python3.9/dist-packages (from aiohttp->hass_pyscript_kernel) (22.2.0)
Collecting yarl<2.0,>=1.0
  Downloading yarl-1.8.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (264 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 264.6/264.6 kB 18.8 MB/s eta 0:00:00
fatal: unable to access 'https://github.com/home-assistant/home-assistant-notebooks.git/': Failed to connect to github.com port 443: Connection refused
s6-rc: warning: unable to start service init-notebooks: command exited 1
Collecting python-socks[asyncio]<3.0.0,>=2.0.0
  Downloading https://www.piwheels.org/simple/ ... .0-py3-none-any.whl (52 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 53.0/53.0 kB 9.7 kB/s eta 0:00:00
Requirement already satisfied: tornado>=6.2 in /usr/local/lib/python3.9/dist-packages (from jupyter-client->hass_pyscript_kernel) (6.2)
Requirement already satisfied: traitlets>=5.3 in /usr/local/lib/python3.9/dist-packages (from jupyter-client->hass_pyscript_kernel) (5.9.0)
Requirement already satisfied: python-dateutil>=2.8.2 in /usr/local/lib/python3.9/dist-packages (from jupyter-client->hass_pyscript_kernel) (2.8.2)
Requirement already satisfied: importlib-metadata>=4.8.3 in /usr/local/lib/python3.9/dist-packages (from jupyter-client->hass_pyscript_kernel) (6.0.0)
Requirement already satisfied: pyzmq>=23.0 in /usr/local/lib/python3.9/dist-packages (from jupyter-client->hass_pyscript_kernel) (25.0.0)
Requirement already satisfied: platformdirs>=2.5 in /usr/local/lib/python3.9/dist-packages (from jupyter-core->hass_pyscript_kernel) (3.1.1)
Requirement already satisfied: zipp>=0.5 in /usr/local/lib/python3.9/dist-packages (from importlib-metadata>=4.8.3->jupyter-client->hass_pyscript_kernel) (3.15.0)
Requirement already satisfied: six>=1.5 in /usr/local/lib/python3.9/dist-packages (from python-dateutil>=2.8.2->jupyter-client->hass_pyscript_kernel) (1.16.0)
Requirement already satisfied: idna>=2.0 in /usr/local/lib/python3.9/dist-packages (from yarl<2.0,>=1.0->aiohttp->hass_pyscript_kernel) (3.4)
Installing collected packages: python-socks, multidict, frozenlist, async-timeout, yarl, aiosignal, aiohttp, aiohttp-socks, hass_pyscript_kernel
Successfully installed aiohttp-3.8.4 aiohttp-socks-0.8.0 aiosignal-1.3.1 async-timeout-4.0.2 frozenlist-1.3.3 hass_pyscript_kernel-1.0.0 multidict-6.0.4 python-socks-2.2.0 yarl-1.8.2
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
installed new pyscript kernel in /usr/local/share/jupyter/kernels/pyscript
you will need to update the settings in /usr/local/share/jupyter/kernels/pyscript/pyscript.conf
s6-rc: info: service init-system-packages successfully started
s6-rc: info: service jupyter: starting
s6-rc: info: service jupyter successfully started
s6-rc: info: service nginx: starting
s6-rc: info: service nginx successfully started
/run/s6/basedir/scripts/rc.init: warning: s6-rc failed to properly bring all the services up! Check your logs (in /run/uncaught-logs/current if you have in-container logging) for more information.
prog: fatal: stopping the container.
s6-rc: info: service nginx: stopping
[17:09:51] INFO: Starting the Jupyter server...
[17:09:51] INFO: Service NGINX exited with code 256 (by signal 15)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service init-nginx: stopping
s6-rc: info: service jupyter: stopping
s6-rc: info: service init-nginx successfully stopped
[17:09:51] INFO: Service JupyterLab exited with code 256 (by signal 15)
s6-rc: info: service jupyter successfully stopped
回复

使用道具 举报

1

主题

9

帖子

70

积分

注册会员

Rank: 2

积分
70
金钱
61
HASS币
0
发表于 2023-4-15 17:17:37 | 显示全部楼层
楼主你好,我按照你说的安装并配置了pyscript和JupyterLab,但是JupyterLaby一直无法启动,上面是启动时候的部分日志。请问楼主知不知道哪里出错了呢?
回复

使用道具 举报

29

主题

913

帖子

4121

积分

论坛元老

Rank: 8Rank: 8

积分
4121
金钱
3198
HASS币
70
 楼主| 发表于 2023-4-15 17:44:42 | 显示全部楼层
MrMello 发表于 2023-4-15 17:17
楼主你好,我按照你说的安装并配置了pyscript和JupyterLab,但是JupyterLaby一直无法启动,上面是启动时候 ...

你的日志里面有这一行
fatal: unable to access 'https://github.com/home-assistant/home-assistant-notebooks.git/': Failed to connect to github.com port 443: Connection refused


你应该是没有配置科学上网,连接不了github。
我家全屋智能的HA设置 https://github.com/relliky/Tais_Home_Assistant_Config
回复

使用道具 举报

2

主题

27

帖子

296

积分

中级会员

Rank: 3Rank: 3

积分
296
金钱
269
HASS币
0
发表于 2023-4-15 21:24:34 | 显示全部楼层
太赞了
回复

使用道具 举报

1

主题

9

帖子

70

积分

注册会员

Rank: 2

积分
70
金钱
61
HASS币
0
发表于 2023-4-16 16:22:38 | 显示全部楼层
relliky 发表于 2023-4-15 17:44
你的日志里面有这一行
fatal: unable to access 'https://github.com/home-assistant/home-assistant-not ...

谢谢楼主,我在haos里面ping www.google.com确实ping不通,但是我的宿主机是可以科学上网的。那我是要在vmware里面调设置,还是在haos里安装什么东西,能让haos科学上网呢?
(我vmware里现在设置的是NAT模式)
回复

使用道具 举报

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

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-4-20 13:16 , Processed in 0.065449 second(s), 30 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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