Merge pull request #3042 from DanielBausset/sattimers_6_chars_grid

Limit Grid square to 6 chars in request to df2et.de API
这个提交包含在:
Peter Goodhall 2024-04-02 14:37:20 +01:00 提交者 GitHub
当前提交 f8eeaab064
找不到此签名对应的密钥
GPG 密钥 ID: B5690EEEBB952194

查看文件

@ -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";