<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kmishra</id>
	<title>Expertiza_Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.expertiza.ncsu.edu/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Kmishra"/>
	<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=Special:Contributions/Kmishra"/>
	<updated>2026-09-16T06:31:25Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108913</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108913"/>
		<updated>2017-05-04T23:16:09Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Running Tests */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app. The main goal of the project is to port the current SDK written in NodeJS to one that supports Python.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Client - SDK - Server Workflow'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
[[File:Tago dashboard.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Dashboard'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
The SDK is broken into several modules, each of which represents a class. The class diagram shown below represents each of these classes and their methods. This project deals with the '''services''' and the '''extra''' modules. &lt;br /&gt;
&lt;br /&gt;
The SDK provides '''services''' module to enhance support for the application. These services can be triggered when the customer application wants to send an alert or update the customer about the status of the IoT system. &lt;br /&gt;
&lt;br /&gt;
The '''extra''' module provides some 3rd party functionalities which the customer can use in their application. Like the geolocation feature can be used along with GPS sensor to pin point a location on the map. &lt;br /&gt;
&lt;br /&gt;
[[File:Tago_uml_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago-SDK Class Diagram'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The '''services''' and '''extra''' API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients. &lt;br /&gt;
&lt;br /&gt;
In the following, a '''Promise''' is simply an object used for asynchronous computations, which represents the resulting status of the operation (success or failure), with each scenario having an appropriate callback function.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token (token is analogous to API key) needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
====mqtt====&lt;br /&gt;
The mqtt class should provide a simple way to publish some data to the Tago broker.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* publish&lt;br /&gt;
** This method is used by the client to publish to the Tago broker. Check out [http://mqtt.org/ MQTT] and [http://sdk.js.tago.io/en/latest/analysis.html#mqtt MQTT in Tago] for more information on how it works.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***message&lt;br /&gt;
***[http://docs.tago.io/en/latest/concepts.html#bucket bucket]&lt;br /&gt;
&lt;br /&gt;
====socket====&lt;br /&gt;
The socket class should provide support to send some data to a bucket via an HTTP POST call.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send some JSON data to the bucket.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***bucket_id&lt;br /&gt;
***data_entry&lt;br /&gt;
&lt;br /&gt;
====console====&lt;br /&gt;
The console class should provide support to send some logged data to the Tago server.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send some message with a time-stamp to the server.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***message&lt;br /&gt;
***timestamp&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token(API Key) that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || [https://docs.pytest.org/en/latest/ '''pytest'''] and [https://pypi.python.org/pypi/requests-mock '''requests-mock''']&lt;br /&gt;
This requests-mock module stubs out HTTP request part of the testing code. &lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  [[File:Services unit.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' || &lt;br /&gt;
Each of the classes and function in the Services module will be tested in the following manner (eg. function testing SMS.send):&lt;br /&gt;
# Object created with appropriate token parameter (eg. SMS s = new SMS(&amp;quot;123456&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. s.send(&amp;quot;+9195550100&amp;quot;, &amp;quot;Temperature over 100 degrees Celsius&amp;quot;))&lt;br /&gt;
# Request is hijacked by the requests-mock stubs.&lt;br /&gt;
# Response returned and message asserted with the correct expected value&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      ||  [[File:Extra unit.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' || &lt;br /&gt;
Each of the classes and function in the Extra module will be tested in the following manner (eg. function testing Weather.forecast):&lt;br /&gt;
# Object created with appropriate API key (eg. Weather w = new Weather(&amp;quot;123abc&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. w.forecast(&amp;quot;27516&amp;quot;))&lt;br /&gt;
# Request is hijacked by the requests-mock stubs.&lt;br /&gt;
# Response returned (Promise - success) and asserted with the correct expected value(s)&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Integration Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' ||&lt;br /&gt;
Each of the classes and function in the Extra module will be tested in the following manner (eg. function testing Weather.forecast):&lt;br /&gt;
# Object created with appropriate API key (eg. Weather w = new Weather(&amp;quot;123abc&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. w.forecast(&amp;quot;27516&amp;quot;))&lt;br /&gt;
# Request sent to Third-party API server&lt;br /&gt;
# Response returned (Promise - success) and asserted with the correct expected value(s)&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
In order to run the unit and integration tests on your system, follow these steps:&lt;br /&gt;
* Clone the repo:&lt;br /&gt;
** git clone https://github.com/aapatel8/tago-sdk-python.git&lt;br /&gt;
* Then set environment variable&lt;br /&gt;
**  export TAGO_TOKEN_DEVICE=6ea148d0-e75c-11e6-a091-5756b91044c4&lt;br /&gt;
* From the top folder run&lt;br /&gt;
** python setup.py test&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108912</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108912"/>
		<updated>2017-05-04T23:13:18Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Test Plan */ adding images for services and extra module unit tests.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app. The main goal of the project is to port the current SDK written in NodeJS to one that supports Python.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Client - SDK - Server Workflow'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
[[File:Tago dashboard.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Dashboard'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
The SDK is broken into several modules, each of which represents a class. The class diagram shown below represents each of these classes and their methods. This project deals with the '''services''' and the '''extra''' modules. &lt;br /&gt;
&lt;br /&gt;
The SDK provides '''services''' module to enhance support for the application. These services can be triggered when the customer application wants to send an alert or update the customer about the status of the IoT system. &lt;br /&gt;
&lt;br /&gt;
The '''extra''' module provides some 3rd party functionalities which the customer can use in their application. Like the geolocation feature can be used along with GPS sensor to pin point a location on the map. &lt;br /&gt;
&lt;br /&gt;
[[File:Tago_uml_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago-SDK Class Diagram'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The '''services''' and '''extra''' API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients. &lt;br /&gt;
&lt;br /&gt;
In the following, a '''Promise''' is simply an object used for asynchronous computations, which represents the resulting status of the operation (success or failure), with each scenario having an appropriate callback function.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token (token is analogous to API key) needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
====mqtt====&lt;br /&gt;
The mqtt class should provide a simple way to publish some data to the Tago broker.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* publish&lt;br /&gt;
** This method is used by the client to publish to the Tago broker. Check out [http://mqtt.org/ MQTT] and [http://sdk.js.tago.io/en/latest/analysis.html#mqtt MQTT in Tago] for more information on how it works.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***message&lt;br /&gt;
***[http://docs.tago.io/en/latest/concepts.html#bucket bucket]&lt;br /&gt;
&lt;br /&gt;
====socket====&lt;br /&gt;
The socket class should provide support to send some data to a bucket via an HTTP POST call.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send some JSON data to the bucket.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***bucket_id&lt;br /&gt;
***data_entry&lt;br /&gt;
&lt;br /&gt;
====console====&lt;br /&gt;
The console class should provide support to send some logged data to the Tago server.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send some message with a time-stamp to the server.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***message&lt;br /&gt;
***timestamp&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token(API Key) that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || [https://docs.pytest.org/en/latest/ '''pytest'''] and [https://pypi.python.org/pypi/requests-mock '''requests-mock''']&lt;br /&gt;
This requests-mock module stubs out HTTP request part of the testing code. &lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  [[File:Services unit.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' || &lt;br /&gt;
Each of the classes and function in the Services module will be tested in the following manner (eg. function testing SMS.send):&lt;br /&gt;
# Object created with appropriate token parameter (eg. SMS s = new SMS(&amp;quot;123456&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. s.send(&amp;quot;+9195550100&amp;quot;, &amp;quot;Temperature over 100 degrees Celsius&amp;quot;))&lt;br /&gt;
# Request is hijacked by the requests-mock stubs.&lt;br /&gt;
# Response returned and message asserted with the correct expected value&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      ||  [[File:Extra unit.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' || &lt;br /&gt;
Each of the classes and function in the Extra module will be tested in the following manner (eg. function testing Weather.forecast):&lt;br /&gt;
# Object created with appropriate API key (eg. Weather w = new Weather(&amp;quot;123abc&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. w.forecast(&amp;quot;27516&amp;quot;))&lt;br /&gt;
# Request is hijacked by the requests-mock stubs.&lt;br /&gt;
# Response returned (Promise - success) and asserted with the correct expected value(s)&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Integration Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' ||&lt;br /&gt;
Each of the classes and function in the Extra module will be tested in the following manner (eg. function testing Weather.forecast):&lt;br /&gt;
# Object created with appropriate API key (eg. Weather w = new Weather(&amp;quot;123abc&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. w.forecast(&amp;quot;27516&amp;quot;))&lt;br /&gt;
# Request sent to Third-party API server&lt;br /&gt;
# Response returned (Promise - success) and asserted with the correct expected value(s)&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
In order to run the unit test and integration tests on your system, follow these steps:&lt;br /&gt;
* Clone the repo:&lt;br /&gt;
** git clone https://github.com/aapatel8/tago-sdk-python.git&lt;br /&gt;
* Then set environment variable&lt;br /&gt;
**  export TAGO_TOKEN_DEVICE=6ea148d0-e75c-11e6-a091-5756b91044c4&lt;br /&gt;
* From the top folder run&lt;br /&gt;
** python setup.py test&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Extra_unit.png&amp;diff=108911</id>
		<title>File:Extra unit.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Extra_unit.png&amp;diff=108911"/>
		<updated>2017-05-04T23:12:05Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Services_unit.png&amp;diff=108910</id>
		<title>File:Services unit.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Services_unit.png&amp;diff=108910"/>
		<updated>2017-05-04T23:11:28Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108909</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108909"/>
		<updated>2017-05-04T22:54:56Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Test Plan */ updating testing tool explanation.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app. The main goal of the project is to port the current SDK written in NodeJS to one that supports Python.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Client - SDK - Server Workflow'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
[[File:Tago dashboard.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Dashboard'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
The SDK is broken into several modules, each of which represents a class. The class diagram shown below represents each of these classes and their methods. This project deals with the '''services''' and the '''extra''' modules. &lt;br /&gt;
&lt;br /&gt;
The SDK provides '''services''' module to enhance support for the application. These services can be triggered when the customer application wants to send an alert or update the customer about the status of the IoT system. &lt;br /&gt;
&lt;br /&gt;
The '''extra''' module provides some 3rd party functionalities which the customer can use in their application. Like the geolocation feature can be used along with GPS sensor to pin point a location on the map. &lt;br /&gt;
&lt;br /&gt;
[[File:Tago_uml_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago-SDK Class Diagram'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The '''services''' and '''extra''' API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients. &lt;br /&gt;
&lt;br /&gt;
In the following, a '''Promise''' is simply an object used for asynchronous computations, which represents the resulting status of the operation (success or failure), with each scenario having an appropriate callback function.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token (token is analogous to API key) needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
====mqtt====&lt;br /&gt;
The mqtt class should provide a simple way to publish some data to the Tago broker.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* publish&lt;br /&gt;
** This method is used by the client to publish to the Tago broker. Check out [http://mqtt.org/ MQTT] and [http://sdk.js.tago.io/en/latest/analysis.html#mqtt MQTT in Tago] for more information on how it works.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***message&lt;br /&gt;
***[http://docs.tago.io/en/latest/concepts.html#bucket bucket]&lt;br /&gt;
&lt;br /&gt;
====socket====&lt;br /&gt;
The socket class should provide support to send some data to a bucket via an HTTP POST call.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send some JSON data to the bucket.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***bucket_id&lt;br /&gt;
***data_entry&lt;br /&gt;
&lt;br /&gt;
====console====&lt;br /&gt;
The console class should provide support to send some logged data to the Tago server.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send some message with a time-stamp to the server.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***message&lt;br /&gt;
***timestamp&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token(API Key) that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || [https://docs.pytest.org/en/latest/ '''pytest'''] and [https://pypi.python.org/pypi/requests-mock '''requests-mock''']&lt;br /&gt;
This requests-mock module stubs out HTTP request part of the testing code. &lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  &lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' || &lt;br /&gt;
Each of the classes and function in the Services module will be tested in the following manner (eg. function testing SMS.send):&lt;br /&gt;
# Object created with appropriate token parameter (eg. SMS s = new SMS(&amp;quot;123456&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. s.send(&amp;quot;+9195550100&amp;quot;, &amp;quot;Temperature over 100 degrees Celsius&amp;quot;))&lt;br /&gt;
# Request is hijacked by the requests-mock stubs.&lt;br /&gt;
# Response returned and message asserted with the correct expected value&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      ||  &lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' || &lt;br /&gt;
Each of the classes and function in the Extra module will be tested in the following manner (eg. function testing Weather.forecast):&lt;br /&gt;
# Object created with appropriate API key (eg. Weather w = new Weather(&amp;quot;123abc&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. w.forecast(&amp;quot;27516&amp;quot;))&lt;br /&gt;
# Request is hijacked by the requests-mock stubs.&lt;br /&gt;
# Response returned (Promise - success) and asserted with the correct expected value(s)&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Integration Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' ||&lt;br /&gt;
Each of the classes and function in the Extra module will be tested in the following manner (eg. function testing Weather.forecast):&lt;br /&gt;
# Object created with appropriate API key (eg. Weather w = new Weather(&amp;quot;123abc&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. w.forecast(&amp;quot;27516&amp;quot;))&lt;br /&gt;
# Request sent to Third-party API server&lt;br /&gt;
# Response returned (Promise - success) and asserted with the correct expected value(s)&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
In order to run the unit test and integration tests on your system, follow these steps:&lt;br /&gt;
* Clone the repo:&lt;br /&gt;
** git clone https://github.com/aapatel8/tago-sdk-python.git&lt;br /&gt;
* Then set environment variable&lt;br /&gt;
**  export TAGO_TOKEN_DEVICE=6ea148d0-e75c-11e6-a091-5756b91044c4&lt;br /&gt;
* From the top folder run&lt;br /&gt;
** python setup.py test&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Extra_unit_tests.png&amp;diff=108908</id>
		<title>File:Extra unit tests.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Extra_unit_tests.png&amp;diff=108908"/>
		<updated>2017-05-04T22:50:47Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: uploaded a new version of &amp;amp;quot;File:Extra unit tests.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108907</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108907"/>
		<updated>2017-05-04T22:50:00Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Test Plan */ updating unit test and adding integration tests.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app. The main goal of the project is to port the current SDK written in NodeJS to one that supports Python.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Client - SDK - Server Workflow'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
[[File:Tago dashboard.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Dashboard'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
The SDK is broken into several modules, each of which represents a class. The class diagram shown below represents each of these classes and their methods. This project deals with the '''services''' and the '''extra''' modules. &lt;br /&gt;
&lt;br /&gt;
The SDK provides '''services''' module to enhance support for the application. These services can be triggered when the customer application wants to send an alert or update the customer about the status of the IoT system. &lt;br /&gt;
&lt;br /&gt;
The '''extra''' module provides some 3rd party functionalities which the customer can use in their application. Like the geolocation feature can be used along with GPS sensor to pin point a location on the map. &lt;br /&gt;
&lt;br /&gt;
[[File:Tago_uml_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago-SDK Class Diagram'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The '''services''' and '''extra''' API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients. &lt;br /&gt;
&lt;br /&gt;
In the following, a '''Promise''' is simply an object used for asynchronous computations, which represents the resulting status of the operation (success or failure), with each scenario having an appropriate callback function.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token (token is analogous to API key) needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
====mqtt====&lt;br /&gt;
The mqtt class should provide a simple way to publish some data to the Tago broker.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* publish&lt;br /&gt;
** This method is used by the client to publish to the Tago broker. Check out [http://mqtt.org/ MQTT] and [http://sdk.js.tago.io/en/latest/analysis.html#mqtt MQTT in Tago] for more information on how it works.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***message&lt;br /&gt;
***[http://docs.tago.io/en/latest/concepts.html#bucket bucket]&lt;br /&gt;
&lt;br /&gt;
====socket====&lt;br /&gt;
The socket class should provide support to send some data to a bucket via an HTTP POST call.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send some JSON data to the bucket.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***bucket_id&lt;br /&gt;
***data_entry&lt;br /&gt;
&lt;br /&gt;
====console====&lt;br /&gt;
The console class should provide support to send some logged data to the Tago server.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send some message with a time-stamp to the server.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***message&lt;br /&gt;
***timestamp&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token(API Key) that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  The [https://pypi.python.org/pypi/requests-mock requests-mock] module was used to unit test services module classes.&lt;br /&gt;
This modules stubs out HTTP request port of the testing code.&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' || &lt;br /&gt;
Each of the classes and function in the Services module will be tested in the following manner (eg. function testing SMS.send):&lt;br /&gt;
# Object created with appropriate token parameter (eg. SMS s = new SMS(&amp;quot;123456&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. s.send(&amp;quot;+9195550100&amp;quot;, &amp;quot;Temperature over 100 degrees Celsius&amp;quot;))&lt;br /&gt;
# Request is hijacked by the requests-mock stubs.&lt;br /&gt;
# Response returned and message asserted with the correct expected value&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      ||  The [https://pypi.python.org/pypi/requests-mock requests-mock] module was used to unit test extra module classes.&lt;br /&gt;
This modules stubs out HTTP request port of the testing code. &lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' || &lt;br /&gt;
Each of the classes and function in the Extra module will be tested in the following manner (eg. function testing Weather.forecast):&lt;br /&gt;
# Object created with appropriate API key (eg. Weather w = new Weather(&amp;quot;123abc&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. w.forecast(&amp;quot;27516&amp;quot;))&lt;br /&gt;
# Request is hijacked by the requests-mock stubs.&lt;br /&gt;
# Response returned (Promise - success) and asserted with the correct expected value(s)&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Integration Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' ||&lt;br /&gt;
Each of the classes and function in the Extra module will be tested in the following manner (eg. function testing Weather.forecast):&lt;br /&gt;
# Object created with appropriate API key (eg. Weather w = new Weather(&amp;quot;123abc&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. w.forecast(&amp;quot;27516&amp;quot;))&lt;br /&gt;
# Request sent to Third-party API server&lt;br /&gt;
# Response returned (Promise - success) and asserted with the correct expected value(s)&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
In order to run the unit test and integration tests on your system, follow these steps:&lt;br /&gt;
* Clone the repo:&lt;br /&gt;
** git clone https://github.com/aapatel8/tago-sdk-python.git&lt;br /&gt;
* Then set environment variable&lt;br /&gt;
**  export TAGO_TOKEN_DEVICE=6ea148d0-e75c-11e6-a091-5756b91044c4&lt;br /&gt;
* From the top folder run&lt;br /&gt;
** python setup.py test&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108906</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108906"/>
		<updated>2017-05-04T21:54:30Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Running Tests */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app. The main goal of the project is to port the current SDK written in NodeJS to one that supports Python.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Client - SDK - Server Workflow'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
[[File:Tago dashboard.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Dashboard'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
The SDK is broken into several modules, each of which represents a class. The class diagram shown below represents each of these classes and their methods. This project deals with the '''services''' and the '''extra''' modules. &lt;br /&gt;
&lt;br /&gt;
The SDK provides '''services''' module to enhance support for the application. These services can be triggered when the customer application wants to send an alert or update the customer about the status of the IoT system. &lt;br /&gt;
&lt;br /&gt;
The '''extra''' module provides some 3rd party functionalities which the customer can use in their application. Like the geolocation feature can be used along with GPS sensor to pin point a location on the map. &lt;br /&gt;
&lt;br /&gt;
[[File:Tago_uml_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago-SDK Class Diagram'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The '''services''' and '''extra''' API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients. &lt;br /&gt;
&lt;br /&gt;
In the following, a '''Promise''' is simply an object used for asynchronous computations, which represents the resulting status of the operation (success or failure), with each scenario having an appropriate callback function.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token (token is analogous to API key) needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
====mqtt====&lt;br /&gt;
The mqtt class should provide a simple way to publish some data to the Tago broker.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* publish&lt;br /&gt;
** This method is used by the client to publish to the Tago broker. Check out [http://mqtt.org/ MQTT] and [http://sdk.js.tago.io/en/latest/analysis.html#mqtt MQTT in Tago] for more information on how it works.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***message&lt;br /&gt;
***[http://docs.tago.io/en/latest/concepts.html#bucket bucket]&lt;br /&gt;
&lt;br /&gt;
====socket====&lt;br /&gt;
The socket class should provide support to send some data to a bucket via an HTTP POST call.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send some JSON data to the bucket.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***bucket_id&lt;br /&gt;
***data_entry&lt;br /&gt;
&lt;br /&gt;
====console====&lt;br /&gt;
The console class should provide support to send some logged data to the Tago server.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send some message with a time-stamp to the server.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***message&lt;br /&gt;
***timestamp&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token(API Key) that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  [[File:Unit test service.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' || &lt;br /&gt;
Each of the classes and function in the Services module will be tested in the following manner (eg. function testing SMS.send):&lt;br /&gt;
# Object created with appropriate token parameter (eg. SMS s = new SMS(&amp;quot;123456&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. s.send(&amp;quot;+9195550100&amp;quot;, &amp;quot;Temperature over 100 degrees Celsius&amp;quot;))&lt;br /&gt;
# Request sent to tago server&lt;br /&gt;
# Response returned (as SMS) and message asserted with the correct expected value&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' ||&lt;br /&gt;
Each of the classes and function in the Extra module will be tested in the following manner (eg. function testing Weather.forecast):&lt;br /&gt;
# Object created with appropriate API key (eg. Weather w = new Weather(&amp;quot;123abc&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. w.forecast(&amp;quot;27516&amp;quot;))&lt;br /&gt;
# Request sent to tago server&lt;br /&gt;
# Response returned (Promise - success) and asserted with the correct expected value(s)&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
In order to run the unit test and integration tests on your system, follow these steps:&lt;br /&gt;
* Clone the repo:&lt;br /&gt;
** git clone https://github.com/aapatel8/tago-sdk-python.git&lt;br /&gt;
* Then set environment variable&lt;br /&gt;
**  export TAGO_TOKEN_DEVICE=6ea148d0-e75c-11e6-a091-5756b91044c4&lt;br /&gt;
* From the top folder run&lt;br /&gt;
** python setup.py test&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108905</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108905"/>
		<updated>2017-05-04T21:53:52Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Running Tests */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app. The main goal of the project is to port the current SDK written in NodeJS to one that supports Python.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Client - SDK - Server Workflow'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
[[File:Tago dashboard.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Dashboard'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
The SDK is broken into several modules, each of which represents a class. The class diagram shown below represents each of these classes and their methods. This project deals with the '''services''' and the '''extra''' modules. &lt;br /&gt;
&lt;br /&gt;
The SDK provides '''services''' module to enhance support for the application. These services can be triggered when the customer application wants to send an alert or update the customer about the status of the IoT system. &lt;br /&gt;
&lt;br /&gt;
The '''extra''' module provides some 3rd party functionalities which the customer can use in their application. Like the geolocation feature can be used along with GPS sensor to pin point a location on the map. &lt;br /&gt;
&lt;br /&gt;
[[File:Tago_uml_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago-SDK Class Diagram'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The '''services''' and '''extra''' API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients. &lt;br /&gt;
&lt;br /&gt;
In the following, a '''Promise''' is simply an object used for asynchronous computations, which represents the resulting status of the operation (success or failure), with each scenario having an appropriate callback function.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token (token is analogous to API key) needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
====mqtt====&lt;br /&gt;
The mqtt class should provide a simple way to publish some data to the Tago broker.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* publish&lt;br /&gt;
** This method is used by the client to publish to the Tago broker. Check out [http://mqtt.org/ MQTT] and [http://sdk.js.tago.io/en/latest/analysis.html#mqtt MQTT in Tago] for more information on how it works.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***message&lt;br /&gt;
***[http://docs.tago.io/en/latest/concepts.html#bucket bucket]&lt;br /&gt;
&lt;br /&gt;
====socket====&lt;br /&gt;
The socket class should provide support to send some data to a bucket via an HTTP POST call.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send some JSON data to the bucket.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***bucket_id&lt;br /&gt;
***data_entry&lt;br /&gt;
&lt;br /&gt;
====console====&lt;br /&gt;
The console class should provide support to send some logged data to the Tago server.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send some message with a time-stamp to the server.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***message&lt;br /&gt;
***timestamp&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token(API Key) that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  [[File:Unit test service.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' || &lt;br /&gt;
Each of the classes and function in the Services module will be tested in the following manner (eg. function testing SMS.send):&lt;br /&gt;
# Object created with appropriate token parameter (eg. SMS s = new SMS(&amp;quot;123456&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. s.send(&amp;quot;+9195550100&amp;quot;, &amp;quot;Temperature over 100 degrees Celsius&amp;quot;))&lt;br /&gt;
# Request sent to tago server&lt;br /&gt;
# Response returned (as SMS) and message asserted with the correct expected value&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' ||&lt;br /&gt;
Each of the classes and function in the Extra module will be tested in the following manner (eg. function testing Weather.forecast):&lt;br /&gt;
# Object created with appropriate API key (eg. Weather w = new Weather(&amp;quot;123abc&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. w.forecast(&amp;quot;27516&amp;quot;))&lt;br /&gt;
# Request sent to tago server&lt;br /&gt;
# Response returned (Promise - success) and asserted with the correct expected value(s)&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
In order to run the tests on your system, follow these steps:&lt;br /&gt;
* Clone the repo:&lt;br /&gt;
** git clone https://github.com/aapatel8/tago-sdk-python.git&lt;br /&gt;
* Then set environment variable&lt;br /&gt;
**  export TAGO_TOKEN_DEVICE=6ea148d0-e75c-11e6-a091-5756b91044c4&lt;br /&gt;
* From the top folder run&lt;br /&gt;
** python setup.py test&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108827</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108827"/>
		<updated>2017-05-01T17:27:31Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Test Plan */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app. The main goal of the project is to port the current SDK written in NodeJS to one that supports Python.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Client - SDK - Server Workflow'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
[[File:Tago dashboard.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Dashboard'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
The SDK is broken into several modules, each of which represents a class. The class diagram shown below represents each of these classes and their methods. This project deals with the '''services''' and the '''extra''' modules. &lt;br /&gt;
&lt;br /&gt;
The SDK provides '''services''' module to enhance support for the application. These services can be triggered when the customer application wants to send an alert or update the customer about the status of the IoT system. &lt;br /&gt;
&lt;br /&gt;
The '''extra''' module provides some 3rd party functionalities which the customer can use in their application. Like the geolocation feature can be used along with GPS sensor to pin point a location on the map. &lt;br /&gt;
&lt;br /&gt;
[[File:Tago_uml_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago-SDK Class Diagram'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The '''services''' and '''extra''' API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients. &lt;br /&gt;
&lt;br /&gt;
In the following, a '''Promise''' is simply an object used for asynchronous computations, which represents the resulting status of the operation (success or failure), with each scenario having an appropriate callback function.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token (token is analogous to API key) needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
====mqtt====&lt;br /&gt;
The mqtt class should provide a simple way to publish some data to the Tago broker.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* publish&lt;br /&gt;
** This method is used by the client to publish to the Tago broker. Check out [http://mqtt.org/ MQTT] and [http://sdk.js.tago.io/en/latest/analysis.html#mqtt MQTT in Tago] for more information on how it works.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***message&lt;br /&gt;
***[http://docs.tago.io/en/latest/concepts.html#bucket bucket]&lt;br /&gt;
&lt;br /&gt;
====socket====&lt;br /&gt;
The socket class should provide support to send some data to a bucket via an HTTP POST call.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send some JSON data to the bucket.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***bucket_id&lt;br /&gt;
***data_entry&lt;br /&gt;
&lt;br /&gt;
====console====&lt;br /&gt;
The console class should provide support to send some logged data to the Tago server.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send some message with a time-stamp to the server.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***message&lt;br /&gt;
***timestamp&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token(API Key) that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  [[File:Unit test service.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' || &lt;br /&gt;
Each of the classes and function in the Services module will be tested in the following manner (eg. function testing SMS.send):&lt;br /&gt;
# Object created with appropriate token parameter (eg. SMS s = new SMS(&amp;quot;123456&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. s.send(&amp;quot;+9195550100&amp;quot;, &amp;quot;Temperature over 100 degrees Celsius&amp;quot;))&lt;br /&gt;
# Request sent to tago server&lt;br /&gt;
# Response returned (as SMS) and message asserted with the correct expected value&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' ||&lt;br /&gt;
Each of the classes and function in the Extra module will be tested in the following manner (eg. function testing Weather.forecast):&lt;br /&gt;
# Object created with appropriate API key (eg. Weather w = new Weather(&amp;quot;123abc&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. w.forecast(&amp;quot;27516&amp;quot;))&lt;br /&gt;
# Request sent to tago server&lt;br /&gt;
# Response returned (Promise - success) and asserted with the correct expected value(s)&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== Running Tests ===&lt;br /&gt;
In order to run the tests on your system, follow these steps:&lt;br /&gt;
* Clone the repo:&lt;br /&gt;
** git clone https://github.com/aapatel8/tago-sdk-python.git&lt;br /&gt;
* Then set two environment variables&lt;br /&gt;
**  export TAGO_TOKEN_DEVICE=6ea148d0-e75c-11e6-a091-5756b91044c4&lt;br /&gt;
* From the top folder run&lt;br /&gt;
** python setup.py test&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108585</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108585"/>
		<updated>2017-04-16T03:05:17Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Design */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app. The main goal of the project is to port the current SDK written in NodeJS to one that supports Python.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Client - SDK - Server Workflow'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
[[File:Tago dashboard.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Dashboard'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
The SDK is broken into several modules, each of which represents a class. The class diagram shown below represents each of these classes and their methods. This project deals with the '''services''' and the '''extra''' modules. &lt;br /&gt;
&lt;br /&gt;
The SDK provides '''services''' module to enhance support for the application. These services can be triggered when the customer application wants to send an alert or update the customer about the status of the IoT system. &lt;br /&gt;
&lt;br /&gt;
The '''extra''' module provides some 3rd party functionalities which the customer can use in their application. Like the geolocation feature can be used along with GPS sensor to pin point a location on the map. &lt;br /&gt;
&lt;br /&gt;
[[File:Tago_class_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago-SDK Class Diagram'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The '''services''' and '''extra''' API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients. &lt;br /&gt;
&lt;br /&gt;
In the following, a '''Promise''' is simply an object used for asynchronous computations, which represents the resulting status of the operation (success or failure), with each scenario having an appropriate callback function.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token (token is analogous to API key) needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token(API Key) that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  [[File:Unit test service.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' || &lt;br /&gt;
Each of the classes and function in the Services module will be tested in the following manner (eg. function testing SMS.send):&lt;br /&gt;
# Object created with appropriate token parameter (eg. SMS s = new SMS(&amp;quot;123456&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. s.send(&amp;quot;+9195550100&amp;quot;, &amp;quot;Temperature over 100 degrees Celsius&amp;quot;))&lt;br /&gt;
# Request sent to tago server&lt;br /&gt;
# Response returned (as SMS) and message asserted with the correct expected value&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' ||&lt;br /&gt;
Each of the classes and function in the Extra module will be tested in the following manner (eg. function testing Weather.forecast):&lt;br /&gt;
# Object created with appropriate API key (eg. Weather w = new Weather(&amp;quot;123abc&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. w.forecast(&amp;quot;27516&amp;quot;))&lt;br /&gt;
# Request sent to tago server&lt;br /&gt;
# Response returned (Promise - success) and asserted with the correct expected value(s)&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108583</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108583"/>
		<updated>2017-04-15T08:02:54Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Services */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app. The main goal of the project is to port the current SDK written in NodeJS to one that supports Python.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Client - SDK - Server Workflow'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
[[File:Tago dashboard.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Dashboard'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
The SDK is broken into several modules, each of which represent a class. The class diagram shown below represents each of these classes and their methods. This project deals with the '''services''' and the '''extra''' modules. &lt;br /&gt;
&lt;br /&gt;
The SDK provides '''services''' module to enhance support for the application. These services can be triggered when the customer application wants to send an alert or update the customer about the status of the IoT system. &lt;br /&gt;
&lt;br /&gt;
The '''extra''' module provides some 3rd party functionalities which the customer can use in their application. Like the geolocation feature can be used along with GPS sensor to pin point a location on the map. &lt;br /&gt;
&lt;br /&gt;
[[File:Tago_class_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago-SDK Class Diagram'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The '''services''' and '''extra''' API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients. &lt;br /&gt;
&lt;br /&gt;
In the following, a '''Promise''' is simply an object used for asynchronous computations, which represents the resulting status of the operation (success or failure), with each scenario having an appropriate callback function.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token (token is analogous to API key) needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token(API Key) that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  [[File:Unit test service.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' || &lt;br /&gt;
Each of the classes and function in the Services module will be tested in the following manner (eg. function testing SMS.send):&lt;br /&gt;
# Object created with appropriate token parameter (eg. SMS s = new SMS(&amp;quot;123456&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. s.send(&amp;quot;+9195550100&amp;quot;, &amp;quot;Temperature over 100 degrees Celsius&amp;quot;))&lt;br /&gt;
# Request sent to tago server&lt;br /&gt;
# Response returned (as SMS) and message asserted with the correct expected value&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' ||&lt;br /&gt;
Each of the classes and function in the Extra module will be tested in the following manner (eg. function testing Weather.forecast):&lt;br /&gt;
# Object created with appropriate API key (eg. Weather w = new Weather(&amp;quot;123abc&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. w.forecast(&amp;quot;27516&amp;quot;))&lt;br /&gt;
# Request sent to tago server&lt;br /&gt;
# Response returned (Promise - success) and asserted with the correct expected value(s)&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108582</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108582"/>
		<updated>2017-04-15T08:02:40Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Services */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app. The main goal of the project is to port the current SDK written in NodeJS to one that supports Python.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Client - SDK - Server Workflow'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
[[File:Tago dashboard.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Dashboard'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
The SDK is broken into several modules, each of which represent a class. The class diagram shown below represents each of these classes and their methods. This project deals with the '''services''' and the '''extra''' modules. &lt;br /&gt;
&lt;br /&gt;
The SDK provides '''services''' module to enhance support for the application. These services can be triggered when the customer application wants to send an alert or update the customer about the status of the IoT system. &lt;br /&gt;
&lt;br /&gt;
The '''extra''' module provides some 3rd party functionalities which the customer can use in their application. Like the geolocation feature can be used along with GPS sensor to pin point a location on the map. &lt;br /&gt;
&lt;br /&gt;
[[File:Tago_class_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago-SDK Class Diagram'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The '''services''' and '''extra''' API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients. &lt;br /&gt;
&lt;br /&gt;
In the following, a '''Promise''' is simply an object used for asynchronous computations, which represents the resulting status of the operation (success or failure), with each scenario having an appropriate callback function.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token (token is analogous API key) needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token(API Key) that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  [[File:Unit test service.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' || &lt;br /&gt;
Each of the classes and function in the Services module will be tested in the following manner (eg. function testing SMS.send):&lt;br /&gt;
# Object created with appropriate token parameter (eg. SMS s = new SMS(&amp;quot;123456&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. s.send(&amp;quot;+9195550100&amp;quot;, &amp;quot;Temperature over 100 degrees Celsius&amp;quot;))&lt;br /&gt;
# Request sent to tago server&lt;br /&gt;
# Response returned (as SMS) and message asserted with the correct expected value&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' ||&lt;br /&gt;
Each of the classes and function in the Extra module will be tested in the following manner (eg. function testing Weather.forecast):&lt;br /&gt;
# Object created with appropriate API key (eg. Weather w = new Weather(&amp;quot;123abc&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. w.forecast(&amp;quot;27516&amp;quot;))&lt;br /&gt;
# Request sent to tago server&lt;br /&gt;
# Response returned (Promise - success) and asserted with the correct expected value(s)&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108581</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108581"/>
		<updated>2017-04-15T08:00:48Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Third Party APIs (Extra) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app. The main goal of the project is to port the current SDK written in NodeJS to one that supports Python.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Client - SDK - Server Workflow'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
[[File:Tago dashboard.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Dashboard'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
The SDK is broken into several modules, each of which represent a class. The class diagram shown below represents each of these classes and their methods. This project deals with the '''services''' and the '''extra''' modules. &lt;br /&gt;
&lt;br /&gt;
The SDK provides '''services''' module to enhance support for the application. These services can be triggered when the customer application wants to send an alert or update the customer about the status of the IoT system. &lt;br /&gt;
&lt;br /&gt;
The '''extra''' module provides some 3rd party functionalities which the customer can use in their application. Like the geolocation feature can be used along with GPS sensor to pin point a location on the map. &lt;br /&gt;
&lt;br /&gt;
[[File:Tago_class_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago-SDK Class Diagram'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The '''services''' and '''extra''' API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients. &lt;br /&gt;
&lt;br /&gt;
In the following, a '''Promise''' is simply an object used for asynchronous computations, which represents the resulting status of the operation (success or failure), with each scenario having an appropriate callback function.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token(API Key) that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  [[File:Unit test service.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' || &lt;br /&gt;
Each of the classes and function in the Services module will be tested in the following manner (eg. function testing SMS.send):&lt;br /&gt;
# Object created with appropriate token parameter (eg. SMS s = new SMS(&amp;quot;123456&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. s.send(&amp;quot;+9195550100&amp;quot;, &amp;quot;Temperature over 100 degrees Celsius&amp;quot;))&lt;br /&gt;
# Request sent to tago server&lt;br /&gt;
# Response returned (as SMS) and message asserted with the correct expected value&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' ||&lt;br /&gt;
Each of the classes and function in the Extra module will be tested in the following manner (eg. function testing Weather.forecast):&lt;br /&gt;
# Object created with appropriate API key (eg. Weather w = new Weather(&amp;quot;123abc&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. w.forecast(&amp;quot;27516&amp;quot;))&lt;br /&gt;
# Request sent to tago server&lt;br /&gt;
# Response returned (Promise - success) and asserted with the correct expected value(s)&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108580</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108580"/>
		<updated>2017-04-15T07:57:15Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Design */ adding content in design.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app. The main goal of the project is to port the current SDK written in NodeJS to one that supports Python.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Client - SDK - Server Workflow'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
[[File:Tago dashboard.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Dashboard'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
The SDK is broken into several modules, each of which represent a class. The class diagram shown below represents each of these classes and their methods. This project deals with the '''services''' and the '''extra''' modules. &lt;br /&gt;
&lt;br /&gt;
The SDK provides '''services''' module to enhance support for the application. These services can be triggered when the customer application wants to send an alert or update the customer about the status of the IoT system. &lt;br /&gt;
&lt;br /&gt;
The '''extra''' module provides some 3rd party functionalities which the customer can use in their application. Like the geolocation feature can be used along with GPS sensor to pin point a location on the map. &lt;br /&gt;
&lt;br /&gt;
[[File:Tago_class_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago-SDK Class Diagram'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The '''services''' and '''extra''' API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients. &lt;br /&gt;
&lt;br /&gt;
In the following, a '''Promise''' is simply an object used for asynchronous computations, which represents the resulting status of the operation (success or failure), with each scenario having an appropriate callback function.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  [[File:Unit test service.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' || &lt;br /&gt;
Each of the classes and function in the Services module will be tested in the following manner (eg. function testing SMS.send):&lt;br /&gt;
# Object created with appropriate token parameter (eg. SMS s = new SMS(&amp;quot;123456&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. s.send(&amp;quot;+9195550100&amp;quot;, &amp;quot;Temperature over 100 degrees Celsius&amp;quot;))&lt;br /&gt;
# Request sent to tago server&lt;br /&gt;
# Response returned (as SMS) and message asserted with the correct expected value&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Description''' ||&lt;br /&gt;
Each of the classes and function in the Extra module will be tested in the following manner (eg. function testing Weather.forecast):&lt;br /&gt;
# Object created with appropriate API key (eg. Weather w = new Weather(&amp;quot;123abc&amp;quot;))&lt;br /&gt;
# Function called with appropriate parameters (eg. w.forecast(&amp;quot;27516&amp;quot;))&lt;br /&gt;
# Request sent to tago server&lt;br /&gt;
# Response returned (Promise - success) and asserted with the correct expected value(s)&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Extra_unit_tests.png&amp;diff=108544</id>
		<title>File:Extra unit tests.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Extra_unit_tests.png&amp;diff=108544"/>
		<updated>2017-04-13T03:41:37Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: uploaded a new version of &amp;amp;quot;File:Extra unit tests.png&amp;amp;quot;: Reverted to version as of 03:40, 13 April 2017&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Extra_unit_tests.png&amp;diff=108543</id>
		<title>File:Extra unit tests.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Extra_unit_tests.png&amp;diff=108543"/>
		<updated>2017-04-13T03:41:25Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: uploaded a new version of &amp;amp;quot;File:Extra unit tests.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Extra_unit_tests.png&amp;diff=108542</id>
		<title>File:Extra unit tests.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Extra_unit_tests.png&amp;diff=108542"/>
		<updated>2017-04-13T03:40:55Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: uploaded a new version of &amp;amp;quot;File:Extra unit tests.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Unit_test_service.jpg&amp;diff=108539</id>
		<title>File:Unit test service.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Unit_test_service.jpg&amp;diff=108539"/>
		<updated>2017-04-13T03:39:54Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: uploaded a new version of &amp;amp;quot;File:Unit test service.jpg&amp;amp;quot;: Reverted to version as of 03:38, 13 April 2017&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Unit_test_service.jpg&amp;diff=108538</id>
		<title>File:Unit test service.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Unit_test_service.jpg&amp;diff=108538"/>
		<updated>2017-04-13T03:39:14Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: uploaded a new version of &amp;amp;quot;File:Unit test service.jpg&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Unit_test_service.jpg&amp;diff=108536</id>
		<title>File:Unit test service.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Unit_test_service.jpg&amp;diff=108536"/>
		<updated>2017-04-13T03:38:37Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: uploaded a new version of &amp;amp;quot;File:Unit test service.jpg&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Unit_test_service.jpg&amp;diff=108535</id>
		<title>File:Unit test service.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Unit_test_service.jpg&amp;diff=108535"/>
		<updated>2017-04-13T03:37:42Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: uploaded a new version of &amp;amp;quot;File:Unit test service.jpg&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108531</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108531"/>
		<updated>2017-04-13T03:32:46Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Client - SDK - Server Workflow'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
[[File:Tago dashboard.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Dashboard'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
[[File:Tago_class_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago-SDK Class Diagram'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The '''services''' and '''extra''' API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients. &lt;br /&gt;
&lt;br /&gt;
In the following, a '''Promise''' is simply an object used for asynchronous computations, which represents the resulting status of the operation (success or failure), with each scenario having an appropriate callback function.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  [[File:Unit test service.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108425</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108425"/>
		<updated>2017-04-13T00:28:14Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Design */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Client - SDK - Server Workflow'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
[[File:Tago dashboard.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Dashboard'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
[[File:Tago_class_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago-SDK Class Diagram'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The '''services''' and '''extra''' API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  [[File:Unit test service.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108424</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108424"/>
		<updated>2017-04-13T00:27:59Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Design */ adding caption&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Client - SDK - Server Workflow'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
[[File:Tago dashboard.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Dashboard'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
[[File:Tago_class_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Class Diagram'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The '''services''' and '''extra''' API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  [[File:Unit test service.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108423</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108423"/>
		<updated>2017-04-13T00:27:17Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* What are we doing? */ adding caption to diagram&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Client - SDK - Server Workflow'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
[[File:Tago dashboard.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Dashboard'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
[[File:Tago_class_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The '''services''' and '''extra''' API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  [[File:Unit test service.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108422</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108422"/>
		<updated>2017-04-13T00:25:59Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Why are we doing it? */ adding tago dashboard&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
[[File:Tago dashboard.png|center]]&lt;br /&gt;
&amp;lt;div align=&amp;quot;center&amp;quot;&amp;gt;'''Tago Dashboard'''&amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Design==&lt;br /&gt;
[[File:Tago_class_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The '''services''' and '''extra''' API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  [[File:Unit test service.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Tago_dashboard.png&amp;diff=108421</id>
		<title>File:Tago dashboard.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Tago_dashboard.png&amp;diff=108421"/>
		<updated>2017-04-13T00:22:57Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: uploaded a new version of &amp;amp;quot;File:Tago dashboard.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Tago_dashboard.png&amp;diff=108420</id>
		<title>File:Tago dashboard.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Tago_dashboard.png&amp;diff=108420"/>
		<updated>2017-04-13T00:22:05Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: uploaded a new version of &amp;amp;quot;File:Tago dashboard.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Tago_dashboard.png&amp;diff=108419</id>
		<title>File:Tago dashboard.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Tago_dashboard.png&amp;diff=108419"/>
		<updated>2017-04-13T00:21:17Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: uploaded a new version of &amp;amp;quot;File:Tago dashboard.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Tago_dashboard.png&amp;diff=108417</id>
		<title>File:Tago dashboard.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Tago_dashboard.png&amp;diff=108417"/>
		<updated>2017-04-13T00:20:07Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108413</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108413"/>
		<updated>2017-04-13T00:11:59Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Implementation */ argument in bold&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
==Design==&lt;br /&gt;
[[File:Tago_class_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The '''services''' and '''extra''' API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** '''Arguments'''&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** '''Arguments''' &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  [[File:Unit test service.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108411</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108411"/>
		<updated>2017-04-13T00:10:56Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Implementation */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
==Design==&lt;br /&gt;
[[File:Tago_class_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The '''services''' and '''extra''' API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** Arguments&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** Arguments&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** Arguments &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** Arguments&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** Arguments &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  [[File:Unit test service.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108409</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108409"/>
		<updated>2017-04-13T00:10:26Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Implementation */ Adding extra info in implementation&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
==Design==&lt;br /&gt;
[[File:Tago_class_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
As can be seen in the design, there are plenty of modules in tago-sdk. The services and extra API modules are being implemented in Python (currently implemented using NodeJS) as a part of this project. These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** Arguments&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** Arguments&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** Arguments &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** Arguments&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** Arguments &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  [[File:Unit test service.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108407</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108407"/>
		<updated>2017-04-13T00:06:26Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* Test Plan */ adding the test plan.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
==Design==&lt;br /&gt;
[[File:Tago_class_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
The following are API modules that will be implemented in Python (currently implemented using NodeJS). These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** Arguments&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** Arguments&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** Arguments &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** Arguments&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** Arguments &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| '''Test Type'''      || '''Unit Test'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''pytest'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Services Module'''      ||  [[File:Unit test service.jpg]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module'''      || [[File:Extra unit tests.png]]&lt;br /&gt;
|-&lt;br /&gt;
| '''Testing Tool'''      || '''Manual Testing'''&lt;br /&gt;
|-&lt;br /&gt;
| '''Service Module'''    ||  The manual testing will be done by providing example scripts.&lt;br /&gt;
For sms method, the tester can add his/her number and run the script and test whether sms is being sent or not.&lt;br /&gt;
&lt;br /&gt;
Similarly, for the email method the tester can add his/her email address and test whether email is sent or not after running the script.&lt;br /&gt;
|-&lt;br /&gt;
| '''Extra Module''' || Example scripts will be provided which will use the third party API calls using the SDK and print the response on console.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Extra_unit_tests.png&amp;diff=108403</id>
		<title>File:Extra unit tests.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Extra_unit_tests.png&amp;diff=108403"/>
		<updated>2017-04-13T00:00:35Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Unit_test_service.jpg&amp;diff=108399</id>
		<title>File:Unit test service.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Unit_test_service.jpg&amp;diff=108399"/>
		<updated>2017-04-12T23:52:41Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108346</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108346"/>
		<updated>2017-04-12T21:56:00Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* What are we doing? */ adding diagram&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app.&lt;br /&gt;
&lt;br /&gt;
[[File:PythonAPI usage diagram.png|center]]&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
==Design==&lt;br /&gt;
[[File:Tago_class_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
The following are API modules that will be implemented in Python (currently implemented using NodeJS). These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** Arguments&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** Arguments&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** Arguments &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** Arguments&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** Arguments &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
In progress&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:PythonAPI_usage_diagram.png&amp;diff=108344</id>
		<title>File:PythonAPI usage diagram.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:PythonAPI_usage_diagram.png&amp;diff=108344"/>
		<updated>2017-04-12T21:51:39Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108328</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108328"/>
		<updated>2017-04-12T21:26:00Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* What are we doing? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality. It is worth noting that we are building a Python interface for interacting with Tago’s RESTful API, not a web-based UI or a web-app.&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
==Design==&lt;br /&gt;
[[File:Tago_class_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
The following are API modules that will be implemented in Python (currently implemented using NodeJS). These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** Arguments&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** Arguments&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** Arguments &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** Arguments&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** Arguments &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
In progress&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108327</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108327"/>
		<updated>2017-04-12T21:18:51Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: adding class diagram&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality.&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
==Design==&lt;br /&gt;
[[File:Tago_class_diagram.png|center|alt=Class diagram|Class diagram for tago-python SDK]]&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
The following are API modules that will be implemented in Python (currently implemented using NodeJS). These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** Arguments&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** Arguments&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** Arguments &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** Arguments&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** Arguments &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
In progress&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Tago_class_diagram.png&amp;diff=108326</id>
		<title>File:Tago class diagram.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Tago_class_diagram.png&amp;diff=108326"/>
		<updated>2017-04-12T21:18:05Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: uploaded a new version of &amp;amp;quot;File:Tago class diagram.png&amp;amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=File:Tago_class_diagram.png&amp;diff=108325</id>
		<title>File:Tago class diagram.png</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=File:Tago_class_diagram.png&amp;diff=108325"/>
		<updated>2017-04-12T21:07:58Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108324</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108324"/>
		<updated>2017-04-12T20:32:57Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* What are we doing? */ updating python-sdk link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a [https://github.com/tago-io/tago-sdk-python Python SDK]. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality.&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Design== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
The following are API modules that will be implemented in Python (currently implemented using NodeJS). These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** Arguments&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** Arguments&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** Arguments &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** Arguments&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** Arguments &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
In progress&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108323</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108323"/>
		<updated>2017-04-12T20:31:42Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* What are we doing? */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js node.js-SDK], but they have begun work on a Python SDK. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality.&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Design== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
The following are API modules that will be implemented in Python (currently implemented using NodeJS). These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** Arguments&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** Arguments&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** Arguments &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** Arguments&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** Arguments &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
In progress&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108322</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108322"/>
		<updated>2017-04-12T20:30:50Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* What are we doing? */ updating js-sdk link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago has a [https://github.com/tago-io/tago-sdk-js NodeJS-SDK], but they have begun work on a Python SDK. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality.&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Design== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
The following are API modules that will be implemented in Python (currently implemented using NodeJS). These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** Arguments&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** Arguments&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** Arguments &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** Arguments&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** Arguments &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
In progress&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108321</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108321"/>
		<updated>2017-04-12T20:29:43Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* What is Tago? */ update tago link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014,[https://tago.io/ Tago]  is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago’s SDK is only developed for NodeJS, but they have begun work on a Python SDK. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality.&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Design== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
The following are API modules that will be implemented in Python (currently implemented using NodeJS). These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** Arguments&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** Arguments&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** Arguments &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** Arguments&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** Arguments &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
In progress&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108286</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108286"/>
		<updated>2017-04-12T01:46:02Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: adding requirements&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
[https://goo.gl/fw2fK4 '''Requirements''']&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014, Tago is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago’s SDK is only developed for NodeJS, but they have begun work on a Python SDK. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality.&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Design== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
The following are API modules that will be implemented in Python (currently implemented using NodeJS). These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** Arguments&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** Arguments&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** Arguments &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** Arguments&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** Arguments &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
In progress&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108257</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108257"/>
		<updated>2017-04-08T04:03:50Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: /* References */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014, Tago is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago’s SDK is only developed for NodeJS, but they have begun work on a Python SDK. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality.&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&amp;lt;!-- ==Design== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
The following are API modules that will be implemented in Python (currently implemented using NodeJS). These modules will interact with Tago servers and third-party vendors to serve HTTP requests to clients.&lt;br /&gt;
&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** Arguments&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** Arguments&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** Arguments &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** Arguments&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** Arguments &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
==Test Plan==&lt;br /&gt;
In progress&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
* [https://tago.io/ Official Tago Website]&lt;br /&gt;
* [http://docs.tago.io/en/latest/ Tago official document]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-js Tago JS SDK]&lt;br /&gt;
* [https://github.com/tago-io/tago-sdk-python Tago Python SDK]&lt;br /&gt;
* [http://community.tago.io/ Tago Community]&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
	<entry>
		<id>https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108229</id>
		<title>CSC/ECE 517 Spring 2017/final T1701</title>
		<link rel="alternate" type="text/html" href="https://wiki.expertiza.ncsu.edu/index.php?title=CSC/ECE_517_Spring_2017/final_T1701&amp;diff=108229"/>
		<updated>2017-04-08T03:22:29Z</updated>

		<summary type="html">&lt;p&gt;Kmishra: removing methods from toc&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Introduction==&lt;br /&gt;
===What is Tago?===&lt;br /&gt;
Founded in 2014, Tago is startup based out of Centennial Campus. They have created a service that allows users to craft dashboards that are used by Internet of Things (IoT) devices for a variety of purposes. These include storing/visualizing data, running triggers that send emails, SMS messages, or data to other devices/http endpoints, and initiating custom analysis scripts to manipulate and analyze data. Along with the dashboard, Tago has developed an SDK that developers can utilize when programming on the IoT devices in order to make these various requests.&lt;br /&gt;
&lt;br /&gt;
===What are we doing?===&lt;br /&gt;
Currently, Tago’s SDK is only developed for NodeJS, but they have begun work on a Python SDK. We have decided to assist in order to speed up the the development and delivery of their Python SDK.  We have broken down the project into two teams, T1701 and T1702, and split the work by assigning different subsets of functionality.&lt;br /&gt;
&lt;br /&gt;
===Why are we doing it?===&lt;br /&gt;
Tago currently has customers with needs for a Python SDK including Texas Instruments and Tesla. The sooner the SDK is developed, the sooner these companies can utilize them.  Python has a number of advantages over NodeJS, particularly around the communities.  The Python community has implemented a vast number of scientific and other niche libraries that could be useful in IoT sensors and measurement equipment.  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ==Problem Statement== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ==Design== --&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Implementation==&lt;br /&gt;
=== Services ===&lt;br /&gt;
As a part of services, Tago should provide some functions that can greatly help your application. When setting up a service, an analysis-token needs to be passed. For convenience, the context returns a property token that you can use to setup a service object.&lt;br /&gt;
&lt;br /&gt;
====sms====&lt;br /&gt;
The sms class should provide support to send a sms directly to tago admins or customers from analysis. SMS costs incurred depend on the country of operation.&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send SMS.&lt;br /&gt;
** Arguments&lt;br /&gt;
***  Phone number. (With the country code if not in the US)&lt;br /&gt;
***  Message to be sent&lt;br /&gt;
&lt;br /&gt;
====email====&lt;br /&gt;
The email class should provide support to send a email with analysis details or any other info.&lt;br /&gt;
'''Method'''&lt;br /&gt;
* send &lt;br /&gt;
** This method is used to send email.&lt;br /&gt;
** Arguments&lt;br /&gt;
***Email address&lt;br /&gt;
***Subject of the email&lt;br /&gt;
***Message to be sent&lt;br /&gt;
***E-mail address for the receiver to reply to&lt;br /&gt;
&lt;br /&gt;
===Third Party APIs (Extra) ===&lt;br /&gt;
Tago supports third-party API’s, like Google Maps and Weather service. All third-party services are free to use, with a free token that can obtained from the third party website.&lt;br /&gt;
&lt;br /&gt;
====geocoding====&lt;br /&gt;
This class is used to get a geolocation (latitude/longitude) for a valid address, or vice versa. To make use of this functionality, a google geocoding API key needs to be provided while creating a new object.&lt;br /&gt;
[https://developers.google.com/maps/documentation/geocoding/start Geocoding API provider] documentation. &lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*getGeolocation&lt;br /&gt;
** Convert the address to a valid geolocation, if it exists&lt;br /&gt;
** Arguments &lt;br /&gt;
*** address(string) A valid address&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*getAddress&lt;br /&gt;
** Convert a valid geolocation to an address, if it exists.&lt;br /&gt;
** Arguments&lt;br /&gt;
*** geolocation(string) A valid geolocation&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====currency====&lt;br /&gt;
This class checks several currencies in real-time, and the historical exchange rates for over 168 countries. &lt;br /&gt;
[https://currencylayer.com/ Currency API provider]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*convert&lt;br /&gt;
**Returns the current exchange rate of one currency to another one&lt;br /&gt;
** Arguments &lt;br /&gt;
*** from(string) convert from. See [https://currencylayer.com/currencies supported currencies] for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====distance====&lt;br /&gt;
This class helps to calculate the distance between two points. [https://developers.google.com/maps/documentation/distance-matrix/intro Google Distance API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
* measure&lt;br /&gt;
** Measure is a service that provides the travel distance and time for a matrix of origins and destinations.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** origins(array) An array of origins, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** destinations(array) An array of destinations, can be string location or [http://geojson.org/ geojson].&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’. See [https://developers.google.com/maps/faq#languagesupport language support] for more information. (optional)&lt;br /&gt;
*** mode(string) For the calculation of distances, you may specify the transportation mode to use. By default, distances are calculated for driving mode. See the [https://developers.google.com/maps/documentation/distance-matrix/intro#travel_modes travel modes] supported for more information&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
====weather====&lt;br /&gt;
Whenever you need to get weather conditions around the world, use weather service APIs. This class defines helper methods to achieve this and talk to tago server. [https://www.wunderground.com/weather/api/ Wunderground API]&lt;br /&gt;
&lt;br /&gt;
'''Methods'''&lt;br /&gt;
*current&lt;br /&gt;
** Get the current weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*forecast&lt;br /&gt;
** Returns a summary of the weather forecast for the next 10 days. This includes high and low temperatures, a string text forecast and other conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get the response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See `language support [https://www.wunderground.com/weather/api/d/docs?d=language-support language support]  for more information. (optional)&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*history&lt;br /&gt;
** Returns a summary of the weather conditions for the last 10 days. This includes high and low temperatures, a string text and other weather conditions.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** date(string) a past date.&lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set the language. Default is ‘EN’. See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
*alert&lt;br /&gt;
**Returns the short name description, expiration time and a long text description of a severe alert, if one has been issued for the searched location.&lt;br /&gt;
** Arguments &lt;br /&gt;
*** query(string) It can be address, zipcode or geojson.&lt;br /&gt;
*** full(boolean) Set to get response with full description. Default is false. (optional)&lt;br /&gt;
*** language(string) Set a language. Default is ‘EN’.  See [https://www.wunderground.com/weather/api/d/docs?d=language-support language support] for more information. (optional).&lt;br /&gt;
** Returns&lt;br /&gt;
*** (Promise)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!-- ==Test Plan== --&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kmishra</name></author>
	</entry>
</feed>