Skip to content

iOS Widget that displays GitHub stars and forks, but also pip installs from last day

Notifications You must be signed in to change notification settings

DidierRLopes/opensource-scriptable-widget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

opensource-scriptable-widget

iOS Widget that displays GitHub stars and forks, but also pip installs from last day

Steps to have it work on your iOS Device:

  1. Download Scriptable app to your iOS device

  2. Open Scriptable app and click on the "+" on the top right corner

  3. Rename that script to whatever repo you would like to track

  4. Copy the code from the file opensource.js on this repo

  5. Paste it into that new script on your phone

  6. Change the 4 initial parameters from the file:

const WIDGET_TITLE = "openbb.co/open"
const GITHUB_REPO = "OpenBB-finance/OpenBBTerminal"
const PIP_PACKAGE_NAME = "openbb"
const CACHED_DATA_HOURS = 1
  • If you only want to track GitHub stats, do PIP_PACKAGE_NAME="".
  • If you only want to track PiPy stats, do GITHUB_REPO="".
  • The CACHED_DATA_HOURS corresponds to the amount of hours where the data is not updated.
  1. Run script to make sure that it works using the "play button" on the bottom right corner

  2. Leave the app

  3. Leave your finger pressed on the iOS homepage

  4. Click on the "+" on the left top corner

  5. In the "Search Widgets" tab look for "Scriptable"

  6. You will see "Run Script" and there are 3 pages. Select the type of widget size that you are interested in

  7. Select "Add Widget"

  8. The widget will appear with the sentence "Long press and edit widget to select the script to run"

  9. Do that and then you will have 3 options:

  • Script - Select script name that you renamed to earlier
  • When Interacting - Select "Open URL"
    • A new field will appear with "URL" then provide the link you want to open you cick on the widget (e.g. http://openbb.co)
  • Parameter - If there's any parameter needed to the script
  1. Click outside the window, and you should be all set!

If you have any question let me know, you can find me on Twitter here.

About

iOS Widget that displays GitHub stars and forks, but also pip installs from last day

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published