Name | Modified | Size | Downloads / Week |
---|---|---|---|
btctick | 2019-05-10 | ||
btcplot | 2019-05-10 | ||
btctick.tar.xz | 2019-05-10 | 33.5 kB | |
readme.md | 2019-05-10 | 2.5 kB | |
tickers.png | 2019-05-10 | 3.4 kB | |
Totals: 5 Items | 39.5 kB | 0 |
These I wrote several months ago and they've been running fine on at least 2 machines so I decided it was time to put them online before I forget more.
There's a text ticker modeled after the LXDE clock and a GUI ticker modeled after the CPU monitor. I didn't write either from scratch, I just modified existing programs. They might work in something besides LXDE, I don't know. I'm using them in Raspbian and AMD64 Debian.
The only difference in platforms is where the lxpanel/plugins directory they need to go in is.
On my Rock64 the .so files go in /usr/lib/aarch64-linux-gnu/lxpanel/plugins/ On my amd64 laptop they go in /usr/lib/x86_64-linux-gnu/lxpanel/plugins/ Raspbian: /usr/lib/arm-linux-gnueabihf/lxpanel/plugins/
Probably the easiest way to find it, unless you know already, is to use locate. So apt-get install locate, then updatedb, then locate lxpanel/plugins. You could use find but I've never learned it. Locate I use almost every day, very handy.
Before you start: sudo apt-get install lxpanel-dev libfm-dev libfm-extra-dev libfm-gtk-dev You'll probably need to be root to write to the directory. The .so files don't need to be executable. The make files just compile the plugins, they don't install them. Use your favorite file manager amd copy them.
Whichever you build and copy into your lxpanel/plugins directory probably won't show up in Add/Remove Panel Items until you either reboot or do lxpanelctl restart.
You can use these to fetch and display any number you can get into a file on your computer: stock prices, temperatures, your mother in law's weight. For things on the web it helps if they've set up an API, then this uses wget to fetch the file and extracts the number. You can use csv files or json, maybe some other types if you can set them up.
Each program has it's own readme also.
The GUI plot program isn't really that practical because it doesn't show you much history. It by default fetches data every 5 minutes and the plot area is 48 pixels wide so it shows the past 4 hours. You really need months, not hours, but that gets complicated: you either store a lot or fetch from some database. Just go to https://bitcoinwisdom.com/markets/bitfinex/btcusd
The text program uses green text if the latest price is higher than the previous one, red text if it's lower.
btcplot is the GUI one, btctick is text. I wrote the text one first but I was intrigued by the idea of plotting history so I did that next.
Alan Corey, ab1jx, Fri May 10 09:04:53 EDT 2019