No commit activity in last 3 years
No release in over 3 years
Implements a gateway server to allow barebone basic sensor components to report state change updates as simple via TCP/UDP ports without the 'overhead' of the HTTP protocol. A power sensor for example might just broadcast a four byte floating point binary number once every second to an UDP port or an arduino board sends a UDP datagram whenever a button is pushed. You get the idea, this is how to bring embedded devices into the world of HTTP and Javascript...
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 0.2.2
~> 0.2.2
 Project Readme

gom-sensor-ports

Easy UDP/TCP sensor data sending to a remote GOM node. This gem includes a GNP callback server, support for automatic observer refreshments and command line tools for reading, writing and observing GOM entries.

Usage

The gem provides a daemon which connects your sensor to the GOM HTTP update protocol. You can start the daemon from the command line with its GOM URL:

$ gom-sensor-port http://gom.dev.artcom.de/sensor

The sensor will load its configuration from that GOM node. The configuration values and their defauls are:

  interface: '0.0.0.0'
  port:       44470
  verbose:    false
  mode:       :udp

(Note: only udp mode is currently implemented) Any of these defaults can be change from the command line:

$ gom-sensor-port --interface=1.1.1.23 http://gom.dev.artcom.de/sensor

gom-sensor-port will than listen to incoming sensor packages and interpret the incoming messages as simple key value pair which it writes to the GOM:

received from sensor:

foo:123

written to GOM:

/sensor:raw = 'foo:123'
/sensor/values:foo = '123'

Install

use the bundler tasks:

$ rake build install 

optional:

$ rake release

Dependencies

see Gemfile

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

Copyright

Copyright (c) 2010/13 art+com AG/dirk luesebrink. See LICENSE for details.