MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.20.0 is available! For more information about this release, check out this topic.

    MMM-Fortune

    Fun & Games
    4
    14
    5182
    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.
    • Mykle1
      Mykle1 Project Sponsor Module Developer last edited by Mykle1

      Description:

      Fortunes exactly as you would find them inside a Fortune Cookie. Words of wisdom first. Then a phrase in English, followed by the phrase in Chinese lettering and the pronunciation. Lastly, lucky lottery numbers. No one has ever won the Powerball Lottery using the numbers from a fortune cookie. Will you be the first? Good luck!

      Examples:

      css file included for coloring and sizing.

      0_1494984535731_Fortune2.JPG

      0_1494984585075_Fortune4.JPG

      Download:

      Version 1.0.0

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 3
      • cowboysdude
        cowboysdude Module Developer last edited by

        Nice job!

        Mykle1 1 Reply Last reply Reply Quote 1
        • Mykle1
          Mykle1 Project Sponsor Module Developer @cowboysdude last edited by

          @cowboysdude

          Thank you, sir.

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 1
          • F
            Fonfon last edited by

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

            Mykle1 1 Reply Last reply Reply Quote 0
            • cowboysdude
              cowboysdude Module Developer last edited by

              I do not believe the api supports other languages.

              Mykle1 1 Reply Last reply Reply Quote 0
              • Mykle1
                Mykle1 Project Sponsor Module Developer @cowboysdude last edited by

                @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
                • Mykle1
                  Mykle1 Project Sponsor Module Developer @Fonfon last edited by

                  @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
                    TheKyleJohnson90 last edited by

                    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?

                    Mykle1 1 Reply Last reply Reply Quote 1
                    • Mykle1
                      Mykle1 Project Sponsor Module Developer @TheKyleJohnson90 last edited by Mykle1

                      @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 Reply Quote 0
                      • Mykle1
                        Mykle1 Project Sponsor Module Developer last edited by

                        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
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy