MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. Elaniobro
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    E
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 17
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Transit module stopped working

      We can close this issue, it was resolved on github. The module itself never broke, it was an upstream service that did. A module that I was using, was using deprecated endpoints. I spoke with the developer and the MTA and we were able to isolate and resolve it.

      In addition, not only did the endpoints change but any API keys generated on their old site, datamine.mta.info will no longer work.

      You will need to create a new one via api.mta.info moving forward.

      Thank you for your assist and feed back.

      posted in Troubleshooting
      E
      Elaniobro
    • RE: Transit module stopped working

      @sdetweil Welcome to assist, you can find the repo here: https://github.com/Elaniobro/MMM-nyc-transit

      I do have it cleaned up a bit locally, but I am thinking my API key is no longer valid and or something changed upstream that I am not aware of. The mirror is doing what it should and returning results array, but the array is empty.

      posted in Troubleshooting
      E
      Elaniobro
    • RE: Transit module stopped working

      @sdetweil Thank you for your feedback. I am/was already debugging in the manner you mentioned. I was able to resolve the bug(s), but now I am still not seeing any data. My best guess is somewhere along the fetch of the data something changed or broke. The application is returning data, but the response is empty.

      payload = [{ downTown: [] }, { upTown: [] }]

      For some reason, just not getting any data :/

      I am still digging in.

      posted in Troubleshooting
      E
      Elaniobro
    • RE: Transit module stopped working

      @sdetweil They aren’t, they can be removed. Issue I am seeing is the payload is not populated indo the getDom()

      I am setting this.result = payload which on intitial load/start of the module is undefined, which is expected, since the API promise has not been fulfilled. Later on, the socketNotificationReceived() recieves a payload which is set to this.result but in the getDom() var data = this.result is never updated.

      I am unsure of where/what caused this breakdown, as last time I touched the code was Apr 30. This is leading me to believe something changed in Core, but I am unaware of what that might be.

      posted in Troubleshooting
      E
      Elaniobro
    • RE: Transit module stopped working

      @sdetweil Its called in the socketNotificationReceived() here:
      https://github.com/Elaniobro/MMM-nyc-transit/blob/master/MMM-nyc-transit.js#L358-L360

      posted in Troubleshooting
      E
      Elaniobro
    • RE: Transit module stopped working

      The module is getting the data, but its not updating with the this.updateDom method. I am not sure if this was deprecated or not. Looking into it.

      posted in Troubleshooting
      E
      Elaniobro
    • RE: Transit module stopped working

      @sdetweil what makes you think the API changed? ( I am the author, and am looking into it now)

      posted in Troubleshooting
      E
      Elaniobro
    • RE: MMM-nyc-transit

      Sreen shot:

      MMM-nyc-transit module screenshot

      posted in Transport
      E
      Elaniobro
    • MMM-nyc-transit

      Made a rather robust Magic Mirror Module that will track any MTA Subway train’s departure from any NYC Subway station. It is pretty configurable, allowing you to display as a marquee or list and gives you the option to pad the departure time with walking time to the train station as well as letting you select multiple trains/stations and choose which direction for each train!

      Any and all feedback is welcome, it is written in vanilla JavaScript with little ES6 syntax because of mirror limitations on a raspberry pi0w

      https://github.com/Elaniobro/MMM-nyc-transit

      posted in Transport
      E
      Elaniobro
    • RE: NYC MTA Subway Times

      I myself wrote one if you want to check it out. Feedback is welcome:
      https://github.com/Elaniobro/MMM-nyc-transit

      posted in Requests
      E
      Elaniobro
    • RE: NYC MTA Subway Times

      @imchrisrein Which Module are you using?

      posted in Requests
      E
      Elaniobro
    • RE: Is there any callback for getDom execution ?

      @edubey I am working on my own module, and saw this post. I too am interested in knowing the answer to this. If not, I would also be curious to your solution.

      posted in Development
      E
      Elaniobro
    • RE: Raspberry Pi 0w Module Errors

      @ninjabreadman++ Thank you again for your reply, I will review the MM on the pi0w with the dir name the same as the Module.register(). That said, if this is truly the issue, wouldn’t the same issue persist when booting up the electron app locally on my mac?

      re loader.js error that appears to be coming from MagicMirror/js/loader.js which appears to be failing to load my MMM-my-module.js file AFAIK

      posted in Development
      E
      Elaniobro
    • RE: calendar not showing

      @johnnewhouse Could/Would you mark my last post as the answer? Not sure if you saw my previous comment, as I edited the post to @ you :)

      posted in Troubleshooting
      E
      Elaniobro
    • RE: Raspberry Pi 0w Module Errors

      Hello @ninjabreadman, thank you for your reply.

      Yes, my magic mirror, running on my pi0w indeed starts up. Once I added a custom module I am building, it no longer starts up. I get the Black screen.

      I checked the config via ssh and nano, it all looks good.
      My Module folder is:

      • MMM-MY-module
        –MMM-my-module.js
      Module.register("MMM-my-module"..
      

      when I comment out my module, everything works. I checked and dbl checked that the MMM-my-module.js does NOT have any es6 (known issue for raspberry pi0w in it. There IS es6 in the node_module_helper.js but that should be moot since that is processed server side.

      Thoughts?

      posted in Development
      E
      Elaniobro
    • Raspberry Pi 0w Module Errors

      Having issues with module development. Everything works fine when starting the app locally. However, when I push my code to my raspberry Pi0w an start it up, I get the following error:

      pi@magic-mirror:~ $ sudo xinit /home/pi/midori_start.sh
      
      
      X.Org X Server 1.18.4
      Release Date: 2016-07-19
      X Protocol Version 11, Revision 0
      Build Operating System: Linux 4.4.26-v7+ armv7l Raspbian
      Current Operating System: Linux magic-mirror 4.14.62+ #1134 Tue Aug 14 16:58:07 BST 2018 armv6l
      Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1200 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:B4:99:96 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000  dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=6034293c-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait modules-load=dwc2,g_ether
      Build Date: 11 November 2016  11:59:59AM
      xorg-server 2:1.18.4-2+rpi1 (https://www.debian.org/support) 
      Current version of pixman: 0.33.3
      	Before reporting problems, check http://wiki.x.org
      	to make sure that you have the latest version.
      Markers: (--) probed, (**) from config file, (==) default setting,
      	(++) from command line, (!!) notice, (II) informational,
      	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
      (==) Log file: "/var/log/Xorg.0.log", Time: Mon Aug 27 17:56:14 2018
      (==) Using system config directory "/usr/share/X11/xorg.conf.d"
      modprobe: FATAL: Module g2d_23 not found.
      wm_set_cursor_visibility: visible using XCreateFontCursor
      ** Message: console message: [native code] @0: Initializing MagicMirror.
      
      ** Message: console message: [native code] @0: Loading core translation file: translations/en.json
      
      ** Message: console message: [native code] @0: Loading core translation fallback file: translations/en.json
      
      ** Message: console message: [native code] @0: Load script: modules/MMM-my-module//MMM-my-module.js
      
      ** Message: console message: http://localhost:8080/js/loader.js @190: Error on loading script:
      
      ** Message: console message: [native code] @0: Load stylesheet: css/custom.css
      
      ** Message: console message: [native code] @0: All modules started!
      
      posted in Development
      E
      Elaniobro
    • RE: calendar not showing

      @johnnewhouse the issue is in the for loop the keyword that is used is an ES6 variant: the let keyword. Flip it to var and voilá, golden!

      i.e.:

      listContainsEvent: function(eventList, event){
      	for(var evt of eventList){
      		if(evt.title === event.title && parseInt(evt.startDate) === parseInt(event.startDate)){
      			return true;
      

      Edit: I submitted a PR to fix this:
      https://github.com/MichMich/MagicMirror/pull/1381

      posted in Troubleshooting
      E
      Elaniobro
    • 1 / 1