Code Monkey home page Code Monkey logo

peter-lam / climbr Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 1.0 73.89 MB

A utility to log, visualize, and highlight climbing strengths, weaknesses, and trends. Built using Python, ElasticSearch, Kibana, and Docker

Home Page: https://www.peterqlam.com

License: MIT License

Python 0.57% Jupyter Notebook 99.32% HTML 0.12% Batchfile 0.01%
climbing climbing-gyms climbing-logbook data-science data-visualization docker docker-compose elasticsearch graphs kibana python visualization webscraper webscraping

climbr's People

Contributors

dependabot[bot] avatar peter-lam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

rsaavy

climbr's Issues

Set up poetry and nox

Replace requirements.txt and pip setup with poetry to manage dependencies. Set up nox to manage linters, saftey checks etc.

Also fix any linting issues

When session is full, need to parse result properly.

ValueError: invalid literal for int() with base 10: 'Full. Please make a different selection.'
Session info successfully retrieved! See information at '/workspace/data/output/bookings.json'

Also, if it's the last session of the day and it's full, then it will skip to the next day

Poetry.lock not present in webscraper

On a fresh clone, poetry lock isn't present so there is a error when running docker-compose. Need to find a better solution than this and also duplicating the pyproject.toml....

Refactoring Bookings for Webscraper

Instead of having to change the input logic when something changes, like the booking from (capacity gauge VS reservation), convert the Booking dictionary to class and standardize the inputs/outputs

Visualize yearly wrap up

Create a dashboard to summarize the climbing year. Things that would be useful

  • Climber count, who did you climb with the most this year?
  • Breakeven: Did you break even for your membership? Did other climbers?
  • Hardest grade
  • Mostly climbed location

Make directories and files not tracked by git

Since "Logs" and "Output" directories are ignored by git, the app needs to make these directories if they don't exists. Currently a fresh install results in an error like:

PS E:\GitHub-Projects\climbr-dev-work> poetry run cli export
Retrieving dashboards and related objects...
Exporting Kibana dashboard and objects...
Traceback (most recent call last):
  File "E:\GitHub-Projects\climbr-dev-work\common\common.py", line 383, in export_kibana
    with open(output, "w+") as file:
FileNotFoundError: [Errno 2] No such file or directory: 'E:\\GitHub-Projects\\climbr-dev-work\\data\\output\\climbr_2021-10-25_19-11-35.ndjson'

During handling of the above exception, another exception occurr

Restructure Docker files

Combine webscraper and main project docker files and docker-compose files. These should sit at the top odf the directory,
To restart the webscraper specifically, use: docker-compose restart webscraper or to rebuild the 1 service use: docker-compose up --detach --build webscraper

Warn users about demo data when running "climbr.py update"

If the user runs "demo" command first and then starts to populate their own data. Runing the "Update" command should either warn the user or auto delete demo files

Check for *demo.njson in the ES folder if user uses regular "climbr.py update". If present, should prompt user about deletion

Create visualizations for cummalitive booking habits

As climbing gyms begin to remove capacity limits and reservation systems, create some new and update existing visualizations to give climbers a reference point when going to gyms in the future.

What already exists:

  • Popularity by gym & time slot
  • Relative to the current capacity
  • Booking by weather

What could be helpful for the future:

  • Popularity by gym & regular time intervals (every hour)
  • Add a field to data points to show the % full based on the capacity of that time
    • For example: 50 bookings in March when the capacity was 50 ppl means 100% capacity, where as now it's like 50%
  • Update jupyter graphs for weather trends
    • How do other variables influence how busy a gym is (weather, time of the year, events, lockdown)
  • Bonus: Highlight and graph the differences in popularity based on lockdown rules
    • For example: 1st return from lockdown, 2nd ....
    • This would be more accurate if curious on data based on the limit but not 100% needed

Restructure Climbr CLI

Move related files into a subfolder. For example. /common/args should be in the CLI subfolder.

Idea is to clean up the project into sub folders per program:

  • Climbr CLI
  • webscraper
  • Climbr API

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.