An open API service indexing awesome lists of open source software.

https://github.com/devicplan/ios_scripts

Scripts for IOS widgets to display data from Thingspeak
https://github.com/devicplan/ios_scripts

Last synced: 8 months ago
JSON representation

Scripts for IOS widgets to display data from Thingspeak

Awesome Lists containing this project

README

          

# ios_scripts
Scripts for IOS widgets to display data from Thingspeak

Please read the [PDF](https://github.com/devicplan/ios_scripts/blob/3343ad035ef74e624ae0450c2bcdeb2f88fc8bd8/Add%20ThingSpeak%20Data%20Widgets%20to%20iOS%20Using%20Scriptable%20%C2%BB%20Hans%20on%20IoT%20-%20MATLAB%20%26%20Simulink.pdf) file, here you will find the description for the setup.

In the file test_more.js two more parameters have to be passed for drawing the graph. Between the parameters min and max the graph will be drawn. In the original file starter_original.js the values for scaling were obtained from the supplied data. This is not advantageous for a meaningful representation.

These parameters are passed separately with "|".

Example: 1278463|1|results=30|0|100

* Channel ID
* Field
* Number of records
* max line
* min line

The example represents all values in the scaling 0 to 100.
The color of the graph can be changed in line 54. (#46afd5)

test_more2.js (max and min line number or a for automatic)