2017 © Pedro Peláez
 

library kaku

This library provides a basic object interface for calling a the KAKU program to switch devices with the Raspberry Pi and a 433mhz transmitter.

image

rudidevries/kaku

This library provides a basic object interface for calling a the KAKU program to switch devices with the Raspberry Pi and a 433mhz transmitter.

  • Wednesday, December 24, 2014
  • by rudidevries
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

KAKU - 'Klik aan Klik uit'

SensioLabsInsight, (*1)

This library provides a basic object interface for calling a the KAKU program to switch devices with the Raspberry Pi and a 433mhz transmitter., (*2)

A complete description of how to setup the KAKU program on the Raspberry Pi is found here in Dutch., (*3)

Installation

The best way to add the library to your project is using composer., (*4)

$ composer require rudidevries/kaku

Usage

For more information on setting up de SSH connection and authentication take a look at herzult/php-ssh., (*5)

The main principle is to setup an SSH connection, create a switch object, and give this object the channel to switch., (*6)

The command object should be passed the path to the kaku executable, as compiled from this c++ code., (*7)

Example:, (*8)

// SSH Connection setup
$config = new Ssh\Configuration($host);
$auth = new Ssh\Authentication\PublicKeyFile(
    $username,
    $pathToPublicKey,
    $pathToPrivateKey,
    $passPhrase
);
$session = new Ssh\Session($config, $auth);

// Create switcher
$command = new Kaku\Command\SshCommand(
    $session,
    '/path/to/kaku'
);
$switcher = new Kaku\Switcher($command);

// Create channel description
$channel = new Kaku\Channel(
    'description of switch point',
    'A',
    10
);

// Send signals
$switcher->sendOn($channel);
$switcher->sendOff($channel);

Symfony bundle

For easy integration in a Symfony based project, the kaku-bundle is also available., (*9)

The Versions

24/12 2014

dev-master

9999999-dev

This library provides a basic object interface for calling a the KAKU program to switch devices with the Raspberry Pi and a 433mhz transmitter.

  Sources   Download

MIT

The Requires

 

by Rudi de Vries

24/12 2014

dev-develop

dev-develop

This library provides a basic object interface for calling a the KAKU program to switch devices with the Raspberry Pi and a 433mhz transmitter.

  Sources   Download

MIT

The Requires

 

by Rudi de Vries

20/12 2014

0.1.1

0.1.1.0

This library provides a basic object interface for calling a the KAKU program to switch devices with the Raspberry Pi and a 433mhz transmitter.

  Sources   Download

The Requires

 

by Rudi de Vries

20/12 2014

0.1.0

0.1.0.0

This library provides a basic object interface for calling a the KAKU program to switch devices with the Raspberry Pi and a 433mhz transmitter.

  Sources   Download

The Requires

 

by Rudi de Vries