lavolp3 / MMM-AVStock

MagicMirror module for displaying stock price with Alphavantage API
MIT License
38 stars 18 forks source link

Infinity ticker without space #55

Open clemy49 opened 3 years ago

clemy49 commented 3 years ago

First of all thank you so much for your great work and this awesome module! I really appreciate.

I was wondering if would be possible to have a ticket that is running through but instead of showing just empty space after the last stock showed up on the screen directly attach the first stock again to the ticket so that there won’t be any space.

I hope you know what I mean and maybe that is possible all ready.

Thanks Clemens

lavolp3 commented 3 years ago

That is really tricky but I though that I had managed it with the last update. I will need to check again. Can you show me the array of stocks you're planning?

clemy49 commented 3 years ago

Can you show me the array of stocks you're planning? Currently I have those ones in my config:

{
    module: "MMM-AVStock",
    position: "bottom_bar",
    config: {
        apiKey : "MY API CODE",
        mode : "ticker",
        symbols : **["APC.FRK","BAYN.FRK","DPW.FRK","WDP.FRK","FRA.FRK","2LY.FRK","ZJS1.FRK","MSF.FRK","NN6.DEX","FOO.FRK","TEV.FRK","VAR1.DEX","3CP.FRK"],**
        alias: ["Apple","Bayer","Deutsche Post","Disney","Fraport","High Tide","JinkoSolar","Microsoft","NanoRepro","Salesforce","Teva","Varta","Xiaomi"],
        purchasePrice: [3.10, 120.53, 195],
        decimals: 2,
        tickerDuration: 60,
        showChart: false,
        showVolume: false,
        showPurchasePrices: false,
        showPerformance2Purchase: false,
    }
},

Just to visualize my "idea" please find attached a screenshot. mockup

lavolp3 commented 3 years ago

There is a way to get this done by doubling the ticker entries. That is difficult since I'm changing the stock quote by calling each entry via document.getElementById. And the id cannot be allocated twice. I'm still trying it out, maybe I could split all elements into two fractions and use these. Stay tuned :-) Big update coming very soon. This fix might take a bit longer.