Skip to content

A Scriptable widget that shows the current bitcoin course in US-Dollar based on coinbase

Notifications You must be signed in to change notification settings

wickenico/btc-usd-course.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

btc-usd-course.js

A Scriptable widget that shows the current bitcoin course in US-Dollar based on coinbase

Visits Badge

bitcoin-usd-course-widget-small

SetupUsageLinksContribution

Setup

  1. (if not done yet) Download the scriptable app form AppStore
  2. In Scriptable create a new script
  3. Copy the code from script file btc-usd-course.js
  4. Create a new widget on homescreen and select this script in scriptable

Usage

Change displayed currency

You can change the currency directly in the api url on line 14.
For example show bitcoin price in €/EUR:

const url = 'https://api.coinbase.com/v2/prices/spot?currency=EUR'

Links

Contribution

If you have any ideas for extensions or changes just let me know.

TODO

  • Change currceny name in headline
  • Add rounding for numbers
  • Add up and down tracker
  • Add parameter for currency and coin

About

A Scriptable widget that shows the current bitcoin course in US-Dollar based on coinbase

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published