Closed trlafleur closed 5 years ago
use tickerDuration: 60
. this means one cycle for your stocks in 60 seconds. If you want to make it faster, set shorter seconds.
This seams to control interval of ticker, no how fast it movies on screen
On Fri, Jan 4, 2019 at 7:45 AM Seongnoh Sean Yi notifications@github.com wrote:
use tickerDuration: 60. this means one cycle for your stocks in 60 seconds. If you want to make it faster, set shorter seconds.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/eouia/MMM-AVStock/issues/2#issuecomment-451480552, or mute the thread https://github.com/notifications/unsubscribe-auth/AEXCK7JRm8-aSDu5WwXV8TU1J9JzSjNsks5u_3cBgaJpZM4Zp2TW .
--
~~ /) ~~~~ /) ~~ _/) ~~ _/) ~~
Tom Lafleur
Well, it works as my word. Compare two values 60
and 10
.
here is my config file...
{
//disabled:true,
module: "MMM-AVStock",
position: "bottom_center", //"bottom_bar" is better for mode:ticker
middle_center bottom_center
// Possible values are top_bar, top_left, top_center, top_right,
upper_third, middle_center, lower_third, bottom_left, bottom_center,
// bottom_right, bottom_bar, fullscreen_above, and
fullscreen_below.
config: {
apiKey : "N8BM6HGC734FFC7V", //
https://www.alphavantage.co/
timeFormat: "DD-MM-YYYY HH:mm:ss", //"YYYY-MM-DD HH:mm:ss",
symbols : ["QCOM", "GOOGL", "FB", "AAPL", "IBM", "CSCO", "AMZN",
"TWLO", "NVDA", "INTC", "XMO", "QCOM"],
//alias: ["APPLE", "", "SAMSUNG Electronics"], //Easy name of each
symbol. When you use alias
, the number of symbols and alias should be the
same. If value is null or "", symbol string will be used by default.
tickerDuration: 60, // Ticker will be cycled once per this second.
chartDays: 90, //For mode:series
, how much daily data
will be taken. (max. 90)
poolInterval : 1000*15, // If your AV account is free, at least 13
sec is needed.
mode : "ticker", // "table", "ticker", "series"
}
},
I made a video in real time,send me your email and I will send to you....
~~ /) ~~~~ /) ~~ _/) ~~ _/) ~~
Tom Lafleur
On Fri, Jan 4, 2019 at 7:56 AM Seongnoh Sean Yi notifications@github.com wrote:
Well, it works as my word. Compare two values 60 and 10.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/eouia/MMM-AVStock/issues/2#issuecomment-451484059, or mute the thread https://github.com/notifications/unsubscribe-auth/AEXCK27xZrifm3ogTgAhNzYEVA_tnYnYks5u_3nKgaJpZM4Zp2TW .
also, the longer it runs the faster its scrolling on the RPI3+ display, web interface is normal speed... very odd
tom@lafleur.us
~~ /) ~~~~ /) ~~ _/) ~~ _/) ~~
Tom Lafleur
On Fri, Jan 4, 2019 at 7:45 AM Seongnoh Sean Yi notifications@github.com wrote:
use tickerDuration: 60. this means one cycle for your stocks in 60 seconds. If you want to make it faster, set shorter seconds.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/eouia/MMM-AVStock/issues/2#issuecomment-451480552, or mute the thread https://github.com/notifications/unsubscribe-auth/AEXCK7JRm8-aSDu5WwXV8TU1J9JzSjNsks5u_3cBgaJpZM4Zp2TW .
It's very weird. tickerDuration
is just used for CSS animation duration.
ticker.style.animationDuration = this.config.tickerDuration + "s";
Here is animationDuration
attribute definition;
https://www.w3schools.com/jsref/prop_style_animationduration.asp
By definition, value is used as Specifies the length an animation takes to finish.
. It means, one cycle of animation will take in that time. so if 60 is set, a cycle of animation will be taken in 60s, if 10 is set, a cycle will be taken in 10s.
And in my test of RPI3 and ATB, it is working as my words.
again, would be happy to send you the video....
~~ /) ~~~~ /) ~~ _/) ~~ _/) ~~
Tom Lafleur
On Sat, Jan 5, 2019 at 4:19 AM Seongnoh Sean Yi notifications@github.com wrote:
It's very weird. tickerDuration is just used for CSS animation speed.
ticker.style.animationDuration = this.config.tickerDuration + "s";
Here is animationDuration attribute definition; https://www.w3schools.com/jsref/prop_style_animationduration.asp By definition, value is used as Specifies the length an animation takes to finish.. It means, one cycle of animation will take that time. so if 60 is set, a cycle of animation will be taken in 60s, if 10 is set, a cycle will be taken in 10s. And in my test of RPI3 and ATB, it is working as my words.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/eouia/MMM-AVStock/issues/2#issuecomment-451651035, or mute the thread https://github.com/notifications/unsubscribe-auth/AEXCKzU256cdJvajqhVLNJ9CH097Jb85ks5vAJhAgaJpZM4Zp2TW .
Mail: eouia0819@gmail.com or Telegram: @eouia
I cannot find any problem on my code and cannot represent your problem on my test devices. (1 RPI3B+, 1 ATB, 1ATB S, 1 OSX) So I cannot solve your issue at this moment. Sorry. I'll close this issue because I cannot give you any help.
How do I control scroll speed in the ticker??