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-JaST] Just another Stock Ticker (new: version 2.x)

    Scheduled Pinned Locked Moved Utilities
    166 Posts 37 Posters 208.3k Views 39 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.
    • popeye2002P Offline
      popeye2002 @sdetweil
      last edited by

      @sdetweil it was in there but hard to see with out any break

      pi@raspberrypi:~/MagicMirror/modules $ cd MMM-Jast
      pi@raspberrypi:~/MagicMirror/modules/MMM-Jast $ npm install
      
      > magicmirror@2.11.0 install /home/pi/MagicMirror
      > echo "Installing vendor files ...
      " && cd vendor && npm install --loglevel=error
      
      Installing vendor files ...
      
      audited 220 packages in 4.073s
      found 8 vulnerabilities (7 low, 1 high)
        run `npm audit fix` to fix them, or `npm audit` for details
      
      > magicmirror@2.11.0 postinstall /home/pi/MagicMirror
      > npm run install-fonts && echo "MagicMirror installation finished successfully! 
      "
      
      
      > magicmirror@2.11.0 install-fonts /home/pi/MagicMirror
      > echo "Installing fonts ...
      " && cd fonts && npm install --loglevel=error
      
      Installing fonts ...
      
      audited 1 package in 1.865s
      found 0 vulnerabilities
      
      MagicMirror installation finished successfully! 
      
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 (node_modules/fsevents):
      npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
      
      audited 3224 packages in 25.347s
      
      73 packages are looking for funding
        run `npm fund` for details
      
      found 2 low severity vulnerabilities
        run `npm audit fix` to fix them, or `npm audit` for details
      pi@raspberrypi:~/MagicMirror/modules/MMM-Jast $ 
      
      
      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @popeye2002
        last edited by sdetweil

        @popeye2002 something is messed up…

        I suggest you erase the MMM-Jast folder and git clone again
        do

        cd ~/MagicMirror/modules
        rm -rf MMM-Jast
        git clone https://github.com/jalibu/MMM-Jast.git
        cd MMM-Jast
        npm install
        cd ~/MagicMirror
        

        then restart mm

        pm2 restart 0
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        popeye2002P 2 Replies Last reply Reply Quote 0
        • popeye2002P Offline
          popeye2002 @sdetweil
          last edited by popeye2002

          @sdetweil much much better!!!
          and now I do see the errors for to many calls

          
          
          0|MagicMirror  | [2020-04-28 11:05:25.153] [ERROR]  
          0|MagicMirror  | Error processing Stock response {
          0|MagicMirror  |   Note: 'Thank you for using Alpha Vantage! Our standard API call frequency is 5 ' +
          0|MagicMirror  |     'calls per minute and 500 calls per day. Please visit ' +
          0|MagicMirror  |     'https://www.alphavantage.co/premium/ if you would like to target a higher ' +
          0|MagicMirror  |     'API call frequency.'
          0|MagicMirror  | }
          0|MagicMirror  | [2020-04-28 11:05:25.167] [ERROR]  
          0|MagicMirror  | Error processing Stock response {
          0|MagicMirror  |   Note: 'Thank you for using Alpha Vantage! Our standard API call frequency is 5 ' +
          0|MagicMirror  |     'calls per minute and 500 calls per day. Please visit ' +
          0|MagicMirror  |     'https://www.alphavantage.co/premium/ if you would like to target a higher ' +
          0|MagicMirror  |     'API call frequency.'
          0|MagicMirror  | }
          0|MagicMirror  | [2020-04-28 11:05:25.460] [LOG]    
          0|MagicMirror  | Sending Stock result: { symbol: 'SBUX', current: 77.74, last: 75.58 }
          0|MagicMirror  | [2020-04-28 11:05:25.482] [LOG]    
          0|MagicMirror  | Sending Stock result: { symbol: 'MSFT', current: 174.05, last: 174.55 }
          0|MagicMirror  | [2020-04-28 11:05:25.555] [LOG]    
          0|MagicMirror  | Sending Stock result: { symbol: 'JD', current: 45.58, last: 45.05 }
          0|MagicMirror  | [2020-04-28 11:05:25.649] [LOG]    
          0|MagicMirror  | Sending Stock result: { symbol: 'VZ', current: 58.22, last: 57.81 }
          0|MagicMirror  | [2020-04-28 11:05:25.683] [LOG]    
          0|MagicMirror  | Sending Stock result: { symbol: 'PFE', current: 38.1199, last: 38.33 }
          0|MagicMirror  | [2020-04-28 11:05:28.263] [ERROR]  
          0|MagicMirror  | Error processing Stock response {
          0|MagicMirror  |   Note: 'Thank you for using Alpha Vantage! Our standard API call frequency is 5 ' +
          0|MagicMirror  |     'calls per minute and 500 calls per day. Please visit ' +
          0|MagicMirror  |     'https://www.alphavantage.co/premium/ if you would like to target a higher ' +
          0|MagicMirror  |     'API call frequency.'
          
          
          
          1 Reply Last reply Reply Quote 0
          • popeye2002P Offline
            popeye2002 @sdetweil
            last edited by

            @sdetweil
            Can’t thank you enough!!!
            You really made my day a whole lot better! no idea how I may pass it along but you can belive i will pass it forward one way or another.

            Cheers

            Scott

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @popeye2002
              last edited by

              @popeye2002 cool, thats the idea around here… we all work together

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              1 Reply Last reply Reply Quote 0
              • W Offline
                wilbur245
                last edited by

                Hello I have installed Jast, everything is fine.
                I just don’t see a share.
                Biontech
                FRA: 22UA
                there is zero also 22UA.DE does not work.

                how can i “https://www.stockdio.com/”
                insert as API?

                JalibuJ 1 Reply Last reply Reply Quote 0
                • M Offline
                  MisterTFM
                  last edited by

                  What “symbol” should I use for the Dow Jones Industrial Average? I tried DJI and .DJI

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

                    Hello,

                    does this module work for french stocks on euronext ?

                    1 Reply Last reply Reply Quote 0
                    • W Offline
                      wilbur245
                      last edited by

                      Hello, what do I have to do so that the values ​​are shown up to date to some extent. It is currently only queried once a day or the value renewed.
                      I sometimes have values ​​for 2 days even though they have fallen or increased

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        DJ6sTep @Jalibu
                        last edited by

                        @Jalibu Is there a way to have the ticker scroll all the way across the screen? Mine gets about 85% across the screen, doesn’t show all the stocks, just 4 stocks & then restarts from the beginning again.

                        D 1 Reply Last reply Reply Quote 0
                        • D Offline
                          DJ6sTep @DJ6sTep
                          last edited by

                          @Jalibu also, how can I increase the font size?

                          1 Reply Last reply Reply Quote 0
                          • JalibuJ Offline
                            Jalibu Module Developer @MisterTFM
                            last edited by

                            @MisterTFM said in [MMM-JaST] Just another Stock Ticker:

                            What “symbol” should I use for the Dow Jones Industrial Average? I tried DJI and .DJI

                            Hi @MisterTFM,
                            as you can read here, the Alphavantage API does not provide stock indices. You could try using “DIA”.


                            @RIKKO14 said in [MMM-JaST] Just another Stock Ticker:

                            Hello,

                            does this module work for french stocks on euronext ?

                            HI @RIKKO14,
                            the question should better be “does the Alphavantage API work with french stocks on euronext”. To be honest: I just don’t know :-)

                            I just googled that list of Symbols for Alphavantage: https://github.com/prediqtiv/alpha-vantage-cookbook/blob/master/symbol-lists.md
                            You can easily test your Symbols by pasting this url in your browser and change the symbol value on its end:
                            https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&interval=5min&apikey=3JJ4NFIVSE57V6NB&symbol=YOUR_SYMBOL_HERE

                            If you get a response like this, your symbol is valid and offered by the API:

                            {
                            Meta Data: {
                              Information: "Daily Prices (open, high, low, close) and Volumes",
                              Symbol: "BAS.DE",
                              Last Refreshed: "2021-01-05",
                              Output Size: "Compact",
                              Time Zone: "US/Eastern"
                            },
                            Time Series (Daily): {
                             2021-01-05: {
                              open: "64.3000",
                              high: "65.4700",
                              low: "63.2600",
                              close: "64.4000",
                              volume: "2770107"
                            },
                            

                            @wilbur245 said in [MMM-JaST] Just another Stock Ticker:

                            Hello, what do I have to do so that the values ​​are shown up to date to some extent. It is currently only queried once a day or the value renewed.
                            I sometimes have values ​​for 2 days even though they have fallen or increased

                            Hi @wilbur245 ,
                            the module always requests the latest values from the Alphavantage API. If they are not up to date, I’m afraid there is nothing we can do ¯\(ツ)/¯
                            The update interval between the MMM-Jast module and the Alphavantage API can be configured

                            config{
                              updateIntervalInSeconds: 1800
                            }
                            

                            @DJ6sTep said in [MMM-JaST] Just another Stock Ticker:

                            @Jalibu Is there a way to have the ticker scroll all the way across the screen? Mine gets about 85% across the screen, doesn’t show all the stocks, just 4 stocks & then restarts from the beginning again.

                            Hi @DJ6sTep , perhaps that’s a bug. I’ll have a look on that.

                            @DJ6sTep said in [MMM-JaST] Just another Stock Ticker:

                            @Jalibu also, how can I increase the font size?

                            By modifying the modules/MMM-Jast/MMM-Jast.css

                            D 1 Reply Last reply Reply Quote 0
                            • JalibuJ Offline
                              Jalibu Module Developer @wilbur245
                              last edited by

                              @wilbur245 said in [MMM-JaST] Just another Stock Ticker:

                              Hello I have installed Jast, everything is fine.
                              I just don’t see a share.
                              Biontech
                              FRA: 22UA
                              there is zero also 22UA.DE does not work.

                              how can i “https://www.stockdio.com/”
                              insert as API?

                              I just checked the stockdio API. It is great, but unfortunately its free plan is limited to 500 requests per month.

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                DJ6sTep @Jalibu
                                last edited by

                                @Jalibu Thank you, editing the .css file did the trick. Please let me know when you’ve had a chance to investigate this bug. This module is exactly what I was looking for man, just need to to scroll all the way across & display all my stocks :) Appreciate your work.

                                1 Reply Last reply Reply Quote 0
                                • JalibuJ Offline
                                  Jalibu Module Developer
                                  last edited by

                                  I have refactored this module from scratch. It now should also support DepotGrowth calculation in currencies other than EUR. A few internal and UI bugs were also fixed.

                                  Please let me know if you are facing any issues with the latest version.

                                  K 1 Reply Last reply Reply Quote 0
                                  • K Offline
                                    Koert 0 @Jalibu
                                    last edited by Koert 0

                                    @jalibu I’m facing some problems with displaying the correct value of my stocks.

                                    modules: [
                                    
                                    
                                    
                                    {
                                    module: "MMM-Jast",
                                    position: "fullscreen_above",
                                    config: {
                                    
                                    maxWidth: "100%",
                                    updateIntervalInSeconds: 0, 
                                    fadeSpeedInSeconds: 90.5, 
                                    scroll: "horizontal",
                                    defaultCurrency: "EUR",
                                    showDepotGrowth: false,
                                    apiKey: "MY API KEY",
                                    stocks: [
                                    	{ name: "Porsche", symbol: "PAH3.DE" },
                                    	{ name: "STS", symbol: "SF3.DE"},
                                    	{ name: "Haier", symbol: "690D.DE" },
                                    	{ name: "Siemens Energy", symbol: "ENR.DE" },
                                    	{ name: "TUI", symbol: "TUI1.DE" },
                                    	{ name: "HochTief", symbol: "HOT.DE" },
                                    	{ name: "Siemens", symbol: "SIE.DE" },
                                    	{ name: "Allianz", symbol: "ALV.DE" },
                                    	],
                                    	},
                                    	},
                                    		
                                    	]
                                       };
                                    
                                    /*************** DO NOT EDIT THE LINE BELOW ***************/
                                    if (typeof module !== "undefined") {module.exports = config;}
                                    
                                    

                                    Problem 1: The ticker is showing me Values. But also a value for BTC (which isn’t mentioned in the code?!?!)

                                    Problem 2: Values from the stock list are old Values from the beginning of the Day (or maybe last value of the day before)

                                    maybe a Log can help you:

                                    /home/pi/.pm2/logs/mm-out.log last 100 lines:
                                    0|mm       | [25.03.2021 16:08.16.922] [LOG]   Sending Stock result: { symbol: 'PAH3.DE', current: 84.68, last: 87.42 }
                                    0|mm       | [25.03.2021 16:08.16.936] [LOG]   Sending Stock result: { symbol: '690D.DE', current: 1.832, last: 1.9368 }
                                    0|mm       | [25.03.2021 16:08.16.971] [LOG]   Sending Stock result: { symbol: 'TUI1.DE', current: 4.396, last: 4.133 }
                                    0|mm       | [25.03.2021 16:09.18.891] [LOG]   Sending Stock result: { symbol: 'HOT.DE', current: 73.35, last: 73 }
                                    0|mm       | [25.03.2021 16:09.18.913] [LOG]   Sending Stock result: { symbol: 'SIE.DE', current: 135.56, last: 135.98 }
                                    0|mm       | [25.03.2021 16:09.18.974] [LOG]   Sending Stock result: { symbol: 'ALV.DE', current: 212.55, last: 211.45 }
                                    0|mm       | [25.03.2021 16:09.19.845] [LOG]   Sending Crypto result: { symbol: 'BTC', current: 52417.17, last: 52303.65 }
                                    0|mm       | 
                                    0|mm       | > magicmirror@2.14.0 start /home/pi/MagicMirror
                                    0|mm       | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                                    0|mm       | 
                                    0|mm       | [25.03.2021 16:26.45.698] [LOG]   Starting MagicMirror: v2.14.0
                                    0|mm       | [25.03.2021 16:26.45.712] [LOG]   Loading config ...
                                    0|mm       | [25.03.2021 16:26.45.733] [LOG]   Loading module helpers ...
                                    0|mm       | [25.03.2021 16:26.46.100] [LOG]   Initializing new module helper ...
                                    0|mm       | [25.03.2021 16:26.46.105] [LOG]   Module helper loaded: updatenotification
                                    0|mm       | [25.03.2021 16:26.46.111] [LOG]   No helper found for module: helloworld.
                                    0|mm       | [25.03.2021 16:26.46.112] [LOG]   All module helpers loaded.
                                    0|mm       | [25.03.2021 16:26.46.305] [LOG]   Starting server on port 8080 ... 
                                    0|mm       | [25.03.2021 16:26.46.329] [LOG]   Server started ...
                                    0|mm       | [25.03.2021 16:26.46.331] [LOG]   Connecting socket for: updatenotification
                                    0|mm       | [25.03.2021 16:26.46.332] [LOG]   Sockets connected & modules started ...
                                    0|mm       | [25.03.2021 16:26.46.743] [LOG]   Launching application.
                                    0|mm       | 
                                    0|mm       | > magicmirror@2.14.0 start /home/pi/MagicMirror
                                    0|mm       | > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                                    0|mm       | 
                                    0|mm       | [25.03.2021 16:27.41.491] [LOG]   Starting MagicMirror: v2.14.0
                                    0|mm       | [25.03.2021 16:27.41.506] [LOG]   Loading config ...
                                    0|mm       | [25.03.2021 16:27.41.519] [LOG]   Loading module helpers ...
                                    0|mm       | [25.03.2021 16:27.41.524] [LOG]   No helper found for module: clock.
                                    0|mm       | [25.03.2021 16:27.42.080] [LOG]   Initializing new module helper ...
                                    0|mm       | [25.03.2021 16:27.42.082] [LOG]   Module helper loaded: MMM-Jast
                                    0|mm       | [25.03.2021 16:27.42.084] [LOG]   All module helpers loaded.
                                    0|mm       | [25.03.2021 16:27.42.238] [LOG]   Starting server on port 8080 ... 
                                    0|mm       | [25.03.2021 16:27.42.269] [LOG]   Server started ...
                                    0|mm       | [25.03.2021 16:27.42.271] [LOG]   Connecting socket for: MMM-Jast
                                    0|mm       | [25.03.2021 16:27.42.273] [LOG]   MMM-Jast helper method started...
                                    0|mm       | [25.03.2021 16:27.42.274] [LOG]   Sockets connected & modules started ...
                                    0|mm       | [25.03.2021 16:27.42.755] [LOG]   Launching application.
                                    0|mm       | [25.03.2021 16:27.47.791] [LOG]   Sending Stock result: { symbol: 'ALV.DE', current: 212.55, last: 211.45 }
                                    0|mm       | [25.03.2021 16:27.47.868] [LOG]   Sending Stock result: { symbol: 'SF3.DE', current: 7.88, last: 7.68 }
                                    0|mm       | [25.03.2021 16:27.47.890] [LOG]   Sending Stock result: { symbol: 'ENR.DE', current: 29.38, last: 30.03 }
                                    0|mm       | [25.03.2021 16:27.47.916] [LOG]   Sending Stock result: { symbol: '690D.DE', current: 1.832, last: 1.9368 }
                                    0|mm       | [25.03.2021 16:27.47.960] [LOG]   Sending Stock result: { symbol: 'PAH3.DE', current: 84.68, last: 87.42 }
                                    

                                    For Example Porsche received the same value twice
                                    Greetings from BW to RP ;)

                                    JalibuJ 1 Reply Last reply Reply Quote 0
                                    • JalibuJ Offline
                                      Jalibu Module Developer @Koert 0
                                      last edited by

                                      Hi @koert-0 ,

                                      thank you for your message.

                                      Problem 1:
                                      There was a hidden sample crypto entry in the default settings. I removed that and improved the Readme, to avoid this confusion in the future.

                                      Problem 2:
                                      The problem for this is more likely to be found with the data provider than with the module.
                                      The module displays what it gets. If the values are not up to date, then unfortunately I can’t influence that.

                                      In general, I am rather dissatisfied with Alphavantage. Unfortunately, I don’t know a free alternative. I am open for suggestions.

                                      1 Reply Last reply Reply Quote 0
                                      • JalibuJ Offline
                                        Jalibu Module Developer
                                        last edited by

                                        I refactored this module again to use Yahoo’s financial API instead of Alphavantage and need some voluntary testers.

                                        It should now support many more Symbols and be more accurate and much simpler.

                                        Please check out this Feature Branch:
                                        https://github.com/jalibu/MMM-Jast/tree/feat/useYahoo

                                        B 1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          BravoOscar @Jalibu
                                          last edited by

                                          @jalibu

                                          I will test it later today, but I need to know of this is this a upgrade or is it a new install.

                                          I use the originale MMM-JaST, should this be removed before a new install?

                                          JalibuJ 1 Reply Last reply Reply Quote 0
                                          • JalibuJ Offline
                                            Jalibu Module Developer @BravoOscar
                                            last edited by

                                            @bravooscar
                                            Well, the word “install” is fuzzy…

                                            You don’t need to uninstall your old one and even your configuration is compatible.

                                            You can switch between them by just changing the branch.
                                            In your modules/MMM-Jast folder execute

                                            Switch to Yahoo test branch:

                                            git fetch
                                            git checkout feat/useYahoo
                                            npm i
                                            

                                            Switch back to stable master:

                                            git checkout master
                                            
                                            B 1 Reply Last reply Reply Quote 0

                                            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
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 9
                                            • 8 / 9
                                            • 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