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

MMM-Fortune

Scheduled Pinned Locked Moved Fun & Games
14 Posts 4 Posters 8.4k Views 4 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.
  • M Offline
    Mykle1 Project Sponsor Module Developer @cowboysdude
    last edited by May 17, 2017, 3:03 AM

    @cowboysdude

    Thank you, sir.

    Create a working config
    How to add modules

    1 Reply Last reply Reply Quote 1
    • F Offline
      Fonfon
      last edited by May 17, 2017, 6:01 PM

      Great job! is it possible to translate in a other language ?

      M 1 Reply Last reply May 17, 2017, 9:26 PM Reply Quote 0
      • C Offline
        cowboysdude Module Developer
        last edited by May 17, 2017, 7:16 PM

        I do not believe the api supports other languages.

        M 1 Reply Last reply May 17, 2017, 9:24 PM Reply Quote 0
        • M Offline
          Mykle1 Project Sponsor Module Developer @cowboysdude
          last edited by May 17, 2017, 9:24 PM

          @cowboysdude said in MMM-Fortune:

          I do not believe the api supports other languages.

          You are absolutely right. I checked the api and it is only in English.

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @Fonfon
            last edited by May 17, 2017, 9:26 PM

            @Fonfon said in MMM-Fortune:

            Great job! is it possible to translate in a other language ?

            Thanks. This API is only in English. However, if you can find one in your language I’ll be happy to give it a go.

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • T Offline
              TheKyleJohnson90
              last edited by Aug 5, 2017, 10:50 PM

              I only see the square blocks where it is supposed to have the Chinese translation.

              I used the Raspbian Jessie lite; Is there possibly a dependency that this needs that is not included?

              M 1 Reply Last reply Aug 6, 2017, 1:05 AM Reply Quote 1
              • M Offline
                Mykle1 Project Sponsor Module Developer @TheKyleJohnson90
                last edited by Mykle1 Aug 6, 2017, 1:07 AM Aug 6, 2017, 1:05 AM

                @TheKyleJohnson90

                First, thanks for trying out my module.

                Second, thanks for pointing that out. I neglected to include npm install into the ~/MagicMirror/modules/MMM-Fortune in the installation instructions of the readme.

                Other than that, the characters are part of the data itself, as you can see.

                [{"fortune":{"message":"One false move may lose the game.","id":"8"},"lesson":{"english":"English-language books","chinese":"英文书","pronunciation":"Yīngwén shū","id":""},"lotto":{"id":"","numbers":[33,55,18,30,17,10]}}]
                

                Hopefully, the dependencies will fix your problem. If it is a problem with jesse lite then I really don’t know how to correct the issue.

                Let me know how you make out.

                Create a working config
                How to add modules

                T 1 Reply Last reply Aug 6, 2017, 1:51 AM Reply Quote 0
                • M Offline
                  Mykle1 Project Sponsor Module Developer
                  last edited by Aug 6, 2017, 1:28 AM

                  I just downloaded and re-installed MMM-Fortune just to see what would happen. Before I even installed the dependencies it worked fine, albeit, on my windows dev machine. Installed the dependencies and again, it worked fine. I hope Jessie Lite, or the version of Pi you are using, isn’t the reason for the characters not being displayed.

                  Screenshot from installation WITHOUT dependencies installed

                  0_1501982875722_t2.JPG

                  Create a working config
                  How to add modules

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    TheKyleJohnson90 @Mykle1
                    last edited by Aug 6, 2017, 1:51 AM

                    @Mykle1

                    Thanks for the response. I ended up having to install the following

                    sudo apt-get install fonts-font-awesome
                    

                    Then ran through the raspi-config again to set to None as default. Guess the Jessie Lite does not include the font your module needed.

                    M 2 Replies Last reply Aug 6, 2017, 1:58 AM Reply Quote 0
                    • C Offline
                      cowboysdude Module Developer
                      last edited by Aug 6, 2017, 1:57 AM

                      @TheKyleJohnson90 said in MMM-Fortune:

                      fonts-font-awesome

                      That’s interesting… I was also unable to reproduce the issue you had. There must be something different within Raspbian Jessie lite that does this… not really sure but it’s a good catch!!

                      Did you do this in the root "MagicMirror’ or in the MMM-Fortune directory?

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