Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.
Websocket suite
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Websocket suite
Hello Pako,
No, websuite is completly independent from websocket, I just had them in the tree for convinient testing only.
Good news: Virtual House works now with Chrome and BH!!!!!
I'm not really sure what helped solving things....
Best regards, Walter
No, websuite is completly independent from websocket, I just had them in the tree for convinient testing only.
Good news: Virtual House works now with Chrome and BH!!!!!
I'm not really sure what helped solving things....
Best regards, Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Websocket suite
Hello Walter,krambriw wrote: No, websuite is completly independent from websocket, I just had them in the tree for convinient testing only.
Good news: Virtual House works now with Chrome and BH!!!!!
I'm glad to hear that. And as you will with that a little more familiar, I hope you write your experience here.
Best regards, Pako
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Websocket suite
Dear Pako,
I have some more news I think you will be happy to hear:
If you change the lines 2770 and 2771 to the following (small difference, major impact, took a while to debug...)
Also Opera will work!!! And older versions of Firefox (I tried with version 5)
So the results from my testing are:
Chrome OK
BH OK
Opera OK
Firefox 5 OK
and Opera on my Nokia symbian phone OK
Firefox newest beta NOK, I think they have disabled websockets, I tried to enable but it doesn't help
My very best regards, Walter
Correction: This morning I also managed to make newer versions of Firefox to work. You have to change in your html file where you create the websocket object (use MozWebSocket instead of WebSocket) :
I have some more news I think you will be happy to hear:
If you change the lines 2770 and 2771 to the following (small difference, major impact, took a while to debug...)
Code: Select all
"HTTP/1.1 101 WebSocket Protocol Handshake",
"Upgrade: WebSocket",
So the results from my testing are:
Chrome OK
BH OK
Opera OK
Firefox 5 OK
and Opera on my Nokia symbian phone OK
Firefox newest beta NOK, I think they have disabled websockets, I tried to enable but it doesn't help
My very best regards, Walter
Correction: This morning I also managed to make newer versions of Firefox to work. You have to change in your html file where you create the websocket object (use MozWebSocket instead of WebSocket) :
Code: Select all
var mySocket = new MozWebSocket("http://www.example.com/socketserver");My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Websocket suite
Dear Pako,
I have now completely re-built my configuration for my Home Automation using your WebSocketSuite. I am not using your Virtual House, I have instead real hardware and I have designed my own html-files.
Everything works just perfect, completely excellent!
Multiple number of browsers connected at the same time, all are getting updates immediately when there is a status change:
On my different PC:s
- Firefox ver 5 and beta ver 8
- Opera ver 11.52
- Chrome ver 14
- Black Hawk ver 1.0.505
On my Nokia E51 Symbian
- Opera
Best regards, Walter
I have now completely re-built my configuration for my Home Automation using your WebSocketSuite. I am not using your Virtual House, I have instead real hardware and I have designed my own html-files.
Everything works just perfect, completely excellent!
Multiple number of browsers connected at the same time, all are getting updates immediately when there is a status change:
On my different PC:s
- Firefox ver 5 and beta ver 8
- Opera ver 11.52
- Chrome ver 14
- Black Hawk ver 1.0.505
On my Nokia E51 Symbian
- Opera
Best regards, Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Websocket suite
Dear Walter!
Thank you for the enhancement plugin!
However, it is obvious that my html client is now optimized for Chrome or BH:
To use any browser or less (regardless of optimization problem), you need to edit html client as follows:
Virtual House, I really only created for the purpose of demonstrating. But it fulfilled its task and I hope maybe it will ever come in handy for something.
Pako
Great!krambriw wrote:If you change the lines 2770 and 2771 to the following (small difference, major impact, took a while to debug...)
Thank you for the enhancement plugin!
However, it is obvious that my html client is now optimized for Chrome or BH:
Thank you also for this important information.krambriw wrote:This morning I also managed to make newer versions of Firefox to work. You have to change in your html file where you create the websocket object (use MozWebSocket instead of WebSocket) :Code: Select all
var mySocket = new MozWebSocket("http://www.example.com/socketserver");
To use any browser or less (regardless of optimization problem), you need to edit html client as follows:
Code: Select all
if ((navigator.userAgent.indexOf("Firefox"))!=-1) {ws = new MozWebSocket("ws://localhost:1234");}
else {ws = new WebSocket("ws://localhost:1234");} This very glad to hear it! Use with real hardware, I naturally assumed.krambriw wrote:I have now completely re-built my configuration for my Home Automation using your WebSocketSuite. I am not using your Virtual House, I have instead real hardware and I have designed my own html-files.
Everything works just perfect, completely excellent!
Virtual House, I really only created for the purpose of demonstrating. But it fulfilled its task and I hope maybe it will ever come in handy for something.
Pako
Re: Websocket suite
Walter,
What does your Home Automation setup (HW & SW) consist of?
I've been wanting to seriously exploring Home Automation with EG but I still find it lacking functionality needed to control Z-Wave and Insteon devices directly (even though I think there are Python libraries for them).
What does your Home Automation setup (HW & SW) consist of?
I've been wanting to seriously exploring Home Automation with EG but I still find it lacking functionality needed to control Z-Wave and Insteon devices directly (even though I think there are Python libraries for them).
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Websocket suite
Hi Livin,
I have not that sophisticated solutions, they are mainly in the following areas:
- outdoor lighting control (event and state driven, like people approaching entrance, sunrise, sunset, different schemas for different weekdays)
- indoor lighting control (event and state driven, scheduled)
- electric power consuming devices (scheduled)
For this I use RF devices, similar to X10 but those types with learning code (means more unique code alternatives)
Various number of transceivers (RFXCOM, Telldus, Home-build variants)
The other area is within data collection and measuring of temperature and relative humidity. Here I have a number of devices (mostly Oregon) where I measure the temp and RH in the ground, in the attic and in some other places inside and outside of the house. For the ground and attic, I let eg calculate the actual delta to the dew point (critical to avoid to high humidity there) and to save historical data in log files.
On my wish list is also z-wave or zigg-bee
I also have full control of my squeezebox network with 4 squeezebox boom's via eg (one 2.4 GHz rf remote that controls the music in my house) as well as certain events do something with the audio.
Best regards, Walter
I have not that sophisticated solutions, they are mainly in the following areas:
- outdoor lighting control (event and state driven, like people approaching entrance, sunrise, sunset, different schemas for different weekdays)
- indoor lighting control (event and state driven, scheduled)
- electric power consuming devices (scheduled)
For this I use RF devices, similar to X10 but those types with learning code (means more unique code alternatives)
Various number of transceivers (RFXCOM, Telldus, Home-build variants)
The other area is within data collection and measuring of temperature and relative humidity. Here I have a number of devices (mostly Oregon) where I measure the temp and RH in the ground, in the attic and in some other places inside and outside of the house. For the ground and attic, I let eg calculate the actual delta to the dew point (critical to avoid to high humidity there) and to save historical data in log files.
On my wish list is also z-wave or zigg-bee
I also have full control of my squeezebox network with 4 squeezebox boom's via eg (one 2.4 GHz rf remote that controls the music in my house) as well as certain events do something with the audio.
Best regards, Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Websocket suite
Hi !
I am fresh owner of Android tablet (yes, Christmas ...).
I of course tried to see if there WebSocket works.
And I have good news - it works!
For now, only with Mozilla Firefox Beta (version 10.0).
But it looks very promising. It is clear that the page must be optimized for the tablets,
but even without any modification I could comfortably control my test application (Virtual House).
Merry Christmas all!
Pako
I am fresh owner of Android tablet (yes, Christmas ...).
I of course tried to see if there WebSocket works.
And I have good news - it works!
For now, only with Mozilla Firefox Beta (version 10.0).
But it looks very promising. It is clear that the page must be optimized for the tablets,
but even without any modification I could comfortably control my test application (Virtual House).
Merry Christmas all!
Pako
Re: Websocket suite
awesome news... I just started using FF10 beta (on PC) - works fine so far.
If a developer takes up the cause and makes the UI something easily usable for non-coders, we could have something pretty cool for control interface
If a developer takes up the cause and makes the UI something easily usable for non-coders, we could have something pretty cool for control interface
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Websocket suite
Hi there,
I also tried with an Android tablet. I opened some ports in my FireWall, went to a shop, grabbed a Samsung Galaxy 10.1.
First trial with the built in web browser did not support websockets. So I downloaded Opera Mobile, made a modification in the settings (basically enabled websockets) and then it worked great. I could control my EvenGhost at home and the feedback and responsivness provided by the websocket suite was instant, really nice.
I also went along and grabbed an iPad2 and there websockets worked right away with the built in browser.
Back home I disabled the ports in the fw again, happy with the testing.
I agree with you, if there was a good tool available to create nice looking pages with good looking buttons and symbols, this would be really something. In my case, a good tool for making web pages suited for tablets would be enough.
The attached pictures shows my current pages (working fine on a laptop using the mouse) but they are no candidates for a beauty contest, I really would like o make something nicer for the tablet.
Sorry for the Swedish text in there but it gives you the idea what I tried to accomplish.
Merry Christmas to all, Walter
I also tried with an Android tablet. I opened some ports in my FireWall, went to a shop, grabbed a Samsung Galaxy 10.1.
First trial with the built in web browser did not support websockets. So I downloaded Opera Mobile, made a modification in the settings (basically enabled websockets) and then it worked great. I could control my EvenGhost at home and the feedback and responsivness provided by the websocket suite was instant, really nice.
I also went along and grabbed an iPad2 and there websockets worked right away with the built in browser.
Back home I disabled the ports in the fw again, happy with the testing.
I agree with you, if there was a good tool available to create nice looking pages with good looking buttons and symbols, this would be really something. In my case, a good tool for making web pages suited for tablets would be enough.
The attached pictures shows my current pages (working fine on a laptop using the mouse) but they are no candidates for a beauty contest, I really would like o make something nicer for the tablet.
Sorry for the Swedish text in there but it gives you the idea what I tried to accomplish.
Merry Christmas to all, Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Websocket suite
Hi Walter !
I also tried Opera Mobile (and Opera Mini).
But I could not find a way to enable WebSocket.
I think it will be mainly because I am an absolute beginner with Android. Can you please advise me how I can do it?
BTW - I own this tablet. Samsung Galaxy is too expensive for me.
Best regards, Pako
It interests me.krambriw wrote:So I downloaded Opera Mobile, made a modification in the settings (basically enabled websockets) and then it worked great. I could control my EvenGhost at home and the feedback and responsivness provided by the websocket suite was instant, really nice.
I also tried Opera Mobile (and Opera Mini).
But I could not find a way to enable WebSocket.
I think it will be mainly because I am an absolute beginner with Android. Can you please advise me how I can do it?
BTW - I own this tablet. Samsung Galaxy is too expensive for me.
Best regards, Pako
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Websocket suite
Hi Pako!
I agree, is too expensive, I just tried them in a shop (without buying them)
I enabled websockets in Opera like this:
1.Open Opera browser, type or paste opera:config#Enable%20WebSockets in the address bar and press enter.
2.Select or tick mark against ÔÇ£Enable WebSocketsÔÇØ under User Prefs .
3.Click Save button and restart Opera browser.
Then it worked for me,
Best regards, Walter
I agree, is too expensive, I just tried them in a shop (without buying them)
I enabled websockets in Opera like this:
1.Open Opera browser, type or paste opera:config#Enable%20WebSockets in the address bar and press enter.
2.Select or tick mark against ÔÇ£Enable WebSocketsÔÇØ under User Prefs .
3.Click Save button and restart Opera browser.
Then it worked for me,
Best regards, Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Websocket suite
Hi Pako,
Did you make it work with Opera?
Best regards & Happy New Year,
Walter
Did you make it work with Opera?
Best regards & Happy New Year,
Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM
- Pako
- Plugin Developer
- Posts: 2294
- Joined: Sat Nov 11, 2006 1:31 pm
- Location: Czech Republic
- Contact:
Re: Websocket suite
Hi Walter!
I simply forgot. I had already had found exactly the same instructions here.
At least additionally I thank you for your advice. Yes, it works.
So now we have two browsers for Android that support WebSocket.
Best regards & Happy New Year,
Pako
Sorry that I have not replied to your post in which you advised me.krambriw wrote:Hi Pako,
Did you make it work with Opera?
I simply forgot. I had already had found exactly the same instructions here.
At least additionally I thank you for your advice. Yes, it works.
So now we have two browsers for Android that support WebSocket.
Best regards & Happy New Year,
Pako
-
krambriw
- Plugin Developer
- Posts: 2570
- Joined: Sat Jun 30, 2007 2:51 pm
- Location: Stockholm, Sweden
- Contact:
Re: Websocket suite
Dear Pako,
I have spent many hours in the last days to support a new user to start using the Websocket Suite (using only the basic features, running one server). After a long time I made a comparison check with the (modified) version I use and I saw that your latest version is not updated with the changes I reported earlier. Without these changes, websockets will not work, the web browser authorization will fail, at least for the most recent versions of web browsers.
Can you please update your latest version (at line 2770 and 2771) with the following correctly working code:
If you change the lines 2770 and 2771 to the following (small difference, major impact, took a while to debug...)
Best regards & thanks, the plugin works otherwise excellent since I made the changes above,
Walter
I have spent many hours in the last days to support a new user to start using the Websocket Suite (using only the basic features, running one server). After a long time I made a comparison check with the (modified) version I use and I saw that your latest version is not updated with the changes I reported earlier. Without these changes, websockets will not work, the web browser authorization will fail, at least for the most recent versions of web browsers.
Can you please update your latest version (at line 2770 and 2771) with the following correctly working code:
If you change the lines 2770 and 2771 to the following (small difference, major impact, took a while to debug...)
Code: Select all
"HTTP/1.1 101 WebSocket Protocol Handshake",
"Upgrade: WebSocket",
Walter
My released plugins
https://drive.google.com/drive/folders/ ... y01eVBKeHM
https://drive.google.com/drive/folders/ ... y01eVBKeHM