1
0

correction de bugs

This commit is contained in:
2022-09-01 17:02:28 +02:00
parent 2b4fc54071
commit 6a333acc9f
8 changed files with 173 additions and 100 deletions

View File

@ -38,7 +38,8 @@ $curlErr = 0; // Number of errors returned by curl
$configDir = "./config"; // default config dir (production value is /etc/moha/)
$hooksInitialized = 0; // are all hooks initialized ? false/true
$flagHooks = false;
$devicesRequest = false; //say to true when publishing device request to zigbee2mqtt
$devicesRequest = false; // set to true when publishing device request to zigbee2mqtt
$presence = array(); // name and status of presence
if ($testMode)
{
@ -60,6 +61,7 @@ if ($testMode)
if (!init()) exit(1);
// gettext
bindtextdomain("moha", "./locale");
textdomain("moha");
@ -207,8 +209,11 @@ require $configDir . "/properties2log.php";
require "mqtt_functions.php";
require "events.php";
require "db_functions.php";
require "config/liste_telephones.php";
require "presence.php";
require "apiserver/apiserver.php";
logger(DEBUG, _("Loading stored events datas from ") . $dataPath . "events.db", __FILE__ . ":" . __LINE__);
if (file_exists($dataPath . "events.db"))
{
@ -362,6 +367,7 @@ while (true)
checkEvents();
checkTopicsAvailability();
if ($apiServerIsActive) apiServer($read);
//presence();
}
endMoha();