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.

    "Live" currency exchange rate module

    Scheduled Pinned Locked Moved Requests
    11 Posts 4 Posters 5.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.
    • R Offline
      reandre68
      last edited by

      Hi all,

      I am building a MM for my office. I’m a distributor for a lot of imported products, so I would like to see a kind of live/as close to real-time updated currency exchange rate.

      I have tried with @yawnsde’s module here: https://github.com/yawnsde/MMM-CurrencyExchange , but the updates are about a day behind from the source (fixer.io).

      I have found https://currencylayer.com/ that has a free ?JSON feed API and registration of a free account permits a 1000 API calls per month, which should be more than enough to call at least an update every 3 hours every day.

      I have absolutely no .js or .JSON experience, so is there anyone that thinks this module will be an amazing addition and willing to put it together?

      Thanks

      reandre68

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

        @reandre68 said

        which should be more than enough to call at least an update every 3 hours every day.

        Every hour = 744 updates in a 31 day month

        I have absolutely no .js or .JSON experience

        Me neither

        so is there anyone that thinks this module will be an amazing addition

        I don’t know about that.

        and willing to put it together?

        I was. I did, based on the API that you provided.

        0_1511722089236_1.PNG 0_1511722096766_2.PNG

        https://github.com/mykle1/MMM-LICE

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 1
        • R Offline
          reandre68
          last edited by

          That was quick. And exactly what I had in mind.

          The name is legit too. MMM-LICE is the best. Lol

          I’ll try install and run it tomorrow and give some feedback

          Thanks Mykle

          Regards

          1 Reply Last reply Reply Quote 0
          • Mykle1M Offline
            Mykle1 Project Sponsor Module Developer
            last edited by

            I just did a little math. If you set updateInterval: 45 * 60 * 1000, in your config entry for the module, you’ll get updates every 45 minutes and still come in at 992 calls per month. Might as well take advantage of those 1000 free calls per month and you get updates 25% quicker that way.

            Note

            The date and time appearing in the module is the “Exact date and time (UNIX) the exchange rates were collected.”

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 0
            • yawnsY Offline
              yawns Moderator
              last edited by

              Nice work, Mykle. You could’ve updated my module to add a second api source and the user selects api in config :-)

              Mykle1M 2 Replies Last reply Reply Quote 2
              • Mykle1M Offline
                Mykle1 Project Sponsor Module Developer @yawns
                last edited by

                @yawns said in “Live” currency exchange rate module:

                Nice work, Mykle. You could’ve updated my module to add a second api source and the user selects api in config :-)

                Thanks yawns. I didn’t even consider that. I saw that making this module would not be too difficult for me so I just went ahead and put it together this morning based on @reandre68’s request. :-)

                Hey, how’s the new house? All settled in? :-)

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 1
                • Mykle1M Offline
                  Mykle1 Project Sponsor Module Developer
                  last edited by Mykle1

                  “Rate as of 4:54 pm today” added for clarity.

                  0_1511906872238_1.PNG

                  Create a working config
                  How to add modules

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

                    @yawns

                    Hey yawns, where is your module? I can’t seem to find it. :-/

                    Create a working config
                    How to add modules

                    yawnsY 1 Reply Last reply Reply Quote 0
                    • yawnsY Offline
                      yawns Moderator @Mykle1
                      last edited by

                      @Mykle1
                      It was linked in the initial post.

                      https://github.com/yawnsde/MMM-CurrencyExchange

                      Mykle1M 1 Reply Last reply Reply Quote 1
                      • Mykle1M Offline
                        Mykle1 Project Sponsor Module Developer @yawns
                        last edited by

                        @yawns said in “Live” currency exchange rate module:

                        It was linked in the initial post.

                        Doh! :-)

                        Thanks!

                        Create a working config
                        How to add modules

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