Starting with iOS 14, Apple introduced widgets for the iPhone and iPad. Widgets elevate information to the top of your device and offer information at a glance. They help you customize your device in new ways. Wouldn’t it be awesome to have a ThingSpeak widget on your iPhone? Thanks to a new app called Scriptable you can put ThingSpeak data widgets on your iOS devices.
Here are some steps to help you put a ThingSpeak widget on your iOS device:
- Install Scriptable
- Get the starter code on your device using iCloud sharing and edit on your desktop
- Add a new widget to your Home Screen
- From the Home Screen, touch and hold a widget or an empty area until the apps jiggle.
- Tap the Add button in the upper-left corner.
- Select a widget, choose from three widget sizes, then tap Add Widget.
- Select the Scriptable app
- Customize the widget:
- Hold down on the widget and select Edit Widget.
- Enter a new parameter for your channel: CHANNEL_ID | FIELD_ID | results=X
iOS widgets refresh rate is controlled by the device. The widgets will update themselves on some schedule and eventually synchronize with recent ThingSpeak channel data.
Enjoy making custom widgets for iPhone and iPad thanks to Scriptable and Anil’s work. Anil also posted some widget code for CheerLights.
コメントを残すには、ここ をクリックして MathWorks アカウントにサインインするか新しい MathWorks アカウントを作成します。