2020-05-17 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								<!DOCTYPE html>  
						 
					
						
							
								
									
										
										
										
											2020-12-23 20:43:30 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< html  lang = "en" > < head > < meta  name = "viewport"  content = "width=500" > < meta  charset = "utf-8" > < title > DMX Settings< / title >  
						 
					
						
							
								
									
										
										
										
											2020-05-17 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								< script >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								function GCH(num) {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  d=document;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  d.getElementById('dmxchannels').innerHTML += "";
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  for (i=0;i< num ; i + + )  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    d.getElementById('dmxchannels').innerHTML += "< span  id = CH"  +  ( i + 1 )  +  " s  > Channel " + (i+1) + ": < select  name = CH"  +  ( i + 1 )  +  "  id = \"CH"  +  ( i + 1 )  +  " \ " > < option  value = 0 > Set to 0< / option > < option  value = 1 > Red< / option > < option  value = 2 > Green< / option > < option  value = 3 > Blue< / option > < option  value = 4 > White< / option > < option  value = 5 > Shutter (Brightness)< / option > < option  value = 6 > Set to 255< / option > < / select > < / span > < br  / > \n";
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								function mMap(){
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  d=document;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  numCh=document.Sf.CN.value;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  numGap=document.Sf.CG.value;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  if (parseInt(numCh)>parseInt(numGap)) {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    d.getElementById("gapwarning").style.display="block";
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  } else {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    d.getElementById("gapwarning").style.display="none";
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  for (i=0;i< 15 ; i + + )  { 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    if (i>=numCh) {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      d.getElementById("CH"+(i+1) + "s").style.opacity = "0.5";
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      d.getElementById("CH"+(i+1)).disabled = true;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    } else {
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      d.getElementById("CH"+(i+1) + "s").style.opacity = "1";
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								      d.getElementById("CH"+(i+1)).disabled = false;
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								function S(){GCH(15);GetV();mMap();}function H(){window.open("https://github.com/Aircoookie/WLED/wiki/DMX");}function B(){window.history.back();}
							 
						 
					
						
							
								
									
										
										
										
											2020-05-17 18:59:00 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								function GetV(){}
							 
						 
					
						
							
								
									
										
										
										
											2020-05-17 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								< / script >  
						 
					
						
							
								
									
										
										
										
											2020-08-03 16:37:25 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< style >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
									@import url("style.css");
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< / style >  
						 
					
						
							
								
									
										
										
										
											2020-05-17 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								< / head >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< body  onload = "S()" >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< form  id = "form_s"  name = "Sf"  method = "post" >  
						 
					
						
							
								
									
										
										
										
											2021-03-05 08:50:59 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< div  class = "toprow" >  
						 
					
						
							
								
									
										
										
										
											2020-05-17 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								< div  class = "helpB" > < button  type = "button"  onclick = "H()" > ?< / button > < / div >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< button  type = "button"  onclick = "B()" > Back< / button > < button  type = "submit" > Save< / button > < hr >  
						 
					
						
							
								
									
										
										
										
											2021-03-05 08:50:59 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< / div >  
						 
					
						
							
								
									
										
										
										
											2020-05-17 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								< h2 > Imma firin ma lazer (if it has DMX support)< / h2 > <!--  TODO: Change to something less - meme - related // -->  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Proxy Universe < input  name = PU  type = number  min = 0  max = 63999  required >  from E1.31 to DMX (0=disabled)< br > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< i > This will disable the LED data output to DMX configurable below< / i > < br > < br >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< i > Number of fixtures is taken from LED config page< / i > < br >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Channels per fixture (15 max): < input  type = "number"  min = "1"  max = "15"  name = "CN"  maxlength = "2"  onchange = "mMap();" > < br  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Start channel: < input  type = "number"  min = "1"  max = "512"  name = "CS"  maxlength = "2" > < br  / > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								Spacing between start channels: < input  type = "number"  min = "1"  max = "512"  name = "CG"  maxlength = "2"  onchange = "mMap();" >  [ < a  href = "javascript:alert('if set to 10, first fixture will start at 10,\nsecond will start at 20 etc.\nRegardless of the channel count.\nMakes memorizing channel numbers easier.');" > info< / a >  ]< br > 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< div  id = "gapwarning"  style = "color: orange; display: none;" > WARNING: Channel gap is lower than channels per fixture.< br  / > This will cause overlap.< / div >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< button  type = "button"  onclick = "location.href='/dmxmap';" > DMX Map< / button > < br >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								DMX fixtures start LED: < input  type = "number"  min = "0"  max = "1500"  name = "SL" > 
							 
						 
					
						
							
								
									
										
										
										
											2020-08-03 16:37:25 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< h3 > Channel functions< / h3 >  
						 
					
						
							
								
									
										
										
										
											2020-05-17 18:09:39 +00:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								< div  id = "dmxchannels" > < / div >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< hr > < button  type = "button"  onclick = "B()" > Back< / button > < button  type = "submit" > Save< / button >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< / form >  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								< / body >  
						 
					
						
							
								
									
										
										
										
											2020-08-03 16:37:25 +00:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								< / html >