Skip to content

growobservatory/GrowNodeExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GrowNodeExample

This code reads from the Thingful node, gets list of all Sensors

The code then reads through the list of sensors and counts the number with a location of zero

Then displays percentage that are zero locations

Dependencies

  • python2 or python3
  • pip - the recommended tool for installing Python packages.
  • requests - http requests library

Run the script

This script requires python. To verify that python is already installed on your machine run

python --version

If the command above returns something like Python 2.7.10 then python is already installed. If not you can download it here. Further instructions can be found on the official documentation

The next step is to install the required dependencies. We recommend using pip. Verify that pip is installed by running

pip --version

If pip is not installed follow the step described on the official documentation

You can install dependencies with :

pip install -r requirements.txt

Alternatively you can install individual packages running:

pip install <package-name>

Finally run the script with

python Get.py <your-api-key>

Obtaining API Keys

Users must be authenticated using their API key when interacting with the GROW Node. In order to obtain a key please contact

Documentation for GROW node

https://growobservatory.github.io/ThingfulNode/#tag/Locations

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages