GithubHelp home page GithubHelp logo

archi-tekt / py-webrelais Goto Github PK

View Code? Open in Web Editor NEW

This project forked from schinken/py-webrelais

1.0 0.0 0.0 142 KB

py-webrelais offers a REST-API to control the K8IO Relais-Card

PHP 31.87% Haskell 13.41% Python 54.72%

py-webrelais's Introduction

py-webrelais

What it does

py-webrelais offers a REST-API to control the [1] K8IO Relais-Card from Pollin, connected to the parallel port. Its developed explicitly for Linux, but should run on Windows, too (not tested)

Basic Usage

  • GET / Shows a page to control the relais card

  • POST /ports/[0-7]? Set a relais

  • GET /ports/[0-7]? Get the state of a specific relais

  • DELETE /ports/[0-7]? Set relais to off

If no number is given, it will return/set/reset all relais

Dependencies

  • flask
  • pyparallel

Installation

sudo apt-get install python-parallel python-flask

You need to do this to get the parallel library to work:

sudo rmmod lp
sudo modprobe ppdev

Add your user to the lp group or change the permissions on /dev/parport0

Now everything should work fine

[1] http://www.pollin.de/shop/dt/NzcyOTgyOTk-/Bausaetze_Module/Bausaetze/Bausatz_PC_Relaiskarte_K8IO.html

py-webrelais's People

Contributors

k00mi avatar

Stargazers

Fabian Mewes avatar

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.