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.

    MMM-Astro [formly MMM-Astrology]

    Scheduled Pinned Locked Moved Entertainment
    13 Posts 5 Posters 5.2k Views 5 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @julien-vancouver
      last edited by

      @julien-vancouver

      I tried putting multiple signs into an array. That does not work.

      However, I tried adding a second config entry with different signs and that worked.

      {
              disabled: false,
              module: 'MMM-Astro',
              position: 'top_right',
      		      config: {
      		      sign: "pisces",
      		      iconset: "1",
      		      extend: false
      		             }
             },
             {
               disabled: false,
               module: 'MMM-Astro',
               position: 'bottom_right',
       		      config: {
       		      sign: "taurus",
       		      iconset: "1",
       		      extend: false
       		             }
              },
      

      Create a working config
      How to add modules

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        julien-vancouver @Mykle1
        last edited by julien-vancouver

        @mykle1
        I tried putting two signs in seperate modules like you.
        I got updated star sign labels for both, but the text in the horoscope was the same in both.

        Mykle1M cowboysdudeC 2 Replies Last reply Reply Quote 0
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer @julien-vancouver
          last edited by

          @julien-vancouver

          You know what? You’re right. I didn’t notice that when I tried it. My bad

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • cowboysdudeC Offline
            cowboysdude Module Developer @julien-vancouver
            last edited by

            @julien-vancouver Let me look at it.

            1 Reply Last reply Reply Quote 0
            • J Offline
              julien-vancouver
              last edited by

              Just recently something else changed…
              I remove this following module from config.js and everything works fine - no errors.
              I put the following in, and error.

              This was copied from your github, with only sign & iconset changed.

              config.js
              …
              {
              disabled: false,
              module: ‘MMM-Astro’,
              position: ‘top_right’,
              config: {
              sign: “aquarius”,
              iconset: “2”,
              extend: true
              }
              },
              …

              /.pm2/logs/MagicMirror-out.log last 15 lines:

              0|MagicMirror | [04.04.2021 09:40.04.879] [ERROR]
              0|MagicMirror | Whoops! There was an uncaught exception…
              0|MagicMirror | [04.04.2021 09:40.04.974] [ERROR]
              0|MagicMirror | SyntaxError: Unexpected token t in JSON at position 1311
              0|MagicMirror | at JSON.parse ()
              0|MagicMirror | at Class.start (/home/pi/MagicMirror/modules/MMM-Astro/node_helper.js:27:29)
              0|MagicMirror | at /home/pi/MagicMirror/js/app.js:232:18
              0|MagicMirror | at new Server (/home/pi/MagicMirror/js/server.js:93:3)
              0|MagicMirror | at /home/pi/MagicMirror/js/app.js:226:20
              0|MagicMirror | at loadNextModule (/home/pi/MagicMirror/js/app.js:171:5)
              0|MagicMirror | at /home/pi/MagicMirror/js/app.js:166:6
              0|MagicMirror | at Class.loaded (/home/pi/MagicMirror/js/node_helper.js:18:3)
              0|MagicMirror | at loadModule (/home/pi/MagicMirror/js/app.js:143:6)
              0|MagicMirror | at loadNextModule (/home/pi/MagicMirror/js/app.js:164:5)

              1 Reply Last reply Reply Quote 0
              • 1
              • 2
              • 2 / 2
              • 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