• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

Creating a module to display daily horoscopes

Scheduled Pinned Locked Moved Solved Development
26 Posts 7 Posters 17.4k Views 6 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    YoungHomie
    last edited by Dec 21, 2016, 3:36 AM

    Hello all,
    Is there an easy way/would someone be interested in writing the code for a module that would display daily horoscopes?
    I might have my terminology butchered, but can this be done with an RSS feed?
    I attempted to use the 3rd party module specific for that, but all I got was a header.
    Ex: The display was “Dec 20 Aquarius”
    Where what I want it to actually say the horoscope.

    I also tried taking the default news feed module and pasting the link to an RSS feed (again terminology probably butchered) and that time it scrolled through the different headers rather than remaining on one like above.

    Thanks for any and all help.

    B 1 Reply Last reply Dec 31, 2016, 9:31 AM Reply Quote 0
    • M Offline
      morozgrafix Moderator
      last edited by Dec 31, 2016, 2:01 AM

      @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?

      1 Reply Last reply Reply Quote 0
      • B Offline
        broberg Project Sponsor @YoungHomie
        last edited by Dec 31, 2016, 9:31 AM

        @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

        C 1 Reply Last reply Jan 1, 2017, 7:18 PM Reply Quote 1
        • C Offline
          cowboysdude Module Developer @broberg
          last edited by cowboysdude Jan 1, 2017, 7:18 PM Jan 1, 2017, 7:18 PM

          @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…

          1 Reply Last reply Reply Quote 0
          • M Offline
            morozgrafix Moderator
            last edited by morozgrafix Jan 1, 2017, 11:39 PM Jan 1, 2017, 11:38 PM

            I believe that OP already attempted to use newsfeed, but since it only displays title of the each newsfeed item and not the description he was getting something along the lines of Dec 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).

            1 Reply Last reply Reply Quote 0
            • M Offline
              morozgrafix Moderator
              last edited by morozgrafix Jan 2, 2017, 6:50 AM Jan 2, 2017, 6:35 AM

              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:

              0_1483338845023_Screen Shot 2017-01-01 at 10.33.44 PM.png

              0_1483339783461_Screen Shot 2017-01-01 at 10.49.13 PM.png

              C 1 Reply Last reply Jan 2, 2017, 4:32 PM Reply Quote 4
              • C Offline
                cowboysdude Module Developer @morozgrafix
                last edited by Jan 2, 2017, 4:32 PM

                @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:

                0_1483338845023_Screen Shot 2017-01-01 at 10.33.44 PM.png

                0_1483339783461_Screen Shot 2017-01-01 at 10.49.13 PM.png

                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!

                1 Reply Last reply Reply Quote 0
                • C Offline
                  cowboysdude Module Developer
                  last edited by cowboysdude Jan 2, 2017, 5:47 PM Jan 2, 2017, 5:39 PM

                  0_1483379145070_horo.JPG
                  0_1483379226186_horo1.JPG

                  Colors are wrong right now and needs a bit more styling but this was the one I’ve been working on…

                  M 1 Reply Last reply Jan 2, 2017, 6:30 PM Reply Quote 0
                  • M Offline
                    morozgrafix Moderator @cowboysdude
                    last edited by Jan 2, 2017, 6:30 PM

                    @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.

                    1 Reply Last reply Reply Quote 0
                    • M Offline
                      morozgrafix Moderator
                      last edited by Jan 5, 2017, 11:56 PM

                      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

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 1 / 3
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy