Photo by Moyan Brenn
In your controller:
// Pass the API a timezone offset, and all dates are adjusted accordingly!
$http.get("https://api.auroras.live/v1/?type=all&lat=-37.8594087&long=144.7994378&tz=-600")
.then(function(results) {
$scope.rain = results.data.weather.rain // Rain, in mm
$scope.kp = results.data.ace.kp // Current Kp
$scope.moonrise = results.data.weather.moonrise // Moonrise
}
)
In your view:
<p>There is currently {{ rain }}mm of rain and the Kp is at {{ kp }}</p>
<p>Moonrise is at {{ moonrise | date: 'mediumTime'}} (times shown are +10:00)</p>