Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Latest commit

 

History

History
37 lines (25 loc) · 776 Bytes

README.md

File metadata and controls

37 lines (25 loc) · 776 Bytes

fernlenke

Description

Mobile friendly stateless on/off switch web app for HTTP APIs.

Intended for using right swipe for turning "on" and left swipe for turning "off" something.

Made for controlling lights via Node-RED.

Supports modern browsers and Android (probably even iOS) via cordova.

Installation

$ git clone https://github.com/ledeniz/fernlenke
$ cd swipeswitch
$ npm install
$ cordova run browser

Configuration

Customize the config object in /www/js/config.js

var config = {
    api: 'http://example.com/api',

    switches: [
        // API routes for switches (on/off => swipe right/left)
        [ '/on', '/off' ],
    ]
};