rdefeo / stonks

A stock viewer/chart board for use with the nhl-led-scoreboard app
5 stars 2 forks source link

Stonks board not rendering, stuck in nhlAPI loop #14

Open sflems opened 3 years ago

sflems commented 3 years ago

Went to reactivate stonks tonight and its now stuck in this loop. Tried reinstalling, changing live mode settings, etc. No luck. I think its a sign it wants to be standalone 🤣

Log output:

INFO: Validating config.json.....
INFO: config.json passes validation
Missing data in current team info
21-06-14 22:04:08 INFO Scheduler started
21-06-14 22:04:08 DEBUG Looking for jobs to run
21-06-14 22:04:08 DEBUG No jobs; waiting until a job is added
21-06-14 22:04:08 INFO Added job "UpdateChecker.CheckForUpdate" to job store "default"
21-06-14 22:04:08 INFO Using cache directory: /root/.cache/lastversion.
21-06-14 22:04:08 INFO Created instance of GitHubRepoSession
21-06-14 22:04:08 DEBUG Looking for jobs to run
21-06-14 22:04:08 DEBUG Next wakeup is due at 2021-06-15 03:00:00-07:00 (in 17751.599335 seconds)
21-06-14 22:04:08 DEBUG Looking up "https://github.com/riffnshred/nhl-led-scoreboard/releases.atom" in the cache
21-06-14 22:04:08 DEBUG Current age based on date: 48
21-06-14 22:04:08 DEBUG Freshness lifetime from max-age: 0
21-06-14 22:04:08 DEBUG Starting new HTTPS connection (1): github.com:443
21-06-14 22:04:08 DEBUG https://github.com:443 "GET /riffnshred/nhl-led-scoreboard/releases.atom HTTP/1.1" 304 0
21-06-14 22:04:08 INFO Got HTTP status code 200 from https://github.com/riffnshred/nhl-led-scoreboard/releases.atom
21-06-14 22:04:08 INFO Checking tag v1.6.5
21-06-14 22:04:08 INFO Sanitizing string v1.6.5 as a satisfying version.
21-06-14 22:04:08 INFO Parsed as Version OK
21-06-14 22:04:08 INFO String representation of version is 1.6.5.
21-06-14 22:04:08 DEBUG Looking up "https://api.github.com/repos/riffnshred/nhl-led-scoreboard/releases/tags/v1.6.5" in the cache
21-06-14 22:04:08 DEBUG Current age based on date: 47
21-06-14 22:04:08 DEBUG Freshness lifetime from max-age: 60
21-06-14 22:04:08 DEBUG The response is "fresh", returning cached response
21-06-14 22:04:08 DEBUG 60 > 47
21-06-14 22:04:08 INFO Got HTTP status code 200 from https://api.github.com/repos/riffnshred/nhl-led-scoreboard/releases/tags/v1.6.5
21-06-14 22:04:08 INFO Got formal release for tag v1.6.5
21-06-14 22:04:08 INFO Selected version as current selection: 1.6.5.
21-06-14 22:04:08 INFO Checking tag v1.6.4
21-06-14 22:04:08 INFO Sanitizing string v1.6.4 as a satisfying version.
21-06-14 22:04:08 INFO Parsed as Version OK
21-06-14 22:04:08 INFO String representation of version is 1.6.4.
21-06-14 22:04:08 INFO Tag v1.6.4 does not contain newer version than we already found
21-06-14 22:04:08 INFO Checking tag v1.6.3
21-06-14 22:04:08 INFO Sanitizing string v1.6.3 as a satisfying version.
21-06-14 22:04:08 INFO Parsed as Version OK
21-06-14 22:04:08 INFO String representation of version is 1.6.3.
21-06-14 22:04:08 INFO Tag v1.6.3 does not contain newer version than we already found
21-06-14 22:04:08 INFO Checking tag v1.6.2
21-06-14 22:04:08 INFO Sanitizing string v1.6.2 as a satisfying version.
21-06-14 22:04:08 INFO Parsed as Version OK
21-06-14 22:04:08 INFO String representation of version is 1.6.2.
21-06-14 22:04:08 INFO Tag v1.6.2 does not contain newer version than we already found
21-06-14 22:04:08 INFO Checking tag v1.6.1
21-06-14 22:04:08 INFO Sanitizing string v1.6.1 as a satisfying version.
21-06-14 22:04:08 INFO Parsed as Version OK
21-06-14 22:04:08 INFO String representation of version is 1.6.1.
21-06-14 22:04:08 INFO Tag v1.6.1 does not contain newer version than we already found
21-06-14 22:04:08 INFO Checking tag v1.6.0
21-06-14 22:04:08 INFO Sanitizing string v1.6.0 as a satisfying version.
21-06-14 22:04:08 INFO Parsed as Version OK
21-06-14 22:04:08 INFO String representation of version is 1.6.0.
21-06-14 22:04:08 INFO Tag v1.6.0 does not contain newer version than we already found
21-06-14 22:04:08 INFO Checking tag v1.5.7
21-06-14 22:04:08 INFO Sanitizing string v1.5.7 as a satisfying version.
21-06-14 22:04:08 INFO Parsed as Version OK
21-06-14 22:04:08 INFO String representation of version is 1.5.7.
21-06-14 22:04:08 INFO Tag v1.5.7 does not contain newer version than we already found
21-06-14 22:04:08 INFO Checking tag v1.5.6
21-06-14 22:04:08 INFO Sanitizing string v1.5.6 as a satisfying version.
21-06-14 22:04:08 INFO Parsed as Version OK
21-06-14 22:04:08 INFO String representation of version is 1.5.6.
21-06-14 22:04:08 INFO Tag v1.5.6 does not contain newer version than we already found
21-06-14 22:04:08 INFO Checking tag v1.5.5
21-06-14 22:04:08 INFO Sanitizing string v1.5.5 as a satisfying version.
21-06-14 22:04:08 INFO Parsed as Version OK
21-06-14 22:04:08 INFO String representation of version is 1.5.5.
21-06-14 22:04:08 INFO Tag v1.5.5 does not contain newer version than we already found
21-06-14 22:04:08 INFO Checking tag v1.5.4
21-06-14 22:04:08 INFO Sanitizing string v1.5.4 as a satisfying version.
21-06-14 22:04:08 INFO Parsed as Version OK
21-06-14 22:04:08 INFO String representation of version is 1.5.4.
21-06-14 22:04:08 INFO Tag v1.5.4 does not contain newer version than we already found
21-06-14 22:04:08 INFO Located the latest release at: https://github.com/riffnshred/nhl-led-scoreboard via feed mechanism
21-06-14 22:04:08 DEBUG Starting new HTTP connection (1): statsapi.web.nhl.com:80
21-06-14 22:04:09 DEBUG http://statsapi.web.nhl.com:80 "GET /api/v1/schedule?date=2021-6-14&expand=schedule.linescore HTTP/1.1" 200 1069
21-06-14 22:04:09 DEBUG Starting new HTTP connection (1): statsapi.web.nhl.com:80
21-06-14 22:04:09 DEBUG http://statsapi.web.nhl.com:80 "GET /api/v1/schedule?date=2021-6-14&expand=schedule.linescore HTTP/1.1" 200 1069
21-06-14 22:04:09 DEBUG Starting new HTTP connection (1): statsapi.web.nhl.com:80
21-06-14 22:04:09 DEBUG http://statsapi.web.nhl.com:80 "GET /api/v1/schedule?date=2021-6-14&expand=schedule.linescore HTTP/1.1" 200 1069
21-06-14 22:04:09 DEBUG Starting new HTTP connection (1): statsapi.web.nhl.com:80
21-06-14 22:04:09 DEBUG http://statsapi.web.nhl.com:80 "GET /api/v1/schedule?date=2021-6-14&expand=schedule.linescore HTTP/1.1" 200 1069
21-06-14 22:04:09 DEBUG Starting new HTTP connection (1): statsapi.web.nhl.com:80
21-06-14 22:04:09 DEBUG http://statsapi.web.nhl.com:80 "GET /api/v1/schedule?date=2021-6-14&expand=schedule.linescore HTTP/1.1" 200 1069
21-06-14 22:04:09 DEBUG Starting new HTTP connection (1): statsapi.web.nhl.com:80
21-06-14 22:04:09 DEBUG http://statsapi.web.nhl.com:80 "GET /api/v1/schedule?date=2021-6-14&expand=schedule.linescore HTTP/1.1" 200 1069
21-06-14 22:04:09 DEBUG Starting new HTTP connection (1): statsapi.web.nhl.com:80
21-06-14 22:04:09 DEBUG http://statsapi.web.nhl.com:80 "GET /api/v1/schedule?date=2021-6-14&expand=schedule.linescore HTTP/1.1" 200 1069
...

