Compare commits
4
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f3f2c8966e | ||
|
|
9b85deca8f | ||
|
|
5cbea49349 | ||
|
|
190600a696 |
No files matched your search
+4
-2
@@ -26,6 +26,8 @@ SECS = 6
|
|||||||
BRAIN_KEYS = $(HOME)/.config/pdtv26-brain
|
BRAIN_KEYS = $(HOME)/.config/pdtv26-brain
|
||||||
CAMERA_URL = $(HOME)/.config/pdtv26-camera/rtsp-url
|
CAMERA_URL = $(HOME)/.config/pdtv26-camera/rtsp-url
|
||||||
SPEECH_KEY = /etc/pdtv26-speech/speech-key
|
SPEECH_KEY = /etc/pdtv26-speech/speech-key
|
||||||
|
# The speech server's host, if it's not this one: its key comes over ssh.
|
||||||
|
SPEECH =
|
||||||
ON_BOX = ssh $(ADMIN)@$(HOST)
|
ON_BOX = ssh $(ADMIN)@$(HOST)
|
||||||
|
|
||||||
.PHONY: help test card flash wifi-secret say volume record keys speech-key ask-key ir-key look-key rtsp-url
|
.PHONY: help test card flash wifi-secret say volume record keys speech-key ask-key ir-key look-key rtsp-url
|
||||||
@@ -68,9 +70,9 @@ record:
|
|||||||
## every key, at both ends of its connection, by pipe: never on disk but where it's used
|
## every key, at both ends of its connection, by pipe: never on disk but where it's used
|
||||||
keys: speech-key ask-key ir-key look-key rtsp-url
|
keys: speech-key ask-key ir-key look-key rtsp-url
|
||||||
|
|
||||||
## speech's key, from here to the box's /etc/pdtv26/speech-key (root's alone)
|
## speech's key, from here (or SPEECH) to the box's /etc/pdtv26/speech-key (root's alone)
|
||||||
speech-key:
|
speech-key:
|
||||||
sudo cat $(SPEECH_KEY) | $(ON_BOX) 'sudo install -D -m 600 /dev/stdin /etc/pdtv26/speech-key && sudo wc -c /etc/pdtv26/speech-key'
|
$(if $(SPEECH),ssh $(SPEECH) )sudo cat $(SPEECH_KEY) | $(ON_BOX) 'sudo install -D -m 600 /dev/stdin /etc/pdtv26/speech-key && sudo wc -c /etc/pdtv26/speech-key'
|
||||||
|
|
||||||
## the brain's ask key (made by ../brain if there's none), from here to the box's /etc/pdtv26/ask-key
|
## the brain's ask key (made by ../brain if there's none), from here to the box's /etc/pdtv26/ask-key
|
||||||
ask-key:
|
ask-key:
|
||||||
|
|||||||
+1
-1
@@ -57,7 +57,7 @@ On the box and the home server: `tailscale up`, or whatever private network you
|
|||||||
|
|
||||||
On the home server, as the user the brain will run as, in pdtv26's `box/`:
|
On the home server, as the user the brain will run as, in pdtv26's `box/`:
|
||||||
|
|
||||||
1. `make keys BOX=pimote ADMIN=pat`: one key per connection, piped to both its ends; the box's ir and look keys come back for the brain. Put the camera's RTSP URL in `~/.config/pdtv26-camera/rtsp-url` first, or skip `rtsp-url`.
|
1. `make keys BOX=pimote ADMIN=pat`: one key per connection, piped to both its ends; the box's ir and look keys come back for the brain. Put the camera's RTSP URL in `~/.config/pdtv26-camera/rtsp-url` first, or skip `rtsp-url`. If speech runs on another host, add `SPEECH=` that host: its key comes over ssh.
|
||||||
2. Make a fine-grained GitHub token for one repository, Issues read/write only, for problem reports, and save it as `~/.config/pdtv26-brain/report-token`.
|
2. Make a fine-grained GitHub token for one repository, Issues read/write only, for problem reports, and save it as `~/.config/pdtv26-brain/report-token`.
|
||||||
3. `make -C ../brain install BOX=pimote REPO=you/your-repo ASSIGNEE=you`, then `make -C ../brain attach` once: log in, trust the folder, and approve the box's channel.
|
3. `make -C ../brain install BOX=pimote REPO=you/your-repo ASSIGNEE=you`, then `make -C ../brain attach` once: log in, trust the folder, and approve the box's channel.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user