This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Listen to bus on website
#21
(05.01.2017, 11:24)admin Wrote: Which device do you need the FW for? MySQL will work, but you will have to re-install the packages, because custom packages are not kept during FW upgrade.

For Logic Machine 3 Reactor please, this one  Smile Great, will try to get everything up and running!
Reply
#22
Websocket running beta firmware works perfectly, I'm using the following two functions a lot on my intranet


Code:
// listen to a single object
localbus.listen('object', '1/1/1', function(value) {

____________________

localbus.write('1/1/1', true);

and it is very quick, more reliable and easier to maintain than long polling. I am VERY HAPPY with this new solution. Thank you admin for providing me with the beta firmware, very much appreciated!!!


I haven't had time to look into the below code, seems it returns an object, e.g. array.


Quote:  // listen to all groupwrite telegrams
  localbus.listen('groupwrite', function(event) {
    console.log(event);
  });

I haven't found any issue with the beta firmware up to now, the update process worked perfectly without erasing scripts or any other settings (Router, NTP, etc.). All of my scripts (event based, resident, scheduled) still work as before.

We are using the following EnOcean device
http://nodon.fr/enocean/the-soft-remote-...s-pile_2-1
to control lights and shutters and it seems to me that with the new beta firmware the device commands are executed much more reliably. We used to need to click mutiple times before a command like "all lights off" was executed. Now it only takes one click. Could be that this is pure coincidence, maybe admin can tell us if there were changes to the EnOcean code. On a side note, since my Logic Machine sits in the cellar, the antenna is not in a optimal position.

Again thanks to openrb for providing me with the beta firmware so quickly, keep up the great work! LOVE the Logic Machine!
Robin
Reply
#23
EnOcean plugin has been optimized to react more quickly to both KNX and radio telegrams.
Reply
#24
(08.01.2017, 11:02)admin Wrote: EnOcean plugin has been optimized to react more quickly to both KNX and radio telegrams.

That definitely works Smile There is no more delay when clicking on my device, instant reaction of the LM!
Reply
#25
There's no need to modify localbus, you can pass "username:password" as a second argument to locabus.init. Remote user does not have access to localbus, you can create a normal user without access rights and it should work.
Reply
#26
Hi I'm trying this one in bellow 
Code:
<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <script src="http://192.168.11.159/apps/js/jquery.js.gz"></script>
  <script src="http://192.168.11.159/apps/js/localbus.js.gz"></script>
  <script src="http://192.168.11.159/scada/vis/busdecode.js.gz"></script>
</head>
<body>
<script>
$(function() {
  // listen to all groupwrite telegrams
  localbus.listen('groupwrite', function(event) {
    console.log(event);
  });

  // listen to a single object
  localbus.listen('object', '1/1/1', function(value) {
    console.log(value);
  });

  localbus.init('http://192.168.11.159', 'admin:admin');
});
</script>
</body>
</html>
when I checked the console in the browser i found the error  attached, what am i missing  Huh

Attached Files Thumbnail(s)
   
Reply
#27
You can set up to 4 allowed CORS hosts (your PC IP) in System config > Services > HTTP server.
Reply
#28
(08.09.2023, 12:38)admin Wrote: You can set up to 4 allowed CORS hosts (your PC IP) in System config > Services > HTTP server.

It's there

Attached Files Thumbnail(s)
   
Reply


Forum Jump: