Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error mysql #22

Open
wants to merge 66 commits into
base: stable
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
8d3a35a
[ROBOT] Action all
Dec 19, 2017
93c6101
Merge pull request #20 from Anakins/stable
Anakins Dec 19, 2017
dd19de9
[ROBOT] Action all
Jan 28, 2018
9445443
[ROBOT] Action all
Feb 14, 2018
8d0b3f5
[ROBOT] Action all
Feb 16, 2018
8217aad
Update V4 + Debian 10
JEALG May 8, 2020
84bf696
Typo Readme
JEALG May 8, 2020
0a78f7c
Typo logo
JEALG May 8, 2020
3e5e366
Ajout fonction raffraichir
JEALG May 8, 2020
e0d7d64
Update horoscope.class.php
JEALG May 8, 2020
fb996de
Add log => valeur Cron
JEALG May 8, 2020
e345b1b
Typo nom du fichier
JEALG May 8, 2020
f839b7f
update pb transfert
JEALG May 8, 2020
cd37beb
Correction Bug page vide
JEALG May 8, 2020
f7fa314
changement icône
JEALG May 8, 2020
1e8aa68
update php correction bug
JEALG May 8, 2020
7506794
Clean
JEALG May 8, 2020
9afb873
ADDD
JEALG May 8, 2020
df9b2f4
udpate icône
JEALG May 8, 2020
fba0f83
Update class refresh
JEALG May 9, 2020
d72532a
activation des update signe et horoscope
JEALG May 9, 2020
0c95d84
AJout info log
JEALG May 9, 2020
122c55c
TEST CRON
JEALG May 9, 2020
58a6ed6
Correction fonction postupdate
JEALG May 9, 2020
0ceb684
update fonction Cron
JEALG May 9, 2020
4f87117
Update création signe
JEALG May 9, 2020
1cb4759
typo
JEALG May 9, 2020
4c71f4c
typo
JEALG May 9, 2020
fdb1825
Update logs
JEALG May 9, 2020
1343e77
Add activation Cron par défaut
JEALG May 9, 2020
f0cf2cc
missing htaccess files
Mips2648 May 9, 2020
867a046
cleaning
Mips2648 May 9, 2020
763c77b
adapt log
Mips2648 May 9, 2020
09786ff
Merge pull request #1 from Mips2648/master
JEALG May 9, 2020
bea37d3
AJout widget Core V4
JEALG May 10, 2020
6f67191
typo
JEALG May 10, 2020
6dcdcde
test images
JEALG May 10, 2020
4d13586
Update changelog.md
JEALG May 10, 2020
ff14bdf
test logo image
JEALG May 10, 2020
9fb9d69
Ajout getImage
JEALG May 10, 2020
ece4906
Correction bug fonction getImage
JEALG May 10, 2020
9ab0fa5
images dark et Light pour Template (widget)
JEALG May 10, 2020
8e61ce4
Mise à jour documentation
JEALG May 10, 2020
f15baf1
Mise à jour de l'équipement après sauvegarde
JEALG May 10, 2020
7ebb115
correction double mise à jour
JEALG May 10, 2020
dc1b4be
nettoyage log
JEALG May 10, 2020
0fde836
Correction Template V4
JEALG May 11, 2020
7998ce4
Update taille image
JEALG May 11, 2020
ac7b010
Update signe zodiaque
JEALG May 12, 2020
9235b88
Test Signe add log
JEALG May 12, 2020
9344c15
Correction Bug signe + Template Widget
JEALG May 12, 2020
d7c5049
Clean code
JEALG May 12, 2020
623ef8b
clean
JEALG May 12, 2020
9ea710a
Update apres installation
JEALG May 12, 2020
732571d
Update changelog
JEALG May 12, 2020
63cc925
remise par défaut autocron
JEALG May 13, 2020
60634c8
Correction ajout cron
JEALG May 13, 2020
be3209c
ajout trie des commandes
JEALG May 13, 2020
53defa7
Ajout info log
JEALG May 13, 2020
671ad56
changelog
JEALG May 13, 2020
890280d
config docs
JEALG May 13, 2020
5c8e83d
Update documentations
JEALG May 23, 2020
80b006d
Clean + Correction Tableau des commandes
JEALG Jun 12, 2020
0b678bc
Correction tableau suite
JEALG Jun 12, 2020
dee1e61
Masquer commande raffraichier
JEALG Jun 12, 2020
f9cb7b2
Merge pull request #23 from JEALG/master
Anakins Jun 19, 2020
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,4 @@ $RECYCLE.BIN/
Network Trash Folder
Temporary Items
.apdisk
.vscode/settings.json
1 change: 0 additions & 1 deletion 3rparty/readme

This file was deleted.

8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# jeedom_Horoscope
Plugin Horoscope pour Jeedom - En développement.
<img align="right" src="plugin_info/horoscope_icon.png" width="150">

# Jeedom - Horoscope

Plugin Horoscope pour Jeedom

Ce plugin a pour but de pouvoir donner l'horoscope chaque jour via une petite phrase.

Expand All @@ -8,4 +11,3 @@ Il suffit de créer une personne (un équipement) et de lui affecter un signe du
La phrase sera ensuite générée via le biais d'un site internet sur l'astrologie.

Ceci est mon premier plugin :-)

28 changes: 26 additions & 2 deletions core/ajax/horoscope.ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,35 @@
throw new Exception(__('401 - Accès non autorisé', __FILE__));
}

if (init('action') == 'gethoroscope') {
$horoscope = horoscope::byId(init('id'));
if (!is_object($horoscope)) {
throw new Exception(__('Horoscope inconnu verifier l\'id', __FILE__));
}
$return = utils::o2a($horoscope);
$return['cmd'] = array();
foreach ($horoscope->getCmd() as $cmd) {
$cmd_info = utils::o2a($cmd);
$cmd_info['value'] = $cmd->execCmd(null, 0);
$return['cmd'][] = $cmd_info;
}
ajax::success($return);
}


if (init('action') == 'autoDEL_eq') {
$eqLogic = horoscope::byId(init('id'));
if (!is_object($eqLogic)) {
throw new Exception(__('Horoscope eqLogic non trouvé : ', __FILE__) . init('id'));
}
foreach ($eqLogic->getCmd() as $cmd) {
$cmd->remove();
$cmd->save();
}
ajax::success();
}

throw new Exception(__('Aucune méthode correspondante à : ', __FILE__) . init('action'));
/* * *********Catch exeption*************** */
} catch (Exception $e) {
ajax::error(displayExeption($e), $e->getCode());
}
?>
2 changes: 2 additions & 0 deletions core/class/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Order allow,deny
Deny from all
Loading