Code Monkey home page Code Monkey logo

raspberry-strogonanoff's Introduction

NAME

Raspberry Strogonanoff

SYNOPSIS

strogonanoff_sender.py [OPTIONS] [on|off]

DESCRIPTION

A Raspberry Pi Remote Mains Switcher, to switch these:

http://www.maplin.co.uk/remote-controlled-mains-sockets-5-pack-348217

with one of these:

http://proto-pic.co.uk/434mhz-rf-link-transmitter/

using the documentation of the protocol detailed here:

http://elektronikforumet.com/wiki/index.php/RF_Protokoll_-_Nexa/Proove_%28%C3%A4ldre,_ej_sj%C3%A4lvl%C3%A4rande%29

SEE ALSO

This Python version is a re-implementation of the original Raspberry Strogonanoff by Duncan McGregor:

https://github.com/dmcg/raspberry-strogonanoff

I have ported Raspberry Strogonanoff to 'C'. See my implementation here:

https://github.com/himslm01/N38HN

OPTIONS

-v, --verbose   enable verbose logging
-g, --gpio      the GPIO pin of the Raspberry Pi to control (default is 0)
-c, --channel   'channel' number to send to
                The 'channel' number sets the 'code' group to send.
                On the receiving socket device the 'code adjustment dial'
                is labelled I, II, III & IV, the same as on the remote
                control's 'code adjustment switch', but this parameter
                requires 1, 2, 3 or 4 (default is 1).
-b, --button    'button' number to 'press'
                The remote control has 8 buttons arranged in 4 rows. This
                parameter sets the row of buttons being 'pressed'. On the
                receiving socket device the 'channel adjustment dial'
                sets which button row corresponds to which receiving
                socket device, values are 1, 2, 3 or 4 (default is 1)
[on|off]        whether to send a 'turn on' command or a 'turn off'
                command (default is on)

INSTALLATION

Requires WiringPi-Python

git clone https://github.com/WiringPi/WiringPi-Python.git
cd WiringPi-Python/
git submodule update --init
sudo apt-get install python2.7-dev
sudo apt-get install python-setuptools
sudo python setup.py install

EXAMPLE

Needs to be run as root -

sudo python strogonanoff_sender.py --channel 1 --button 3 --gpio 8 on 

where the GPIO pin numbers are the big ones on this diagram

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.