Dashticz V2 - Installation:修订间差异

来自Domoticz
(创建页面,内容为“To install Dashticz v2.0, download the latest version from Dashticz V2 on Github (https://github.com/robgeerts/dashticz_v2). Create a map in the domoticz\www\<subfo...”)
 
(似懂非懂移动页面Dashticz V2 - 安装Dashticz V2 - Installation
 
(未显示同一用户的5个中间版本)
第1行: 第1行:
To install Dashticz v2.0, download the latest version from Dashticz V2 on Github (https://github.com/robgeerts/dashticz_v2).
安装 Dashticz v2.0,从 Github 上下载 Dashticz V2 的最新版本(https://github.com/robgeerts/dashticz_v2).  
Create a map in the domoticz\www\<subfolder>, for example domoticz\www\dashboard and unzip all the files in that folder.


It is also possible to install Dashticz v2 through Github with the git clone command. How is it done?
在 domoticz\www\<subfolder> 创建一个目录,例如 domoticz\www\dashboard,然后解压所有文件到这个文件夹中。


* Logon to your system with SSH and go to the \domoticz\www folder with the command "cd domoticz/www" (without the ")
也可以使用 git clone 命令通过 Github 来安装 Dashticz v2。如何做呢?
* Enter the command:
 
* 通过 SSH 登陆到你的系统,通过 "cd domoticz/www" (没有") 命令进入到 \domoticz\www 文件夹
* 输入如下命令:
<br>
<br>
<code>git clone <span class="plainlinks">[https://github.com/robgeerts/dashticz_v2 https://github.com/robgeerts/dashticz_v2]</span></code> (for master branch) or<br>
<code>git clone <span class="plainlinks">[https://github.com/robgeerts/dashticz_v2 https://github.com/robgeerts/dashticz_v2]</span></code> (for master branch) 或者<br>
<br>
<br>
<code>git clone <span class="plainlinks">[https://github.com/robgeerts/dashticz_v2 https://github.com/robgeerts/dashticz_v2]</span> --branch beta </code> (for beta branch)<br>
<code>git clone <span class="plainlinks">[https://github.com/robgeerts/dashticz_v2 https://github.com/robgeerts/dashticz_v2]</span> --branch beta </code> (for beta branch)<br>
<br>
<br>
* Dashticz v2.0 will be cloned into the \domoticz\www\dashticz_v2 folder.
* Dashticz v2.0 将被克隆到 \domoticz\www\dashticz_v2 文件夹.
<br>
<br>
If you like Dashticz v2.0 to be cloned into an other directory (example 'dashboard') enter:<br>
如果你想将 Dashticz v2.0 克隆到其他目录(例如'dashboard') 输入:<br>
<br>
<br>
<code>git clone <span class="plainlinks">[https://github.com/robgeerts/dashticz_v2 https://github.com/robgeerts/dashticz_v2 dashboard]</span></code> (for master branch) or<br>
<code>git clone <span class="plainlinks">[https://github.com/robgeerts/dashticz_v2 https://github.com/robgeerts/dashticz_v2 dashboard]</span></code> (for master branch) or<br>
第20行: 第21行:
<br>
<br>


After the installation is finished, go to the '''/domoticz/www/<dashticzv2 folder>/custom/''' folder, copy the CONFIG_DEFAULT.js file to CONFIG.js (mind the CAPITALS!).<br>
安装完成后, 进入到 '''/domoticz/www/<dashticzv2 folder>/custom/''' 文件夹, 复制 CONFIG_DEFAULT.js 文件到 CONFIG.js (mind the CAPITALS!).<br>
<br>
<br>
<code>cd domoticz/www/<dashticzv2 folder>/custom/</code><br>
<code>cd domoticz/www/<dashticzv2 folder>/custom/</code><br>
<code>cp CONFIG_DEFAULT.js CONFIG.js</code><br>
<code>cp CONFIG_DEFAULT.js CONFIG.js</code><br>
<br>
<br>
If you installed Dashticz V2 with the git clone command, than it's possible to update to the latest version:
如果你通过 git clone 命令安装 Dashticz V2,你可以通过以下方法更新到最新版本:
* Logon to your system with SSH and go to the '''\domoticz\www\<dashticzv2 folder>''' folder
 
* Enter <code>git pull</code> and there will be looked if there is an update from the current version. WARNING! First make a backup of the custom folder otherwise some files may be overwritten.
* 通过 SSH 登陆到你的系统,进入 '''\domoticz\www\<dashticzv2 folder>''' 文件夹
* 输入 <code>git pull</code> 会自动检查当前版本是否有更新。-警告!- 首先备份 custom 文件夹,否则某些文件可能会被重写。
<br>
<br>
By default, Dashticz V2 will show all your Domoticz favorites on the dashboard. You just have to edit the CONFIG.js file with the basics. <br>
默认, Dashticz V2 将显示所有在你仪表盘中的 Domoticz 收藏。 你只需要在 CONFIG.js 中做些基本的修改. <br>
Remove the '''/*''' at the beginning and '''*/''' at the end, next fill in YOUR IP Address and Port number for YOUR Domoticz installation!
移除前面的 '''/*''' 和最后的 '''*/''' ,然后填写你安装的 Domoticz 的IP 地址和端口号!


<syntaxhighlight lang="java">
<syntaxhighlight lang="java">
第45行: 第47行:
|-
|-
|config['language']
|config['language']
|can be used to select the language, Chinese (cn_CN), Cestina (cz_CZ), Danish(dk_DK), German (de_DE), English (en_US), Spanish (es_ES), Finnish (fi_FI), French (fr_FR), Hungarian (hu_HU), Italian (it_IT), Dutch (nl_NL), Norwegian (no_NO), Polish (pl_PL) Portuguese (pt_PT), Russian (ru_RU), Slovak (sk_SK), Slovenian (si_SI), Swedish (sv_SV) or Ukrainian (ua_UA)
|可以选择的语言有, 汉语(cn_CN), 捷克语(cz_CZ), 丹麦语(dk_DK), 德语(de_DE), 英语(en_US), 西班牙语(es_ES), 芬兰语(fi_FI), 法语(fr_FR), 匈牙利语(hu_HU), 意大利语(it_IT), 芬兰语(nl_NL), 挪威语(no_NO), 波兰语(pl_PL) 葡萄牙语(pt_PT), 俄语(ru_RU), 斯洛伐克语(sk_SK), 斯洛维尼亚语(si_SI), 瑞典语(sv_SV) 或者乌克兰语(ua_UA)
|-
|-
| config['domoticz_ip']
| config['domoticz_ip']
| is the URL to your Domoticz installation (with the correct PORT address)
| 安装的 Domoticz 的 URL 地址(包含正确端口号的地址)
|-
|-
| config['domoticz_refresh']
| config['domoticz_refresh']
| the refresh rate of Dashticz v2.0 to get information from Domoticz
| Dashticz v2.0仪表盘从 Domoticz 读取信息的刷新率
|-
|-
| config['dashticz_refresh']
| config['dashticz_refresh']
| the refresh rate of the Dashticz v2.0 Dashboard
| Dashticz v2.0仪表盘的刷新率
|-
|-
|}
|}
<br>
<br>


Now you can browse to the dashboard: <span class="plainlinks">[http://192.168.1.3:8084/dashticzv2folder/ http://192.168.1.3:8084/<dashticz v2 folder>/]</span><br>
现在你可以浏览仪表盘: <span class="plainlinks">[http://192.168.1.3:8084/dashticzv2folder/ http://192.168.1.3:8084/<dashticz v2 folder>/]</span><br>
Replace 192.168.1.3:8084 with YOUR IP Address and Port number for YOUR Domoticz installation!
替换192.168.1.3:8084 为你 Domoticz 安装的 IP 和端口号!
<br><br>
<br><br>
----
----
第70行: 第72行:
{| width="40%"
{| width="40%"
|- valign="top"
|- valign="top"
| width="16.6%" align="center" | '''Dashticz V2.0 Main Page'''
| width="16.6%" align="center" | '''Dashticz V2.0 主页'''
| width="16.6%" align="center" | '''Configuration'''
| width="16.6%" align="center" | '''配置'''
|}
|}


[[Category:Domoticz]]
[[Category:Domoticz]]
[[Category:Customization]]
[[Category:Customization]]

2018年8月2日 (四) 18:15的最新版本

安装 Dashticz v2.0,从 Github 上下载 Dashticz V2 的最新版本(https://github.com/robgeerts/dashticz_v2).

在 domoticz\www\<subfolder> 创建一个目录,例如 domoticz\www\dashboard,然后解压所有文件到这个文件夹中。

也可以使用 git clone 命令通过 Github 来安装 Dashticz v2。如何做呢?

  • 通过 SSH 登陆到你的系统,通过 "cd domoticz/www" (没有") 命令进入到 \domoticz\www 文件夹
  • 输入如下命令:


git clone https://github.com/robgeerts/dashticz_v2 (for master branch) 或者

git clone https://github.com/robgeerts/dashticz_v2 --branch beta (for beta branch)

  • Dashticz v2.0 将被克隆到 \domoticz\www\dashticz_v2 文件夹.


如果你想将 Dashticz v2.0 克隆到其他目录(例如'dashboard') 输入:

git clone https://github.com/robgeerts/dashticz_v2 dashboard (for master branch) or

git clone https://github.com/robgeerts/dashticz_v2 --branch beta dashboard (for beta branch)

安装完成后, 进入到 /domoticz/www/<dashticzv2 folder>/custom/ 文件夹, 复制 CONFIG_DEFAULT.js 文件到 CONFIG.js (mind the CAPITALS!).

cd domoticz/www/<dashticzv2 folder>/custom/
cp CONFIG_DEFAULT.js CONFIG.js

如果你通过 git clone 命令安装 Dashticz V2,你可以通过以下方法更新到最新版本:

  • 通过 SSH 登陆到你的系统,进入 \domoticz\www\<dashticzv2 folder> 文件夹
  • 输入 git pull 会自动检查当前版本是否有更新。-警告!- 首先备份 custom 文件夹,否则某些文件可能会被重写。


默认, Dashticz V2 将显示所有在你仪表盘中的 Domoticz 收藏。 你只需要在 CONFIG.js 中做些基本的修改.
移除前面的 /* 和最后的 */ ,然后填写你安装的 Domoticz 的IP 地址和端口号!

var config = {}
config['language'] = 'nl_NL'; //or: en_US, de_DE, fr_FR, hu_HU, it_IT, pt_PT, sv_SV
config['domoticz_ip'] = 'http://192.168.1.3:8084';
config['domoticz_refresh'] = '5';
config['dashticz_refresh'] = '60';


Parameter Description
config['language'] 可以选择的语言有, 汉语(cn_CN), 捷克语(cz_CZ), 丹麦语(dk_DK), 德语(de_DE), 英语(en_US), 西班牙语(es_ES), 芬兰语(fi_FI), 法语(fr_FR), 匈牙利语(hu_HU), 意大利语(it_IT), 芬兰语(nl_NL), 挪威语(no_NO), 波兰语(pl_PL) 葡萄牙语(pt_PT), 俄语(ru_RU), 斯洛伐克语(sk_SK), 斯洛维尼亚语(si_SI), 瑞典语(sv_SV) 或者乌克兰语(ua_UA)
config['domoticz_ip'] 安装的 Domoticz 的 URL 地址(包含正确端口号的地址)
config['domoticz_refresh'] Dashticz v2.0仪表盘从 Domoticz 读取信息的刷新率
config['dashticz_refresh'] Dashticz v2.0仪表盘的刷新率


现在你可以浏览仪表盘: http://192.168.1.3:8084/<dashticz v2 folder>/
替换192.168.1.3:8084 为你 Domoticz 安装的 IP 和端口号!


Dashticz V2.0 主页 配置