Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
7e6a43f
cleaning & fix memory leak
Mips2648 Jan 14, 2025
cbbca62
add workflow
Mips2648 Jan 14, 2025
0091d84
patch pybluez for deb12
Mips2648 Jan 14, 2025
cfd2d78
[Jenkins] Updated translation
Jan 15, 2025
7ed6dc3
adapt cmd list for v4
Mips2648 Jan 15, 2025
8f368cf
cleaning
Mips2648 Jan 15, 2025
6ed3a82
code format & cleaning
Mips2648 Jan 15, 2025
eb6265b
code format
Mips2648 Jan 15, 2025
ae151f6
code format & cleaning
Mips2648 Jan 15, 2025
224909f
remove compatibility with deb12 to unblock ble_scan on deb11
Mips2648 Jan 15, 2025
982decd
[Jenkins] Updated translation
Jan 16, 2025
5b0e833
bugfix display
Mips2648 Jan 16, 2025
5688977
Merge branch 'beta' of https://github.com/jeedom/plugin-beagle into beta
Mips2648 Jan 16, 2025
f24b378
format
Mips2648 Jan 16, 2025
5dc8a6c
add value on on/off cmds
Mips2648 Jan 16, 2025
7f67f1a
[Jenkins] Updated translation
Jan 17, 2025
8426f7a
Add translation workflow
Mips2648 May 6, 2026
164e492
Auto update translation done by jeedom/jeetranslate workflow
Mips2648 May 6, 2026
5b0861b
Update changelog for stable
Mips2648 May 6, 2026
31be879
Merge pull request #6 from jeedom/translations
Mips2648 May 6, 2026
c62de1e
Fix placeholder formatting in configuration inputs
Mips2648 May 6, 2026
89a0702
clean incorrect translations
Mips2648 May 6, 2026
2d3eb5d
Auto update translation done by jeedom/jeetranslate workflow
Mips2648 May 6, 2026
5500647
Merge pull request #8 from jeedom/translations
Mips2648 May 6, 2026
24dd96b
Update changelog to include translation corrections
Mips2648 May 6, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: translate

on:
workflow_dispatch:
push:
branches:
- beta

jobs:
auto-translate:
runs-on: ubuntu-latest
steps:
- uses: jeedom/jeetranslate@main
with:
deepl_api_key: ${{ secrets.DEEPL_API_KEY }}
include_empty_translation: false
target_languages: "en_US,es_ES,de_DE,it_IT,pt_PT"
use_core_translations: true
15 changes: 15 additions & 0 deletions .github/workflows/work.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
on:
# Workflows check plugin Jeedom
push:
branches:
- beta
pull_request:
branches:
- beta
- master

name : 'Full Workflows Plugin Jeedom'

jobs:
plugin:
uses: jeedom/workflows/.github/workflows/plugin.yml@main
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.vscode
Binary file removed core/._.DS_Store
Binary file not shown.
46 changes: 25 additions & 21 deletions core/ajax/beagle.ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,51 +17,55 @@
*/

try {
require_once dirname(__FILE__) . '/../../../../core/php/core.inc.php';
include_file('core', 'authentification', 'php');
require_once __DIR__ . '/../../../../core/php/core.inc.php';
include_file('core', 'authentification', 'php');

if (!isConnect('admin')) {
throw new Exception(__('401 - Accès non autorisé', __FILE__));
}
ajax::init();
if (!isConnect('admin')) {
throw new Exception(__('401 - Accès non autorisé', __FILE__));
}
ajax::init();

if (init('action') == 'changeIncludeState') {
beagle::changeIncludeState(init('state'), init('mode'));
ajax::success();
}
if (init('action') == 'changeIncludeState') {
beagle::changeIncludeState(init('state'), init('mode'));
ajax::success();
}

if (init('action') == 'getModelListParam') {
ajax::success(beagle::getModelListParam(init('conf')));
}

if (init('action') == 'pairing') {
/** @var beagle */
$beagle = beagle::byId(init('id'));
if (!is_object($beagle)) {
ajax::success(array());
}
ajax::success($beagle->binding());
}

if (init('action') == 'askscenes') {
/** @var beagle */
foreach (beagle::byType('beagle') as $eqLogic) {
$eqLogic->getscenes(init('type'));
}
$eqLogic->getscenes(init('type'));
}
ajax::success();
}

if (init('action') == 'askgroups') {
/** @var beagle */
foreach (beagle::byType('beagle') as $eqLogic) {
$eqLogic->getgroups();
}
$eqLogic->getgroups();
}
ajax::success();
}

if (init('action') == 'autoDetectModule') {
if (init('action') == 'autoDetectModule') {
/** @var beagle */
$eqLogic = beagle::byId(init('id'));
if (!is_object($eqLogic)) {
throw new Exception(__('Beagle eqLogic non trouvé : ', __FILE__) . init('id'));
}
if (init('createcommand') == 1){
if (init('createcommand') == 1) {
foreach ($eqLogic->getCmd() as $cmd) {
$cmd->remove();
}
Expand All @@ -72,8 +76,8 @@



throw new Exception(__('Aucune méthode correspondante à : ', __FILE__) . init('action'));
/* * *********Catch exeption*************** */
throw new Exception(__('Aucune méthode correspondante à : ', __FILE__) . init('action'));
/* * *********Catch exeption*************** */
} catch (Exception $e) {
ajax::error(displayException($e), $e->getCode());
ajax::error(displayException($e), $e->getCode());
}
Loading
Loading