Switch between Today's Schedule and Live Match score by rotating the MagTag.
This script uses the amazing World Cup JSON to get its information. For now, the Live Match page only shows the current scores. In-game stats will be added when they become available on the JSON. Looks like it'll be happening soon.
Once setup, select Schedule view or Live Game view by changing the orientation of the device. At the next update, the MagTag will check the orientation and display the selected view. For an immediate update simply click the reset button.
- Update board to use CircuitPython 8.0.0-beta.4 or higher.
- Copy required libraries into
/lib
folder. - Copy repo files onto the MagTag.
- Update
secrets.py
with your WiFi credentials. - Update
User Settings
block incode.py
- CircuitPython 8.0.0-beta.4 or higher.
Make sure these libraries are installed in the /lib
folder of the MagTag. The easiest way to find them is by downloading the Bundle for Version 8.x from the CircuitPython page.
- adafruit_bitmap_font
- adafruit_display_text
- adafruit_display_shapes
- adafruit_datetime
- adafruit_requests
- adafruit_io
- adafruit_lis3dh
- neopixel
- In-game stats when available.
- Display next game info on Live Match page when no game is being played.
- Favorite team details when turned vertically.
- Fine-tune refresh times so MagTag only updates at midnight, just before a match, and then at regular intervals during a match.