Giter Club home page Giter Club logo

intervals-now's Introduction

This script generates an omg.lol /now block containing running stats from Intervals.icu. It's possible that the Venn diagram of users this is useful for only contains me.

Currently only metric units are supported.

Usage

There are four environment variables that need to be configured to run the sync:

  • INTERVALS_ATHLETE_ID + INTERVALS_API_KEY are available in the "Developer Settings" section of the Intervals settings
  • OMGLOL_USERNAME, OMGLOL_API_KEY are available in the Account section of the omg.lol dashboard

Optionally you can include <!-- block intervals-now --> and <!-- end intervals-now --> in your /now page's Markdown to specify when you want your Intervals stats to go. If this doesn't exist the block will be added at the end of your page.

Once the environment variables are available, running the script is as simple as:

> python generate.py

Python versions >= 3.6 should be supported.

Usage as a Github Action

Simply fork this repository and add the environment variables to update you page with Github Actions. The simplest configuration involves settings up the four environment variables as Repository Secrets in the Github settings for your fork of this repository.

Contributing

You are welcome to submit Pull Requests or raise issues. All CI steps will need to be passing before PRs are merged. You can run them locally with:

> isort . && black . && ruff . && bandit -r .

intervals-now's People

Contributors

sesh avatar

Watchers

 avatar  avatar

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.