Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New: create sb-ticker #1436

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Conversation

ngorden
Copy link
Contributor

@ngorden ngorden commented Oct 19, 2024

Being similar to the long-standing sb-price, sb-ticker allows for checking prices of regular stocks as well.

  • prices can be updated periodically but, the quotes will not download more than once in an hour (unless overridden with $BUTTON_BLOCK=2)
  • output format of the prices is <symbol>: <percent_change>

Files used:

  • the pricefile, located at $XDG_CACHE_HOME/stock-prices, is where the downloaded quotes are saved for use during the non-refresh periods
  • the tickerfile, located at $XDG_CONFIG_HOME/tickers, is used to customize the quotes that will be fetched. The format of the contents should be <symbol1>,<symbol2>,...
  • if tickerfile is not present, quotes will be gathered for the S&P 500, Dow Jones Industrial Average, and Nasdaq by default

Statusbar usages:

  • $BLOCK_BUTTON=1 will view the unmodified response from the last price refresh
  • $BLOCK_BUTTON=2 will update the pricefile, even if the hour has not ellapsed
  • $BLOCK_BUTTON=3 will show all the prices and help for the program

appeasementPolitik and others added 5 commits October 19, 2024 10:50
…hxyz#1327)

* weath: Add option to get forecast from a different location

* Remove retry and make max time lower because it is interactive

* Give weath 'cp' option to copy forecast as plain text for sharing

* Make weath a separate script
useful if want to use shortcuts w/ different progs instead of
their default behavior (cd / $EDITOR), e.g.:

```sh
cd ~/Downloads
mv foo.mp3 $music
```

Co-authored-by: Luke Smith <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants