Giter Site home page Giter Site logo

Comments (3)

lineage-of-roots avatar lineage-of-roots commented on June 10, 2024

@pitsi

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.

pitsi avatar pitsi commented on June 10, 2024

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.

lineage-of-roots avatar lineage-of-roots commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.