mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-11-17 12:12:16 -05:00
@@ -1,8 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
log() { echo "$*"; }
|
log() { echo "$*"; }
|
||||||
apt-get update
|
# Package dependencies are installed by install_roverd.sh before this helper runs.
|
||||||
apt-get install -y flite espeak python3 curl xz-utils unzip alsa-utils libc++1 libc++abi1
|
|
||||||
install_google_tts_assets() {
|
install_google_tts_assets() {
|
||||||
local asset_dir="/var/lib/roverd/googletts"
|
local asset_dir="/var/lib/roverd/googletts"
|
||||||
local voice_dir="${asset_dir}/en-us-x-multi-r30"
|
local voice_dir="${asset_dir}/en-us-x-multi-r30"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ esac
|
|||||||
install -m 0755 "dist/roverd-linux-$arch" /usr/local/bin/roverd.new
|
install -m 0755 "dist/roverd-linux-$arch" /usr/local/bin/roverd.new
|
||||||
mv -f /usr/local/bin/roverd.new /usr/local/bin/roverd
|
mv -f /usr/local/bin/roverd.new /usr/local/bin/roverd
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y git ca-certificates python3 util-linux
|
apt-get install -y git ca-certificates python3 util-linux flite espeak curl xz-utils unzip alsa-utils libc++1 libc++abi1
|
||||||
install -d /etc/roverd/profiles /var/lib/roverd
|
install -d /etc/roverd/profiles /var/lib/roverd
|
||||||
if [[ ! -f /etc/roverd.json ]]; then
|
if [[ ! -f /etc/roverd.json ]]; then
|
||||||
/usr/local/bin/roverd -print-default-config > /etc/roverd.json.new
|
/usr/local/bin/roverd -print-default-config > /etc/roverd.json.new
|
||||||
|
|||||||
@@ -369,11 +369,11 @@ export function SessionProvider({ children }) {
|
|||||||
setAdminReason: (text) => emitWithAck('adminReason:set', { text }),
|
setAdminReason: (text) => emitWithAck('adminReason:set', { text }),
|
||||||
rebootRover: (roverId) =>
|
rebootRover: (roverId) =>
|
||||||
emitWithAck('command', { roverId, type: 'reboot', data: { reboot: {} } }),
|
emitWithAck('command', { roverId, type: 'reboot', data: { reboot: {} } }),
|
||||||
// Rover updates are intentionally parameter-free from the browser. The Pi
|
// Rover updates are intentionally parameter-free from the browser. Roverd
|
||||||
// side owns the git pull + installer sequence so the admin UI can request
|
// owns the git pull + installer sequence so the admin UI can request
|
||||||
// maintenance without becoming a remote shell.
|
// maintenance without becoming a remote shell.
|
||||||
updateRover: (roverId) =>
|
updateRover: (roverId) =>
|
||||||
emitWithAck('command', { roverId, type: 'update', data: { update: {} } }),
|
emitWithAck('command', { roverId, type: 'update' }),
|
||||||
// Bulk rover updates stay server-owned so the admin browser sends one
|
// Bulk rover updates stay server-owned so the admin browser sends one
|
||||||
// intent, then the server checks privileges and fans out the same fixed
|
// intent, then the server checks privileges and fans out the same fixed
|
||||||
// update command to every currently connected rover.
|
// update command to every currently connected rover.
|
||||||
|
|||||||
Reference in New Issue
Block a user