8000 GitHub - midas-myth/scriptable-gmx: GMX iOS widget
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

midas-myth/scriptable-gmx

Repository files navigation

GMX iOS widget

Preview

In the home screen:

Home screen

In the lock screen:

Lock screen

You can also add the widget on Mac

Mac widget

Prerequisites

Installation

  1. Download the Scriptable GMX.scriptable or send it to your iPhone in any messaging app
  2. Open a share sheet (Activity View) and select Scriptable app. If there is no such option, try scolling to the right and tap on "more".
  3. Tap on "Add to My Scripts"

Configuration

  1. After adding a bare Scriptable widget. Edit it.
  2. In "Script" section, select "Scriptable GMX"
  3. (Optional) In "When Interacting" section, select "Open URL" and set https://metamask.app.link/dapp/https://app.gmx.io/#/trade/long.
  4. In "Parameter" section, set your account address 0x1234...4567.

Configuration

Notes

  • The refresh rate is controlled by iOS. So it is usually lagging behind the actual positions by minutes.

Development

To speed up the development, link the script file from iCloud Scriptable folder to the one on your computer by running:

npm run link
# or
ln -s ~/Library/Mobile\\ Documents/iCloud~dk~simonbs~Scriptable/Documents/Scriptable\\ GMX.js index-linked.js

This should create an index-linked.js file in the root of the project where you can edit the script. Changes to this file will update the script in real time and you can reran the script on iOS by just refreshing the widget after a few seconds.

To export scriptable object (.scriptable file), run:

npm run export

You can then send the Scriptable GMX.scriptable file to your iPhone in any messaging app.

About

GMX iOS widget

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0