update/improve-uix #2

Merged
jchomaz merged 12 commits from update/improve-uix into main 2026-02-03 19:54:50 +01:00
Showing only changes of commit bcec23a751 - Show all commits

View File

@@ -132,11 +132,11 @@ function updateTeamTotalScore(teamColor, points) {
// Lecture du fichier de configuration
const configPath = path.join(__dirname, '../config/config_game.json');
const configPath = path.join(__dirname, '../config/configuration.json');
const config = JSON.parse(fs.readFileSync(configPath, 'utf8'));
// Extraction des informations de config
const { services: { mqttHost, score: { MQTTconfig: { mqttScoreTopic, mqttScoreChangeTopic } } } } = config;
const { mqttHost, services: { score: { MQTTconfig: { mqttScoreTopic, mqttScoreChangeTopic } } } } = config;
console.log("DEBUG: Config loaded from:", configPath);
console.log("DEBUG: MQTT Host:", mqttHost);
console.log("DEBUG: Topics:", mqttScoreTopic, mqttScoreChangeTopic);