Read the statement by Michael Teeuw here.
[MMM-JaST] Just another Stock Ticker (new: version 2.x)
-
@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
-
@uros76 why don’t you use @sdetweil 's Config Edit Tool MMM-Config?
MMM-Jast has full support for it. -
@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
-
@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… -
@sdetweil excellent, yes that’s what I am trying now. Thanks
-
I submitted a PR for jast to improve the form for the stocks list
-
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” %}
-
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: xxxxPossibly 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.
-
@masonr1209 please open two issues on GitHub on that. I’ll check them when I have more time again
-
Hi,
how can I format the Output Numbers?
like 34,265.37$ or
34.265,37$ according the settings.