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

Scheduled Pinned Locked Moved Utilities
77 Posts 21 Posters 77.3k 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.
  • R Offline
    rmeskill
    last edited by Jul 24, 2017, 10:29 AM

    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 Aug 25, 2017, 7:49 PM

      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 Aug 25, 2017, 8:15 PM

        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 Sep 1, 2017, 10:39 PM

          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 Sep 2, 2017, 8:14 AM Reply Quote 0
          • M Offline
            matteodanelli @ArkantosArk
            last edited by Sep 2, 2017, 8:14 AM

            @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 Sep 2, 2017, 9:32 AM

              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 Sep 2, 2017, 9:48 AM Reply Quote 0
              • M Offline
                matteodanelli @ArkantosArk
                last edited by Sep 2, 2017, 9:48 AM

                @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 Sep 3, 2017, 8:03 PM Reply Quote 0
                • J Offline
                  jimador
                  last edited by Sep 3, 2017, 9:44 AM

                  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 Sep 3, 2017, 2:27 PM Reply Quote 2
                  • M Offline
                    matteodanelli @jimador
                    last edited by Sep 3, 2017, 2:27 PM

                    @jimador Hi!
                    Unfortunately, it’s not easy to select a custom starting date, because I use an external service which provides me only that history.
                    Tracking myself the currency change is expensive and I’ll not do in the next future.
                    But, if you know some web services able to do that I’m really happy to implement this feature :)

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      ArkantosArk @matteodanelli
                      last edited by Sep 3, 2017, 8:03 PM

                      @matteodanelli Hi have reinstalled the module and keeps showing the same error on the logs:

                      modules/MMM-cryptocurrency//MMM-cryptocurrency.js @68: TypeError: undefined is not a function (evaluating ‘this.config.headers.includes(‘change1h’)’)

                      It seems that it can be an issue on line 68 on that file. If I copy and paste the content of the file on JSHint.com, it shows me that there is an error on some lines:

                      0_1504468978573_Captura de pantalla 2017-09-03 a las 21.02.11.png

                      I would love it to have this module on detail mode, but it seems that is only working properly in logo mode for now.

                      M 1 Reply Last reply Sep 7, 2017, 9:13 PM Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 4
                      • 5
                      • 6
                      • 7
                      • 8
                      • 3 / 8
                      • 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