• 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 159.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.
  • J Offline
    Jalibu Module Developer @ItsDonJ
    last edited by Aug 15, 2021, 8:03 PM

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

    1 Reply Last reply Reply Quote 0
    • U Offline
      uros76
      last edited by Sep 15, 2021, 8:00 AM

      @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

      J 1 Reply Last reply Sep 15, 2021, 8:52 AM Reply Quote 0
      • J Offline
        Jalibu Module Developer @uros76
        last edited by Jalibu Sep 15, 2021, 8:52 AM Sep 15, 2021, 8:52 AM

        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!

        U S 2 Replies Last reply Sep 15, 2021, 10:07 AM Reply Quote 0
        • U Offline
          uros76 @Jalibu
          last edited by Sep 15, 2021, 10:07 AM

          @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

          J 1 Reply Last reply Sep 15, 2021, 10:37 AM Reply Quote 0
          • J Offline
            Jalibu Module Developer @uros76
            last edited by Sep 15, 2021, 10:37 AM

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

            U 1 Reply Last reply Sep 15, 2021, 10:51 AM Reply Quote 0
            • U Offline
              uros76 @Jalibu
              last edited by Sep 15, 2021, 10:51 AM

              @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

              J 1 Reply Last reply Sep 15, 2021, 10:55 AM Reply Quote 0
              • J Offline
                Jalibu Module Developer @uros76
                last edited by Jalibu Sep 15, 2021, 10:56 AM Sep 15, 2021, 10:55 AM

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

                U 1 Reply Last reply Sep 15, 2021, 10:57 AM Reply Quote 1
                • U Offline
                  uros76 @Jalibu
                  last edited by Sep 15, 2021, 10:57 AM

                  @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 Away
                    sdetweil @Jalibu
                    last edited by sdetweil Sep 15, 2021, 11:01 AM Sep 15, 2021, 11:00 AM

                    @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

                    U 1 Reply Last reply Sep 15, 2021, 11:21 AM Reply Quote 1
                    • U Offline
                      uros76 @sdetweil
                      last edited by Sep 15, 2021, 11:21 AM

                      @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
                      • 1
                      • 2
                      • 6
                      • 7
                      • 8
                      • 9
                      • 10
                      • 16
                      • 17
                      • 8 / 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