Skip to content

Commit

Permalink
Update your.vigilancemeteo.php
Browse files Browse the repository at this point in the history
  • Loading branch information
lunarok committed Jan 27, 2020
1 parent 6f6f851 commit 730896f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion desktop/modal/your.vigilancemeteo.php
Expand Up @@ -26,7 +26,12 @@

throw new Exception(__('Aucun equipement ne correspond : Il faut (re)-enregistrer l\'équipement ', __FILE__) . init('action'));
}
$departement = $vigilancemeteo->getConfiguration('departement');
if ($this->getConfiguration('geoloc') == "jeedom") {
$postal = config::byKey('info::postalCode');
$departement = $postal[0] . $postal[1];
} else {
$departement = geotravCmd::byEqLogicIdAndLogicalId($this->getConfiguration('geoloc'),'location:department')->execCmd();
}
$link='http://vigilance.meteofrance.com/Bulletin_sans.html?a=dept'.$departement.'&b=2&c=';
?>

Expand Down

0 comments on commit 730896f

Please sign in to comment.