Add Torch probe entries and Pi artifact sync
This commit is contained in:
@@ -8,7 +8,12 @@ param(
|
||||
[string]$Horizons = "",
|
||||
[string]$Features = "",
|
||||
[string]$ContextSymbols = "",
|
||||
[int]$FirstRunMinutes = 0
|
||||
[int]$FirstRunMinutes = 0,
|
||||
[switch]$DeployToPi,
|
||||
[string]$PiHost = "192.168.0.185",
|
||||
[string]$PiUser = "sevenhill",
|
||||
[string]$PiRoot = "/mnt/data/tradebot",
|
||||
[string]$PiSshKeyPath = ""
|
||||
)
|
||||
|
||||
$ErrorActionPreference = "Stop"
|
||||
@@ -46,6 +51,21 @@ if ($Features) {
|
||||
if ($ContextSymbols) {
|
||||
$actionArgs += " -ContextSymbols `"$ContextSymbols`""
|
||||
}
|
||||
if ($DeployToPi) {
|
||||
$actionArgs += " -DeployToPi"
|
||||
}
|
||||
if ($PiHost) {
|
||||
$actionArgs += " -PiHost `"$PiHost`""
|
||||
}
|
||||
if ($PiUser) {
|
||||
$actionArgs += " -PiUser `"$PiUser`""
|
||||
}
|
||||
if ($PiRoot) {
|
||||
$actionArgs += " -PiRoot `"$PiRoot`""
|
||||
}
|
||||
if ($PiSshKeyPath) {
|
||||
$actionArgs += " -PiSshKeyPath `"$PiSshKeyPath`""
|
||||
}
|
||||
$action = New-ScheduledTaskAction -Execute "powershell.exe" -Argument $actionArgs -WorkingDirectory $RepoRoot
|
||||
$trigger = New-ScheduledTaskTrigger `
|
||||
-Once `
|
||||
|
||||
Reference in New Issue
Block a user