Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix setting issue with secret #174

Merged
merged 2 commits into from
Jun 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion edge-apps/tfl-bus-status/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion edge-apps/tfl-bus-status/screenly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion edge-apps/tfl-bus-status/static/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
Loading