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

    Posts

    Recent Best Controversial
    • RE: CORS policy

      @sdetweil I used the MagicMirror installation instructions (assuming manual install) to install the software.

      Have just tried your git fetch origin
      But get fatal: Refusing to fetch into current branch refs/heads/develop of none-bare repository.

      (Sorry, you’re probably shaking your head, but I am a complete noob at all this)

      posted in Troubleshooting
      B
      bicolorbore586
    • RE: CORS policy

      @sdetweil yes, followed your instructions to the letter

      posted in Troubleshooting
      B
      bicolorbore586
    • RE: CORS policy

      @sdetweil
      I’ve tried to do that, now get pretty much the same result, but with a slightly different bit at the end.

      Access to fetch at ‘https://api.weatherbit.io/v2.0/forecast/daily?lat=xxx&lon=-xxx&units=M&key=a…’ from origin ‘http://localhost:8080’ has been blocked by CORS policy: The ‘Access-Control-Allow-Origin’ header contains multiple values ‘*, *’, but only one is allowed. Have the server send the header with a valid value, or, if an opaque response serves your needs, set the request’s mode to ‘no-cors’ to fetch the resource with CORS disabled.
      api.weatherbit.io/v2…:1
      Failed to load resource: net::ERR_FAILED
      weatherbit.js:66 Could not load data … TypeError: Failed to fetch
      at Class.fetchData (weatherprovider.js:136:27)
      at Class.fetchWeatherForecast (weatherbit.js:53:8)
      at weather.js:184:27
      weather.js:150 New weather information available.
      localhost/:1 Refused to apply style from ‘http://localhost:8080/css/custom.css’ because its MIME type (‘text/html’) is not a supported stylesheet MIME type, and strict MIME checking is enabled.

      posted in Troubleshooting
      B
      bicolorbore586
    • CORS policy

      Hi all,

      Upon loading my magicmirror today, I’ve been met with an issue in relation to the default weather module, starting in dev mode has shown me the error

      access to xmlhttprequest at from origin has been blocked by cors policy the access control allow origin header contains multiple values ‘*, *’ but only one is allowed

      after googling, and seeing the results, it’s way above my (non-existent) technical know-how.

      Is anyone able to shed any light (in lay man’s terms)?

      Thanks,

      posted in Troubleshooting
      B
      bicolorbore586
    • RE: MMM-Calendarext3 eventTransformer

      @sdetweil Legend!

      posted in Troubleshooting
      B
      bicolorbore586
    • MMM-Calendarext3 eventTransformer

      So, I’ve copied the code, but wondering how to add more than 1 event title / colour combination, eg John = Blue for the example below, but how would I get John=Blue, Steve=Green, Sandra=Orange, I’ve tried copying and having a separate line for each, but that results in none of the events having colours.

      eventTransformer: (ev) => {
      if (ev.title.search(‘John’) > -1) ev.color = ‘blue’
      return ev
      }

      posted in Troubleshooting
      B
      bicolorbore586
    • RE: Font-awesome

      @sdetweil got ya!

      I hadn’t created the column in the right place.

      Thanks for your patience and guidance.

      posted in Troubleshooting
      B
      bicolorbore586
    • RE: Font-awesome

      @sdetweil so, I now have the icon in each row, but it fills the name column and shifts the name to the date, date to days and pops the days on the end… (sorry absolute noob at this, trying to move things around, but can’t for the live of me see how to change it).
      014861f7-aacd-4bfa-8961-5bf028681d21-image.png

      {% for p in people.slice(0,limit) %}
      	<tr>
      
      {% if p.days == 0 %} {% else %} {% endif %} {% endfor %}
      Name Date Days
      {{p.name}} {{p.date}}Today{{p.days}}
      posted in Troubleshooting
      B
      bicolorbore586
    • RE: Font-awesome

      @sdetweil Yeah the config.js is all set up.
      I would like it a inn the screen shot you posted where you have
      Cake Icon Steve 25 Nov 50
      Cake Icon Marco 30 Dec 85

      Similar to the calendar, but the birthday cake instead of calendar icon.

      posted in Troubleshooting
      B
      bicolorbore586
    • RE: Font-awesome

      @sdetweil Copied and pasted the code and I get the below 29368d2e-22bc-4a73-9588-cf7df46f6846-image.png

      Questions…
      Do I need to add each persons name to where it says {{p.name}}
      Does it matter where in the .njk code I put the text?

      posted in Troubleshooting
      B
      bicolorbore586
    • 1
    • 2
    • 3
    • 4
    • 5
    • 4 / 5