General area when it fits no where else

Moderator: Mmiscool

User avatar
By forlotto
#42592 I have 8 outlets I would like 8 timers for basically in JSON ...

I am trying to setup a timer json file but dunno if this would be correct in format or the best way to approach it.

Code: Select all{"Outlet1":[
    {"Day":"Monday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer8":"5:00", "Position":"Off"},
]}
{"Outlet2":[
    {"Day":"Monday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer8":"5:00", "Position":"Off"},
]}
{"Outlet3":[
    {"Day":"Monday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer8":"5:00", "Position":"Off"},
]}
{"Outlet4":[
    {"Day":"Monday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer8":"5:00", "Position":"Off"},
]}
{"Outlet5":[
    {"Day":"Monday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer8":"5:00", "Position":"Off"},
]}
{"Outlet6":[
    {"Day":"Monday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer8":"5:00", "Position":"Off"},
]}
{"Outlet7":[
    {"Day":"Monday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer8":"5:00", "Position":"Off"},
]}
{"Outlet8":[
    {"Day":"Monday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Monday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Tuesday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Wednesday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Thursday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Friday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Saturday","Timer8":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer1":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer2":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer3":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer4":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer5":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer6":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer7":"5:00", "Position":"Off"},
    {"Day":"Sunday","Timer8":"5:00", "Position":"Off"},
]}


Is there a header I need to use?
Can you have more than one object in a file?
Is it possible to check each object and pull the legit data and compare it with the current time?
There has to be a way to do this which will interface with the esp.

Somehow it should be possible to do and make compact enough to work. And allow a user to add timers remove timers and update timers I imagine this is not an impossible dream even if a web server has to handle some of the work.
User avatar
By danbicks
#42611 Good Approach,

I use a similar method for card details access control and parse a similar Json file. you could try the following, first time after the day is the start time, output is active, after this is the off time of the outlet.

{"OUTLET1":[["MON","16:45","09:00"],["TUE","08:00","12:00"],["WED","08:45","19:00"],["THU","05:45","07:00"],["FRI","19:45","22:00"],["SAT","05:00","19:00"],["SUN","17:45","22:00"]],"OUTLET2":[["MON","16:45","09:00"],["TUE","08:00","12:00"],["WED","08:45","19:00"],["THU","05:45","07:00"],["FRI","19:45","22:00"],["SAT","05:00","19:00"],["SUN","17:45","22:00"]],"OUTLET3":[["MON","16:45","09:00"],["TUE","08:00","12:00"],["WED","08:45","19:00"],["THU","05:45","07:00"],["FRI","19:45","22:00"],["SAT","05:00","19:00"],["SUN","17:45","22:00"]],"OUTLET4":[["MON","16:45","09:00"],["TUE","08:00","12:00"],["WED","08:45","19:00"],["THU","05:45","07:00"],["FRI","19:45","22:00"],["SAT","05:00","19:00"],["SUN","17:45","22:00"]],"OUTLET5":[["MON","16:45","09:00"],["TUE","08:00","12:00"],["WED","08:45","19:00"],["THU","05:45","07:00"],["FRI","19:45","22:00"],["SAT","05:00","19:00"],["SUN","17:45","22:00"]],"OUTLET6":[["MON","16:45","09:00"],["TUE","08:00","12:00"],["WED","08:45","19:00"],["THU","05:45","07:00"],["FRI","19:45","22:00"],["SAT","05:00","19:00"],["SUN","17:45","22:00"]],"OUTLET7":[["MON","16:45","09:00"],["TUE","08:00","12:00"],["WED","08:45","19:00"],["THU","05:45","07:00"],["FRI","19:45","22:00"],["SAT","05:00","19:00"],["SUN","17:45","22:00"]],"OUTLET8":[["MON","16:45","09:00"],["TUE","08:00","12:00"],["WED","08:45","19:00"],["THU","05:45","07:00"],["FRI","19:45","22:00"],["SAT","05:00","19:00"],["SUN","17:45","22:00"]]}

Hope this helps.

Dans
User avatar
By forlotto
#42651 hrmmm interesting approach to shorten the load.

I like the shorthand for monday tuesday etc... That should help as well.

Only issue with the on and off is I would like to have about 8 timers per day per outlet 8 outlets total.

This is why I chose this methodology then that way a web page somehow should be able add remove or update the timer.

Would be neat to see a full example of all of these types of things in action so I had something better than say a rough guess I do however thank you very much for the help.

I have a webpage that I created with every timezone and all of the information to submit but I was thinking on using php at the time just too many other projects going on the importance level of this is not top priority but that doesn't take away the want to arrive at a worthy finish.

Any more info you wish to share on adding, deleting, updating entries in the json that would be way cool or even a good method of parsing its all kinda newish to me.

I'll keep digging but any bit of help along the way I am open for suggestions.
User avatar
By Ecoli-557
#52671 Danbricks-
I am new to ESPbasic and I am also looking for a way to send/receive data from an ESP to a IP address.
From what little I have seen, JSON looks like it may work.

As I have never done this before and I would like to do this for my project (RFID lock) is there an example somewhere that I can look at?

Regards.