跳转到内容
主菜单
主菜单
移至侧栏
隐藏
导航
Wiki首页
Domoticz 中文站
Domoticz 论坛
Domoticz Github
随机页面
特殊页面
特殊页面
所有页面
分类
最近更改
Domoticz
搜索
搜索
登录
个人工具
登录
查看“Dashticz V2 - Configuration”的源代码
页面
讨论
大陆简体
阅读
查看源代码
查看历史
工具
工具
移至侧栏
隐藏
操作
阅读
查看源代码
查看历史
常规
链入页面
相关更改
特殊页面
页面信息
←
Dashticz V2 - Configuration
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
Dashticz v2.0 可以通过修改 CONFIG.js 文件进行配置<br> 你可以在子目录 [dashticz]\custom 中找到此文件.<br> <br> 小贴士! 如果自定义布局无效,请检查你是否已经取消了 blocks/colums/screens 中所有你想要取消的注释代码。<br> <br> 在以下部分,CONFIG.js 将被分为不同的章节进行介绍. 每个章节都将说明如何使用.<br> <br> ===连接=== <syntaxhighlight lang="java"> var config = {} config['language'] = 'nl_NL'; //or: en_US, de_DE, fr_FR, hu_HU, it_IT, pt_PT, sv_SE config['domoticz_ip'] = 'http://192.168.1.3:8084'; config['domoticz_refresh'] = '5'; config['dashticz_refresh'] = '60'; </syntaxhighlight> <br> {| class="wikitable" ! style="font-weight: bold; color: white; background-color: orange; text-align: left;" | Parameter ! style="font-weight: bold; color: white; background-color: orange; text-align: left;" | 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仪表盘的刷新率 |} <br> ===Custom Parameters=== <syntaxhighlight lang="java"> config['domoticz_ip'] = 'http://192.168.1.3:8084'; config['user_name'] = 'domoticz username'; config['pass_word'] = 'domoticz password'; config['loginEnabled'] = 0; config['app_title'] = 'Dashticz'; config['domoticz_refresh'] = '5'; config['dashticz_refresh'] = '60'; config['default_news_url'] = 'http://www.nu.nl/rss/algemeen'; config['news_scroll_after'] = '7'; config['standby_after'] = 0; config['auto_swipe_back_to'] = 1; config['auto_swipe_back_after'] = '10'; config['auto_slide_pages'] = 0; config['slide_effect'] = 'slide'; config['standard_graph'] = 'month'; config['language'] = 'nl_NL'; config['timeformat'] = 'DD-MM-YY HH:mm'; config['calendarformat'] = 'dd DD.MM HH:mm'; config['calendarlanguage'] = 'nl_NL'; config['calendarurl'] = 0; config['boss_stationclock'] = 'RedBoss'; config['gm_api'] = 'AIzaSyD9fNWJVBKWzJwwPiovjDYabTFc0n22AAw'; config['gm_zoomlevel'] = 0; config['gm_latitude'] = 0; config['gm_longitude'] = 0; config['wu_api'] = 'a14940b730424939'; config['wu_city'] = 'Eindhoven'; config['wu_name'] = ''; config['wu_country'] = 'NL'; config['idx_moonpicture'] = 0; config['switch_horizon'] = 0; config['host_nzbget'] = 'http://192.168.1.3:6789'; config['spot_clientid'] = '1112f16564cf4f4d93ccbe8b52c58a44'; config['selector_instead_of_buttons'] = 0; config['auto_positioning'] = 1; config['use_favorites'] = 1; config['last_update'] = 1; config['hide_topbar'] = 0; config['hide_seconds'] = 0; config['hide_seconds_stationclock'] = 0; config['use_fahrenheit'] = 0; config['use_beaufort'] = 0; config['translate_windspeed'] = 1; config['static_weathericons'] = 1; config['hide_mediaplayer'] = 0; config['settings_icons'] = ["settings", "fullscreen"]; config['shortdate'] = 'D MMM'; config['longdate'] = 'D MMMM YYYY'; config['shorttime'] = 'HH:mm'; config['longtime'] = 'HH:mm:ss'; config['weekday'] = 'dddd'; config['no_rgb'] = 1; config['standby_call_url'] = '' ; config['standby_call_url_on_end'] = '' ; config['hide_off_button'] = 1; </syntaxhighlight><br> {| class="wikitable" ! style="font-weight: bold; color: white; background-color: orange; text-align: left;" | Paramater ! style="font-weight: bold; color: white; background-color: orange; text-align: left;" | Value ! style="font-weight: bold; color: white; background-color: orange; text-align: left;" | Description |- | config['domoticz_ip'] = | 'http://192.168.1.3:8084'; | 安装 Domoticz 的地址和端口号 |- | config['user_name'] = | 'username' | Domoticz 的用户名 |- | config['pass_word'] = | 'password' | Domoticz 的密码 |- | config['loginEnabled'] = | 0 / 1 | 使能是否想从 dashticz 中登陆 |- | config['app_title'] | 'Dashticz' | 仪表盘的名称 - 显示在顶栏(see also: http://www.domoticz.com/wiki/Dashticz_V2_-_Custom_Applications#Module_-_Topbar) |- | config['domoticz_refresh'] | [SECONDS] | 从 Domoticz 获取信息的秒数 |- | config['dashticz_refresh'] | [SECONDS] | 刷新 Dashticz 仪表盘的秒数 |- | | config['default_news_url'] | [RSSFEED URL] | 例如. 'http://www.nu.nl/rss/algemeen' 如果无效, 尝试在 URL 前面增加 <nowiki>'https://cors-anywhere.herokuapp.com/'</nowiki> (i.e. <nowiki>'https://cors-anywhere.herokuapp.com/http://www.nu.nl/rss/algemeen'</nowiki>) |- | config['news_scroll_after'] | [SECONDS] | 输入滚动时间 (delay) |- | config['standby_after'] | 0 / [MINUTES] | 输入保留时间: 5 (5 分钟) |- | config['auto_swipe_back_to'] | [SCREEN NR] | 当没有活动的时候, 回滚到选择的页面 |- | config['auto_swipe_back_after'] | [SECONDS] | 定义回滚到指定页面的时间 |- | config['auto_slide_pages'] | false / [SECONDS] | 每 x 秒循环并改变页面, 设置config['auto_swipe_back_after'] = 0 |- | config['slide_effect'] | 'slide' or 'fade' or 'cube' or 'coverflow' or 'flip' | 控制你喜欢的屏幕滑块效果 |- | config['standard_graph'] | [HOUR/MONTH/DAY] | Dashticz 仪表板上显示的默认图形 |- | config['language'] | [LANGUAGE] | Dashticz 的语言 |- | config['timeformat'] | [TIMEFORMAT] | 配置时间显示格式 - Default: 'DD-MM-YY HH:mm' |- | config['calendarformat'] | [CALENDARFORMAT] | 配置日历 Date/Time 格式 - Default: 'dd DD.MM HH:mm' |- | config['calendarlanguage'] | [LANGUAGE] | Controls the weather dates and garbage pickup dates language |- | config['calendarurl'] | [URL] | 配置日历的 URL, 如果你只有一个日历(ICS) |- | config['boss_stationclock'] | NoBoss / BlackBoss / RedBoss / ViennaBoss | 配置时钟类型 - Default: RedBoss |- | config['gm_api'] | [API KEY] | 使用 Google Maps 功能的 API key |- | config['gm_latitude'] | [LATITUDE] | 输入 Google Maps 中要使用的纬度 |- | config['gm_longitude'] | [LONGITUDE] | 输入 Google Maps 中要使用的经度 |- | config['gm_zoomlevel'] | [ZOOMLEVEL] | Enter a number between 1..15 to determine the area shown in the map. 1 = Whole world, higher number smaller are, more detail. |- | config['wu_api'] | [API KEY] | Put here your API key for Wundergrond Weather. You can get a API key at https://www.wunderground.com/weather/api/d/pricing.html '. ''Edit: You can no longer get a free API key from Wunderground''' |- | config['wu_city'] | [CITY] | Put here your weather city |- | config['wu_country'] | [COUNTRY] | Put here your weather country |- | config['wu_name'] | [CITY] | Alternative display name of your city |- | config['idx_moonpicture'] = 0; | [IDX] | The IDX number from the user variable MoonPicture (see also https://www.domoticz.com/wiki/Dashticz_V2_-_Custom_Applications#Module_-_Moonphases) |- | config['switch_horizon'] | [ZIGGO URL] | (Only Dutch users) If you have a Ziggo Horizon box, you can add this here |- | config['host_nzbget'] | [IP ADDRESS:PORT NUMBER] | Configure the IP Address and Portnumber of your NZB Host |- | config['spot_clientid'] | [CLIENTID] | Configure your Spotify Client ID (see also https://www.domoticz.com/wiki/Dashticz_V2_-_Custom_Applications#Module_-_Spotify) |- | config['selector_instead_of_buttons'] | 0 / 1 | Show selector as buttons (0) or dropdown menu (1) |- | config['auto_positioning'] | 0 / 1 | Configure the ability to define your own positioning for the buttons (in combination with config['use_favorites']) |- | config['use_favorites'] | 0 / 1 | If use auto positioning, then this item should be 1 |- | config['last_update'] | 0 / 1 | Show when the device is updated for the last time |- | config['hide_topbar'] | 0 / 1 | Hide or Show topbar (see also: http://www.domoticz.com/wiki/Dashticz_V2_-_Custom_Applications#Module_-_Topbar) |- | config['hide_seconds'] | 0 / 1 | Show the seconds of the clock |- | config['hide_seconds'] | 0 / 1 | Configure if you like to show seconds in the Time (Titlebar / block) |- | config['hide_seconds_stationclock'] | 0 / 1 | Configure if you like to show seconds in the StationClock |- | config['use_fahrenheit'] | 0 / 1 | Select temperature in Celcius (Default) of Fahrenheit |- | config['use_beaufort'] | 0 / 1 | Use Bft instead of m/s for windspeed |- | config['translate_windspeed'] | 0 / 1 | For windspeed use north northwest instead of NNW |- | config['static_weathericons'] | 0 / 1 | Use Static or 'moving' weather icons |- | config['hide_mediaplayer'] | 0 / 1 | When you have a mediaplayer connected, hide it when nothing is playing |- | config['selector_instead_of_buttons'] | 0 / 1 | Use buttons for the selector switch in stead of the dropdown menu |- | config['settings_icons'] | ["settings", "fullscreen"] | Show the given icons if the settings block is selected. Available: "settings", "fullscreen" |- | config['shortdate'] | 'D MMM' | Short format for dates, see https://momentjs.com/ for all options. |- | config['longdate'] | 'D MMMM YYYY' | Long format for dates, see https://momentjs.com/ for all options. |- | config['shorttime'] | HH:mm | Short format for time, see https://momentjs.com/ for all options. |- | config['longtime'] | HH:mm:ss | Long format for time, see https://momentjs.com/ for all options. |- | config['weekday'] | 'dddd' | Format to show the weekday, see https://momentjs.com/ for all options. |- | config['no_rgb'] | 0 / 1 | Hide or show RGB button on switch |- | config['standby_call_url'] | [URL] | Enter the url for adjusting the brightness when entering stand-by mode |- | config['standby_call_url_on_end'] | [URL] | Enter the url for adjusting the brightness when exiting stand-by mode |- | config['hide_off_button'] | 0 / 1 | Hide off button of selector switch |} <br> === Buttons=== 默认情况下,Dashticz v2.0带有几个预定义的按钮。 <br> 框架中的按钮和图片可以打开网页,如新闻网站或者天气预报。<br> 要使用的按钮可以通过 CUSTOM POSITIONING 放在你想要的位置。<br> <syntaxhighlight lang="java"> var buttons = {} buttons.buienradar = {width:12, isimage:true, refreshimage:60000, image: 'http://api.buienradar.nl/image/1.0/RadarMapNL?w=285&h=256', url: 'http://www.weer.nl/verwachting/nederland/son/189656/'} buttons.radio = {width:12, image: 'img/radio_on.png', title: 'Radio', url: 'http://nederland.fm'} buttons.nunl = {width:12, icon: 'fa-newspaper-o', title: 'Nu.nl', url: 'http://www.nu.nl'} buttons.webcam = {width:12, isimage:true, refresh:2000, image: 'http://ip_url_to_webcam', url: 'http://ip_url_to_webcam'} buttons.log = {key:'log', width:12, icon:'fa-microchip', title: 'Domoticz Log', log:true, level: 2} </syntaxhighlight> <br> {| class="wikitable" ! style="font-weight: bold; color: white; background-color: orange; text-align: left;" | Parameter ! style="font-weight: bold; color: white; background-color: orange; text-align: left;" | Description |- | var buttons = {} | Mandatory - 定义按钮代码块 |- | buttons.buienradar | width - 定义按钮的宽度 (default = 12) isimage (true/false) - 定义是否要为 buienradar 显示图像 refreshimage:60000 - 定义图像的刷新时间(in ms) image - 定义想要显示的图像(isimage:true) url - 定义 buienradar 的 URL 连接(改变你的场景) |- | buttons.radio | width - 定义按钮的宽度 (default = 12) image - 定义图片 (default = 'img/radio_on.png') title- 定义标题 (default = 'Radio') url - 定义网络电台的 URL (default = 'http://nederland.fm) |- | buttons.nunl | width - 定义按钮的宽度 (default = 12) icon - 定义按钮图标 (default = 'fa-newspaper-o') title - 定义标题 (default = 'Nu.nl') url - 定义 nu.nl 的URL (default = 'http://www.nu.nl') |- | buttons.webcam | width - 定义按钮的宽度 (default = 12) isimage (true/false) - 定义是否要为 webcam 显示图像 refreshimage:2000 - 定义图像的刷新时间 (in ms) image - 定义你想要显示的图像 (isimage:true) url - 为 webcam 定义 URL (改变你的场景) |- | buttons.log | key:'log', width:12, icon:'fa-microchip', title: 'Domoticz Log', log:true, level: 2 |} <br> ---- {| width="40%" |- valign="top" | width="16.6%" align="center" | [[file:dv2-home.png|link=Dashticz_V2]] | width="16.6%" align="center" | [[file:dv2-positioning.png|link=Dashticz V2 - Positioning]] |} {| width="40%" |- valign="top" | width="16.6%" align="center" | '''Dashticz V2.0 主页''' | width="16.6%" align="center" | '''布局''' |} [[Category:Domoticz]] [[Category:Customization]]
返回
Dashticz V2 - Configuration
。
开关有限宽度模式