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.8k 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 Offline
      sdetweil @morphisto
      last edited by

      @morphisto see https://forum.magicmirror.builders/topic/14862/help-with-a-couple-css-issues?_=1622084388280

      you can discover what you need to know

      Sam

      How to add modules

      learning how to use browser developers window for css changes

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

        @morphisto
        you should be fine by just adding

        .jast-wrapper {
        --size: 2.0rem;
        }
        

        to your custom css

        365ad81a-c9c4-4618-b37f-672f88fb54f2-image.png

        M 1 Reply Last reply Reply Quote 1
        • M Offline
          morphisto @Jalibu
          last edited by

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

          –size: 2.0rem;

          Thank You!

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

            Dear user of this module,
            so far, the wording around the portfolio function was incorrect/misleading, as I incorrectly used the German term “Depot” for that.
            In the latest version the translation should be clearer.

            Attention: Due to the renaming, configuration properties have also changed. Temporarily old AND new properties are supported, but in future versions I will only support the new ones. So, please update your config.

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

              @Jalibu
              Hi, Just installed this. What a great addition to my MagicMirror. Congrats!

              I’m running on top of a background with pictures and I would like to have the letters fading when disappearing on the horizontal mode (guess it could be the same for the vertical mode).
              Instead of “seeing” an invisible line where all the letters just disappear, I believe a little fade option would be a design touch that would elevate this module a lot.

              I’m not sure I can achieve it with CSS only without damaging the view of the background picture.

              Thank you.

              1 Reply Last reply Reply Quote 0
              • I Offline
                ItsDonJ
                last edited by

                I love the idea of that Ticker but sadly if i try to use it, i also only get an “Undefined” error message on my mirror. Any idea why so? For the moment i tried it with the BASF and SAP-Stocks like in the example.

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

                  @itsdonj
                  Please check your symbols. The “undefined” error comes when there are invalid symbols in your list

                  1 Reply Last reply Reply Quote 0
                  • uros76U Offline
                    uros76
                    last edited by

                    @Jalibu thanks for your continuos work on this module. It’s awesome and I use it on few MM deployments. Virtual beer sent your way :)

                    Perhaps you know, is there a way to pull a list of stocks into a config.js file, from a different file? I am no expert in JS but maybe there is a way to pull some of the config elements from a different file?

                    My magicmirror projects: https://forum.magicmirror.builders/post/79889, https://forum.magicmirror.builders/post/93241 and https://forum.magicmirror.builders/post/94586

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

                      Hi @uros76,
                      thank you for the beer :-)
                      What do you mean with “different file”? Should that be a central/remote file which should be loaded over the internet from different mirrors or just another local file on the same system?

                      Prost!

                      uros76U S 2 Replies Last reply Reply Quote 0
                      • uros76U Offline
                        uros76 @Jalibu
                        last edited by

                        @jalibu welcome :)

                        Preferably the other file with defined stocks would be on the same system.
                        I kind of get it how to make this work with python scripts but I have no clue if it’s possible with JS.

                        My magicmirror projects: https://forum.magicmirror.builders/post/79889, https://forum.magicmirror.builders/post/93241 and https://forum.magicmirror.builders/post/94586

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

                          @uros76 either you prepare/autogenerate the config.js in a preflight with the stocks of your file before you start the mirror or I am afraid that it won’t work without programming efforts in the module.

                          Can you explain me the use case?

                          uros76U 1 Reply Last reply Reply Quote 0
                          • uros76U Offline
                            uros76 @Jalibu
                            last edited by

                            @jalibu I am making a small MM project, based on rpi 3 and a small screen. This will be used by my friends who are occasionally trading with crypto and stocks.

                            Rather than teaching them how to edit a list of monitored stocks in the config.js (which could lead to catastrophic failure) I would prefer them to edit an independent shared file with the list of stocks only. This way we avoid breaking the core MM system and have the flexibility to change the list of stocks daily if needed.

                            I like the idea of autogenerating the config file. Will have a look into it if I can do it with python script. If you come up with some other solution let me know.

                            Thanks again

                            My magicmirror projects: https://forum.magicmirror.builders/post/79889, https://forum.magicmirror.builders/post/93241 and https://forum.magicmirror.builders/post/94586

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

                              @uros76 why don’t you use @sdetweil 's Config Edit Tool MMM-Config?
                              MMM-Jast has full support for it.

                              uros76U 1 Reply Last reply Reply Quote 1
                              • uros76U Offline
                                uros76 @Jalibu
                                last edited by

                                @jalibu I completely forgot about this one. I will disable the rest and just allow Jast module to be editable. This could also work, thanks

                                My magicmirror projects: https://forum.magicmirror.builders/post/79889, https://forum.magicmirror.builders/post/93241 and https://forum.magicmirror.builders/post/94586

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

                                  @jalibu you could pull a json list of stocks from a file, like compliments does

                                  and do it on some timed cycle, hourly, daily.

                                  @uros76 one could also try using my MMM-Config module, which presents a form for config.js, where user could + to add, - to remove
                                  see
                                  https://github.com/sdetweil/MMM-Config
                                  then the user could change via their phone or ipad/laptop…

                                  Sam

                                  How to add modules

                                  learning how to use browser developers window for css changes

                                  uros76U 1 Reply Last reply Reply Quote 1
                                  • uros76U Offline
                                    uros76 @sdetweil
                                    last edited by

                                    @sdetweil excellent, yes that’s what I am trying now. Thanks

                                    My magicmirror projects: https://forum.magicmirror.builders/post/79889, https://forum.magicmirror.builders/post/93241 and https://forum.magicmirror.builders/post/94586

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

                                      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

                                        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

                                          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.

                                          JalibuJ 1 Reply Last reply Reply Quote 0
                                          • 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

                                            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
                                            • 4 / 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