Zipabox (http://www.zipato.com)
This is a module to connect, load and use zipabox.
donate to the developer through this >>link<<
License
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 0.1, December 2013
Copyright (C) 2013 Zipabox Interface <jchenavas@gmail.com>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of the Do What The Fuck You Want
To Public License, See http://www.wtfpl.net/ for more details.
Description
Control the zipabox
NodeJS installation
npm install zipabox
Help :
here for details
Properties : clickhere for details
Methods : clickhere for details
Events : clickFor Developers
Simple Usage of module:
var zipabox = ; zipaboxusername = "[ZIPABOX LOGIN]";zipaboxpassword = "[ZIPABOX PASSWORD]"; zipaboxshowlog = false;zipaboxcheckforupdate_auto = true; zipaboxevents{ // Do something when connected zipabox;} zipaboxevents{ console; zipabox; zipabox;} zipaboxevents{ console; // Do something for each device loaded // use device.json to access to the device (see zipabox API https://my.zipato.com/zipato-web/api/) console;} zipabox;
Events Use: click here for details
var zipabox = ; zipaboxusername = "[ZIPABOX LOGIN]";zipaboxpassword = "[ZIPABOX PASSWORD]"; zipaboxevents{ console;} zipaboxevents{ console; zipabox; } zipaboxevents{ console;} zipaboxevents{ console; zipabox; } zipaboxevents{ console;} zipaboxevents{ console; console;} zipaboxevents{ console;} zipaboxevents{ console;} zipaboxevents{ console;} zipaboxevents{ console;} zipaboxevents{ console;} zipabox;
Disable Logging :
zipaboxshowlog = false;
Adding Date/Time prefix to log (if zipabox.showlog is true):
zipaboxshow_datetime_in_log = true;
Detailed Documentation :
Creating Object :
The Object is JSON type object
var zipabox = ;
Object's usual properties :
Show Logs
zipaboxshowlog=true;
Define Username and Password
zipaboxusername="toto@titi.com";zipaboxpassword="blabliblu";
Access Zipabox through its local IP
zipabox;
Knowing if Zipabox connection is open
zipaboxconnected=false;
Set Device Value
Methods :
zipabox;
Example :
zipabox;
Example2 :
zipaboxevents{ console;} zipaboxevents{ console; zipabox;} zipabox;
Set Device Value on Unloaded Device
Methods :
zipabox;
Run Scene on Unloaded Device
Methods :
zipabox
Advanced Example
var zipabox = ;var argv = argv; zipaboxusername = "[ZIPABOX LOGIN]";zipaboxpassword = "[ZIPABOX PASSWORD]"; zipaboxshowlog = argvl ? argvl : false;zipaboxshow_datetime_in_log = true; zipaboxcheckforupdate_auto = false; zipaboxevents{ console;} zipaboxevents{ console; zipabox;} zipaboxevents{ console;} zipaboxevents{ console;} zipaboxevents{ console;} zipaboxevents{ console; zipabox;} var { var retval = "<div id='" + theuuid + "' class='" + themoduleuiType + "'>\n"; retval += "<div class='name'>" + themodulename + "</div>\n"; retval += "<div class='attributes'>\n"; forvar attributeid in themoduleattributes var attribute = themoduleattributesattributeid; var attrname = attributedefinition ? attributedefinitionname : attributename; retval += "<div class='attribute'>\n"; retval += "<div class='id'>" + attributeid + "</div>\n"; retval += "<div class='attributename'>" + attrname + "</div>\n"; retval += "<div class='value'>" + attributevalue + "</div>\n"; retval += "</div>\n"; retval += "</div>\n"; return retval + "</div>\n"; }; zipaboxevents{ console; if !result console; console; zipabox; console; console; console; zipabox; console; zipabox; else zipabox;} zipabox;