An iOS widget to pull your sales data from K-Pay
- Download Scriptable
- Create New Script
- Copy and paste all of script.js to the new script
- Find your api key at https://kiezelpay.com/account/api and add it on line 2
- Then find your timezone offset at https://en.wikipedia.org/wiki/List_of_UTC_time_offsets
- Next take your offset (ie: +2) and then multiply it by 60, and flip the symbol. (so -120)
- Add the offset to the url on line 20, same with platform (fitbit, garmin, pebble, all)
- Finally, Add a link to your png logo on line 96 (252px By 152px)
Instructions.png contains visuals for some of these steps
- Add a medium sized scriptable widget to your home screen
- Press the home button to get out of homescreen edit mode
- Press and hold (3D touch) on the widget until the context menu appears
- Select: Edit "Scriptable" (i)
- For Script, select whatever you called the script
- For When interacting, select Run Script
- That's It! Enjoy!
- Some text is not aligned properly
- To fix this, scroll through the code an change the x & y values if needed
- Or, if you find a way to individually align elements, let me know