How to use a KMTronic Ether 8 relay interface
-
- Posts: 8
- Joined: Sat May 10, 2014 8:56 pm
How to use a KMTronic Ether 8 relay interface
Hello...
I look how to use a KMTronic interface with the DemoPad.
Thanks
I look how to use a KMTronic interface with the DemoPad.
Thanks
-
- Posts: 8
- Joined: Sat May 10, 2014 8:56 pm
Re: How to use a KMTronic Ether 8 relay interface
Hello everyone....
i still not find how use DemoPad programme with KMTronic.
But i can give information about the soft in HTML use for the KMTronic
So if some body can help me, he is welcom.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>KMTronic Relays Control Web Server</title>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<link href="/rc.css" rel="stylesheet" type="text/css" />
<script src="/rc.js" type="text/javascript"></script>
</head>
<body>
<div id="shadow-one"><div id="shadow-two"><div id="shadow-three"><div id="shadow-four">
<div id="page">
<div align="left">
v.1.1</div>
<div id="menu">
<a href="/index.htm">Relay Control</a>
<a href="/protect/config.htm">Configuration</a>
<a href="/protect/auth.htm">Authorization Configuration</a>
</div>
<div id="content">
<h1> Relay Control </h1>
<div id="status">
<div id="loading" style="display:none">Error:<br />Connection to Relays Board was lost.</div>
<div id="display">
<br /><span class="relays">
<a id="relay0">•</a> </span>
<span class="but">
<p align="right"> Relay1
<button type="button" id="relay1" style="height: 45px; width: 90px" onclick="newAJAXCommand('relays.cgi?relay=1');"></button></p>
<br />
<p align="right"> Relay2
<button type="button" id="relay2" style="height: 45px; width: 90px" onclick="newAJAXCommand('relays.cgi?relay=2');"></button></p>
<br />
<p align="right"> Relay3
<button type="button" id="relay3" style="height: 45px; width: 90px" onclick="newAJAXCommand('relays.cgi?relay=3');"></button></p>
<br />
<p align="right"> Relay4
<button type="button" id="relay4" style="height: 45px; width: 90px" onclick="newAJAXCommand('relays.cgi?relay=4');"></button></p>
<br />
<p align="right"> Relay5
<button type="button" id="relay5" style="height: 45px; width: 90px" onclick="newAJAXCommand('relays.cgi?relay=5');"></button></p>
<br />
<p align="right"> Relay6
<button type="button" id="relay6" style="height: 45px; width: 90px" onclick="newAJAXCommand('relays.cgi?relay=6');"></button></p>
<br />
<p align="right"> Relay7
<button type="button" id="relay7" style="height: 45px; width: 90px" onclick="newAJAXCommand('relays.cgi?relay=7');"></button></p>
<br />
<p align="right"> Relay8
<button type="button" id="relay8" style="height: 45px; width: 90px" onclick="newAJAXCommand('relays.cgi?relay=8');"></button></p>
</span>
</div>
</div>
</div>
<script type="text/javascript">
function updateStatus(xmlData) {
var mainstat = document.getElementById('display').style.display;
var loadstat = document.getElementById('loading').style.display;
if(!xmlData)
{
mainstat = 'none';
loadstat = 'inline';
return;
}
mainstat = 'inline';
loadstat = 'none';
for(i = 0; i < 9; i++)
if(i == 0)
{
document.getElementById('relay' + i).style.color = (getXMLValue(xmlData, 'relay' + i) == '1') ? '#099' : '#ddd';
}
else
{
document.getElementById('relay' + i).style.background = (getXMLValue(xmlData, 'relay' + i) == '1') ? '#d00' : '#090';
document.getElementById('relay' + i).innerHTML = (getXMLValue(xmlData, 'relay' + i) == '1') ? "Click to switch OFF" : "Click to switch ON";
}
}
setTimeout("newAJAXCommand('status.xml', updateStatus, true)",500);
</script>
<div class="spacer"> </div>
<div id="footer" style="font-family: Verdana; font-size: 20px; color: black">© KMTronic</div>
</div></div></div></div></div>
</body>
</html>
i still not find how use DemoPad programme with KMTronic.
But i can give information about the soft in HTML use for the KMTronic
So if some body can help me, he is welcom.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>KMTronic Relays Control Web Server</title>
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE">
<META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">
<link href="/rc.css" rel="stylesheet" type="text/css" />
<script src="/rc.js" type="text/javascript"></script>
</head>
<body>
<div id="shadow-one"><div id="shadow-two"><div id="shadow-three"><div id="shadow-four">
<div id="page">
<div align="left">
v.1.1</div>
<div id="menu">
<a href="/index.htm">Relay Control</a>
<a href="/protect/config.htm">Configuration</a>
<a href="/protect/auth.htm">Authorization Configuration</a>
</div>
<div id="content">
<h1> Relay Control </h1>
<div id="status">
<div id="loading" style="display:none">Error:<br />Connection to Relays Board was lost.</div>
<div id="display">
<br /><span class="relays">
<a id="relay0">•</a> </span>
<span class="but">
<p align="right"> Relay1
<button type="button" id="relay1" style="height: 45px; width: 90px" onclick="newAJAXCommand('relays.cgi?relay=1');"></button></p>
<br />
<p align="right"> Relay2
<button type="button" id="relay2" style="height: 45px; width: 90px" onclick="newAJAXCommand('relays.cgi?relay=2');"></button></p>
<br />
<p align="right"> Relay3
<button type="button" id="relay3" style="height: 45px; width: 90px" onclick="newAJAXCommand('relays.cgi?relay=3');"></button></p>
<br />
<p align="right"> Relay4
<button type="button" id="relay4" style="height: 45px; width: 90px" onclick="newAJAXCommand('relays.cgi?relay=4');"></button></p>
<br />
<p align="right"> Relay5
<button type="button" id="relay5" style="height: 45px; width: 90px" onclick="newAJAXCommand('relays.cgi?relay=5');"></button></p>
<br />
<p align="right"> Relay6
<button type="button" id="relay6" style="height: 45px; width: 90px" onclick="newAJAXCommand('relays.cgi?relay=6');"></button></p>
<br />
<p align="right"> Relay7
<button type="button" id="relay7" style="height: 45px; width: 90px" onclick="newAJAXCommand('relays.cgi?relay=7');"></button></p>
<br />
<p align="right"> Relay8
<button type="button" id="relay8" style="height: 45px; width: 90px" onclick="newAJAXCommand('relays.cgi?relay=8');"></button></p>
</span>
</div>
</div>
</div>
<script type="text/javascript">
function updateStatus(xmlData) {
var mainstat = document.getElementById('display').style.display;
var loadstat = document.getElementById('loading').style.display;
if(!xmlData)
{
mainstat = 'none';
loadstat = 'inline';
return;
}
mainstat = 'inline';
loadstat = 'none';
for(i = 0; i < 9; i++)
if(i == 0)
{
document.getElementById('relay' + i).style.color = (getXMLValue(xmlData, 'relay' + i) == '1') ? '#099' : '#ddd';
}
else
{
document.getElementById('relay' + i).style.background = (getXMLValue(xmlData, 'relay' + i) == '1') ? '#d00' : '#090';
document.getElementById('relay' + i).innerHTML = (getXMLValue(xmlData, 'relay' + i) == '1') ? "Click to switch OFF" : "Click to switch ON";
}
}
setTimeout("newAJAXCommand('status.xml', updateStatus, true)",500);
</script>
<div class="spacer"> </div>
<div id="footer" style="font-family: Verdana; font-size: 20px; color: black">© KMTronic</div>
</div></div></div></div></div>
</body>
</html>
-
- Posts: 8
- Joined: Sat May 10, 2014 8:56 pm
Re: How to use a KMTronic Ether 8 relay interface
hello,
I create a web page to command the KMTronic modul.
When i use a Internet explorer on pc it works : http//192.168.11.19:80
I create a page in in demopad in the Ihone or Ipad2 to use this page.
I use the Web View,.... but the result is a black screen.
Where do i Mistake
Thanks
I create a web page to command the KMTronic modul.
When i use a Internet explorer on pc it works : http//192.168.11.19:80
I create a page in in demopad in the Ihone or Ipad2 to use this page.
I use the Web View,.... but the result is a black screen.
Where do i Mistake
Thanks
Re: How to use a KMTronic Ether 8 relay interface
Does it work in the Safari web browser on the iPad? And presume you are putting the :, e.g.GlobalSysteme wrote:hello,
I create a web page to command the KMTronic modul.
When i use a Internet explorer on pc it works : http//192.168.11.19:80
I create a page in in demopad in the Ihone or Ipad2 to use this page.
I use the Web View,.... but the result is a black screen.
Where do i Mistake
Thanks
http://192.168.11.19:80
-
- Posts: 8
- Joined: Sat May 10, 2014 8:56 pm
Re: How to use a KMTronic Ether 8 relay interface
hello,
yes on safarie it works good. but the safari page run out of demopad programme.
and i need to stay in demopad programme
yes on safarie it works good. but the safari page run out of demopad programme.
and i need to stay in demopad programme
-
- Posts: 8
- Joined: Sat May 10, 2014 8:56 pm
Re: How to use a KMTronic Ether 8 relay interface
Hello,...
Where can i find Web View information to use in my demopad page.
I do not find information for it.
Where can i find Web View information to use in my demopad page.
I do not find information for it.
-
- Posts: 8
- Joined: Sat May 10, 2014 8:56 pm
Re: How to use a KMTronic Ether 8 relay interface
WHY we do not have answer to find solution on forum?
is there Webmaster and technical?
Mike
is there Webmaster and technical?
Mike
Re: How to use a KMTronic Ether 8 relay interface
Have you tried contacting DemoPad technical support at [email protected] ?GlobalSysteme wrote:WHY we do not have answer to find solution on forum?
is there Webmaster and technical?
Mike