@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
-
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.cssor 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.txtwould 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
-
Problem interacting with forum on iOS and OS X safari
I noticed that I’m not able to send replies, open new topics and interact with many buttons on https://forum.magicmirror.builders forums when browsing the site in Safari on my iPhone 6S with latest iOS. Decided to troubleshoot the problem and tried to load it in Safari 10.0.2 (11602.3.12.0.1) on El Capitan 10.11.6 just to find same issues.
Noticed that console log shows this error:
[Error] Failed to load resource: cannot parse response (nodebb.min.js, line 0) -> https://forum.magicmirror.builders/nodebb.min.js?c15a9192-ff07-4dae-b48b-e1d0ff96ef00and also noticed that footer didn’t load due to the following error:
[Error] ReferenceError: Can't find variable: require Global Code (categories:1008)I’m not familiar with NodeBB at all and thought it was worth reporting.
P.S. It did work once earlier today on the phone, but for the past 5-6 days I wasn’t able to interact with many elements on the forum site from mobile device.
-
RE: Creating a module to display daily horoscopes
@cowboysdude Very nice! What feed are you using for data? I found not very official way to consume API from https://www.yahoo.com/style/horoscope Don’t know if that source is any good, since I’m very clueless about horoscopes.
-
RE: Creating a module to display daily horoscopes
Here is an initial draft of the styling (I’m testing in Chrome on my Mac at the moment, haven’t had time to throw it on RasPi yet). Feedback is welcome:


-
RE: Creating a module to display daily horoscopes
I believe that OP already attempted to use newsfeed, but since it only displays
titleof the each newsfeed item and not thedescriptionhe was getting something along the lines ofDec 20 Aquariusdisplayed on the screen.I’ve looked around and found a way to get Daily and Weekly feeds in JSON form and started to create a small prototype for the module. Will be happy to share it here once it is a bit more solidified and ready to be tested. (I never wrote a module from scratch, so it’s a good learning experience for me).
-
RE: Creating a module to display daily horoscopes
@YoungHomie I may be interested in developing something like that as my first module. Although I’m not very much into horoscopes, do you know good sources (possibly with RSS feeds) that can be used for it?