p0fi / hnt-earnings-for-scriptable

Scriptable widget to display Helium mining rewards for a hotspot on your home screen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

HNT Earnings Widget for Scriptable

cover

What's this?

Just got your Helium miner? Tired of checking the helium app every other hour during the day to see how much you earned? Want to see earnings right on your iOS home screen? Look no more!

This Scriptable widget lets you display the earnings of your hotspot on the home screen to help you keeping track of your daily/weekly/monthly earnings.

Features

Multi Language Support

Currently the widget is tranlated into:

  • πŸ‡©πŸ‡ͺ German
  • πŸ‡ΊπŸ‡Έ English
  • πŸ‡ͺπŸ‡Έ Spanish

Different Aggregation Periods

The widget can be configured to display eigther earnings per day, per week or per month.

Dark Mode Support

Supports different color configurations for light β˜€οΈ and dark πŸ•ΆοΈ mode

Instructions

  1. Download and extract the content of this repository into the Scriptable folder located in your iCloud Drive.

Your Scriptable folder structure should look like this:

iCloud Drive/
β”œβ”€ Scriptable/
β”‚  β”œβ”€ hnt-earnings.js
β”‚  β”œβ”€ hnt-earnings/
β”‚  β”‚  β”œβ”€ assets/
β”‚  β”‚  β”‚  β”œβ”€ helium.png
β”‚  β”‚  β”œβ”€ api.js
β”‚  β”‚  β”œβ”€ utils.js
β”‚  β”‚  β”œβ”€ config.js
β”‚  β”‚  β”œβ”€ widgets.js
β”‚  β”‚  β”œβ”€ i18n.js
  1. If you like to display your earnings in a different currency then the default (EUR) go to the config.js file and change the currency. Possible values are listed in the file.
  2. If you like, configure your color settings in the getColors() function to match the widget to your homescreen 🎨
  3. Launch Scriptable and make sure that hnt-earnings is listed in the scripts view.
  4. If you wish, add your hotspot name into the devParams object in hnt-earnings.js and run the script and verify that everything is working correctly.
  5. Go back to your home screen and add a Scriptable widget.
  6. Edit the Scriptable widget and choose hnt-earnings as the script.
  7. Configure the widget parameters with your hotspot name and the period you want to see the earnings for.

The configuration options have to be a JSON of the following format:

{ "name": "your-hotspot-name", "period": "day" }

Known Issues

  • Right now the widget only supports the small widget size. A medium and large sized version may follow in the future.

About this project

The script is authored by @thartwi (me) in order to keep track on how much I'm making with my magic internet money box ✨ without opening the helium app constantly and waiting for it to load slowly 🐌

Thanks πŸ™

Thanks to the Helium Network for creating the peoples network!
Thanks to @simonbs for making an awesome app!

Disclaimer

This widget is not affiliated with or endorsed by the Helium project.

About

Scriptable widget to display Helium mining rewards for a hotspot on your home screen

License:The Unlicense


Languages

Language:JavaScript 100.0%