GithubHelp home page GithubHelp logo

shell_locked's Introduction

shell_locked

Simple shell script for gpio control suitable for control from Android lock control app Trigger in ssh mode. See https://github.com/clach04/pirest for https mode server.

Assumes two pins:

  • lock/close
  • unlock/open

with momentary on each pin to actuate. Similar to https://github.com/h42i/d00r-key-server.

Recommended for use with Android Trigger app in ssh mode.

Setup

NOTE door.sh needs to be edited to set the GPIO pins.

In addition it needs to be called in setup mode. If any other process access/changes the GPIO pins, e.g. a python script, setup needs to be ran again. Set and unset of GPIO pins will silently fail.

Key Registration Server for Trigger

Can either perform regular ssh key generation/registration or make use of Trigger's key creation mode.

Ensure .ssh directory exists and has correct permissions:

cd
chmod a-w .
chmod u+rwx  .
ls -altrd .
mkdir .ssh
chmod a-rwx .ssh
chmod u+rwx  .ssh
ls -ald .ssh

Run registration server:

./keyreg.py
# or
./keyreg.py ~/.ssh/authorized_keys

In Trigger, enter in the registration url, e.g. assuming server ip address is 192.168.1.1, enter in:

tcp://192.168.1.1:50007

NOTE older versions of Trigger (1.9.1) should only specify address and port and omit the tcp:// prefix.

Older versions also need to specify registration URL before creating key.

Once key is created, hit Register in Trigger app on Android.

shell_locked's People

Contributors

clach04 avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  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.