Finally I found i was missing the package for python virtual environments that PlatformIO requires,, This was a quick fix with sudo apt-get install python3-venv.
2
Building the device code
devicecode.zip contents:
"fonts.h" - font for the digital clock
"fonts2.h" - font for the scoreboard and media play time
"multiple.h" - 2d array containing bitmaps for all 30 NBA logs plus the KODI logo,
"pin_config.h" - pin config file to allow brightness control with the button on the dev board
"PCBClock,ino" - this is the actual source code for the project
I built this project starting out by editing one of the examples from the LilyGO repo, so if you followed the build environment instructions. You can compile this code by just copying the contents of this zip file over top of the same folder in /examples, and editing the plaformio.ini file to make this the active project.
3
Server Scripts explained
serverscripts.zip contents:
"updatescores.sh" - Main server for NBA scores, it calls the parser and sends the results to the display.
"getscores.sh" - Main parser, downloads the scores and parses them for sending to the display,
"helper.sh" - Helper script to remove games that aren't currently in progress or completed.
"fix.sh" - Small helper script to remove the space from Trail Blazers.
"xbmc.sh" - This script queries KODI with json to get play time and duration then sends it to the display.