Move files from /opt/inverter to /root, remove generated init script and logrotate configuration
This commit is contained in:
7
weather.php
Normal file
7
weather.php
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/usr/bin/php
|
||||
<?php
|
||||
require_once 'wunderground.php';
|
||||
|
||||
define('STATION', 'INOORDHO4');
|
||||
$aData = wunderground('conditions', sprintf('pws:%s', STATION));
|
||||
echo $fTemperature = isset($aData['current_observation']['temp_c']) ? $aData['current_observation']['temp_c'] : null;
|
||||
Reference in New Issue
Block a user