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

[WIP] Add bigredapp endpoint #3

Merged
merged 8 commits into from Jun 5, 2015
Merged

[WIP] Add bigredapp endpoint #3

merged 8 commits into from Jun 5, 2015

Conversation

ghost
Copy link

@ghost ghost commented May 23, 2015

This is definitely still a work in progress, please don't merge yet ^_^
Just thought I'd kick off the PR.

One thing to note, as you can see from the commit I have the API_KEY in a file 'api_key' in the same top directory. It's not hooked up to any gmail account, it's just a way for them to rate-limit requests.

You can get your own by making a temporary project using Google Developer Console (it's free, easy, etc.) and/or I have one and can just add you as a member, if you want that just let me know your email. I imagine on the server we can just use whatever one.

Genki Marshall added 3 commits May 23, 2015 01:57
These are so minor I'm just grouping them together:
Remove extraneous cache check - already done in getJSON.
Pre-calculate ms in one day.
Set one reference to self.caldb[location_id].
Remove extraneous semicolons.
Fix old cp'd function doc.
This gets the status-text, isOpen, and isAlmostOpen values for loc.
Genki Marshall added 4 commits May 24, 2015 00:30
Also, restructure logic around a more natural Promise-based approach.
Also rename functions for clarity.
Also rename getResults to getResult.
changeTime, as described, signifies the point at which the current open
status changes from how it is, to the opposite.
I.e. if the location is found as open, then changeTime is the time that
it closes. And vise-versa.
If it is 0, this implies that it is closed for a while.
@mrkev mrkev merged commit 8d18323 into mrkev:master Jun 5, 2015
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.

1 participant