Giter Site home page Giter Site logo

balena-artik-cloud-publisher's Introduction

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 [email protected]:myGithubName/balenaAppName.git
git push balena master

Check balena & Artik dashboard.

image

balena-artik-cloud-publisher's People

Contributors

chrisys avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

vulcanoio

balena-artik-cloud-publisher's Issues

Path to ADC only applies to Artik10

The hardcoded sys path /sys/devices/12d10000.adc/iio:device0/in_voltage0_raw only applies to the Artick 10. I believe on the Artik 5 it would be /sys/devices/126c0000.adc/iio:device0/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.