Skip to content

Sample Scriptable JS Code to add a widget to iOS home/Lock Screen to display Adafruit IO Feed Data

Notifications You must be signed in to change notification settings

bradrblack/adafruit-io-scriptable-widget

Repository files navigation

Sample Scriptable Widgets to Display AdafruitIO Feed Data on an iOS home screen or lock screen widget. In one example a temperature value is displayed along with a message about how "fresh" the data is relative to the current time. In a second example, the battery voltage is displayed inside a round guage indicating the battery level.

  • Download the Scriptable App from the iOS App Store
  • Copy and paste the JS code into a new Script
  • Update the Adafruit IO username/key and feedname
  • Run the script
  • Edit your home or lock screen to add the widget (add the scriptable app as the widget and you'll be prompted to select the script - for the action choose "run script")
  • Tip the author of Scriptable using the in-app purchase!

Widget on Lock Screen

Widget on Home Screen

Also - here is a sample iOS/MacOS shortcut that will speak the Adafruit IO feed value. Once you create this shortcut you can tap on the icon or simply ask Siri - I called my shortcut "Pool Temperature" so I can just say to my phone "Siri... Pool Temperature" and Siri will tell me the temp.

Widget on Home Screen

About

Sample Scriptable JS Code to add a widget to iOS home/Lock Screen to display Adafruit IO Feed Data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published