/artron

Communicates with sensors(temperature and luminosity) connected to an Arduino and publishes to a MQTT broker.

Primary LanguageRuby

Artron

Communicates with sensors(temperature and luminosity) connected to an Arduino and publishes to a MQTT broker. I used gem Artoo to perform communication with the Arduino.

Installation

$ bundle

Usage

Change connection_params in bin/artron:

connection_params = {
  mqtt: {
    host: 'localhost',
    username: '',
    password: '',
    port: 1883,
    ssl: false
  },
  worker: {
    port: '/dev/cu.usbmodem1421'
  }
}
$ bin/artron

Contributing

  1. Clone it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D