- 积分
- 863
- 金钱
- 805
- 威望
- 0
- 贡献
- 0
- HASS币
- 40
超级版主
- 积分
- 863
- 金钱
- 805
- HASS币
- 40
|
本帖最后由 charley 于 2018-3-26 00:17 编辑
部分同学发现node-red的密码登录不上其实是nodejs的底层crash引起的,正在寻找解决方案
简介
逆行的虫子的hass.io组件仓库 以后我收集和编译的Hass.io的插件发布在此
现此仓库插件列表
- Node-Red
此仓库安装方式
在hass.io 的 ADD-ON STORE 选项卡添加我的插件仓库 (https://github.com/charleyzhu/hassio-addons)
Node-Red 安装配置
-
在hass.io 的 ADD-ON STORE 选项卡添加我的插件仓库 (https://github.com/charleyzhu/hassio-addons)
-
选择 Node-Red 组件安装
-
(可选) 如果你需要使用HomeKit请将packages组数设置为这样
{
"log_level": "info",
"avahi_interfaces": "",
"avahi_hostname": "",
"avahi_domainname": "local",
"enable_ipv6": true,
"boot_commands": [],
"packages": [
"make",
"g++",
"avahi-compat-libdns_sd",
"python",
"avahi-dev",
"py-rpigpio"
],
"init_commands": [],
"plugins": [],
"ssl": false,
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"users": [
{
"username": "admin",
"password": "password",
"permissions": "*"
}
],
"http_node_user": [
{
"username": "admin",
"password": "password"
}
],
"projects": false
}
-
(可选) 开启SSL(HTTPS)支持请将ssl设置为true
{
"log_level": "info",
"avahi_interfaces": "",
"avahi_hostname": "",
"avahi_domainname": "local",
"enable_ipv6": true,
"boot_commands": [],
"packages": [],
"init_commands": [],
"plugins": [],
"ssl": true,
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"users": [
{
"username": "admin",
"password": "password",
"permissions": "*"
}
],
"http_node_user": [
{
"username": "admin",
"password": "password"
}
],
"projects": false
}
-
(可选) 如果你想禁用Web页面的用户认证请删除users数组中的对象来禁用验证,如下
{
"ssl": true,
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"users": [
],
"projects": false
}
-
(可选) 如果你想禁用Dashboard UI页面的用户认证请删除http_node_user数组中的对象来禁用验证,如下
{
"ssl": true,
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"http_node_user": [
],
"projects": false
}
-
(可选) 如果你想设置一个用户只读用户可以参考users数组中的user2用户的permissions选项
{
"ssl": true,
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"users": [
{
"username": "admin",
"password": "password",
"permissions": "*"
},
{
"username": "user2",
"password": "password2",
"permissions": "read"
}
],
"projects": false
}
-
(可选) 启用projects功能(v0.18.x)设置 projects true 参考 Node-RED Projects
{
"ssl": true,
"certfile": "fullchain.pem",
"keyfile": "privkey.pem",
"users": [
{
"username": "admin",
"password": "password",
"permissions": "*"
}
],
"http_node_user": [
{
"username": "admin",
"password": "password"
}
],
"projects": true
}
-
点击Start启动插件
-
(可选)配置 panel_iframe 将Node-Red 嵌入到Home Assistant:
panel_iframe:
nodered_flows:
title: 'Node-RED Flows'
url: 'http://hassio.local:1880'
icon: mdi:nodejs
-
(可选) 如果你安装了Node-RED Dashboard 可以将:Node-RED Dashboard嵌入到Home Assistant:
panel_iframe:
nodered_ui:
title: 'Node-RED Dashboard'
url: 'http://hassio.local:1880/ui'
icon: mdi:nodejs
-
(可选) 安装 node-red-contrib-home-assistant 调用 Home Assistant
反馈
如果你使用中遇到了问题请到 BBS 反馈
更新日志
0.1.0 (2018-03-14)
Initial Release
|
评分
-
查看全部评分
|