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.5k 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.
    • JalibuJ Offline
      Jalibu Module Developer @MasonR1209
      last edited by

      @masonr1209 please open two issues on GitHub on that. I’ll check them when I have more time again

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

        Hi,
        how can I format the Output Numbers?
        like 34,265.37$ or
        34.265,37$ according the settings.

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

          Hi @jo-0,
          MMM-JaST follows the formatting rules for your locale which is set in your config.js
          The comma as decimal separator is common for German locale for example (de-DE) where the dot as decimal separator is common for English locales (en-GB)

          var config = {
           ..
           language: "de",
           locale: "de-DE",
           timeFormat: 24,
           units: "metric",
           modules: 
           ...
          }
          

          Keep in mind that locale settings can affect all modules. MMM-JaST has an option to override global platform locale settings. Just add the following to your Jast module config:

           modules: [
            {
              module: "MMM-Jast",
              config: {
               ...
               locale: "de-DE", // or any other desired locale for number formatting
               ...
              }
            }
          ]
          
          J 1 Reply Last reply Reply Quote 0
          • J Offline
            Jo 0 @Jalibu
            last edited by

            @jalibu thanks for fast answering,
            Doesn’t work the way I want it to.
            I just want the separator for the thousands.
            modules locale: “de-DE”,
            Jast lokale:
            de-DE gives 14170,85$
            en-GB gives US$14170.85
            What I want is 14.170,85$

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

              @jo-0 add

              useGrouping: true,
              

              to your module configuration.

              J 1 Reply Last reply Reply Quote 0
              • J Offline
                Jo 0 @Jalibu
                last edited by

                @jalibu said in [MMM-JaST] Just another Stock Ticker (new: version 2.x):

                useGrouping: true,

                it does not work.
                I run scroll: “none”

                J JalibuJ 2 Replies Last reply Reply Quote 0
                • J Offline
                  Jo 0 @Jo 0
                  last edited by

                  @jo-0
                  Btw. I’m new in MMM.
                  I got the message that there is an update for JaST.
                  How can I get this
                  git pull
                  npm install --only=production
                  does not help

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

                    @jo-0 in the module folder, right?

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

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

                      @jo-0 said in [MMM-JaST] Just another Stock Ticker (new: version 2.x):

                      @jalibu said in [MMM-JaST] Just another Stock Ticker (new: version 2.x):

                      useGrouping: true,

                      it does not work.
                      I run scroll: “none”

                      please PN me your module config

                      J 1 Reply Last reply Reply Quote 0
                      • J Offline
                        Jo 0 @Jalibu
                        last edited by

                        @jalibu don’t know how to PN
                        therefore here:
                        {
                        module: “MMM-Jast”,
                        position: “bottom_right”, //“bottom_center”,
                        config: {
                        locale: “de-DE”,
                        useGrouping: true,
                        stocks: [
                        { name: “DOW 30”, symbol: “^DJI”, quantity: 10 },
                        //{ name: “S&P 500”, symbol: “^GSPC”, quantity: 15 },
                        { name: “Nasdaq 100”, symbol: “^NDX” },
                        //{ name: “DAX 30”, symbol: “^GDAXI” },
                        { name: “EUR/USD”, symbol: “EURUSD=X”}
                        ],
                        maxWidth: “100%”,
                        updateIntervalInSeconds: 300,
                        fadeSpeedInSeconds: 15, //3.5,
                        scroll: “none”, // One of [“none”, “vertical”, “horizontal”]
                        useGrouping: false,
                        currencyStyle: “symbol”, // One of [“code”, “symbol”, “name”]
                        lastUpdateFormat: “HH:mm”,
                        showColors: true,
                        showCurrency: true,
                        showChangePercent: true,
                        showChangeValue: false,
                        showChangeValueCurrency: false,
                        showLastUpdate: false,
                        showPortfolioValue: false,
                        showPortfolioGrowthPercent: false,
                        showPortfolioGrowth: false,
                        numberDecimalsValues: 2,
                        numberDecimalsPercentages: 1,
                        virtualHorizontalMultiplier: 2
                        }
                        },

                        S JalibuJ 2 Replies Last reply Reply Quote 0
                        • S Offline
                          sdetweil @Jo 0
                          last edited by

                          @jo-0 he meant pm, private message

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

                          J 1 Reply Last reply Reply Quote 0
                          • J Offline
                            Jo 0 @sdetweil
                            last edited by

                            @sdetweil I know, but where can I find the email address?

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

                              @jo-0 not email. chat here,
                              click his username,
                              then 3 dots to the right,
                              start new chat

                              Sam

                              How to add modules

                              learning how to use browser developers window for css changes

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

                                @jo-0 you have useGrouping property twice in your settings. As true and as false. remove the ‚useGrouping: false‘ and it will work

                                J 1 Reply Last reply Reply Quote 0
                                • J Offline
                                  Jo 0 @Jalibu
                                  last edited by

                                  @jalibu Hi,
                                  workes fine now! Exactly how i wanted it.
                                  thank you.

                                  But next:
                                  how can I update the modul?
                                  ‘git pull’
                                  decline with the notice ‘please committen or stashen …’
                                  cancellation.
                                  Not sure what to do.

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

                                    @jo-0 in the modules/MMM-Jast folder try to execute git reset --hard first and continue with git pull and npm install --only=production in a second step.

                                    J 1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      Jo 0 @Jalibu
                                      last edited by

                                      @jalibu
                                      thank you very much, that was the solution

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

                                        Just noticed that I get this message on MM startup. Everything is running, current update installed this morning.

                                        0|MagicMirror  | [26.01.2022 11:04.50.818] [ERROR]
                                        0|MagicMirror  | ERROR! Could not validate main module js file.
                                        0|MagicMirror  | [26.01.2022 11:04.50.839] [ERROR]
                                        0|MagicMirror  | ReferenceError: Log is not defined
                                        0|MagicMirror  |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Jast/MMM-Jast.js:14:4347)
                                        0|MagicMirror  |     at Module._compile (node:internal/modules/cjs/loader:1116:14)
                                        0|MagicMirror  |     at Object.Module._extensions..js (node:internal/modules/cjs/loader:1169:10)
                                        0|MagicMirror  |     at Module.load (node:internal/modules/cjs/loader:988:32)
                                        0|MagicMirror  |     at Module._load (node:internal/modules/cjs/loader:829:12)
                                        0|MagicMirror  |     at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
                                        0|MagicMirror  |     at Module.require (node:internal/modules/cjs/loader:1012:19)
                                        0|MagicMirror  |     at require (node:internal/modules/cjs/helpers:94:18)
                                        0|MagicMirror  |     at Class.loadModuleDefaultConfig (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_helper.js:313:30)
                                        0|MagicMirror  |     at /home/pi/MagicMirror/modules/MMM-Remote-Control/node_helper.js:267:26
                                        0|MagicMirror  | [2805:0126/110450.830713:ERROR:viz_main_impl.cc(161)] Exiting GPU process due to errors during initialization
                                        
                                        JalibuJ 1 Reply Last reply Reply Quote 0
                                        • JalibuJ Offline
                                          Jalibu Module Developer @requiemmg
                                          last edited by

                                          @requiemmg whats your MagicMirror version?

                                          karsten13K 1 Reply Last reply Reply Quote 0
                                          • karsten13K Offline
                                            karsten13 @Jalibu
                                            last edited by

                                            @jalibu

                                            I have similar errors running MMM-RAIN-MAP, happens only when using electron (not in server only). Using current mm develop branch.

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