widgets – Internet of Things https://blogs.mathworks.com/iot Hans Scharler is an Internet of Things pioneer. He writes about IoT and ThingSpeak IoT platform features. Mon, 11 Apr 2022 15:23:53 +0000 en-US hourly 1 https://wordpress.org/?v=6.1.1 Add ThingSpeak Data Widgets to iOS Using Scriptable https://blogs.mathworks.com/iot/2022/01/14/add-thingspeak-data-widgets-to-ios-using-scriptable/?s_tid=feedtopost https://blogs.mathworks.com/iot/2022/01/14/add-thingspeak-data-widgets-to-ios-using-scriptable/#comments Fri, 14 Jan 2022 15:27:05 +0000 https://blogs.mathworks.com/iot/?p=2863

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... read more >>

]]>
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.

Scriptable allows you to write your own widgets using JavaScript and run the scripts on your iOS device. Anil Patro shared a starter template to create a ThingSpeak Graph widget using JavaScript on GitHub. You can use Anil’s code and modify it for your ThingSpeak channel and style.

Here are some steps to help you put a ThingSpeak widget on your iOS device:

  1. Install Scriptable
  2. Get the starter code on your device using iCloud sharing and edit on your desktop
  3. Add a new widget to your Home Screen
    1. From the Home Screen, touch and hold a widget or an empty area until the apps jiggle.
    2. Tap the Add button Gray add button in the upper-left corner.
    3. Select a widget, choose from three widget sizes, then tap Add Widget.
    4. Select the Scriptable app
  4. Customize the widget:
    1. Hold down on the widget and select Edit Widget.
    2. 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.

]]>
https://blogs.mathworks.com/iot/2022/01/14/add-thingspeak-data-widgets-to-ios-using-scriptable/feed/ 8
Introducing ThingSpeak Gauges! https://blogs.mathworks.com/iot/2018/06/27/introducing-thingspeak-gauges/?s_tid=feedtopost https://blogs.mathworks.com/iot/2018/06/27/introducing-thingspeak-gauges/#comments Wed, 27 Jun 2018 15:47:14 +0000 https://blogs.mathworks.com/iot/?p=2448

The ThingSpeak IoT has been building a new framework to support widgets on channel views. Widgets can be added to the public or private view of a ThingSpeak channel and even be embedded in 3rd-party... read more >>

]]>
The ThingSpeak IoT has been building a new framework to support widgets on channel views. Widgets can be added to the public or private view of a ThingSpeak channel and even be embedded in 3rd-party systems and dashboards. The first widget that we are releasing is the gauge!

At the recent Boston TechJam, MathWorks had a ThingSpeak People Counter that used face detection to count people that came over to our booth and learned about our demo. The people counter uses MATLAB to identify faces in a live video stream from a webcam, count the number of faces, and send the results to ThingSpeak. The code and instructions for the ThingSpeak People Counter project are on File Exchange.

I used the new ThingSpeak gauge widget to show the visitors the lastest people count. The gauges are easy to set up, you don’t have to edit JavaScript code, just point-and-click and configure options. You can add custom colored ranges, units, and display options. If you want to learn more about ThingSpeak channel display widgets and gauges, visit the MathWorks Documentation for ThingSpeak.

Now that we have the infrastructure for widgets on ThingSpeak, we can more widget types. What other widgets would you like to see on ThingSpeak?

 

]]>
https://blogs.mathworks.com/iot/2018/06/27/introducing-thingspeak-gauges/feed/ 2
Templates for Plugin Widgets #featurefriday https://blogs.mathworks.com/iot/2014/12/12/template-for-plugin-widgets/?s_tid=feedtopost https://blogs.mathworks.com/iot/2014/12/12/template-for-plugin-widgets/#comments Fri, 12 Dec 2014 19:27:50 +0000 https://blogs.mathworks.com/iot/?p=1337 Plugin Widgets allow you to create custom visualizations for your ThingSpeak Channels by using HTML, JavaScript, and CSS. We just added a new feature that allows you to start with templates. We... read more >>

]]>
Plugin Widgets allow you to create custom visualizations for your ThingSpeak Channels by using HTML, JavaScript, and CSS. We just added a new feature that allows you to start with templates. We created a Google Gauge and a two axis chart widget!

Check out ThingSpeak Docs for more information about Plugin Widgets.

]]>
https://blogs.mathworks.com/iot/2014/12/12/template-for-plugin-widgets/feed/ 1