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

    Posts

    Recent Best Controversial
    • RE: Weather module - creating new Provider

      @crazylegs This are CORS errors, it means that weather site of Canada can not be accessed via origin localhost:8080. This only occurs from browser. If you request this from Node helper it should not occur as server clients (non browser) do not check for pre flight requests. When you open it in browser it is not a api request but just GET but when you try to access it via JavaScript code it first do preflight request (OPTIONS verb) to check if you are allowed or not.

      Right now weather module does the request from browser and not from node helper so this issue occurs.

      f5820d64-41d0-479e-b5d2-79b3f6185d36-image.png

      possible solution is that you create a proxy api and call Canada weather api from that api and use proxy api here (which should allow CORS).

      posted in Troubleshooting
      A
      ashishtank
    • RE: module that displays a certain text from a website, the text on the website is updated daily

      @Amoniak there are lots of missing pieces… add console.log with some message in each function and see how the flow works.

      posted in Requests
      A
      ashishtank
    • RE: Covid-19 sparkline

      @JerryP you can ignore this warning.

      posted in Troubleshooting
      A
      ashishtank
    • RE: module that displays a certain text from a website, the text on the website is updated daily

      @Amoniak yes, I checked the response from watch tower in postman and they give data of last 2-3 days or may be from Sunday to this day, so you will need to select the right node. You can use class tabContent as identifier and today’s date for selection of the node. Also check which html parse is good enough, as HTML is very complex to parse you may want to choose right parser which gives speed and is lightweight. i.e. node-html-parser

      2021-01-20-18-33-58-Clipboard

      Other thing you can do is once you have parsed text data from watch tower, you can assign it to poem’s format (title, content and name) and it will just work. later on you can change the UI and text property names if you want.

      posted in Requests
      A
      ashishtank
    • RE: module that displays a certain text from a website, the text on the website is updated daily

      @Amoniak any error in dev console or PM2/terminal ?

      posted in Requests
      A
      ashishtank
    • RE: module that displays a certain text from a website, the text on the website is updated daily

      @Amoniak MMM-PoemOfTheDay is perfect to adapt for your need. Instead of poem site you need to get data from WatchTower site and parse the html response to extract the text.

      posted in Requests
      A
      ashishtank
    • RE: Covid-19 sparkline

      @JerryP this is not failure it is warning that highcharts.js.map file not found. Is there any other error ? is module working ?

      posted in Troubleshooting
      A
      ashishtank
    • RE: Display

      @Bolovai check @George post, you can have one power strip cable coming out of mirror and in that power string you can plug monitor and pi.

      posted in Troubleshooting
      A
      ashishtank
    • RE: Manual Installation Trouble

      @brendan_c23 Below are pm2 commands help. If you want to stop the mirror then use pm2 stop 0 or pm2 stop MagicMirror
      refer : https://pm2.keymetrics.io/docs/usage/quick-start/

      posted in Troubleshooting
      A
      ashishtank
    • RE: Default calendar module: displaying full day events without time

      @sdetweil take care, and get well soon.

      posted in Troubleshooting
      A
      ashishtank
    • 1
    • 2
    • 3
    • 4
    • 5
    • 6
    • 14
    • 15
    • 4 / 15