From b5ed396988752637def759c3ed2584a7070115b5 Mon Sep 17 00:00:00 2001 From: phl0 Date: Fri, 17 Nov 2023 13:21:31 +0100 Subject: [PATCH] Add link to FG8OJ sked tool to hams.at listing --- application/controllers/Components.php | 4 +++- application/views/components/hamsat/table.php | 10 ++++++++++ application/views/hamsat/index.php | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/application/controllers/Components.php b/application/controllers/Components.php index 942dcbc3..7fc0e27a 100644 --- a/application/controllers/Components.php +++ b/application/controllers/Components.php @@ -14,11 +14,13 @@ class Components extends CI_Controller { } public function index() { + $this->load->model('stations'); $url = 'https://oscarwatch.org/scripts/hamsat_json.php'; $json = file_get_contents($url); $data['rovedata'] = json_decode($json, true); + $data['gridsquare'] = strtoupper($this->stations->find_gridsquare()); // load view $this->load->view('components/hamsat/table', $data); } -} \ No newline at end of file +} diff --git a/application/views/components/hamsat/table.php b/application/views/components/hamsat/table.php index e218916f..0792824d 100644 --- a/application/views/components/hamsat/table.php +++ b/application/views/components/hamsat/table.php @@ -17,6 +17,7 @@ Satellite Gridsquare(s) + @@ -92,6 +93,15 @@ Track + + Sked diff --git a/application/views/hamsat/index.php b/application/views/hamsat/index.php index aba617d2..f5f033f2 100644 --- a/application/views/hamsat/index.php +++ b/application/views/hamsat/index.php @@ -1,3 +1,3 @@
-
\ No newline at end of file +