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

Darksky shut down, how do I put replacement server address and api key into this? #9

Open
esprittordu opened this issue Feb 14, 2021 · 2 comments
Labels

Comments

@esprittordu
Copy link

Hello, I am afraid I'm dreadfully incompetent when it comes to looking under the hood of software and modifying things. I can do conf files, that's about it without a detailed walkthrough. Looks like you made some nice code and have the most detailed explanation of setting up an e-ink display with a raspberry pi I could find so I bought the same display as you. I figured out how to connect the ribbon cable to the pi hat, I hope it is facing the right way because it looks as though you could put it on backwards.
Back to your code: I have cloned your code and made an .env file but of course things have come to a standstill because darksky api keys are no longer available and their service is shut down. I don't actually care about twitter or the dictionary thing, literally the only thing I want on my display are the weather and the time.
I found Hypercast and got an api key from them but I know that this won't help, there is some place in your code where I have to put their server url instead of darksky's.
Also, how does one go about setting up mongodb for the paperpi project?

@lukehaas
Copy link
Owner

Hi @esprittordu, unfortunately it won't be as simple as calling a different weather API as the returned data will be in a different structure, so some amount of refactoring will be needed. The place to look is this file: https://github.com/lukehaas/paper-pi/blob/master/src/data-sources/Weather.js
This is where the dark-sky data is currently being fetched and consumed.

Regarding mongodb, no special setup is needed for this project, there just needs to be a mongodb instance running.

@esprittordu
Copy link
Author

Oh should have been a question, sorry I'm new to this. bumping around in a dark room with a blindfold on kind of scenario. Thanks, I will open that up and see if I can hack something together. Thank you for putting the code out there and answering silly questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants