{"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\/en\/lancer-deux-instances-de-jeedom-chrome-sur-deux-moniteurs-sur-le-meme-pc","title":{"rendered":"Launch two instances of Jeedom (Chrome) on two monitors on the same PC"},"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=\"chromium\" width=\"227\" height=\"130\" \/><\/p>\n<p>If on the same computer you want to be able to open two instances of Chrome (with two different users), you have to trick.<!--more--><\/p>\n<p>Either to launch Chrome you can use <a href=\"http:\/\/jeedom.sigalou-domotique.fr\/lancer-jeedom-sur-deux-ecrans-dual-screen-deux-instances-de-chrome\">Launch Jeedom on two screens (dual-screen), two instances of Chrome<\/a>\u00a0Either we use the command line.<\/p>\n<p>The syntax of the command line is: \u2018\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>Whether with PowerShell (so the ) Tuto or command line, add -profile-directory=\"Masterscreen\" to have an instance with a profile and -profile-directory=\"Slavescreen\" for another profile.<\/p>\n<p>Thus, the file <strong>Ciklum-Kiosk.ps1<\/strong> must look like:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\">######################################################\n########## Kiosk Mode ############\n######################################################\n#\n# Runs chrome and other apps in full-screen mode # on predefined screens # ---------------------------------------------------- # \"C:Program Files (x86)GoogleChromeApplicationchrome.exe\" $chromePath = 'C:Program Files (x86)GoogleChromeApplicationchrome.exe' $chromeArguments = '--new-window' # if Window not moved (mostly on machine start) - try increaing the delay. $ChromeStartDelay = 5 Set-Location $PSScriptRoot . .HelperFunctions.ps1 # Kill all running instances &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 _id=1&amp;fullscreen=1 --profile-directory=\"EcranEsclave\"' -MonitorNum 2<\/pre>\n<p>For navigation purposes between Jeedom screens, each screen must be a different \"User\".<\/p>\n<p>I used monitor 1, user \u2018admin\u2019 and monitor 2, user \u2018ecran2\u2019. (Think of creating a second user in Jeedom, such as ecran2 in my example)<\/p>\n<p>You have to identify yourself on each screen and Chrome will keep the identification.<\/p>\n<h2>How to change screen2 from monitor 1?<\/h2>\n<p>This is how easy it is to use the dual-screen configuration. You navigate on screen 1 and screen 2 also moves.<\/p>\n<p>For example:<\/p>\n<ul>\n<li>When you want to display a plan with room temperatures on screen 1, you can use screen 2 to display a temperature table.<\/li>\n<li>When you want to display the weather of the day with all the details, you can display on screen 2 the weather for the next 7 days<\/li>\n<li>When you want to display a map with the cameras, you can display the views on screen 2<\/li>\n<li>&#8230;<\/li>\n<\/ul>\n<p>To do this, you have to use the great Click Link plugin (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 icon\" 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>Note that I slightly modified the plugin to have full-screen links. I hope that the amendment will be included in a future (optional) version, perhaps a drop-down list.<\/p>\n<p>Line 24 of the plugins\/clink\/desktop\/js\/event.js file<\/p>\n<p>var url = window.location.origin +\u2019\/index.php?<span style=\"color: #99cc00;\"><strong>fullscreen=1<\/strong><\/span>&amp;v=d&amp;p=plan&amp;plan_id='+cmd.configuration.link;<\/p>","protected":false},"excerpt":{"rendered":"<p>If on the same computer you want to be able to open two instances of Chrome (with two different users), you have to trick.<\/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\/en\/wp-json\/wp\/v2\/posts\/269","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/comments?post=269"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/269\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media?parent=269"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/categories?post=269"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/tags?post=269"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}