Retrieve SOS Observations
by openfirmware
HTML
<script src="http://canarie-sensor-rpi.github.io/geocens-js-api/javascripts/geocens.js"></script>
JavaScript
var service = new Geocens.SOS({
service_url: "http://app.geocens.ca:8171/sos"
});
service.getObservation({
offering: "Temperature",
property: "urn:ogc:def:property:noaa:ndbc:Water Temperature",
done: function (observations) {
console.log("Example Five", observations);
alert(JSON.stringify(observations[0].attributes()));
}
});