Question guys, I have the focus_on set to “Yankees” but today they happen to be off so all I see is the header, with the MLB logo and the text MLB Scores 04/20/2017. Is there a way to hide that if the team that is set in the focus_on is not playing that day?
Read the statement by Michael Teeuw here.
Posts
-
RE: MMM-MLB
-
RE: MMM-MLB
@strawberry-3.141 Def can wait, the season doesn’t start until like 4/1 anyway !
-
RE: MMM-MLB
Can anyone help out in trying to add criteria on only a selected team? I have tried to do it but am not sure exactly what spot in the code this needs to be added.
if games.game.away_team_name === “Yankees” ||
games.game.home_team_name === “Yankees”Was thinking because games is an array do we need a loop maybe?
Thanks.
-
RE: MMM-MLB
Nice work, I had the same kind of idea with this old post, great job implementing it!
https://forum.magicmirror.builders/topic/1701/mlb-scores-module
Just wondering, similar to the MMM-NHL module where you can focus on only 1 team, is that possible in this module? Like for example, just to see the current data for the Yankees?
-
RE: Run Python script which creates a JSON file
@yawns Ahhh perfect - I am going to try that, that should definitely work when implementing on the mirror. But for now I am actually just trying to test this very primitive code to see if it is possible the other way around. I have seen an ajax call needed but am not 100% sure as to where I’d put that in the code or how it would be configured to just run a local python file which outputs nothing but another file.
-
Run Python script which creates a JSON file
Hi, I am trying to test something and am wondering the best way to do it (unrelated to node/mirror). I have an HTML page with a button and a JavaScript file which parses a local JSON file and presents results on screen. I also have a Python script which I run prior which creates the local JSON file. Is there a way for me to click this button in my HTML, run the Python script which creates the file then run my JavaScript file which shows the output?
Thank you
-
RE: Display JSON data from an api
@looolz I am actually trying to do this also. I have JSON data I’m pulling from an API and am able to present it on a page when I click a button but am not entirely sure how to map this over to an actual MM2 module. I’m trying to follow the documentation and it’s overwhelming for someone with limited JS experience! Is there a generic module already created which can be used to kind of re-point the URL to use any JSON feed, change the returned field names and obviously update the results on the mirror?
-
TiVo Upcoming Recordings Module?
Hi all, just thought of a cool idea for a module, perhaps showing a list of the upcoming TiVo scheduled recordings for the next day? Might be a nice add on module. I am not too sure if there’s a TiVo api or something that is useful but has anyone done anything similar?