RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
- sRewriteRule ^apk(.*)$ app/build/outputs/apk/debug/app-debug.apk [F]
+ RewriteRule ^apk(.*)$ app/build/outputs/apk/debug/app-debug.apk [F]
RewriteRule ^s$ https://salon.home.tortuga.enhydra.fr/ [L,R=301]
RewriteRule ^b$ https://bureau.home.tortuga.enhydra.fr/ [L,R=301]
<project version="4">
<component name="PublishConfigData" autoUpload="On explicit save action" serverName="home.tortuga.enhydra.fr" autoUploadExternalChanges="true" showAutoUploadSettingsWarning="false">
<serverData>
+ <paths name="dev-redbr.enhydra.fr">
+ <serverdata>
+ <mappings>
+ <mapping local="$PROJECT_DIR$" web="/" />
+ </mappings>
+ </serverdata>
+ </paths>
<paths name="home.tortuga.enhydra.fr">
<serverdata>
<mappings>
<mapping deploy="/" local="$PROJECT_DIR$" web="/" />
</mappings>
+ <excludedPaths>
+ <excludedPath local="true" path="vendor" />
+ </excludedPaths>
+ </serverdata>
+ </paths>
+ <paths name="home2">
+ <serverdata>
+ <mappings>
+ <mapping local="$PROJECT_DIR$" web="/" />
+ </mappings>
</serverdata>
</paths>
</serverData>
<project version="4">
<component name="ChangeListManager">
<list default="true" id="352ce63a-b52a-41a2-979b-becda7920939" name="Default" comment=".">
+ <change beforePath="$PROJECT_DIR$/.htaccess" beforeDir="false" afterPath="$PROJECT_DIR$/.htaccess" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/.idea/deployment.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/deployment.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/config/global.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/global.php" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/lib/harmony.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/harmony.php" afterDir="false" />
- <change beforePath="$PROJECT_DIR$/scripts/lib/kodi.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/kodi.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/config/tv.php" beforeDir="false" afterPath="$PROJECT_DIR$/config/tv.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/lib/domoticz.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/domoticz.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/scripts/lib/ssh.php" beforeDir="false" afterPath="$PROJECT_DIR$/scripts/lib/ssh.php" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/servers/startdaemon" beforeDir="false" afterPath="$PROJECT_DIR$/servers/startdaemon" afterDir="false" />
+ <change beforePath="$PROJECT_DIR$/servers/startserver" beforeDir="false" />
+ <change beforePath="$PROJECT_DIR$/servers/stopserver" beforeDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
<option name="HIGHLIGHT_CONFLICTS" value="true" />
<option name="Make" enabled="true" />
</method>
</configuration>
+ <configuration default="true" type="ArquillianJUnit" factoryName="" nameIsGenerated="true">
+ <option name="arquillianRunConfiguration">
+ <value>
+ <option name="containerStateName" value="" />
+ </value>
+ </option>
+ <option name="TEST_OBJECT" value="class" />
+ <method v="2">
+ <option name="Make" enabled="true" />
+ </method>
+ </configuration>
<configuration default="true" type="ArquillianTestNG" factoryName="">
<option name="arquillianRunConfiguration">
<value>
<workItem from="1622115664953" duration="1262000" />
<workItem from="1622179648274" duration="2594000" />
<workItem from="1622185202332" duration="1711000" />
- <workItem from="1622440150420" duration="724000" />
- </task>
- <task id="LOCAL-00439" summary=".">
- <created>1611655053435</created>
- <option name="number" value="00439" />
- <option name="presentableId" value="LOCAL-00439" />
- <option name="project" value="LOCAL" />
- <updated>1611655053436</updated>
+ <workItem from="1622440150420" duration="1374000" />
+ <workItem from="1622659686189" duration="138000" />
+ <workItem from="1622659989891" duration="3179000" />
</task>
<task id="LOCAL-00440" summary=".">
<created>1611655420798</created>
<option name="project" value="LOCAL" />
<updated>1621847082796</updated>
</task>
- <option name="localTasksCounter" value="488" />
+ <task id="LOCAL-00488" summary=".">
+ <created>1622441173733</created>
+ <option name="number" value="00488" />
+ <option name="presentableId" value="LOCAL-00488" />
+ <option name="project" value="LOCAL" />
+ <updated>1622441173734</updated>
+ </task>
+ <option name="localTasksCounter" value="489" />
<servers />
</component>
<component name="TypeScriptGeneratedFilesManager">
$mapdvb = connectRedis()->igbget('dvbchannels');
if (!$mapdvb) {
$mapdvb = array();
- $m3u = getUrlContent('http://192.168.13.60:9981/playlist/channels', 30);
+ $m3u = getUrlContent('http://tvheadend.home.tortuga.enhydra.fr:9981/playlist/channels', 30);
$lines = explode("\n", $m3u);
$name = '';
foreach ($lines as $line) {
unset($params['delay']);
- $ip = '192.168.13.60';
+ $ip = 'domoticz.home.tortuga.enhydra.fr';
return httpRequest('http://' . $ip . ':8084/json.htm', 'GET', $params);
}
function sshCommand($command, $device = null, $blocking = true, $sudo = false)
{
return sshRunCommand($command, $device, $blocking, $sudo);
- $redis = connectRedis();
- $queue = $redis->igbget('ssh_queue');
- if (!is_array($queue)) {
- $queue = [];
- }
- $queue[] = ['command' => $command, 'device' => $device, 'blocking' => $blocking, 'sudo' => $sudo];
- $redis->igbset('ssh_queue', $queue);
- $redis->publish('ssh_event', 'handle_queue');
+// $redis = connectRedis();
+// $queue = $redis->igbget('ssh_queue');
+// if (!is_array($queue)) {
+// $queue = [];
+// }
+// $queue[] = ['command' => $command, 'device' => $device, 'blocking' => $blocking, 'sudo' => $sudo];
+// $redis->igbset('ssh_queue', $queue);
+// $redis->publish('ssh_event', 'handle_queue');
+//
}
function sshRunCommand($command, $device = null, $blocking = true, $sudo = false)
$res = array('cmd' => $command, 'device' => $device, 'error' => 'no device');
}
return $res;
-}
+}
\ No newline at end of file
#!/bin/sh
-/sbin/start-stop-daemon --start --quiet --user pi --chuid pi --name home-$1 --make-pidfile --pidfile /var/run/home-$1.pid --background --startas /bin/bash -- -c "exec /var/www/home/servers/_startdaemon.php $1"
\ No newline at end of file
+/sbin/start-stop-daemon --start --quiet --user tortugahome --chuid tortugahome --name home-$1 --make-pidfile --pidfile /var/run/home-$1.pid --background --startas /bin/bash -- -c "exec /var/www/home/servers/_startdaemon.php $1"
\ No newline at end of file
+++ /dev/null
-#!/bin/sh
-cd /var/www/home
-php -S 192.168.13.60:$2 "/var/www/home" >> "/var/log/home/$1.log"
\ No newline at end of file
+++ /dev/null
-#!/usr/bin/php
-<?php
-$port = $argv[2];
-`kill $(ps aux | grep '[p]hp -S 192.168.13.60:$port' | awk '{print $2}')`;
\ No newline at end of file