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

balena-io-experimental/balena-artik-cloud-publisher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

balena Artik Cloud Publisher

balena application to showcase an Artik-10 or 5 pushing Infrared Proximity Sensor (Sharp GP2Y0A21YK) to the ARTIK Cloud.

Getting Started

Infrared Proximity Sensor

Connect the sensor as shown below:

wiring

ARTIK Cloud

  • You need a Samsung account and a device created in the ARTIK Cloud dashboard
  • You need to create a new device type here
  • You need to sign into the user portal and connect a device using the device type name you created earlier.
  • Select the gear icon on your new device and then generate a token. token

Configuration

ENV config

Set these environment variables in your balena applications dashboard.

  • ARTIKCLOUD_URL => string (optional) ( defaults to https://api.samsungsami.io/v1.1/messages ) the ARTIKCLOUD endpoint
  • ARTIKCLOUD_DEVICE_TOKEN => string (required) The Device ID set in the ARTIKCLOUD dashboard
  • ARTIKCLOUD_DEVICE_ID => string (required) The Device token generated in the ARTIKCLOUD dashboard
  • SENSOR_THRESHOLD => string (optional) The ADC threshold to activate the sensor
  • POLL_INTERVAL => number (optional) Time in milliseconds to poll the sharp sensor
  • DEVICE_NAME => string (optional) The Device name to send to ARTIKCLOUD

Push this repo to your Artik

git clone https://github.com/balena-projects/balena-artik-cloud-publisher && cd balena-artik-cloud-publisher
git remote add balena git@git.balena-cloud.com:myGithubName/balenaAppName.git
git push balena master

Check balena & Artik dashboard.

image

Releases

No releases published

Packages

No packages published