Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

homebridge-gate-latch

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

homebridge-gate-latch - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

3

dist/gate-latch-interface.js

@@ -5,3 +5,2 @@ "use strict";

exports.InitGateLatchInterface = () => {
// const scriptPath = path.dirname(__dirname).split(path.sep).pop();
return new python_shell_1.PythonShell('gate-latch-monitor.py', {

@@ -11,4 +10,4 @@ mode: 'text',

pythonOptions: ['-u'],
scriptPath: '/usr/lib/node_modules/homebridge-gate-latch/dist/',
scriptPath: `${__dirname}/`,
});
};
{
"name": "homebridge-gate-latch",
"version": "1.0.11",
"version": "1.0.12",
"author": "voxmatt",

@@ -28,3 +28,5 @@ "description": "Doorbell plugin for Homebridge to enable control of an old doorbell and front-gate latch",

"dev": "tsc -w",
"build": "tsc"
"dist:clean": "rm -rf dist && mkdir dist && cp src/gate-latch-monitor.py dist/gate-latch-monitor.py ",
"build": "npm run dist:clean && tsc",
"prepublish": "npm run build"
},

@@ -31,0 +33,0 @@ "dependencies": {

## About
This project contains two related elements. Really, these two elements should be pulled into separate repos, but this is just a weekend hobby project... so, you know, convenience and what-not.
A Homebridge plugin for a Raspberry Pi with an Automation Hat that is controlling an old, buzzer-activated door gate. Directly inspired by (this article)[https://medium.com/dirigible/siri-controlled-1970s-intercom-door-ecd7a6b0df31]. Please note that this plugin represents only the software component. The hardware is a different manner entirely, but is explained in the above mentioned article. Maybe I'll get around to detailing it someday...
1. `door-server.py` this is the server that runs locally on the raspberry pi in order to monitor the status of the connected automation hat and the doorbell itself. This should be installed and run on the raspberyy pi itself.
2. (everything else) is the homebridge plugin to enable communication between the doorbell accessory and the homebridge
Note that because this has local dependencies and isn't intended to be published as a true homebridge-plugin, it must be installed at a particular directory: `~/doorbell/`
## Administration on the Raspberry Pi

@@ -29,6 +24,3 @@

- Creating a homekit plugin)[https://blog.theodo.com/2017/08/make-siri-perfect-home-companion-devices-not-supported-apple-homekit/]
## Debugging
Hardcoded filepaths exist in `/src/doorbell-interface.ts`. These are obviously fragile.
- (Siri Controlled 1970s Intercom Door)[https://medium.com/dirigible/siri-controlled-1970s-intercom-door-ecd7a6b0df31]
- (Creating a homekit plugin)[https://blog.theodo.com/2017/08/make-siri-perfect-home-companion-devices-not-supported-apple-homekit/]
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc