{"id":269,"date":"2019-11-26T21:32:52","date_gmt":"2019-11-26T21:32:52","guid":{"rendered":"http:\/\/jeedom.sigalou-domotique.fr\/lancer-deux-instances-de-jeedom-chrome-sur-deux-moniteurs-sur-le-meme-pc"},"modified":"2024-04-21T13:17:26","modified_gmt":"2024-04-21T11:17:26","slug":"lancer-deux-instances-de-jeedom-chrome-sur-deux-moniteurs-sur-le-meme-pc","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/zh\/lancer-deux-instances-de-jeedom-chrome-sur-deux-moniteurs-sur-le-meme-pc","title":{"rendered":"\u5728\u540c\u4e00\u53f0PC\u4e0a\u7684\u4e24\u53f0\u663e\u793a\u5668\u4e0a\u542f\u52a8\u4e24\u4e2aJeedom(Chrome)\u5b9e\u4f8b"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-267\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/11\/chrome.png\" alt=\"\u94ec \u94ec\" width=\"227\" height=\"130\" \/><\/p>\n<p>\u5982\u679c\u60a8\u5e0c\u671b\u5728\u540c\u4e00\u53f0\u8ba1\u7b97\u673a\u4e0a\u6253\u5f00\u4e24\u4e2aChrome\u5b9e\u4f8b\uff08\u6709\u4e24\u4e2a\u4e0d\u540c\u7684\u7528\u6237\uff09\uff0c\u5219\u5fc5\u987b\u6b3a\u9a97\u3002<!--more--><\/p>\n<p>\u8981\u4e48\u542f\u52a8Chrome\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 <a href=\"http:\/\/jeedom.sigalou-domotique.fr\/lancer-jeedom-sur-deux-ecrans-dual-screen-deux-instances-de-chrome\">\u5728\u4e24\u4e2a\u5c4f\u5e55\u4e0a\u542f\u52a8 Jeedom\uff08\u53cc\u5c4f\u5e55\uff09\uff0c\u4e24\u4e2a Chrome \u5b9e\u4f8b<\/a>\u00a0\u6216\u8005\u6211\u4eec\u4f7f\u7528\u547d\u4ee4\u884c\u3002<\/p>\n<p>\u547d\u4ee4\u884c\u7684\u8bed\u6cd5\u662f\uff1a \u300b\u00a0<code class=\"powershell string single\"><code class=\"powershell string single\">C:Program Files(x86)GoogleChromeApplicationchrome.exe <code class=\"powershell string single\"><\/code><\/code><\/code><\/code><\/code><a href=\"http:\/\/google.com\">http:\/\/google.com<\/a><code class=\"powershell string single\"><code class=\"powershell string single\"><\/code><\/code><\/p>\n<p>\u65e0\u8bba\u662f\u4f7f\u7528PowerShell\uff08\u6240\u4ee5\uff09Tuto\u8fd8\u662f\u547d\u4ee4\u884c\uff0c\u6dfb\u52a0 -profile-directory=\"Masterscreen\"\u4ee5\u5177\u6709\u914d\u7f6e\u6587\u4ef6\u548c-profile-directory=\"Slavescreen\"\u4e3a\u53e6\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\u7684\u5b9e\u4f8b\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u6587\u4ef6 <strong>Ciklum-Kiosk.ps1<\/strong> \u5fc5\u987b\u770b\u8d77\u6765\u50cf\uff1a<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">######################################################\n########## \u4ead \u6a21\u5f0f ############\n######################################################\n#\n# \u5728\u5168\u5c4f\u6a21\u5f0f\u4e0b\u8fd0\u884cchrome\u548c\u5176\u4ed6\u5e94\u7528\u7a0b\u5e8f # \u5728\u9884\u5b9a\u4e49\u7684\u5c4f\u5e55\u4e0a # ---------------------------------------------------- # C:Program Files(x86)GoogleChromeApplicationchrome.exe $chromePath = 'C:Program Files(x86)GoogleChromeApplicationchrome.exe' $chromeArguments = - \u65b0\u7a97\u53e3 # \u5982\u679c\u7a97\u53e3\u6ca1\u6709\u79fb\u52a8\uff08\u4e3b\u8981\u662f\u5728\u673a\u5668\u542f\u52a8\u65f6\uff09 - \u5c1d\u8bd5\u589e\u52a0\u5ef6\u8fdf\u3002 $ChromeStartDelay = 5 Set-Location $PSScriptRoot\u3002 HelperFunctions.ps1 # \u6740\u6b7b\u6240\u6709\u8fd0\u884c\u5b9e\u4f8b&amp;taskkill \/im chrome* \/F Chrome-Kiosk 'http:\/\/192.168.0.21\/index.php?v=d&amp;p=plan&amp;plan _id=2&amp;fullscreen=1-profile-directory=\"EcranMaitre\" -MonitorNum 1 Chrome-Kiosk 'http:\/\/192.168.0.21\/index.php?v=d&amp;p=plan&amp;plan=1&amp;fullscreen=1-profile-directory=\"EcranEsclave\" -MonitorNum 2<\/pre>\n<p>\u5bf9\u4e8e Jeedom \u5c4f\u5e55\u4e4b\u95f4\u7684\u5bfc\u822a\u76ee\u7684\uff0c\u6bcf\u4e2a\u5c4f\u5e55\u5fc5\u987b\u662f\u4e0d\u540c\u7684\u300e\u7528\u6237\u300f\u3002<\/p>\n<p>\u6211\u4f7f\u7528\u76d1\u89c6\u56681\uff0c\u7528\u6237'admin'\u548c\u76d1\u89c6\u56682\uff0c\u7528\u6237'ecran2'\u3002 \uff08\u60f3\u60f3\u5728 Jeedom \u4e2d\u521b\u5efa\u7b2c\u4e8c\u4e2a\u7528\u6237\uff0c\u4f8b\u5982 ecran2 \u5728\u6211\u7684\u793a\u4f8b\u4e2d\uff09<\/p>\n<p>\u4f60\u5fc5\u987b\u5728\u6bcf\u4e2a\u5c4f\u5e55\u4e0a\u8bc6\u522b\u81ea\u5df1\uff0cChrome\u4f1a\u4fdd\u7559\u8eab\u4efd\u3002<\/p>\n<h2>\u5982\u4f55\u4ece\u663e\u793a\u56681\u66f4\u6539\u5c4f\u5e552\uff1f<\/h2>\n<p>\u8fd9\u5c31\u662f\u4f7f\u7528\u53cc\u5c4f\u914d\u7f6e\u662f\u591a\u4e48\u5bb9\u6613\u3002 \u60a8\u5728\u5c4f\u5e551\u4e0a\u5bfc\u822a\uff0c\u5c4f\u5e552\u4e5f\u79fb\u52a8\u3002<\/p>\n<p>\u4f8b\u5982\uff1a<\/p>\n<ul>\n<li>\u5f53\u60a8\u60f3\u8981\u5728\u5c4f\u5e55\u4e0a\u663e\u793a\u5177\u6709\u5ba4\u6e29\u7684\u8ba1\u5212\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528\u5c4f\u5e552\u6765\u663e\u793a\u6e29\u5ea6\u8868\u3002<\/li>\n<li>\u5f53\u60a8\u60f3\u8981\u663e\u793a\u4e00\u5929\u4e2d\u7684\u5929\u6c14\u65f6\uff0c\u60a8\u53ef\u4ee5\u5728\u5c4f\u5e55\u4e0a\u663e\u793a\u672a\u67657\u5929\u7684\u5929\u6c14\u3002<\/li>\n<li>\u5f53\u60a8\u60f3\u7528\u76f8\u673a\u663e\u793a\u5730\u56fe\u65f6\uff0c\u60a8\u53ef\u4ee5\u5728\u5c4f\u5e55\u4e0a\u663e\u793a\u89c6\u56fe2\u3002<\/li>\n<li>&#8230;<\/li>\n<\/ul>\n<p>\u8981\u505a\u5230\u8fd9\u4e00\u70b9\uff0c\u60a8\u5fc5\u987b\u4f7f\u7528\u51fa\u8272\u7684 Click Link \u63d2\u4ef6(Clink)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-268\" src=\"http:\/\/jeedom.sigalou-domotique.fr\/wp-content\/uploads\/2019\/11\/clink_icon.png\" alt=\"Clink \u56fe\u6807\" width=\"200\" height=\"225\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/11\/clink_icon.png 652w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/11\/clink_icon-600x676.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2019\/11\/clink_icon-266x300.png 266w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/p>\n<p>\u8bf7\u6ce8\u610f\uff0c\u6211\u7565\u5fae\u4fee\u6539\u4e86\u63d2\u4ef6\u4ee5\u5177\u6709\u5168\u5c4f\u94fe\u63a5\u3002 \u6211\u5e0c\u671b\u4fee\u6b63\u6848\u5c06\u5305\u542b\u5728\u672a\u6765\uff08\u53ef\u9009\uff09\u7248\u672c\u4e2d\uff0c\u4e5f\u8bb8\u662f\u4e00\u4e2a\u4e0b\u62c9\u5217\u8868\u3002<\/p>\n<p>plugins\/clink\/desktop\/js\/event.js\u6587\u4ef6\u7684\u7b2c24\u884c<\/p>\n<p>var url = window.location.origin +'\/index.php?<span style=\"color: #99cc00;\"><strong>\u5168\u5c4f=1<\/strong><\/span>&amp;v=d&amp;p=plan&amp;plan_id='+cmd.configuration.link\uff1b<\/p>","protected":false},"excerpt":{"rendered":"<p>\u5982\u679c\u60a8\u5e0c\u671b\u5728\u540c\u4e00\u53f0\u8ba1\u7b97\u673a\u4e0a\u6253\u5f00\u4e24\u4e2aChrome\u5b9e\u4f8b\uff08\u6709\u4e24\u4e2a\u4e0d\u540c\u7684\u7528\u6237\uff09\uff0c\u5219\u5fc5\u987b\u6b3a\u9a97\u3002<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[14,23],"tags":[],"class_list":["post-269","post","type-post","status-publish","format-standard","hentry","category-domotique","category-jeedom-2"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/posts\/269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/comments?post=269"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/posts\/269\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/media?parent=269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/categories?post=269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/zh\/wp-json\/wp\/v2\/tags?post=269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}