Skip to content

Phone app ​

With np_phone running, np_doors adds the Keys app (store app np_doors_keys, Config.Phone.app). It is in the store for everybody, or on every phone with Config.Phone.default. Without np_phone digital keys still work at the door; the alerts become toasts.

Keys Share a key Security alerts
Keys Share Alerts

Your doors ​

Three tabs: Mine (doors you own), Shared (keys others gave you) and Work (doors of your job). Each row shows the door, its state, the distance and what it needs (a code, a keycard and PIN). Below the list the recent activity: who opened or locked your doors.

  • Remote lock and unlock within Config.Phone.remoteRange (25 m; a door's remote overrides it, 0 = never). An np_cellnet jammer near you blocks it (Config.Phone.jammable).
  • The server checks access, range and the jammer for every remote toggle, like at the door.

Digital keys ​

A digital key opens a door (or a whole group or building) for its holder's character. With Config.Keys.skipChain (default) it also skips the door's lock chain.

Mode Valid
once One unlock
timed For a number of hours (up to Config.Keys.maxHours, 30 days)
forever Until revoked
window Only inside a time window (for example 08:00 to 20:00)

Share picks the person (a player nearby, a phone number or an identifier), the duration and whether they may share further (re-share). You may share a door you have access to yourself, or one you got with re-share. Revoke ends a key at once. A door holds at most Config.Keys.maxPerDoor (50) live keys. The holder sees the key and its time left on the door card ("Key from Mia · 2 h").

Scripts issue and revoke keys with giveKey, shareKey and revokeKey; staff and owners add them in the manager.

Security alerts ​

The bell opens the alerts of every door you own, work at or manage: lockpick attempts, breaches, bursts of wrong codes, somebody using the key you shared, a door forced by police (with the warrant). Alerts come as a push too. Tripped alarms also call the police; plain alerts do not (Breach & alarms).

For developers ​

The app runs in web/dist/phone.html. np_phone app RPC names may only contain letters, digits, _, - and ., so the app calls keys.list, keys.toggle { id }, keys.share { id, target, mode, hours?, reshare, window? }, keys.revoke { keyId } and alerts.list. np_doors pushes keys:changed and alerts:changed through sendAppMessage.