Skip to content

How to Show the Weather/Time Screen When API is Down/Off Season? #648

@swannyriver

Description

@swannyriver

In my display project I have multiple mlb directories with slight changes to the config files in those directories. Example: "All-Teams", "My-Teams" and "Weather-Only."

Then I have a modified start-scoreboard.sh script that reads the state of a rotary knob attached to a couple GPIO pins and loads the scoreboard directory selected. This allows me to have modes.

NOW my issue is, when I have the system in Weather Only mode and the MLB API is down, the weather screen still fails to load. It goes into that loop of attempting to boot until the script times out. My assumption is that I should modify the main.py file in my Weather-Only to ignore anything having to do with the MLB API....but so far, my attempts have been a failure.

It seems to me that there should be a way to bypass any MLB data when the API is down, or when it's the off season and ONLY pull and show the weather/time screen. Or just scrub out all of the MLB-related scripting and just default to the Weather screen. That way my display isn't a brick in the off season and can at least show the time and weather (minus MLB news).

Where would be a good spot to start to make such heavy modifications to the script/directory?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions