Lorsque j'apprends à utiliser un nouveau système, j'aime bien comprendre ce qui se cache derrière les écrans qu'il me propose. Et ceci passe assurément par sa base de données.
Je vous propose ici quelques manipulations pour explorer la base de données de Jeedom.
Attention : si vous effectuez des manipulations autres que des SELECT, vous risquez d'endommager votre système. C'est une bonne idée d'effectuer une copie de sécurité de Jeedom avant de vous lancer.
mysql -u jeedom -p
pi@raspberrypi:~ $ mysql -u jeedom -p
Enter password:
Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 182
Server version: 10.3.29-MariaDB-0+deb10u1 Raspbian 10
Copyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
MariaDB [(none)]>
SHOW DATABASES;
MariaDB [(none)]> SHOW DATABASES;
+--------------------+
| Database |
+--------------------+
| information_schema |
| jeedom |
+--------------------+
2 rows in set (0.002 sec)
MariaDB [(none)]>
USE jeedom;
SHOW TABLES;
MariaDB [jeedom]> SHOW TABLES;
+--------------------+
| Tables_in_jeedom |
+--------------------+
| cache |
| cmd |
| config |
| cron |
| dataStore |
| eqLogic |
| event |
| history |
| historyArch |
| interactDef |
| interactQuery |
| listener |
| message |
| note |
| object |
| plan |
| plan3d |
| plan3dHeader |
| planHeader |
| scenario |
| scenarioElement |
| scenarioExpression |
| scenarioSubElement |
| timeline |
| update |
| user |
| view |
| viewData |
| viewZone |
| widgets |
+--------------------+
30 rows in set (0.002 sec)
MariaDB [jeedom]>
SELECT * FROM cron;
MariaDB [jeedom]> SELECT * FROM cron;
+----+--------+----------+-------------+--------------------+---------+--------+-----------------+------------------+------+
| id | enable | class | function | schedule | timeout | deamon | deamonSleepTime | option | once |
+----+--------+----------+-------------+--------------------+---------+--------+-----------------+------------------+------+
| 1 | 1 | plugin | cronDaily | 00 00 * * * | 240 | 0 | 1 | NULL | 0 |
| 2 | 1 | jeedom | backup | 36 00 * * * | 60 | 0 | 1 | NULL | 0 |
| 3 | 1 | plugin | cronHourly | 00 * * * * | 60 | 0 | 1 | NULL | 0 |
| 4 | 1 | scenario | check | * * * * * | 30 | 0 | 1 | NULL | 0 |
| 5 | 1 | scenario | control | * * * * * | 30 | 0 | 1 | NULL | 0 |
| 6 | 1 | jeedom | cronDaily | 7 0 * * * | 240 | 0 | 1 | NULL | 0 |
| 7 | 1 | jeedom | cronHourly | 2 * * * * | 60 | 0 | 1 | NULL | 0 |
| 8 | 1 | jeedom | cron5 | */5 * * * * | 5 | 0 | 1 | NULL | 0 |
| 9 | 1 | jeedom | cron10 | */10 * * * * | 10 | 0 | 1 | NULL | 0 |
| 10 | 1 | jeedom | cron | * * * * * | 2 | 0 | 1 | NULL | 0 |
| 11 | 1 | plugin | cron | * * * * * | 2 | 0 | 1 | NULL | 0 |
| 12 | 1 | plugin | cron5 | */5 * * * * | 5 | 0 | 1 | NULL | 0 |
| 13 | 1 | plugin | cron10 | */10 * * * * | 10 | 0 | 1 | NULL | 0 |
| 14 | 1 | plugin | cron15 | */15 * * * * | 15 | 0 | 1 | NULL | 0 |
| 15 | 1 | plugin | cron30 | */30 * * * * | 30 | 0 | 1 | NULL | 0 |
| 16 | 1 | plugin | checkDeamon | */5 * * * * | 5 | 0 | 1 | NULL | 0 |
| 17 | 1 | cache | persist | */30 * * * * | 30 | 0 | 1 | NULL | 0 |
| 18 | 1 | history | archive | 00 5 * * * | 240 | 0 | 1 | NULL | 0 |
| 19 | 1 | plugin | heartbeat | */5 * * * * | 10 | 0 | 1 | NULL | 0 |
| 20 | 1 | weather | pull | 23 19 05 09 * 2021 | 60 | 0 | 1 | {"weather_id":3} | 0 |
+----+--------+----------+-------------+--------------------+---------+--------+-----------------+------------------+------+
20 rows in set (0.002 sec)
MariaDB [jeedom]>
Jeedom vous permet d'effectuer certaines manipulations de la base de données directement dans son interface Web.
Petit truc pour explorer la base de données à l'aide d'un outil graphique :
▼Publicité