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-cryptocurrency - v1.4

    Scheduled Pinned Locked Moved Utilities
    77 Posts 21 Posters 99.0k Views 25 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
      matteodanelli
      last edited by

      Hello guys,
      I’ve updated project making optional the possibility to show currency changes in time.
      Also, you can select which interval to see between one of the following: 1 hour, 1 day or 1 week. None of them is required.

      Leave me feedback ;)

      KlizzyK 1 Reply Last reply Reply Quote 0
      • S Offline
        SpecialRob
        last edited by

        I moved the module back to the right side under the weather and the header data now shows up. Weird.

        This is truly amazing work! thanks

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          matteodanelli @SpecialRob
          last edited by

          @SpecialRob Yes weird. But thank you for reporting it.
          I’ll investigate.

          1 Reply Last reply Reply Quote 0
          • KlizzyK Offline
            Klizzy Module Developer @matteodanelli
            last edited by

            @matteodanelli nice work!
            just in time for my recent changes ☺️
            (you get the pull request in a couple of minutes).

            I created a second display option with less information overall, but with icons.
            I had to do this, because i have many modules on the Mirror and therefor the readability overall decreased with so many informations.

            But now we can simply choose between more details or the “compact” version.
            Here is a little Sneakpeak, until i finish the changes of the Readme accordingly to my changes: 0_1495397731334_logoView.png

            Social
            Twitter
            Github

            Working on the following Modules:

            • MMM-Vrr
            • MMM-cryptocurrency
            1 Reply Last reply Reply Quote 0
            • foxF Offline
              fox
              last edited by

              Very nice !
              Thank you for doing this.

              Issues With MMM-WatchDog known?

              https://forum.magicmirror.builders/post/29827

              Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

              1 Reply Last reply Reply Quote 1
              • O Offline
                olexs
                last edited by

                Hey,

                thanks for this module! Exactly what I wanted for my mirror.

                I took the liberty of implementing two new features, pull requests are up on Github:

                1. Show weekly price graphs from coinmarketcap: https://github.com/matteodanelli/MMM-cryptocurrency/pull/6
                  alt text

                2. Round the prices to a total number of significant digits, to keep a higher resolution on low-value prices: https://github.com/matteodanelli/MMM-cryptocurrency/pull/7
                  alt text
                  The property is set to 5 in the example. Note how BTC and ETH are both still showing two decimals, but XRP is showing 4, for a total of 5 or more digits.

                Any comments are welcome! I tried to keep your coding conventions intact, though it wasn’t much code that I added :)

                M KlizzyK 2 Replies Last reply Reply Quote 1
                • M Offline
                  matteodanelli @olexs
                  last edited by

                  @olexs Amazing work!
                  Thanks for pull requests! Already merged :)
                  Thank you so much!

                  1 Reply Last reply Reply Quote 0
                  • foxF Offline
                    fox
                    last edited by

                    i love the module. thank you !

                    But i dont get logo working. it stays always at “detail” and i also enabled graph, but they are not shown.
                    any existing bug? thx

                    Issues With MMM-WatchDog known?

                    https://forum.magicmirror.builders/post/29827

                    Useful for PIR-Sensor: https://forum.magicmirror.builders/post/21299

                    O 1 Reply Last reply Reply Quote 0
                    • O Offline
                      olexs @fox
                      last edited by olexs

                      @fox Can you post your module configuration from config.js? And have you pulled the latest code (master branch from https://github.com/matteodanelli/MMM-cryptocurrency)?

                      1 Reply Last reply Reply Quote 0
                      • KlizzyK Offline
                        Klizzy Module Developer @olexs
                        last edited by Klizzy

                        @fox please get the latest release of this Module from Github and replace the folder on your Mirror with the new one. Because you have to Update it manually if you want the graph or newer features.
                        If you use git, you can just do “git pull origin master” in the console.

                        @olexs thank you for your awesome work!

                        I tried for some time to implement the graph but i couldn’t find a solution…

                        @matteodanelli
                        I added some features and submitted an pull request.

                        • Colored logos (optional)
                        • additional logo support for Nem and Stratis
                        • Graph Support for Stratis
                        • now gets the top25 results of coinmareket

                        ) 0_1498001256753_logo+colored+graph.png

                        It would be nice if the currencies are sorted by total market volume (like on coin market). At the moment its ordered by the definitions in the config section.
                        Maybe someone has more time as i in the next days?   ☺️

                        And what do you guys think if we start to add release notes / change log to the readme?

                        Social
                        Twitter
                        Github

                        Working on the following Modules:

                        • MMM-Vrr
                        • MMM-cryptocurrency
                        1 Reply Last reply Reply Quote 0
                        • S Offline
                          s199
                          last edited by s199

                          Hello
                          thank you for this addon :) it works fine and looks nice.
                          Is it possible to add an option to set a certain amount for each coin ? Some coin are really low in value like Dogecoin and the price for ONE single coin is always on 0. (ex 1000 dogecoin so at least its worth something :)
                          Also is it possible to use BTC as main currency, so everything is converted in BTC insted of USD or EUR ?
                          thanks a lot
                          ++

                          edit : now that i think about it, ideally there should be the price BTC > USD (or EURO etc) and then all the other crypto u want converted in BTC. that would make more sens as BTC is the only way to trade these alts coin. two different coin convertion then :)

                          M 1 Reply Last reply Reply Quote 0
                          • M Offline
                            matteodanelli @s199
                            last edited by

                            @s199 At the moment, service which provides data is not able to convert in BTC, but only to a specified set of currencies, none virtual.
                            For the Dogecoin request. It could make sense but it requires a bit of configuration and so I need some time to develop it. But I’ll do.

                            For what I know, you can trade every crypto currency in EUR or USD or any other, not only BTC.

                            1 Reply Last reply Reply Quote 0
                            • R Offline
                              rmeskill
                              last edited by

                              For anyone who’s having issues getting a graph to work for lesser-known/non-included, it relies on a proprietary ID value for a currency within coinmarketcap.com. In order to this to work you’ll need to find that value and define it within the MMM-cryptocurrency.js file.

                              Maybe there’s an easier way, but I got it working by going to coinmarketcap.com, finding the currency I wanted, then right clicking on the small inline graph and clicking ‘open IMAGE in a new tab’. That’ll come up with an url like this one for Dash: https://files.coinmarketcap.com/generated/sparklines/131.png.

                              Now, within the MMM-cryptocurrency.js file you’ll need to create a reference to this ID:

                              sparklineIds: {
                                                      bitcoin: 1,
                              ...
                                                      dash: 131,
                              ...
                                                      }
                              

                              Reboot your mirror and all should work

                              1 Reply Last reply Reply Quote 0
                              • A Offline
                                ArkantosArk
                                last edited by

                                Hi

                                First of all, thank you for making this module possible, it looks really neat!

                                The only issue I have encounter for now is the Background colour of the graphs. I would like to know if there is any way to put it black instead of white as the Screenshots that are on the module Github page?

                                I would love to keep the graphs, but for now they don’t fit with the overall style of the rest of the modules.

                                Thanks in Advance!

                                0_1503690375651_Screenshot.jpg

                                1 Reply Last reply Reply Quote 0
                                • O Offline
                                  olexs
                                  last edited by

                                  I had the same issue on my mirror at first, too. The reason was me using an older version of Chromium. Older Electron versions could have the same issue - the color is transformed using CSS filtering, that has only become usable not very long ago. Try updating whichever display engine/browser you use, it should work then.

                                  1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    ArkantosArk
                                    last edited by

                                    Thanks for the info @olexs. I finally gave up about showing the graphs with black BG and I decided to just leave in “detail” mode, but I encounter another issue while doing that. half of my modules don’t appear and my logs show this:

                                    0_1504305492254_Screenshot.png

                                    Even deleting the header “change1h” from the config file doesn’t work. Is only working properly in “logo” mode.

                                    M 1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      matteodanelli @ArkantosArk
                                      last edited by

                                      @ArkantosArk Hello,
                                      I’m sorry for your problem. Let’s try to understand and fix them.
                                      Can you please post your module configuration (the one in config.js)?
                                      Also, have you changed module files?

                                      1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        ArkantosArk
                                        last edited by

                                        Hi @matteodanelli See my module config below. I haven’t changed any module files at all. I’m running it in a Raspberry pi 1, but I don’t think the issue is related with that.

                                        {
                                                    module: "MMM-cryptocurrency",
                                                    position: "bottom_bar",
                                                    config: {
                                        	    currency: ['ethereum', 'bitcoin'],
                                        	    conversion: 'EUR',
                                                        displayType: 'detail',
                                        	    headers: ['change24h']
                                                    }
                                                        },
                                        
                                        M 1 Reply Last reply Reply Quote 0
                                        • M Offline
                                          matteodanelli @ArkantosArk
                                          last edited by

                                          @ArkantosArk Very strange.
                                          Same module configuration is working here, even if I set 1h.

                                          {
                                            module: "MMM-cryptocurrency",
                                            position: "bottom_bar",
                                            config: {
                                              currency: ['ethereum', 'bitcoin'],
                                                conversion: 'EUR',
                                                displayType: 'detail',
                                                  headers: ['change24h', 'change1h']
                                            }
                                          }
                                          

                                          Is it possible that aren’t conflict with other modules?
                                          In any case, if you cannot fix, try to re-download module from repository and then re-add in your configuration.
                                          Let me know if something changes.

                                          A 1 Reply Last reply Reply Quote 0
                                          • J Offline
                                            jimador
                                            last edited by

                                            Re: MMM-cryptocurrency - v1.1
                                            @matteodanelli great module. I works pretty fine. Thank you for this.

                                            At the moment we have 3 options to view the change of the currency in 1h, 24h and 7d.
                                            Can you add an option to view the change since the purchase value?

                                            Or how I can do this by myself?

                                            BR

                                            M 1 Reply Last reply Reply Quote 2

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 4 / 4
                                            • 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