Skip to content
Push events to the Artik cloud(sami)
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app
docs
.gitignore
Dockerfile.template
LICENSE
README.md
device_manifest.json

README.md

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

You can’t perform that action at this time.