Normalise JSON. Update todo master
authorCameron Ball <cameron@getapproved.com.au>
Wed, 8 Jul 2015 03:46:30 +0000 (11:46 +0800)
committerCameron Ball <cameron@getapproved.com.au>
Wed, 8 Jul 2015 03:46:30 +0000 (11:46 +0800)
TODO
menu.json
test.sh

diff --git a/TODO b/TODO
index 3f4cba5..912cb53 100644 (file)
--- a/TODO
+++ b/TODO
@@ -2,4 +2,4 @@ Streaming to peekingboo etc is a TASK not a service,
 
 remove the psexec stuff from stream.sh to a new script that just calls psexec (might not even need a script, just do it as the task)
 
-Need some way of adding delays between commands for presets 
+add a new widget, progressbox. Can pipe stuff in to it (adapter just has to echo out what it's doing. e.g., my-adapter.sh | dialog --title fff --progressbox
index 171b1ba..28857b7 100644 (file)
--- a/menu.json
+++ b/menu.json
@@ -3,91 +3,95 @@
     "type": "menu",
     "description": "PreCom Options",
     "items": [
-    {
+      {
         "name": "Services",
         "type": "menu",
         "description": "Start/Stop services",
         "items": [
-        {
+          {
             "name": "ITG",
             "type": "service",
             "description": "Start/Stop the ITG service",
             "command": "/itg/de-itg",
             "user": "itg"
-        },
-       {
-           "name": "Steam",
-           "type": "service",
-           "description": "Start/Stop the Steam service",
-           "command": "/itg/PreCom/steam.sh",
-           "user": "steam"
-       },
-       {
-           "name": "Steam TenFoot",
-           "type": "service",
-           "description": "Start/Stop the Steam service in tenfoot mode",
-           "command": "/itg/PreCom/steam.sh",
-           "args": "-t",
-           "user": "steam"
-       },
-       {
-           "name": "Stream",
-           "type": "service",
-           "description": "Start/Stop the stream service",
-           "command": "/itg/PreCom/stream.sh",
-           "user": "itg"
-       }]
-    },
-    { 
+          },
+          {
+            "name": "Steam",
+            "type": "service",
+            "description": "Start/Stop the Steam service",
+            "command": "/itg/PreCom/steam.sh",
+            "user": "steam"
+          },
+          {
+            "name": "Steam TenFoot",
+            "type": "service",
+            "description": "Start/Stop the Steam service in tenfoot mode",
+            "command": "/itg/PreCom/steam.sh",
+            "args": "-t",
+            "user": "steam"
+          },
+          {
+            "name": "Stream",
+            "type": "service",
+            "description": "Start/Stop the stream service",
+            "command": "/itg/PreCom/stream.sh",
+            "user": "itg"
+          }
+        ]
+      },
+      {
         "name": "Tasks",
         "type": "menu",
         "description": "Run tasks",
         "items": [
-        {
+          {
             "name": "Update songs",
             "type": "task",
             "description": "Update the ITG song list",
             "commands": [
-            {
+              {
                 "command": "./rsync-adapter.sh -ia --delete --exclude 'A is for Cool Shit' --exclude 'Footspeed' --exclude 'Stamina' /mnt/shares/itg-repo/Songs /itg",
                 "title": "Syncing songs..."
-            },
-           {
-               "command": "./simlink-adapter.sh -d /itg/Songs/ -f 240 -s 5 -r 13",
-               "title": "Sorting songs..."
-           },
-            {
+              },
+              {
+                "command": "./simlink-adapter.sh -d /itg/Songs/ -f 240 -s 5 -r 13",
+                "title": "Sorting songs..."
+              },
+              {
                 "command": "./cache-update-adapter.sh -d /itg/Cache/Songs/",
                 "title": "Updating cache..."
-            },
-            {
+              },
+              {
                 "command": "./cache-update-confirmation-adapter.sh",
                 "title": "Songs updated"
-            }],
+              }
+            ],
+            "user": "itg"
+          },
+          {
+            "name": "DivinElegy Twitch",
+            "type": "task",
+            "description": "Sets up the camera and launches OBS",
+            "commands": [
+              {
+                "command": "./camflush-adapter.sh",
+                "title": "Flush camera"
+              },
+              {
+                "command": "ssh peekingboo@...",
+                "title": "Starting obs"
+              }
+            ],
             "user": "itg"
-        },
-       {
-           "name": "DivinElegy Twitch",
-           "type": "task",
-           "description": "Sets up the camera and launches OBS",
-           "commands": [
-           {
-               "command": "./camflush-adapter.sh",
-               "title": "Flush camera"
-           },
-           {
-               "command": "ssh peekingboo@...",
-               "title": "Starting obs"
-           }],
-           "user": "itg"
-       }]
-    },
-    {
+          }
+        ]
+      },
+      {
         "name": "Presets",
         "type": "menu",
         "description": "Run presets",
         "items": [
-        {
+          {
             "name": "Sync and Launch",
             "type": "preset",
             "description": "Sync songs and launch ITG",
               "MainMenu.Tasks.Update songs",
               "MainMenu.Services.ITG"
             ]
-        },
-       {
-           "name": "GameStomp",
-           "type": "preset",
-           "description": "Do shit for GameStomp",
-           "itemsToRun": [
-             "MainMenu.Services.Steam",
-             "MainMenu.tasks.Divinelegy Twitch"
-           ]
-       }]
-    }]
+          },
+          {
+            "name": "GameStomp",
+            "type": "preset",
+            "description": "Do shit for GameStomp",
+            "itemsToRun": [
+              "MainMenu.tasks.Divinelegy Twitch",
+              "MainMenu.Services.Steam"
+            ]
+          }
+        ]
+      }
+    ]
   }
 }
diff --git a/test.sh b/test.sh
index 9bd27d8..0647e88 100755 (executable)
--- a/test.sh
+++ b/test.sh
@@ -1,3 +1,9 @@
 #!/bin/bash
 
-touch /var/log/testfffggg
+echo "nice... "
+sleep 6
+echo -e "\tok"
+
+echo "meme... "
+sleep 2
+echo -e "\tok"