Skip to content

Commit

Permalink
Merge pull request #56 from ychung-mot/0.12
Browse files Browse the repository at this point in the history
Weahter API from azurewebsite: not via API Gateway
  • Loading branch information
ychung-mot authored Aug 23, 2022
2 parents 154d1b3 + 5cc3abf commit 0db3044
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CameraWebApp/Pages/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<div class="container">

<div class="container my-3">
Last fetched at @Model.UpdatedTime UTC
Last updated at @Model.UpdatedTime UTC
</div>

<div class="my-1 mx-1">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public void configure() {

// Call IoT Central API
.setHeader(Exchange.HTTP_METHOD, simple("GET"))
.setHeader("Authorization", simple("{{iotcentral.auth}}"))
.log("API Call to : https://{{iotcentral.weather.api}}")
.toD("https://{{iotcentral.weather.api}}")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ ghostcms.jwtAudience=/v4/admin/
ghostcms.daysToLive=5

#IoT Central
iotcentral.weather.api=moti-weather-dev.api.gov.bc.ca/weather
iotcentral.auth=${IOT_CENTRAL_AUTH}
iotcentral.weather.api=moti-iot-test.azurewebsites.net/api/weather/devices/iotcentral/35094/telemetries/latest


#Open 511
#events URL
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ ghostcms.jwtAudience=/v4/admin/
ghostcms.daysToLive=5

#IoT Central
iotcentral.weather.api=moti-weather-dev.api.gov.bc.ca/weather
iotcentral.auth=${IOT_CENTRAL_AUTH}
iotcentral.weather.api=moti-iot-test.azurewebsites.net/api/weather/devices/iotcentral/35094/telemetries/latest


#Open 511
#events URL
Expand Down

0 comments on commit 0db3044

Please sign in to comment.