Skip to content

Commit

Permalink
inicio programacion zonas
Browse files Browse the repository at this point in the history
  • Loading branch information
duxman committed Dec 29, 2018
1 parent f4eb8a8 commit 954bb9d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 7 additions & 6 deletions schemas/schPrograms.json
Original file line number Diff line number Diff line change
@@ -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" },

}
}
}

0 comments on commit 954bb9d

Please sign in to comment.