星辰大海 发表于 2021-10-18 11:47:15

大神这个代码都要输入到什么地方,纯小白一枚,讲讲好吗
:loveliness:

muxiachuixue 发表于 2021-10-18 11:53:34

星辰大海 发表于 2021-10-18 11:47
大神这个代码都要输入到什么地方,纯小白一枚,讲讲好吗

帖子里不是说的很清楚吗?

星辰大海 发表于 2021-10-18 11:56:59

muxiachuixue 发表于 2021-10-18 11:53
帖子里不是说的很清楚吗?

我是刚刚接触。很多不懂。大神指点一下我。是在这个Terminal & SSH插件里面输入代码吗:loveliness:

muxiachuixue 发表于 2021-10-18 12:04:20

星辰大海 发表于 2021-10-18 11:56
我是刚刚接触。很多不懂。大神指点一下我。是在这个Terminal & SSH插件里面输入代码吗 ...

你要先远程连接到装HA的服务器(树莓派、N1或者其他),然后去服务器上面对应文件位置修改啊,修改的路径帖子里面有了。至于SSH用法、linux的基础这些我不可能在帖子里面讲吧,这些基础的东西google一下都能找到答案

星辰大海 发表于 2021-10-18 12:09:46

muxiachuixue 发表于 2021-10-18 12:04
你要先远程连接到装HA的服务器(树莓派、N1或者其他),然后去服务器上面对应文件位置修改啊,修改的路径 ...

好的谢谢。

wison 发表于 2021-10-18 14:01:13

Could not authenticate with GitHub, try again later.

这个是什么原因

se7enxl 发表于 2021-10-18 14:50:47

运行replace_hacs_download_mirror.sh后显示
replace_hacs_download_mirror.sh:lin 9: sudo:not found
replace_hacs_download_mirror.sh:lin 13: sudo:not found
这是replace_hacs_download_mirror.sh文件里的内容# Run this file with sh command to auto REPLACE the github download website in HACS download.py file /config/custom_components/hacs/helpers/functions/download.py
# Script by chuixue
#! /bin/bash

# The following is the default download.py file path. Change it if yours is not the current path.
download_py_path="/usr/share/hassio/homeassistant/custom_components/hacs/helpers/functions/download.py"

# Delete the old lines if it is available
sudo sed-i '/url = url.replace("raw.githubusercontent.com", "raw.fastgit.org")/,/url = url.replace("\/\/github.com\/", "\/\/hub.fastgit.org\/")/d' $download_py_path


# Add the new lines
sudo sed -i '/if "tags\/" in url:/i\    url = url.replace("raw.githubusercontent.com", "raw.fastgit.org")\n    if "releases/download/" in url or "archive/refs/" in url:\n      url = url.replace("//github.com/", "//hub.fastgit.org/")' $download_py_path

muxiachuixue 发表于 2021-10-18 17:18:09

se7enxl 发表于 2021-10-18 14:50
运行replace_hacs_download_mirror.sh后显示
replace_hacs_download_mirror.sh:lin 9: sudo:not found
r ...

sudo 没安装好或者没添加到环境变量,百度或者google一下很容易找到解决方案

pv0402 发表于 2021-10-18 17:26:05

大神请教一下,我是docker安装的homeassistant container,手动安装的hacs最新版1.15,按照操作前两步都正常,第三步添加源的界面跟你的不一样,也添加不上,翻译过来是主服务器的存储结构不兼容,请问是怎么回事呀?

muxiachuixue 发表于 2021-10-18 17:40:55

pv0402 发表于 2021-10-18 17:26
大神请教一下,我是docker安装的homeassistant container,手动安装的hacs最新版1.15,按照操作前两步都正 ...

看帖不仔细啊:HACS-加载项-加载项商店-右上角添加新的repo,地址填:http://github.com/hassio-addons/repository       HACS进去后选加载项,不是选集成
页: 1 2 3 [4] 5 6 7 8 9 10 11 12 13
查看完整版本: 手把手教你解决HACS无法访问github问题:无需科学上网