buzz-me-in 2.2.0-beta.5 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +6 -2
  2. package/package.json +13 -2
  3. package/server.js +3 -3
package/README.md CHANGED
@@ -1,10 +1,14 @@
1
1
  # buzz-me-in
2
2
 
3
- Apartment intercom to Apple HomeKit, bridged over Twilio.
4
-
3
+ [![npm](https://img.shields.io/npm/v/buzz-me-in.svg?style=flat-square)](https://www.npmjs.com/package/buzz-me-in)
4
+ [![npm@beta](https://img.shields.io/npm/v/buzz-me-in/beta.svg?style=flat-square&label=npm%40beta)](https://www.npmjs.com/package/buzz-me-in/v/beta)
5
+ [![npm](https://img.shields.io/npm/dt/buzz-me-in.svg?style=flat-square)](https://www.npmjs.com/package/buzz-me-in)
6
+ [![GitHub last commit](https://img.shields.io/github/last-commit/atdr/buzz-me-in.svg?style=flat-square)](https://github.com/atdr/buzz-me-in)
5
7
  [![CI](https://img.shields.io/github/actions/workflow/status/atdr/buzz-me-in/ci.yml?style=flat-square&label=CI)](https://github.com/atdr/buzz-me-in/actions/workflows/ci.yml)
6
8
  [![Coverage](https://img.shields.io/codecov/c/github/atdr/buzz-me-in?style=flat-square&label=coverage)](https://codecov.io/gh/atdr/buzz-me-in)
7
9
 
10
+ Apartment intercom to Apple HomeKit, bridged over Twilio.
11
+
8
12
  A Raspberry Pi server that bridges an apartment intercom system into Apple HomeKit. When someone presses the intercom buzzer, your iPhone/HomePod receives a doorbell notification with a live camera tile. You can hear the caller, speak back, and unlock the door — all from the Home app or via Siri.
9
13
 
10
14
  ## Project docs
package/package.json CHANGED
@@ -1,7 +1,18 @@
1
1
  {
2
2
  "name": "buzz-me-in",
3
- "version": "2.2.0-beta.5",
3
+ "version": "2.2.0",
4
4
  "description": "HomeKit-compatible apartment intercom via Twilio media streams",
5
+ "keywords": [
6
+ "homekit",
7
+ "intercom",
8
+ "twilio",
9
+ "doorbell",
10
+ "smart-home",
11
+ "raspberry-pi",
12
+ "hap-nodejs",
13
+ "ffmpeg",
14
+ "nodejs"
15
+ ],
5
16
  "main": "server.js",
6
17
  "bin": {
7
18
  "buzz-me-in": "./server.js"
@@ -42,7 +53,7 @@
42
53
  "node": ">=20"
43
54
  },
44
55
  "dependencies": {
45
- "dotenv": "^17.4.2",
56
+ "dotenv": "^18.0.1",
46
57
  "hap-nodejs": "^0.14.2",
47
58
  "qrcode-terminal": "^0.12.0",
48
59
  "twilio": "^6.1.0",
package/server.js CHANGED
@@ -229,9 +229,9 @@ async function handleTwimlRequest(req, res) {
229
229
  const body = buildTwiml(callSid);
230
230
  // Who rang. Logged here rather than on twiml-request, which fires before the
231
231
  // body is read and before the signature is checked: an unverified From is
232
- // whatever the sender typed. forwardedFrom is the number that diverted the
233
- // call, which is the intercom panel's signature when the building's line
234
- // forwards to us.
232
+ // whatever the sender typed. forwardedFrom is logged as Twilio reports it,
233
+ // but carriers fill it inconsistently: on EE it is simply the dialled number
234
+ // on every call, so it cannot tell a diverted call from a direct one.
235
235
  const caller = describeCaller(formData.From);
236
236
  twimlLogger.info('TwiML response generated', {
237
237
  event: 'twiml-response',