diff --git a/config.py b/config.py index 22766e1..98c528e 100644 --- a/config.py +++ b/config.py @@ -51,7 +51,7 @@ def __init__(self, file): self.pines = self.Data["Pins"] self.musica = self.Data["Music"] - self.secuencia = self.Data["Secuence"] + self.secuencia = self.Data["Sequence"] self.intervalo = self.Data["Interval"] self.repeticiones = self.Data["Repeat"] self.type = self.Data["Type"] diff --git a/main.py b/main.py index 9ba60e7..1555690 100644 --- a/main.py +++ b/main.py @@ -111,7 +111,7 @@ def execute(self): ##Comprobamos is es musica o secuencia if( p.type == "MUSIC" ): self.musicManager(filename = p.musica ) - if (p.type == "SEC"): + if (p.type == "SEQ"): self.secuenceManager(p.secuencia,p.intervalo) ## dormimos el tiempo estipulado diff --git a/schemas/schPrograms.json b/schemas/schPrograms.json index cb0c2e7..74c754d 100644 --- a/schemas/schPrograms.json +++ b/schemas/schPrograms.json @@ -1,19 +1,20 @@ { "type": "array", - "format": "table", + "format": "tabs", "title": "Programs Configuration", - "items" : + "items" : { "title": "Program", - "type": "object", + "type": "object", "properties": { + "Name" : { "type" : "string", "description" : "Program name", "readonly" : true }, "Pins" : { "type" : "string", "description" : "Pin List" }, "Music" : { "type" : "string", "description" : "Music Files" }, - "Secuence" : { "type" : "string", "description" : "Secuence Program" }, + "Sequence" : { "type" : "string", "description" : "Sequence Program" }, "Interval" : { "type" : "string", "description" : "Wait Time" }, "Repeat" : { "type" : "string", "description" : "Repeats" }, - "Type" : { "type" : "string", "description" : "Execution Type", "enum": [ "SEC","MUSIC" ], "default" : "MUSIC" }, - "Name" : { "type" : "string", "description" : "Program name", "readonly" : true } + "Type" : { "type" : "string", "description" : "Execution Type", "enum": [ "SEQ","MUSIC" ], "default" : "MUSIC" }, + } } } \ No newline at end of file