diff --git a/bridges/ParksOnTheAirBridge.php b/bridges/ParksOnTheAirBridge.php new file mode 100644 index 00000000000..f46ffc43b08 --- /dev/null +++ b/bridges/ParksOnTheAirBridge.php @@ -0,0 +1,39 @@ + 1); + $json = getContents($this->getURI(), $header, $opts); + + $spots = json_decode($json, true); + + foreach ($spots as $spot) { + $title = $spot['activator'] . ' @ ' . $spot['reference'] . ' ' . + $spot['frequency'] . ' kHz'; + + $content = << +{$spot['reference']}, {$spot['name']}
+Location: {$spot['locationDesc']}
+Frequency: {$spot['frequency']} kHz
+Spotter: {$spot['spotter']}
+Comments: {$spot['comments']} +EOL; + + $this->items[] = array( + 'uri' => 'https://pota.us/#/', + 'title' => $title, + 'content' => $content, + 'timestamp' => $spot['spotTime'] + ); + } + } +}