Comments (3)
Google says http://download.finance.yahoo.com/d/quotes.csv
has not worked since 2017...
So that code in there is old, and the info on conky.cc is out dated as well.
A kind Gentleman on the internet I found pointed out the new url and format which goes like this
https://query1.finance.yahoo.com/v7/finance/download/^GSPC?period1=1459468800&period2=1494028800&interval=1d&events=history&crumb=yt6hjEL5Tx8
That will get csv files, but I currently don't know what the period interval numbers mean.
I will see what I can do about the Conky code and also try to figure out how the period numbers correspond to dates.
(EDIT: Those are seconds since 1-1-1970. I get it now)
from conky.
Yes, when you see timestamps that are more than a billion, they are on unix epoch time, which starts on that date, counts in seconds and you can get the current one with date +%s
.
As for the code being old, just imagine that until less than a year ago, I was checking conky's variables and configuration settings on these pages on sourceforge! That is why I asked if the weather variable stil exists.
https://conky.sourceforge.net/variables.html
https://conky.sourceforge.net/config_settings.html
from conky.
Oh I knew about the epoch time.
It's just that the url the confused me.
I thought it was some fancy finance thing that accountants understood lol. (I know nothing about stocks or finance)
As for the weather variable, I am not currently seeing it anywhere in the source code. I have the latest git clone.
I did manage to get conky to retrieve the csv file from Yahoo though. The rest of the code works, just had to change the url a bit.
However, it's ugly looking right now :)
And from what I am seeing, its always the same kind of data. Can only change the time period and interval like daily or weekly. Can't seem to get the fancier stuff.
Maybe it's my lack of knowledge about this stuff...Or perhaps Yahoo only wants to show it on their website now.
from conky.
Related Issues (20)
- [Bug]: segmentation fault upon modification of conkyrc. (Regression?) HOT 11
- [Bug]: Conky are only in window not at desktop on sway HOT 10
- [Bug]: own_window_type = 'panel' breaks window positioning HOT 2
- High cpu usage and broken position since last update HOT 1
- [Bug]: Fonts are red. Default config file, background is black, X11 environment HOT 5
- [Bug]: conky pixel unit isn't scaled by screen DPI HOT 21
- [Bug]: 1.21.1 /usr/share/doc/conky name mistake? HOT 2
- [Bug]: Wrong hr line thickness HOT 6
- [Bug]: 1.21.1 conky display is truncated HOT 8
- if_updatenr config in wayland/sway always crashes after a couple hours or so
- [Bug]: conky 1.21. does not start consistently
- [Bug]: Tests fail with BUILD_COLOUR_NAME_MAP=OFF HOT 1
- [Bug]: Version 1.21.1 Images larger HOT 7
- [Bug]: attempt to call a nil value (global 'cairo_xlib_surface_create') HOT 3
- [Bug]: Build failure on aarch64 on Mageia Cauldron HOT 2
- Border_width ignored on top and bottom borders HOT 4
- [Bug]: $desktop variable not changing when switching desktops Linux Mint HOT 3
- [Bug]: blank window HOT 1
- [Bug]: set_struts wrong with large DPI HOT 1
- [Bug]: Middle not working as second argument in Alignment
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from conky.