tobi-wan-kenobi / bumblebee-status

bumblebee-status is a modular, theme-able status line generator for the i3 window manager.
https://bumblebee-status.readthedocs.io/en/main/
MIT License
1.22k stars 229 forks source link

Stock started showing up as 'n/a' #971

Closed lag-google closed 1 year ago

lag-google commented 1 year ago

Bug Report

Description

Affected module: stock Version used: latest git

Stock value showing up as n/a.

How to reproduce

status_command ~/projects/bumblebee-status/bumblebee-status \
        -m battery stock weather nic disk:root cpu memory date time pasink pasource \
        -p root.path=/ time.format="%H:%M:%S CW %V" date.format="%a, %b %d %Y" \
           nic.exclude=lo,virbr,docker,vboxnet,veth,br,.*:avah,cvd nic.states=up \
           weather.showminmax=true stock.symbols=googl stock.change=false \
        -t solarized-powerline

image

tobi-wan-kenobi commented 1 year ago

Looks like Yahoo switched their finance API to something that requires an authorization.

Will need to look into how to retrieve and provide that.

Please note that this is a user-contributed module, so it might take a while until this is fixed.

lag-google commented 1 year ago

Any luck with this please? Has the module author been informed of the breakage?

tobi-wan-kenobi commented 1 year ago

Unfortunately not yet, and I don't have a way toccontact the original author. I will do my best to find and implement a different stock provider.

tobi-wan-kenobi commented 1 year ago

@lag-google The module should work again, but with a slight change of parameters, plus you need an API key from here: https://www.alphavantage.co/support/#api-key

Now, the invocation looks something like this:

bumblebee-status -m stock -p stock.apikey=<your key> stock.symbols=IBM,A

and unfortunately doesn't show the currency anymore.

lag-google commented 1 year ago

Wonderful. Thanks for your help.