No commit activity in last 3 years
No release in over 3 years
Ruby interface to connecting to Synaccess netBooter power relays
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.6
~> 2.8

Runtime

>= 1.6
 Project Readme

Synaccess Connect

Communication wrappers for Synaccess netBooter power relays.

Supported Firmware:

  • NP-02
  • NP-02B

Available interfaces

    NetBooter
        Http
            RevA
            RevB

The Telnet interface was removed in version 0.3.0 because it was unreliable. You should switch to using the Http interface.

Usage

  • Add gem "synaccess_connect", "~> 0.3.1" to your Gemfile.

Example

connection = NetBooter::Http::RevA.new('XXX.XXX.XXX.XXX', username: "admin", password: "admin")
connection.status(1)
=> true
connection.toggle(false, 1)
connection.status(1)
=> false

Other options

  • port - Defaults to 80

Interface

All classes should implement the following methods:

  • initialize(host, options)
  • status(outlet) => boolean
  • statuses => Hash of { outlet => boolean }
  • toggle(new_status, outlet) => new status boolean