@yawns I think maybe if you guys are able to do the conversion I can then dive in and figure out how to go from one to the other. If I try to do it I think I’d get stuck too many times as I am pretty poor in JS. I really appreciate it!
Read the statement by Michael Teeuw here.
 Offline
Offline
Posts
- 
RE: Converting an old JS file into a module
- 
RE: Converting an old JS file into a module@yawns Sure, the code was added as part of jangellx’s mirror project. the actual JS file is located here https://github.com/jangellx/MagicMirror/blob/master/js/mm-mta.js 
- 
Converting an old JS file into a moduleHi all, I’ll preface this in saying I am a database developer and not a JavaScript developer at all but with some help from a fellow developer we did work on a file for the older mirror project that pulls data from an API into JSON format and displayed it on a webpage. It was a bit rough looking and not the best code but it worked. I have since moved on to using the MM2 and am wondering if someone would be able to help me convert this old code over to an actual working MM2 module. This particular process pulls down the train delay information from the MTA (NYC’s transit authority). Thank you to everyone here for all of your help so far! 
- 
RE: MMM-NHL - NHL Score and Schedule module@ooom416354 said in NHL Score and Schedule module: anyone having an issue today with the module? i am just seeing Loading… and was wondering if it was just me or some other issue think i figured it out, no games on the schedule for the christmas break. 
- 
RE: MMM-NHL - NHL Score and Schedule moduleanyone having an issue today with the module? i am just seeing Loading… and was wondering if it was just me or some other issue 
- 
RE: Trying to write my own Module...I am kind of in the same boat. I actually have an old JS file which would return data in JSON format using the MTA API for the MM1. This allowed me to see if my train was delayed or not before leaving the house. I am trying to figure out an easy way to port to over to the new mirror but I am not at all a JavaScript programmer. If anyone would like to have a look at the current code for the MM1 and maybe try to port it over it might help some folks who live in the NYC area. Or if anyone knows if there is a current module which takes JSON results and displays them on the screen I can try to mock that up to integrate this. Thanks! 
- 
RE: MMM-forecast-io -- Localized up to the minute weatheralso it could just be me but I keep seeing the rain icon next to the temperature even though there’s no rain in the forecast for today (the small icon by the days of the week shows nothing but sun). Anything I can do to check that icon to see if it is an issue? 
- 
RE: MMM-NHL - NHL Score and Schedule module@strawberry-3.141 said in NHL Score and Schedule module: @ooom416354 try focus_on: [2]worked perfectly, thanks! 
- 
Darken fonts for some moduleshi all, I was just wondering how I could make the font a little darker for some modules. for example, the calendar module has the actual holidays in a nice bright color but the days left until in a more dimmed color. Was wondering if I can make them the same. thanks