GithubHelp home page GithubHelp logo

spookykat / moonboard Goto Github PK

View Code? Open in Web Editor NEW
38.0 3.0 11.0 17 KB

An API wrapper for moonboard

Python 71.32% HTML 28.68%
moonboard climbing api moonboard-api python api-wrapper wrapper rockclimbing rock-climbing

moonboard's Introduction

MoonBoard

In secret.py update your MoonBoard username and password, then run fetch_problems.py and wait for problems.json to appear.

Now run webapp.py

moonboard's People

Contributors

denoh444 avatar musoke avatar spookykat avatar yeetinator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

moonboard's Issues

`This version of the MoonBoard app is now obsolete, please download the new MoonBoard app from the store.` error

Thanks for creating such useful software!

Since the recent release of the new official MoonBoard app, fetch_problems.py has stopped working.

The following is the error displayed:

$ python3 fetch_problems.py
Traceback (most recent call last):
  File "fetch_problems.py", line 58, in <module>
    json_data = requestProblemsJson(0, z, holdset, angle)
  File "fetch_problems.py", line 14, in requestProblemsJson
    'authorization': f'BEARER {getAccessToken()}',
  File "/home/nagamiya/tmp/MoonBoard/get_accesstoken.py", line 15, in getAccessToken
    'refresh_token': getRefreshToken(),
  File "/home/nagamiya/tmp/MoonBoard/get_accesstoken.py", line 39, in getRefreshToken
    return(r.json()['refresh_token'])
KeyError: 'refresh_token'

I wrote a print statement to get_accesstoken.py and the MoonBoard server returned the following response:

{'error': 'Obsolete', 'error_description': 'This version of the MoonBoard app is now obsolete, please download the new MoonBoard app from the store.'}
diff --git a/get_accesstoken.py b/get_accesstoken.py
index 27cfd11..ed7b06f 100644
--- a/get_accesstoken.py
+++ b/get_accesstoken.py
@@ -36,4 +36,5 @@ def getRefreshToken():
         'client_id': 'com.moonclimbing.mb'
     }
     r = requests.get(URL, headers=headers, data=data)
+    print(r.json())
     return(r.json()['refresh_token'])

Are there any plans to release a new version of the software that will resolve this issue?

Id love to get in touch!

Hey guys I was looking into trying to make a new moonboard iOS app but am still flushing out some of the details. I see that you guys have a moonboard api and I was hoping to ask some questions about it and if you mind if I used it? Love to get in touch: [email protected]

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.