Comments (10)
Thanks for raising this, I think your the first person to try run it in docker on a raspberry pi.
If I was to guess, it's because a raspberry pi is ARM64 rather the X64 then it doesn't build it in docker correctly.
The good news it the code fully supports ARM64 it's just I haven't added support for it within docker. I shall try and add an extra config specifically for building it on a raspberry pi
from departureboard.
@benfl3713 thank you. If there is any additional information I can send you that will highlight what config changes are needed please let me know
from departureboard.
I've fixed this for you now. Turned out to be a very odd problem with paths working differently on the RPI.
I've tested it on my Pi5 and it is building a running fine now.
You'll need to git pull
to get the changes I've made.
And then you'll need to rebuild the docker container with sudo docker-compose build
from departureboard.
@benfl3713, thank you. That is working now. Whilst I can now run a local view by providing my local station via a querystring parameter I note that the system doesn't work completely as a local docker container. For example you cannot goto to the admin section as that points at admin.leddepartureboard.com and you cannot login, the google login doesn't work (I expect this is because you need to be running this as a https site rather than http). How would we get this to run completely local?
I also note from logs coming from the docker container that you need more than realtime train token details, it says you need nationalrail login details. Would you consider documenting how you apply for these and what the entries in the config file should look like.
from departureboard.
I think to run it locally I just need to add the url into a whitelist. What port are you running it on, guessing it's 9005? And are you accessing it via http://localhost:9005
or are you referencing it remotely such as http://raspberrypi:9005
from departureboard.
And yes, for things like searching for a station, it requires national rail login. I can provide some information on how to obtain this info
from departureboard.
And yes, for things like searching for a station, it requires national rail login. I can provide some information on how to obtain this info
Hi @benfl3713 please could you send me details on how I do this as when you run this locally the code runs through a process which ideally would have these details and it means the code performs much slower then it does on your leddeparturesboard.com site
from departureboard.
Hi @andrewcliffoutlook
I have added the following guide to the repo: https://github.com/benfl3713/DepartureBoard/blob/master/RUNNING_LOCALLY.md
I'm recalling from memory, so if you experience something different or need any help, let me know and I can update the guide with more info
from departureboard.
Note the api your probably interested in setting up is the National Rail Knowledge API
from departureboard.
@benfl3713, thank you for putting up the instructions. You have been super responsive and shown how open source code can really work.
from departureboard.
Related Issues (20)
- PWA Refresh Cache ask user
- Better Mobile Formatting HOT 2
- Single board custom row count
- Form Validation for Custom Departures
- Complete Overhaul of Non Dynamic Pages HOT 1
- Trams Support HOT 1
- Screen Jank - Started last Week HOT 20
- Search station with dash in name HOT 1
- Exception Thrown HOT 1
- Enhanced Departure Summary displays
- TfL Tube departures HOT 2
- Stations shown after they have already been stopped at HOT 3
- Liverpool Street Station (LST) is not returning any departure data HOT 2
- display time in time zone of station, not user's local time zone HOT 2
- Can't create account/log in with google HOT 2
- Site launches locally from docker-compose.yml but doesn't fetch any results HOT 3
- Implement Amey Announcements HOT 1
- Web page hangs if left running for a few hours HOT 3
- Completely black in iframe on Dakboard Raspberry Pi 4 HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from departureboard.