Compare commits
8
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7957d88ff9 | ||
|
|
f35da9b883 | ||
|
|
c335935e2d | ||
|
|
db174fc610 | ||
|
|
4dfff77b95 | ||
|
|
469d642902 | ||
|
|
84d2816f24 | ||
|
|
521998b666 |
No files matched your search
+2
-4
@@ -26,8 +26,6 @@ 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
|
||||||
@@ -70,9 +68,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 (or SPEECH) to the box's /etc/pdtv26/speech-key (root's alone)
|
## speech's key, from here to the box's /etc/pdtv26/speech-key (root's alone)
|
||||||
speech-key:
|
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'
|
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`. If speech runs on another host, add `SPEECH=` that host: its key comes over ssh.
|
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`.
|
||||||
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