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

Scheduled Pinned Locked Moved Utilities
166 Posts 37 Posters 136.6k 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.
  • S Away
    sdetweil
    last edited by Sep 15, 2021, 1:53 PM

    I submitted a PR for jast to improve the form for the stocks list

    Screenshot at 2021-09-15 08-49-47.png

    Screenshot at 2021-09-15 08-50-03.png

    Sam

    How to add modules

    learning how to use browser developers window for css changes

    1 Reply Last reply Reply Quote 1
    • M Offline
      mweth
      last edited by Sep 26, 2021, 6:47 PM

      Great module and I think this is a simple request. I would like for the ticker to only change to red or green if the stock moves by more than 5%. In VerticalStockList.njk, I changed the code as follows (and added a “same” color in the CSS, but it did not do anything. Super bonus points if I can make a movement of more than 7% show an image.

      {{ utils.getStockName(stock) }}: {% if utils.getStockChange(stock) > 3 %} {% set colorClass = “high” %} {% elif utils.getStockChange(stock) < 3 %} {% set colorClass = "low " %} {% else %} {% set colorClass = “same” %}

      1 Reply Last reply Reply Quote 0
      • M Offline
        MasonR1209
        last edited by MasonR1209 Jan 9, 2022, 3:29 PM Jan 9, 2022, 3:10 PM

        Hey, I wanted to know if it’s possible to make a static always there Portfolio Value… that changes as the stocks listed change in price, but is always shown, and have the stocks ticker above / below the portfolio value, and not scroll to the portfolio value as it would be permanently shown… e.g

        Scrolling stocks ticker
        Portfolio Value: xxxx

        Possibly also add a static always shown portfolio change value / change percentage that isn’t included in the scroll.

        I would opt for the Static option for all as you can in the config but it takes up too much room on the mirror and I was wondering if what i’ve stated is configurable? Thanks

        ALSO. Having issues with the default module of ‘currentweather’. This MMM-Jast module makes my currentweather module disappear. It loads, then as soon as MMM-Jast loads, currentweather disappears. As soon as I remove MMM-Jast from the config, then currentweather works again.

        J 1 Reply Last reply Jan 9, 2022, 8:54 PM Reply Quote 0
        • J Offline
          Jalibu Module Developer @MasonR1209
          last edited by Jan 9, 2022, 8:54 PM

          @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 Jan 23, 2022, 4:10 PM

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

            J 1 Reply Last reply Jan 25, 2022, 2:56 PM Reply Quote 0
            • J Offline
              Jalibu Module Developer @Jo 0
              last edited by Jalibu Jan 25, 2022, 3:01 PM Jan 25, 2022, 2:56 PM

              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 Jan 25, 2022, 4:07 PM Reply Quote 0
              • J Offline
                Jo 0 @Jalibu
                last edited by Jan 25, 2022, 4:07 PM

                @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$

                J 1 Reply Last reply Jan 25, 2022, 4:11 PM Reply Quote 0
                • J Offline
                  Jalibu Module Developer @Jo 0
                  last edited by Jan 25, 2022, 4:11 PM

                  @jo-0 add

                  useGrouping: true,
                  

                  to your module configuration.

                  J 1 Reply Last reply Jan 25, 2022, 4:16 PM Reply Quote 0
                  • J Offline
                    Jo 0 @Jalibu
                    last edited by Jan 25, 2022, 4:16 PM

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

                    useGrouping: true,

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

                    J J 2 Replies Last reply Jan 25, 2022, 4:24 PM Reply Quote 0
                    • J Offline
                      Jo 0 @Jo 0
                      last edited by Jan 25, 2022, 4:24 PM

                      @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 Jan 25, 2022, 5:09 PM Reply Quote 0
                      • 1
                      • 2
                      • 7
                      • 8
                      • 9
                      • 10
                      • 11
                      • 16
                      • 17
                      • 9 / 17
                      • 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