LLSR API - Weather API Specification and Examples

Note that the methods in this API require authentication to use them. Visit the Authentication API for more information.

Root Nodes

/weather                     Weather API root node
/weather/stations               Weather Station information
/weather/{station_id}   Weather data for a specific station
/weather/all   Weather data for all stations

/weather/stations

Reading

Get a list of all valid weather stations and their details.

GET /weather/stations HTTP/1.1
Host: api.skilouise.com

Example JSON-encoded result:

[
  {
    "stationID": 1,
    "stationName": "Operations",
    "lon": "-116.16",
    "lat": "51.44"
  },
  {
    "stationID": 2,
    "stationName": "Temple",
    "lon": "-116.11",
    "lat": "51.45"
  },
  {
    "stationID": 3,
    "stationName": "Paradise-Top",
    "lon": "-116.13",
    "lat": "51.46"
  },
  {
    "stationID": 4,
    "stationName": "Gondola-Top",
    "lon": "-116.13",
    "lat": "51.45"
  },
  {
    "stationID": 5,
    "stationName": "SM-Control",
    "lon": "-116.14",
    "lat": "51.45"
  },
  {
    "stationID": 7,
    "stationName": "Primary",
    "lon": "-116.17395782",
    "lat": " 51.43333054"
  },
  {
    "stationID": 8,
    "stationName": "Paradise-Base",
    "lon": "-116.11",
    "lat": "51.5"
  }
]

If no weather stations exist, the following error result would be generated:

{
  "error":{
    "code":200,
    "message":"Weather stations not found"
  }
}

/weather/{station_id}

Reading

Get weather from a specific station or all stations at current point in time

GET /weather/{station_id} HTTP/1.1
Host: api.skilouise.com

Example JSON-encoded result:

[
  {
    "stationID": 1,
    "stationName": "Operations",
    "temperatureDryBulbCelsius": 3.61,
    "temperatureWetBulbCelsius": 2.44,
    "windSpeedkmh": 1.61,
    "windDirCompass": "E",
    "humidity": 84,
    "pressureMillibars": 1004.4
  }
]

If the weather station does not exist, the following error result would be generated:

{
  "error":{
    "code":404,
    "message":"Station ID not found"
  }
}

/weather/all

Reading

Returns the weather data of all stations at the current time

GET /weather/all HTTP/1.1
Host: api.skilouise.com

Example JSON-encoded result:

[
  {
    "stationID": 1,
    "stationName": "Operations",
    "temperatureDryBulbCelsius": 3.61,
    "temperatureWetBulbCelsius": 2.44,
    "windSpeedkmh": 1.61,
    "windDirCompass": "E",
    "humidity": 84,
    "pressureMillibars": 1004.4
  },
  {
    "stationID": 2,
    "stationName": "Temple",
    "temperatureDryBulbCelsius": 1.39,
    "temperatureWetBulbCelsius": 1.11,
    "windSpeedkmh": 0,
    "windDirCompass": "NE",
    "humidity": 96,
    "pressureMillibars": 1002.94
  },
  {
    "stationID": 3,
    "stationName": "Paradise-Top",
    "temperatureDryBulbCelsius": -2.61,
    "temperatureWetBulbCelsius": -2.91,
    "windSpeedkmh": 0,
    "windDirCompass": "SW",
    "humidity": 95,
    "pressureMillibars": 1003.92
  },
  {
    "stationID": 4,
    "stationName": "Gondola-Top",
    "temperatureDryBulbCelsius": -0.94,
    "temperatureWetBulbCelsius": -1.26,
    "windSpeedkmh": 9.66,
    "windDirCompass": "E",
    "humidity": 95,
    "pressureMillibars": 1004.6
  },
  {
    "stationID": 5,
    "stationName": "SM-Control",
    "temperatureDryBulbCelsius": 2.44,
    "temperatureWetBulbCelsius": 1.44,
    "windSpeedkmh": 8.05,
    "windDirCompass": "NE",
    "humidity": 86,
    "pressureMillibars": 965.86
  },
  {
    "stationID": 7,
    "stationName": "Primary",
    "temperatureDryBulbCelsius": 3.67,
    "temperatureWetBulbCelsius": 0.98,
    "windSpeedkmh": 0,
    "windDirCompass": "N",
    "humidity": 64,
    "pressureMillibars": 1003.79
  },
  {
    "stationID": 8,
    "stationName": "Paradise-Base",
    "temperatureDryBulbCelsius": 1.89,
    "temperatureWetBulbCelsius": 1.25,
    "windSpeedkmh": 3.22,
    "windDirCompass": "E",
    "humidity": 91,
    "pressureMillibars": 1007.55
  }
]

HTTP Status Codes

The Scanning API uses the following standard HTTP status codes:

200: OK
400: Bad Request
401: Unauthorized
404: Resource not found
503: Service Unavailable