Giter Club home page Giter Club logo

Comments (10)

benfl3713 avatar benfl3713 commented on September 25, 2024

Hi @andrewcliffoutlook

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.

andrewcliffoutlook avatar andrewcliffoutlook commented on September 25, 2024

@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.

benfl3713 avatar benfl3713 commented on September 25, 2024

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.

andrewcliffoutlook avatar andrewcliffoutlook commented on September 25, 2024

@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.

benfl3713 avatar benfl3713 commented on September 25, 2024

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.

benfl3713 avatar benfl3713 commented on September 25, 2024

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.

andrewcliffoutlook avatar andrewcliffoutlook commented on September 25, 2024

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.

benfl3713 avatar benfl3713 commented on September 25, 2024

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.

benfl3713 avatar benfl3713 commented on September 25, 2024

Note the api your probably interested in setting up is the National Rail Knowledge API

from departureboard.

andrewcliffoutlook avatar andrewcliffoutlook commented on September 25, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.