Skip to content

Stay ahead of the market with our Crypto Price Tracker, a real-time update widget that provides you with the latest information on top cryptocurrencies. With this app, you can track the prices of your favorite coins and stay informed about any significant trends or changes in the market.

Notifications You must be signed in to change notification settings

nine1one/Scripts4HTTPWidget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HTTP Widget Scripts

A collection of various scripts for that app HTTP Widget

HTTP Widget

A lightweight widget for fetching and formatting cryptocurrency prices from public APIs like CoinGecko.

Features

  • Fetch live crypto prices (e.g., XRP, Monero) in USD.
  • Extract values using key paths, regex, or custom JavaScript.
  • Auto-refresh with configurable intervals.
  • Supports notifications based on extracted values.

Installation

Clone the repository:

git clone https://github.com/yourusername/httpwidget.git
cd httpwidget

Open in your preferred environment and configure your widgets JSON files.

Usage
	1.	Configure your widget JSON with:
	•	url for the API endpoint.
	•	extractByKeyPath or extractByJavaScript to parse the response.
	•	Optional autoTriggerInterval for periodic updates.
	2.	Load the widget in the app.
	3.	View live prices and formatted outputs.

Example JSON

{
  "alias": "💰 XRP",
  "url": "https://api.coingecko.com/api/v3/simple/price?ids=monero&vs_currencies=usd",
  "extractByJavaScript": "let json = JSON.parse(responseString);\nlet xrpPrice = json.monero.usd;\nreturn `$${xrpPrice.toFixed(2)}`;",
  "autoTriggerInterval": 300
}

Contribution
	•	Add new cryptocurrency endpoints.
	•	Improve extraction methods.
	•	Enhance notifications or formatting options.

License

MIT License. No PII is stored in this repository; all data comes from public APIs.

About

Stay ahead of the market with our Crypto Price Tracker, a real-time update widget that provides you with the latest information on top cryptocurrencies. With this app, you can track the prices of your favorite coins and stay informed about any significant trends or changes in the market.

Resources

Security policy

Stars

Watchers

Forks

Packages

No packages published