// Javascript for changing OpenSprinkler station names and master operation bits // Firmware v1.8 // All content is published under: // Creative Commons Attribution ShareAlike 3.0 License // Sep 2012, Rayshobby.net function w(s) {document.writeln(s);} function imgstr(s) {return " ";} function rst() { var sid,sn; for(sid=0;sid>0)+(sn%10); } } function fsubmit(f) { if(sd['mas']>0) { var s, bid, sid; for(bid=0;bid"); w("Set Stations:
"); w("(Maximum name length is "+sd['snlen']+" letters).

"); var sid,sn,bid,s; w("
"); w("" + (sd['mas']>0?"":"") + ""); for(sid=0;sid>3; s=sid%8; w(""); if (sid+1==sd['mas']) { w(""); } else { w(""); if (sid+1!=sd['mas']) { w(""); } if (sd['mas']>0) w(""); } w(""); } w("
StationNameIgnore Rain?Activate Master?
"+(sn/10>>0)+(sn%10)+"--Master--
"); //w("

Note: preface a station name with \"~\" to indicate that it is disconnected and hide it in the interface.

"); w("
Password:

"); for(bid=0;bid"); w(""); } w(""); w(""); w(""); w("");