Read the statement by Michael Teeuw here.
MMM-NBA / NBA Scores Module
-
These are very helpful. I assume I will also need to
import sys import json
at the top of my file?
Right now I’m storing data in a few arrays in my .py file. For example, I have an array where
homeTeam[gameNum]
will display the string of the home team name.
Will this pass the full array?
to_node("home teams", homeTeam)
-
yes you will need both imports, as they are used in this function
this should pass the full array
-
This post is deleted! -
@in_a_days Thank you so much for working on this! I’ve been hoping for an NBA module for a while now
-
Still a long way to go, but I’ll keep working at this till I make something work! :)
The parser is available here if anybody wants to play around with displaying the data.
https://github.com/in-a-days/MMM-NBA/blob/master/MMM-NBA.py
It’s the first original code I’ve written in a very long time so forgive me if it’s not pretty. ;)
-
@in_a_days How are things going? Any luck so far?
-
Still a work in progress! I’ve managed to pull score data from the espn site, but exchanging the data between the python script and node helper is really challenging me. I was trying to just reverse engineer one of the other scoring modules, but both my parsing method and lack of javascript experience have made this really really difficult. I’ve been studying several tutorials and working on building simple modules from scratch just to make sure I understand all the socketNotification exchanges.
Now that I’m getting a feel for it, I’ll probably re-write the parser in javascript. It’s a slow process, but I plan to stay at it until it’s done or someone else makes it first. :)
-
@in_a_days at least there is a module for the standings https://forum.magicmirror.builders/topic/1479/mmm-nbaranking-nba-standings
-
@in_a_days Keep up the good work! I’m in the same boat stumbling through code as I go haha