jondot / groundcontrol

Manage and monitor your Raspberry Pi with ease
http://jondot.github.io/groundcontrol
MIT License
769 stars 44 forks source link

Unable to parse with two control toggles #31

Open SupaUser opened 10 years ago

jondot commented 10 years ago

Hi, can you explain a bit? Thanks

rawromg commented 10 years ago

Hey SupaUser! I was having the same issue and here's what I did to solve it. Make sure that you have a comma after the end curly brace containing your buttons and commands. The commas are very important. They should go on everything , except for the last one.

"controls" : {
    "Title One" : {
        "cmd1" : "echo one",
        "cmd2" : "echo two",
        "cmd3" : "echo three"
            }, // THIS IS THE COMMA YOU NEED
    "Title Two" : {
        "cmd4" : "echo four",
        "cmd5" : "echo five",
        "cmd6" : "echo six"
            } // No comma because it's last
        }