mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-22 08:13:41 +00:00
Limit Grid square to 6 chars in request to df2et.de API
This commit is contained in:
parent
13ede1b290
commit
2c3408e522
@ -15,10 +15,10 @@ class Sattimers extends CI_Controller {
|
||||
$footerData['scripts'] = [
|
||||
'assets/js/sections/sattimers.js?'
|
||||
];
|
||||
$url = 'https://www.df2et.de/tevel/api2.php?grid='.strtoupper($this->stations->find_gridsquare());
|
||||
$data['gridsquare'] = substr(strtoupper($this->stations->find_gridsquare()), 0, 6);
|
||||
$url = 'https://www.df2et.de/tevel/api2.php?grid=' . $data['gridsquare'];
|
||||
$json = file_get_contents($url);
|
||||
$data['activations'] = json_decode($json, true)['data'];
|
||||
$data['gridsquare'] = strtoupper($this->stations->find_gridsquare());
|
||||
|
||||
$data['page_title'] = "Satellite Timers";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user