'Inteligenty' dom ze sterownikiem PLC

 Language:
Szukanie zaawansowane  

Aktualności:

Powrót do strony głównej: www.edom-plc.pl

Pokaż wiadomości

Ta sekcja pozwala Ci zobaczyć wszystkie wiadomości wysłane przez tego użytkownika. Zwróć uwagę, że możesz widzieć tylko wiadomości wysłane w działach do których masz aktualnie dostęp.

Wiadomości - janus

Strony: [1]
1
Sterowanie i Wizualizacje / Odp: Sterowanie przez komórke
« dnia: Maja 21, 2016, 09:09:01 pm »
Thank you very much, you make my day  :)

It is working again with the zip file.

2
Sterowanie i Wizualizacje / Odp: Sterowanie przez komórke
« dnia: Maja 21, 2016, 07:55:56 pm »
Hi I'm looking for the link to the files

The are not in the download files where you point to.

4
Sterowanie i Wizualizacje / Odp: Sterowanie przez komórke
« dnia: Stycznia 14, 2012, 12:10:59 am »
Update,
Now with  Google Gaugemeters and a slider.



For safety, only button "licht zwembad" and the slider are working  :wink:
http://www.jan-karina.be/piotr/index_gauge.html

Ps, There are some browser issues, in IE before version 9 the meters are not working.

5
Sterowanie i Wizualizacje / Odp: Sterowanie przez komórke
« dnia: Stycznia 14, 2012, 12:06:13 am »
Sorry Andreas, I mist your post, to bussy with my own project  ;D

But why are you not just using the php we I use??
<?php
IF  ($_REQUEST['TYPE']=='READPI') {
   
$url "http://www.mysite.com/READPI?ADR=" $_REQUEST['ADR'] . "&FORMAT=" $_REQUEST['FORMAT'] ;
};

IF  (
$_REQUEST['TYPE']=='WRITEPI') {
   
$url "http://www.mysite.com/WRITEPI?ADR1=" $_REQUEST['ADR1'] . "&VALUE1=" $_REQUEST['VALUE1'] . "&FORMAT1=" $_REQUEST['FORMAT1']  ;
};
$handle fopen($url,"r") ;
$contents stream_get_contents($handle) ;
fclose($handle) ;
echo 
$contents;
?>

6
Sterowanie i Wizualizacje / Odp: Sterowanie przez komórke
« dnia: Stycznia 05, 2012, 08:32:10 pm »
And Andreas,

Do you make any progress?

7
Sterowanie i Wizualizacje / Odp: Sterowanie przez komórke
« dnia: Stycznia 03, 2012, 10:48:44 pm »
Try to uncheck your webserver security

8
Sterowanie i Wizualizacje / Odp: Sterowanie przez komórke
« dnia: Grudnia 29, 2011, 10:11:24 am »
So my site is almost ready.
You can see en test here: http://www.jan-karina.be/piotr/index_pc.html
The 2 buttons on the left "licht zembad" and "pomp zwembad" are test buttons to to write and read.
I'm only hope for a button to write a certain value in the plc.
I need that as a thermostat to start my heating system.
eg. 21 will be 21° in the living.

9
Programowanie / My Program
« dnia: Grudnia 18, 2011, 12:04:41 pm »
Here is a list of things that I've made ​​in my program:

Send e-mails when problems with temperature, heating, poolpump, rain, or AC power. (WagoLIBMAIL)
Reading Yahoo Weather to control garden watering  (Oscatnetwork.lib112)
Control the lights outside (sunset and sunrise) (Oscat_basic.lib332)
Controlling the temp. in house end steer the heathing.
Control if the heating starts (check temp. after 5 minutes)
Steering the poolpump depending of temp. poolwater.
Counting workhours of poolpomp.




10
Sterowanie i Wizualizacje / Odp: Sterowanie przez komórke
« dnia: Grudnia 11, 2011, 01:10:13 pm »
So after one week of testing  ??? someone give me the solution  ;D
Instead of getting data direct from the plc $. posten ('http://www.mysite. com: 8080/READPI ', Ik get it from a PHP page > $.ajax({
type: 'GET',
url: "http://www.mysite.com/wago.php",
data: {ADR: $(this).data('address'), FORMAT1: "%d"},
ajaxParent: $(this),
success: function(data){
this.ajaxParent.append(data)

And on this page I put this code > <?php
$url 
"http://www.mysite. com: 8080/READPI?ADR=" $_REQUEST['ADR'] . "&FORMAT1=" $_REQUEST['FORMAT1'] ;

$handle fopen($url,"r") ;
$contents stream_get_contents($handle) ;
fclose($handle) ;
echo 
$contents;
?>

That was the trick for me, hopefully  it is also usefull for someone else.

11
Sterowanie i Wizualizacje / Odp: Sterowanie przez komórke
« dnia: Grudnia 02, 2011, 06:46:56 am »
I do hope there is no risk of somebody hacking you site when now you have the address posted publicly
Normaly the PLC is protected  ;D

I tryed your file on my desktop but it is not working???

12
Sterowanie i Wizualizacje / Odp: Sterowanie przez komórke
« dnia: Grudnia 01, 2011, 10:06:46 pm »
Can I ask if you want to take a look at it?
This is the website.
http://www.jan-karina.be/android/Test_pool.html

And here is mij PLC:

http://jan-karina.dlinkddns.com:8080/plc/webvisu.htm

13
Sterowanie i Wizualizacje / Odp: Sterowanie przez komórke
« dnia: Grudnia 01, 2011, 11:01:42 am »
Hi, I refresh some variables with a javascript
<script language="JavaScript">
var int=self.setInterval("varupdate()",1000);
function varupdate()
{
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.open("GET","tag_list.XML",false);
xmlhttp.send();
xmlDoc=xmlhttp.responseXML;
document.getElementById("MW0").innerHTML="Datum en tijd van PLC (UTC): " + xmlDoc.getElementsByTagName("var1")[0].childNodes[0].nodeValue;
document.getElementById("MW1").innerHTML= xmlDoc.getElementsByTagName("var2")[0].childNodes[0].nodeValue;
}
   </script>

So I don't refresh the whole page.
But I think your Ajax is better.
I dit try it but it does not work??

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$('#Button1').click(function() {
$.post('http://www.mysite.com:8080/READPI',
{ADR: 'QX6.0', FORMAT1: '%d'},
function(data){$('#Result').append(data);
}
);
});
});
</script>
</Head>
<body>
<Div id ="Button1" > Kilknij mij! </div>
<Div id ='Result'></div>
</Body>
</Html>

14
Sterowanie i Wizualizacje / Odp: Sterowanie przez komórke
« dnia: Listopada 30, 2011, 08:07:00 pm »
I forgot my url  ;D
http://www.jan-karina.be/android/wago_test2.html

For Android Windows and Iphone

15
Sterowanie i Wizualizacje / Odp: Sterowanie przez komórke
« dnia: Listopada 30, 2011, 12:50:00 pm »
Hi,

I hope you speak English, because I dont speak Polish.
I translate everyting with Google translate.
I found your video on You tube very interesting.
Iworking on a simulair project:
http://www.youtube.com/watch?v=3tYHzOOuLBA

But I placed de HTML and Java code in the plc and jou on a other website I think?
I work with this princip from Wago:
http://www.youtube.com/watch?v=PdAKm0_YiRs
http://www.youtube.com/watch?v=IzarLfoPwLg

I can give the code, from my and from Wago.

regards Janus from Spain


Strony: [1]