riffnshred / nhl-led-scoreboard

🚨 Display NHL live score, stats, and more of your favorite teams, on a Raspberry Pi driven RGB LED matrix. 🚨
GNU General Public License v3.0
421 stars 96 forks source link

Board presents as off day when there's a game scheduled #411

Closed brthurr closed 1 year ago

brthurr commented 1 year ago

Describe the bug I am pretty sure that this has been happening since the playoffs started. Essentially, I never see a score ticker because the board thinks it is an off day. For example, today's a pretty important game (Go Knights), and when I run the board, I don't see the scoreticker even though it's configured to view for the scheduled state.

Logs

INFO: Validating config.json.....
INFO: config.json passes validation
2023-06-13 12:45:46 INFO NHL-LED-SCOREBOARD - v1.6.10 (128x32)
2023-06-13 12:45:46 INFO location loaded from cache (saved -1 days ago): Waller, TX [29.9443902, -95.9955885]
2023-06-13 12:45:46 INFO Refreshing OWM current observations weather
2023-06-13 12:45:47 INFO ['06/13 12:45', '\uf002', 'broken clouds', '91.0F', '103.6F', '65%', '80.1F']
2023-06-13 12:45:47 INFO ['10.4mph', 'S', '\uf05c', '17.3mph', '1012 MB', '\uf07b', '6.2 mi']
2023-06-13 12:45:47 INFO NWS alerts https://api.weather.gov/ returned status code: 200
2023-06-13 12:45:47 INFO Checking NWS weather alerts
2023-06-13 12:45:47 INFO Number of alerts is 0
2023-06-13 12:45:47 INFO No active NWS alerts in your area
2023-06-13 12:45:47 INFO Updating weather forecast every 1 hour(s) starting @ 13:00
2023-06-13 12:45:47 INFO Refreshing OWM daily weather forecast
2023-06-13 12:45:48 INFO New forecast: [['Wed 06/14', 'broken clouds', '\uf002', '94F', '73F'], ['Thu 06/15', 'scattered clouds', '\uf002', '98F', '76F'], ['Fri 06/16', 'clear sky', '\uf002', '98F', '74F']]
2023-06-13 12:45:48 INFO Forecast has changed and been updated....
2023-06-13 12:45:48 INFO [['Wed 06/14', 'broken clouds', '\uf002', '94F', '73F'], ['Thu 06/15', 'scattered clouds', '\uf002', '98F', '76F'], ['Fri 06/16', 'clear sky', '\uf002', '98F', '74F']]
2023-06-13 12:45:48 INFO Weather forecast next update @ 13:00
2023-06-13 12:45:48 INFO Rendering...
2023-06-13 12:45:48 INFO Your preferred teams are Off today
2023-06-13 12:45:48 INFO PING !!! Render off day
2023-06-13 12:45:48 INFO Checking for new day
2023-06-13 12:45:48 INFO It is not a new day

Your config file

{
    "debug": false,
    "loglevel": "INFO",
    "live_mode": true,
    "preferences": {
        "time_format": "24h",
        "end_of_day": "23:59",
        "location": "Waller, TX",
        "live_game_refresh_rate": 10,
        "teams": [
            "Golden Knights"
        ],
        "sog_display_frequency": 4,
        "goal_animations": {
            "pref_team_only": true
        }
    },
    "states": {
        "off_day": [
            "team_summary",
            "scoreticker",
            "seriesticker"
        ],
        "scheduled": [
            "team_summary",
            "scoreticker",
            "clock",
            "weather",
            "wxforecast",
            "wxalert",
            "seriesticker"
        ],
        "intermission": [
            "clock",
            "scoreticker"
        ],
        "post_game": [
            "clock",
            "scoreticker",
            "seriesticker",
            "stanley_cup_champions"
        ]
    },
    "boards": {
        "scoreticker": {
            "preferred_teams_only": false,
            "rotation_rate": 5
        },
        "seriesticker": {
            "preferred_teams_only": false,
            "rotation_rate": 5
        },
        "standings": {
            "preferred_standings_only": true,
            "standing_type": "conference",
            "divisions": "pacific",
            "conference": "western"
        },
        "clock": {
            "duration": 15,
            "hide_indicator": false,
            "preferred_team_colors": true,
            "clock_rgb": "",
            "date_rgb": "",
            "flash_seconds": true
        },
        "weather": {
            "enabled": true,
            "view": "full",
            "units": "imperial",
            "duration": 30,
            "data_feed": "OWM",
            "owm_apikey": "",
            "update_freq": 5,
            "show_on_clock": true,
            "forecast_enabled": true,
            "forecast_days": 3,
            "forecast_update": 1
        },
        "wxalert": {
            "alert_feed": "NWS",
            "update_freq": 5,
            "show_alerts": true,
            "nws_show_expire": true,
            "alert_title": true,
            "scroll_alert": true,
            "alert_duration": 5,
            "show_on_clock": true
        }
    },
    "sbio": {
        "screensaver": {
            "enabled": false,
            "animations": true,
            "start": "22:00",
            "stop": "08:00",
            "data_updates": false,
            "motionsensor": false,
            "pin": 7,
            "delay": 30
        },
        "dimmer": {
            "enabled": false,
            "source": "software",
            "daytime": "",
            "nighttime": "",
            "offset": 0,
            "frequency": 5,
            "light_level_lux": 400,
            "mode": "always",
            "sunset_brightness": 5,
            "sunrise_brightness": 40
        },
        "pushbutton": {
            "enabled": false,
            "bonnet": false,
            "pin": 25,
            "reboot_duration": 2,
            "reboot_override_process": "",
            "display_reboot": true,
            "poweroff_duration": 10,
            "poweroff_override_process": "",
            "display_halt": true,
            "state_triggered1": "weather",
            "state_triggered1_process": ""
        }
    }
}

Hardware you are using

Software

riffnshred commented 1 year ago

change the "end_of_day": "23:59", to something between 00:01 and 12:00.