GUI version to control all

This commit is contained in:
2019-06-11 11:14:38 +02:00
parent c4f1510e25
commit 1873e21c71
11 changed files with 366 additions and 400 deletions

View File

@@ -1,6 +1,9 @@
# Build 1
# Build 2
Write-Host "This utility is obsolete and may not work. Please use control.pyw"
$root = $PSCommandPath | Split-Path -Parent
. $root\config.ps1
$server = (Get-Content "$root\configpcm.ini" | select -Skip 1 | ConvertFrom-StringData).server
$resources = (Get-Content "$root\configpcm.ini" | select -Skip 1 | ConvertFrom-StringData).resources
function seeGroups {
$answer = Invoke-RestMethod -Method Get -Uri "$server/get/groups"
@@ -255,7 +258,7 @@ function menuCooks {
$CookName = Read-Host -Prompt "Nombre de la receta a añadir"
seeGroups #Function
$GroupName = Read-Host -Prompt "Nombre del grupo que quieres que lo tenga"
Invoke-RestMethod -Method Get -Uri "$server/set/cook?GroupName=$GroupName&CookName=$CookName"
Invoke-RestMethod -Method Get -Uri "$server/add/cookgrp?GroupName=$GroupName&CookName=$CookName"
pause
} '5' {