@sdetweil yes, followed your instructions to the letter
Read the statement by Michael Teeuw here.
Posts made by 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. -
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,
-
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
} -
RE: Font-awesome
@sdetweil got ya!
I hadn’t created the column in the right place.
Thanks for your patience and guidance.
-
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).
Name Date Days <tr>
{{p.name}} {{p.date}} {% if p.days == 0 %}Today {% else %}{{p.days}} {% endif %} {% endfor %} -
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 85Similar to the calendar, but the birthday cake instead of calendar icon.
-
RE: Font-awesome
@sdetweil Copied and pasted the code and I get the below
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? -
RE: Font-awesome
@sdetweil I copied and pasted the icon logo from font-awesome cheat sheet.
The module is https://github.com/marcomerens/anniversarymodule