Git Product home page Git Product logo

Comments (5)

chrisys avatar chrisys commented on June 20, 2024 1

Thanks for helping here @GOTO-GOSUB ! Just to clarify, the reason that it does this is because that's what the signs say in the middle of the night when there are no trains (i.e. out of hours, or your filters have been set as in this case).

At least, this is what they used to look like last time I was waiting at a station in the middle of the night 😅

Maybe we could add some logs that indicate if the data is coming through or not, so when debugging you'd know if this screen was intentional due to being out of hours or caused by lack of data.

from train-departure-display.

ISC82 avatar ISC82 commented on June 20, 2024

Here are the logs after a reboot.

26.04.23 22:57:52 (+0000) main Starting Train Departure Display v0.4.0
26.04.23 22:57:52 (+0000) main /usr/src/python-packages/luma/core/interface/serial.py:206: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings.
26.04.23 22:57:52 (+0000) main self._gpio.setup(pin, self._gpio.OUT)
26.04.23 22:57:58 (+0000) main Effective FPS: 0.0
26.04.23 22:59:59 (+0000) main Effective FPS: 11.74
26.04.23 23:02:00 (+0000) main Effective FPS: 11.68
26.04.23 23:04:01 (+0000) main Effective FPS: 11.5
26.04.23 23:06:02 (+0000) main Effective FPS: 11.47
26.04.23 23:08:03 (+0000) main Effective FPS: 11.43

from train-departure-display.

GOTO-GOSUB avatar GOTO-GOSUB commented on June 20, 2024

I get this if my display is on outside of the active hours variable that I have set or if the trains are on strike again. I've also seen it on stations where the trains are very infrequent such as the Eurostar where the departure data does not appear to be provided all through the day. Assuming your choices of station have trains running at that time of night, may I suggest checking that you aren't running it outside of your active hours setting ? I've blanked my API Key for the purpose of this illustration but I wonder what it displays if you don't have a valid API Key...

2023-04-27 08_48_49-balena dashboard

from train-departure-display.

ISC82 avatar ISC82 commented on June 20, 2024

Thanks for this. I checked those variables and they were correct. However, you made me think about some of the other variables and I then realised I had set the destination station. I cleared that and the departures started appearing again. So it seems that trains were being diverted to a different station in the past 48 hours.

So lesson learned, check and double-check those variables first. Would have saved me a lot of wasted troubleshooting last night.

from train-departure-display.

GOTO-GOSUB avatar GOTO-GOSUB commented on June 20, 2024

Cool, it's good to know you've fixed it. Thanks for the update as well since it might help someone else in future.

from train-departure-display.

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.