Skip to content
This repository has been archived by the owner on Feb 21, 2020. It is now read-only.

bcmi-labs/ciao-connector-phant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ciao Connector Phant.io

Phant.io Connector for Arduino Ciao - Send data to Phant.io service. Phant.io is a cloud service by SparkFun

Installation

Linino OS

Open a secure shell to your board and login into Linino OS. Install it via opkg running this commands:

$ opkg update
$ opkg install ciao-connector-phant

Arduino OS

If you have Arduino OS installed in your board you can use Arduino Package Manager Application. Go to Menu -> Arduino -> Arduino Package Manger and then search ciao-connector-phant, select it an press Install

Manually

Download the zip file of the latest release, unzip and move it via scp inside you board in the desired location. Be sure to move phant.ciao.conf.json file into the ciao directory, eg:

$ scp ~/Downloads/ciao-connector-phant/phant.ciao.conf.json root@arduino.local:/usr/lib/python2.7/ciao/conf/
$ scp -r ~/Downloads/ciao-connector-phant/phant root@arduino.local:/root/.ciao/

Configuration

Ciao Core Configuration

Before start using the connector, set to true the enabled key in the phant.ciao.json.file file. Change the commands/start values only if you installed the connector manually.

{
	"name" : "phant",
	"enabled": false,
	"type" : "managed",
	"core" : ">=0.1.0",
	"commands": {
		"start": ["/root/.ciao/phant/phant.py"],
		"stop": ["/usr/bin/killall","-s", "HUP","phant.py"]
	},
	"implements" : {
		"write" : { "direction": "out", "has_params": true }
	}
}

Connector Configuration/Parameters

To customize the connector to use your phant server, please insert the correct vaules in params section of the configuration file phant/phant.json.conf:

...
	"params" : {
		"host" : "YOUR_PHANT_IP_OR_HOSTNAME",
		"port" : 8080,
		"base_uri" : "YOUR_BASE_URI_WITH_TRAILING_SLASH"
	}
...

Else use the configuration settings for data.sparkfun.com service as follow:

...
"params" : {
	"host" : "http://data.sparkfun.com",
	"port" : 80,
	"base_uri" : "input/"
}
...

How To Use

Open Arduino IDE, import Arduino Ciao Library in your sketch and take a look at the example

See Also

Arduino Ciao

About

phant.io Connector for Arduino Ciao

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages