]> _ Git - tortuga-home.git/commitdiff
.
authorVincent <vincent@enhydra.fr>
Wed, 5 Feb 2020 09:29:44 +0000 (10:29 +0100)
committerVincent <vincent@enhydra.fr>
Wed, 5 Feb 2020 09:29:44 +0000 (10:29 +0100)
.idea/workspace.xml
scripts/cron/cron.php

index c347b008d12b2321602add58fbc6e8932aaa5565..35bc4b7818e0afb9bf94f2d603622225df4f4619 100644 (file)
       <workItem from="1580459154087" duration="3479000" />
       <workItem from="1580545354824" duration="796000" />
       <workItem from="1580720992873" duration="177000" />
-      <workItem from="1580894754542" duration="92000" />
-    </task>
-    <task id="LOCAL-00240" summary=".">
-      <created>1571906440281</created>
-      <option name="number" value="00240" />
-      <option name="presentableId" value="LOCAL-00240" />
-      <option name="project" value="LOCAL" />
-      <updated>1571906440281</updated>
+      <workItem from="1580894754542" duration="193000" />
     </task>
     <task id="LOCAL-00241" summary=".">
       <created>1572939348455</created>
       <option name="project" value="LOCAL" />
       <updated>1580462517759</updated>
     </task>
-    <option name="localTasksCounter" value="289" />
+    <task id="LOCAL-00289" summary=".">
+      <created>1580894931524</created>
+      <option name="number" value="00289" />
+      <option name="presentableId" value="LOCAL-00289" />
+      <option name="project" value="LOCAL" />
+      <updated>1580894931525</updated>
+    </task>
+    <option name="localTasksCounter" value="290" />
     <servers />
   </component>
   <component name="TypeScriptGeneratedFilesManager">
     </state>
     <state x="720" y="247" key="#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog/0.0.1920.1040@0.0.1920.1040" timestamp="1577298128269" />
     <state x="960" y="247" key="#com.intellij.openapi.updateSettings.impl.PluginUpdateInfoDialog/0.0.2560.1040@0.0.2560.1040" timestamp="1580459136096" />
-    <state x="935" y="114" key="CommitChangelistDialog2" timestamp="1580721221395">
+    <state x="935" y="114" key="CommitChangelistDialog2" timestamp="1580894914195">
       <screen x="0" y="0" width="2560" height="1040" />
     </state>
     <state x="701" y="114" key="CommitChangelistDialog2/0.0.1920.1040@0.0.1920.1040" timestamp="1577381105204" />
     <state x="701" y="127" key="CommitChangelistDialog2/0.0.1920.1160@0.0.1920.1160" timestamp="1575647157027" />
-    <state x="935" y="114" key="CommitChangelistDialog2/0.0.2560.1040@0.0.2560.1040" timestamp="1580721221395" />
+    <state x="935" y="114" key="CommitChangelistDialog2/0.0.2560.1040@0.0.2560.1040" timestamp="1580894914195" />
     <state x="92" y="92" width="2376" height="856" key="DiffContextDialog" timestamp="1580377344165">
       <screen x="0" y="0" width="2560" height="1040" />
     </state>
index 12587e9c13de84b2b2fb8cf1c9f293bd4f10b6bc..ff1437cf4347002ca702b63839ce9af36d2ec84b 100644 (file)
@@ -157,12 +157,13 @@ function toNumber($val, $round = false)
 function cronWeather($cronmin)
 {
     $place = 2608449;
+    $apikey = 'fM7z3yrWwnUuXuAPPYIM5EqTl2iBAGB6';
 
     $cache = ROOT . '/cache/accuweather.json';
     $limit = max(time() - 3600, 0);
 
     if (!file_exists($cache) || filemtime($cache) < $limit) {
-        copy('http://dataservice.accuweather.com/currentconditions/v1/' . $place . '?apikey=fM7z3yrWwnUuXuAPPYIM5EqTl2iBAGB6&language=fr-FR&details=true', $cache);
+        copy('http://dataservice.accuweather.com/currentconditions/v1/' . $place . '?apikey=' . $apikey . '&language=fr-FR&details=true', $cache);
     }
     $res = [];
     $weather = json_decode(file_get_contents($cache), true);
@@ -192,7 +193,7 @@ function cronWeather($cronmin)
 
     $cache = ROOT . '/cache/accuforecasts.json';
     if (!file_exists($cache) || filemtime($cache) < $limit) {
-        copy('http://dataservice.accuweather.com/forecasts/v1/daily/5day/' . $place . '?apikey=fM7z3yrWwnUuXuAPPYIM5EqTl2iBAGB6&language=fr-FR&metric=true&details=true', $cache);
+        copy('http://dataservice.accuweather.com/forecasts/v1/daily/5day/' . $place . '?apikey=' . $apikey . '&language=fr-FR&metric=true&details=true', $cache);
     }
     $forecasts = json_decode(file_get_contents($cache), true);
     $f = $forecasts['DailyForecasts'][0];