diff --git a/edge-apps/tfl-bus-status/README.md b/edge-apps/tfl-bus-status/README.md index c9cb8005..8903ade8 100644 --- a/edge-apps/tfl-bus-status/README.md +++ b/edge-apps/tfl-bus-status/README.md @@ -39,7 +39,7 @@ Step 6. **Specify the TFL API and STOP ID** for example: 490005186S1. Replace "API" with the actual API that obtained from [https://api-portal.tfl.gov.uk/](https://api-portal.tfl.gov.uk/) -`$ screenly edge-app secret set tfl_api=API` +`$ screenly edge-app secret set tfl_api_token=API` and provide the STOP ID also - replace the "stopID" with actual Stop ID. diff --git a/edge-apps/tfl-bus-status/screenly.yml b/edge-apps/tfl-bus-status/screenly.yml index 9d394d2a..161839cb 100644 --- a/edge-apps/tfl-bus-status/screenly.yml +++ b/edge-apps/tfl-bus-status/screenly.yml @@ -27,7 +27,7 @@ settings: https://playground.srly.io/edge-apps/helpers/tfl/bus-stop-lookup/ screenly_render_notification: type: string - default_value: '1' + default_value: "1" title: Requires ready for rendering optional: true help_text: | diff --git a/edge-apps/tfl-bus-status/static/js/script.js b/edge-apps/tfl-bus-status/static/js/script.js index 773564c2..0c8402d0 100644 --- a/edge-apps/tfl-bus-status/static/js/script.js +++ b/edge-apps/tfl-bus-status/static/js/script.js @@ -2,7 +2,7 @@ const apiUrl = 'https://api.tfl.gov.uk/' // Base URL for the TfL API const stopId = screenly.settings.stop_id -const apiKey = screenly.secrets.tfl_api_token +const apiKey = screenly.settings.tfl_api_token async function getCachedData (url, cacheKey) { const cachedData = JSON.parse(localStorage.getItem(cacheKey))