Skip to content

pawsio/pawsio-iot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Intel® XDK IoT PawsIO Node.js* Project

See LICENSE.md for license terms and conditions.

This sample application is distributed as part of the Intel® XDK. It can also be downloaded or cloned directly from its git repo on the public Intel XDK GitHub* site.

For help getting started developing applications with the Intel XDK, please start with the Intel XDK documentation.

Authors

Caitlin Araldi, Chris Bruner, Nathan Hugon, Michelle Srikhundonr

App Overview

This repo contains all necessary files needed to utilize the PawsIO app web app. This project utilizes an Intel® Gallileo Board, Intel® Edison Development Platform, and a Seeed Studio Grove Starter Kit. Your device must contain a compatible version of Node.js and must be accessible to the Intel XDK via a network connection.

Important Sample App Files

  • main.js
  • package.json

Important Sample Project Files

  • README.md
  • LICENSE.md
  • project-name.xdk
  • project-name.xdke

Tested IoT Node.js Platforms

Getting Started

  • Hook the following Sensors to the given ports as marked in the below table
Sensor Port
Temperature Sensor A0
Rotary Angle Sensor A1
Sound Sensor A2
3-Axis Accelerometer I2C0*
LCD RGB Backlight I2C3**

* far left I2C port

** far right I2C port

Running the Code

One you have all things connected, make sure to have your Intel® XDK IOT Edition properly installed and prepared to upload code by following along with this guide and this guide. Once the device has an wifi connection, we need to have two additional setup files.

Run the following command in your terminal:

$ npm run setup

This will create the two setup files were you must input your information needed to interact with PawsIO. In the files, write the following code:

// userinfo.js
module.exports = {
    username: 'insert username here',
    password: 'insert password here'
};
// petinfo.js
module.exports = {
    name: 'insert pets name here',
    animal: 'insert type of animal here'
};

These files will be prevented from uploading to git via the .gitignore file. The userinfo contains your unique user info attached to your PawsIO account and the petinfo is related to the specific pet you currently are monitoring when running the device.

After files are created, upload them to your IOT device via the Intel® XDK. Use the rotary angle sensor and turn it completely clockwise to start recording. To stop recording, turn the rotary sensory completely counter-clockwise and the data will be pushed to our database as soon as an internet connection is found. Have fun and enjoy connecting more with your pet!

Issues

Please report any issues to our Github!

Releases

No releases published

Packages

No packages published