The New Stuff

898 Views

Raspberry Pi Pushing Data to the Sparkfun Server


This week there is an interesting tutorial ,where  we can push our data to the sparkfun server from Raspberry Pi.This article helps you to build Internet Of Things(IOT) with Sparkfun data server.For more details about IOT click here.

Internet_of_Things

Installation:

To make it still easy we come up with a script to install the requires libraries automatically.

Download the Script from the following link:

https://www.dropbox.com/s/z256c04925ek5pd/sparkfun_data_helper.sh

Execution:

Give the Executable permission for the Script file.Type the following command in the Raspberry Pi Terminal.

sudo chmod a+x sparkfun_data_helper.sh

Run the Script using the following command: (Raspberry Pi Should be Connected to the Internet)

sudo ./sparkfun_data_helper.sh

Once everything is done successfully,open a new .sh file with any file name(ex–iot.sh) and paste the below shell script.

#!/bin/sh

echo -n “Who are you? ”

read PHANT_WHO

echo -n “Where are you at? ”

read PHANT_WHERE

PHANT_CODE=sh

echo -n “What is your favorite animal? ”

read PHANT_ANIMAL

curl –header “Phant-Private-Key: 7BW8wzzPwRiWMEAp15r0″ \

–data “who=$PHANT_WHO” \

–data “where=$PHANT_WHERE” \

–data “code=$PHANT_CODE” \

–data “favorite_animal=$PHANT_ANIMAL” \

‘http://data.sparkfun.com/input/5Jlo299W26tGoqWnZ3O0‘ \

 

You should replace your public key and private key as per the image below.

 

Public Key:

This key is used to identify your stream and provide a unique URL. This key is publicly visible – anyone can visits your stream’s URL will be able to see the data.

Private Key:

The private key is required in order to post your data to the stream. Only you should know this key.

Delete Key:

If you want to delete your URL you can use this delete key.

Fields:

You can create field and set your data to the specific field according to your Application.

latestlatest_iot

After replacing your public key and private key save the file and give the executable permission for the script.

Run the script:

sudo ./filename.sh

YouTube Link:

Training

Daily and weekly Deals

Youtube channel

For queries:info@tenettech.com

Contact:080-26722726

 

 

Scridb filter

Recently Published

»

MicroDAQ LabVIEW support package

LabVIEW is a very popular environment for control and measurement ...

»

Real Time Measurements with Hardware Access Functions

Not every application requires real-time processing, some ...

»

Intel VTUNE AMPLIFIER

VTune Amplifier performance profiler is a commercial application for ...

article image
»

UP Board now available through Tenet Technetronics in India

We are in the midst of a single board computer revolution and the ...

article image
»

INTRODUCING MOST POWERFUL MAKER BOARD Ever: Intel Joule

We are excited to announce Tenet Technetronic is distributing Intel ...

»

Experiment using MicroDAQ-Data acquisition tool

MicroDAQ is an ideal platform for developers, scientists and geeks ...

»

MicroDAQ_Encoder Block

Encoders are used to translate rotary or linear motion into a digital ...

»

MicroDAQ_PWM Block

Generally Pulse Width Modulation is prominently used in controlling ...

»

PIC Microcontroller Workshop/Training @ Tenet Technetronics on 18th and 19th of February 2017

Folks,             Tenet Technetronics is hosting a PIC ...