@broberg I agree with you and think that getting rid of those inline styles is the best long term solution
Read the statement by Michael Teeuw here.
Posts made by morozgrafix
-
RE: How to set Font in Alarm Clock
-
RE: How to set Font in Alarm Clock
@strawberry-3.141 & @broberg I believe that default alert module has inline styles for alerts and notifications that would override any CSS that is set outside of it.
For example take a look at https://github.com/MichMich/MagicMirror/blob/master/modules/default/alert/alert.js#L39
if (message.title) { msg += "<span class='thin' style='line-height: 35px; font-size:24px' color='#4A4A4A'>" + message.title + "</span>"; } if (message.message){ if (msg != ""){ msg+= "<br />"; } msg += "<span class='light' style='font-size:28px;line-height: 30px;'>" + message.message + "</span>"; }
and https://github.com/MichMich/MagicMirror/blob/master/modules/default/alert/alert.js#L81
if (params.title) { message += "<span class='light' style='line-height: 35px; font-size:30px' color='#4A4A4A'>" + params.title + "</span>" } if (params.message) { if (message != ""){ message += "<br />"; } message += "<span class='thin' style='font-size:22px;line-height: 30px;'>" + params.message + "</span>"; }
I believe that most elegant way of fixing it is to move those styles into CSS file and have ability to override it in
custom.css
or other file. -
RE: Mobile app (bachelor thesis)
Filled out survey this morning. Good luck with your thesis, hope my answers help you. (one thing is that my answer about frequency of config.js modifications may screw up your results, due to me playing around with hacking and developing modules) Would love to get on beta of the iOS app.
-
RE: Creating a module to display daily horoscopes
This topic can probably be marked as “solved” - module thread is here https://forum.magicmirror.builders/topic/1370/mmm-horoscope
-
RE: MMM-horoscope - daily horoscope
@lolobyte At this point it is only in English, as I was only able to find one reliable API to pull data from. If you know of other API or possible RSS feeds in other languages I’m happy to look into integrating it as well.
-
MMM-horoscope - daily horoscope
Description:
Horoscope Module for MagicMirror² v.0.1.0
This is a module for MagicMirror² that adds daily horoscope pulled from the Yahoo Style Horoscopes. API endpoint used for this module is not officially supported and may break at any time.
Initial request for it was by @YoungHomie and I thought that this would be a good opportunity to try creating my first module from scratch. (I’m pretty much clueless when it comes to horoscopes or anything related to astrology) Details are in the repo, feel free to file issues on github if you find bugs or have suggestions for features. It’s also easy get in touch with me through the forum.
Screenshots:
Download:
[card:morozgrafix/MMM-horoscope]
Version 0.1.0
- Initial Work committed
-
RE: save some information from a xml or json to a txt file
@gismo2006 I know this thread is solved and a few months old. There is also another one liner solution with use of jq JSON parser from command line. Here is an example that would get result that you need (or at least get you close to it)
curl -s "http://api.openweathermap.org/data/2.5/weather?id=2934486&lang=de&units=metric&mode=json&appid=YOUR_OWM_API_KEY" | jq -r '"Today is " + .weather[].description + " and " + (.main["temp"]|tostring) + " degrees."' > filename.txt
would result in Today is überwiegend bewölkt and -6.12 degrees. put into
filename.txt
-
RE: Developing USGS Earthquake Map (2MB GIf warning) Topic 2
This may help you get going with hiding http://zeleniy.me/globe.html also this seems to do what you are trying to achieve http://bl.ocks.org/PatrickStotz/1f19b3e4cb848100ffd7
-
RE: Creating a module to display daily horoscopes
I’ve pushed my initial work for the module to GitHub. This is my very first MM module and I probably missed something obvious. Please get in touch with me if you have a suggestion or feature request (filing GH Issue is a great way to do it). Once I feel comfortable and possibly have some beta testers I will add a separate thread for this module. Thanks.
Repo is here: https://github.com/morozgrafix/MMM-horoscope