update wunderground station and set key

This commit is contained in:
2018-01-16 11:15:47 +01:00
parent 6d364e1248
commit f402a13f41
2 changed files with 3 additions and 3 deletions

View File

@@ -2,6 +2,6 @@
<?php <?php
require_once 'wunderground.php'; require_once 'wunderground.php';
define('STATION', 'INOORDHO4'); define('STATION', 'INOORDHO104');
$aData = wunderground('conditions', sprintf('pws:%s', STATION)); $aData = wunderground('conditions', sprintf('pws:%s', STATION));
echo $fTemperature = isset($aData['current_observation']['temp_c']) ? $aData['current_observation']['temp_c'] : null; echo $fTemperature = isset($aData['current_observation']['temp_c']) ? $aData['current_observation']['temp_c'] : null;

View File

@@ -1,8 +1,8 @@
<?php <?php
define('KEY', ''); define('KEY', '2556854ea765c351');
define('LIMIT_MINUTE', 10); define('LIMIT_MINUTE', 10);
define('LIMIT_DAY', 500); define('LIMIT_DAY', 500);
define('LIMIT_FILE', 'data/wunderground.json'); define('LIMIT_FILE', '/opt/inverter/data/wunderground.json');
function wunderground($sService, $sQuery, $bDebug = false) { function wunderground($sService, $sQuery, $bDebug = false) {
/* Get current date values */ /* Get current date values */