Read the statement by Michael Teeuw here.
Creating a module to display daily horoscopes
-
@broberg said in Creating a module to display daily horoscopes:
@YoungHomie the newsfeed module is basically a rss reader, find a rss stream and past it in ad the url and it will be displayed as the news are being displayed
That was my 1st thought however… I don’t think he wants to read all of them… and the newsfeed fades… so perhaps another simple module that allows the user to input what ‘sign’ they want to show… or in case of more than one in the house then allow for an ‘array’ of choices…
-
I believe that OP already attempted to use newsfeed, but since it only displays
title
of the each newsfeed item and not thedescription
he was getting something along the lines ofDec 20 Aquarius
displayed 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).
-
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:
-
@morozgrafix said in 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:
Love it! LOL I was in process of building just about the same thing… it may be a tad different but mine is about done too :)
Nice to see members who can answering the call for those who can’t!! LOVE THIS PLACE!
-
Colors are wrong right now and needs a bit more styling but this was the one I’ve been working on…
-
@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.
-
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
-
This topic can probably be marked as “solved” - module thread is here https://forum.magicmirror.builders/topic/1370/mmm-horoscope
-
@morozgrafix
Hi!
I am a rank NOOB who has just managed to get the Magic Mirror going.
I then tried to add the Horoscope Module , but it only displays: “Aligning Stars …”.I have placed all the extracted files from Github , in the: /home/pi/MagicMirror/modules/MMM-horoscope/ folder.
Then I edited the config.js to include:
},
{
module: ‘MMM-horoscope’,
position: ‘top_right’, // This can be any of the regions.
config: {
// See ‘Configuration options’ for additional options and more information.
sign: ‘aries’, // Zodiac sign
}
}What else should I be doing?
I’ll be grateful for any help!
Danie Bosman
-
@djbosman Hi Danie,
In the code snippet that you’ve posted (it’s a good idea to use markdown for code snippets) it looks like you are possibly using “fancy quotes”. Make sure that your
config.js
file has these'
or"
and not these‘
or“
(it’s possible that they were only converted in your post on the forum and your config is ok). Additionally make sure you have a comma after last}
bracket as shown below:{ module: 'MMM-horoscope', position: 'top_right', // This can be any of the regions. config: { // See ‘Configuration options’ for additional options and more information. sign: 'aries', // Zodiac sign } },
Also since this module is using
node helper
you may need to restart electron app for MM to pickup module helper for horoscopes.
You should see these lines in the console log when you donpm start
:Connecting socket for: MMM-horoscope Starting NodeHelper for MMM-horoscopemodule.
Hope this helps and thanks for trying out my module.
P.S. I just added instructions about restarting MM in the README