yyk8754
发表于 2022-5-1 13:26:20
nodered不好用吗
隔壁的王叔叔
发表于 2022-5-4 13:53:25
多谢大神,看看教程
heartcrush
发表于 2022-5-4 15:14:41
感谢大佬分享
kangdongsr
发表于 2022-5-7 17:37:43
高手啊,学习
jpcugv
发表于 2022-5-18 13:49:35
你好大佬,我把Pyscript kernel 安装在debian11的虚拟机里面,然后HAOS集成也安装了pyscript,add-on也安装了JupyterLab,但是按照你的方法配置JupyterLab,为何起不来?
relliky
发表于 2022-5-19 03:11:13
本帖最后由 relliky 于 2022-5-19 03:57 编辑
jpcugv 发表于 2022-5-18 13:49
你好大佬,我把Pyscript kernel 安装在debian11的虚拟机里面,然后HAOS集成也安装了pyscript,add-on也安装 ...
你要不看看JupyterLab addon启动的日志?
relliky
发表于 2022-5-19 04:02:42
yyk8754 发表于 2022-5-1 13:26
nodered不好用吗
你好像连我写的第一句话都没读完。。。。
dcopyboy
发表于 2022-5-19 10:56:52
彻底弃用HA模版Jinja了,因为Python更好更容易 [修改]
jpcugv
发表于 2022-5-19 11:21:51
relliky 发表于 2022-5-19 03:11
你要不看看JupyterLab addon启动的日志?
配置如下:
github_access_token: ghp_srHauWoOzGtqNm0vRTPxxxxxxx
init_commands:
- pip install hass_pyscript_kernel
- jupyter pyscript install
- >-
echo "" >
/usr/local/share/jupyter/kernels/pyscript/pyscript.conf
- >-
echo "hass_host = 192.168.100.98" >>
/usr/local/share/jupyter/kernels/pyscript/pyscript.conf
- >-
echo "hass_url = http://supervisor/core/" >>
/usr/local/share/jupyter/kernels/pyscript/pyscript.conf
- >-
echo "hass_token = $SUPERVISOR_TOKEN" >>
/usr/local/share/jupyter/kernels/pyscript/pyscript.conf
system_packages: []
#########################
错误日志:
making user provided files available at /var/run/s6/etc...exited 0.
ensuring user provided files have correct perms...exited 0.
applying ownership & permissions fixes...
done.
executing container initialization scripts...
00-banner.sh: executing...
-----------------------------------------------------------
Add-on: JupyterLab
Create documents containing live code, equations, visualizations, and explanatory text
-----------------------------------------------------------
Add-on version: 0.7.0
You are running the latest version of this add-on.
System: Home Assistant OS 8.0(amd64 / qemux86-64)
Home Assistant Core: 2022.5.2
Home Assistant Supervisor: 2022.05.2
-----------------------------------------------------------
Please, share the above information when looking for help
or support in, e.g., GitHub, forums or the Discord chat.
-----------------------------------------------------------
00-banner.sh: exited 0.
01-log-level.sh: executing...
01-log-level.sh: exited 0.
jupyter.sh: executing...
jupyter.sh: exited 0.
nginx.sh: executing...
nginx.sh: exited 0.
notebooks.sh: executing...
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.
Already up to date.
fatal: cannot change to '/config/notebooks//bokeh-examples': No such file or directory
fatal: cannot change to '/config/notebooks/bokeh-examples': No such file or directory
notebooks.sh: exited 128.
executing container finish scripts...
99-message.sh: executing...
-----------------------------------------------------------
Oops! Something went wrong.
We are so sorry, but something went terribly wrong when
starting or running this add-on.
Be sure to check the log above, line by line, for hints.
-----------------------------------------------------------
99-message.sh: exited 0.
done.
waiting for services.
sending all processes the TERM signal.
jpcugv
发表于 2022-5-19 12:18:43
relliky 发表于 2022-5-19 03:11
你要不看看JupyterLab addon启动的日志?
大佬,我不是很明白为何配置kernels还需要在http://supervisor/core这里面?我看了一下我的这个容器,里面并没有kernels,我的kernels实在debian里面安装的并且配置了pyscript.conf了,感谢大佬答复
echo "" >
/usr/local/share/jupyter/kernels/pyscript/pyscript.conf
- >-
echo "hass_host = 192.168.1.8" >>
/usr/local/share/jupyter/kernels/pyscript/pyscript.conf
- >-
echo "hass_url = http://supervisor/core/" >>
/usr/local/share/jupyter/kernels/pyscript/pyscript.conf
- >-
echo "hass_token = $SUPERVISOR_TOKEN" >>
/usr/local/share/jupyter/kernels/pyscript/pyscript.conf
页:
1
2
3
[4]
5
6
7
8
9
10
11
12
13