Config:

{
  "debug": false,
  "loglevel": "DEBUG",
  "live_mode": false,
  "preferences": {
    "time_format": "12h",
    "end_of_day": "02:00",
    "location": "",
    "live_game_refresh_rate": 15,
    "teams": [
      "Golden Knights"
    ],
    "sog_display_frequency": 4,
    "goal_animations": {
      "pref_team_only": false
    }
  },
  "states": {
    "off_day": [
      "stonks"
    ],
    "scheduled": [
      "stonks"
    ],
    "intermission": [
      "stonks"
    ],
    "post_game": [
      "stonks"
    ]
  },
  "boards": {
    "scoreticker": {
      "preferred_teams_only": false,
      "rotation_rate": 5
    },
    "seriesticker": {
      "preferred_teams_only": false,
      "rotation_rate": 5
    },
    "standings": {
      "preferred_standings_only": false,
      "standing_type": "conference",
      "divisions": "north",
      "conference": "eastern"
    },
    "clock": {
      "duration": 60,
      "hide_indicator": false,
      "preferred_team_colors": false,
      "clock_rgb": "false",
      "date_rgb": "false",
      "flash_seconds": false
    },
    "weather": {
      "enabled": false,
      "view": "full",
      "units": "metric",
      "duration": 30,
      "data_feed": "EC",
      "owm_apikey": "",
      "update_freq": 5,
      "show_on_clock": false,
      "forecast_enabled": false,
      "forecast_days": 3,
      "forecast_update": 3
    },
    "wxalert": {
      "alert_feed": "EC",
      "update_freq": 5,
      "nws_show_expire": false,
      "show_alerts": false,
      "alert_title": false,
      "scroll_alert": false,
      "alert_duration": 5,
      "show_on_clock": false
    },
    "stonks": {
      "tickers": [
        "BTC-CAD",
        "ETH-CAD",
        "DOGE-CAD",
        "ADA-CAD",
        "ADD.V",
        "TSLA",
        "AMD",
        "GGI.V"
      ],
      "rotation_rate": 6,
      "chart_enabled": true,
      "logo_enabled": true
    }
  },
  "sbio": {
    "screensaver": {
      "enabled": false,
      "animations": false,
      "start": "01:00",
      "stop": "07:00",
      "data_updates": true,
      "motionsensor": false,
      "pin": 0,
      "delay": 30
    },
    "dimmer": {
      "enabled": false,
      "source": "software",
      "frequency": 5,
      "light_level_lux": 10,
      "mode": "always",
      "daytime": "8:30 AM",
      "nighttime": "5:30 PM",
      "offset": 0,
      "sunset_brightness": 0,
      "sunrise_brightness": 0
    },
    "pushbutton": {
      "enabled": false,
      "bonnet": false,
      "pin": 25,
      "reboot_duration": 2,
      "reboot_override_process": "",
      "display_reboot": false,
      "poweroff_duration": 10,
      "poweroff_override_process": "",
      "display_halt": false,
      "state_triggered1": "clock",
      "state_triggered1_process": ""
    }
  }
}