Skip to content

Instantly share code, notes, and snippets.

@marckohlbrugge
Created June 4, 2024 01:18
Show Gist options
  • Save marckohlbrugge/963904883a974e66b4cce8ee29e7c26f to your computer and use it in GitHub Desktop.
Save marckohlbrugge/963904883a974e66b4cce8ee29e7c26f to your computer and use it in GitHub Desktop.

WIP Streaks Scriptable Widget

Introduction

Welcome! This guide will help you add the WIP Streaks widget to your home screen using the Scriptable app. This widget shows your streak and how many hours you have left to complete a todo if you haven't completed any today yet.

Prerequisites

Before you begin, make sure you have:

Step-by-Step Instructions

  1. Open Scriptable

    • Launch the Scriptable app on your device.
  2. Create a New Script

    • Tap the "+" button to create a new script.
  3. Copy and Paste the Script Code

  4. Replace the API Key

    • Find the line const API_KEY = "wip_sk_FOOBAR";
    • Replace "wip_sk_FOOBAR" with your actual API key from WIP.
  5. Run the Script

    • Tap the play button to run the script and check if it's working.
  6. Add the Widget to Your Home Screen

    • Go to your home screen, enter the edit mode, and add a new Scriptable widget.
    • Select the WIP Streaks script from the list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment