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.

Web gui for web server

If you have a question or need help, this is the place to be.
Post Reply
User avatar
sebnil
Posts: 8
Joined: Sun Sep 27, 2009 12:13 pm
Location: Gothenburg, Sweden
Contact:

Web gui for web server

Post by sebnil »

I was searching for a web gui for Eventghost but could not find anything decent. I made my own and perhaps others will find it useful:
http://sebastiannilsson.com/open-source ... st-web-gui

Modify the html to suit your needs. It uses an ajax function for sending events and you specify your events in the title attribute for every div.

It is built with jQuery Mobile so it should work fine on most mobile devices including Iphone and Ipad. I tested it on an android phone and it worked quite good.
__________________
sebastiannilsson.com
treplex.se
User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: Web gui for web server

Post by Livin »

looks really nice!

Can you build in a function to auto create buttons based on Macros that exist?
... the function would look at each macro in EG and create a button for it if specific conditions exist.
... those conditions could be something like the way the way the event is named, maybe having a "-web" on the end, or a comment object in the macro, etc.

do you think it is doable?
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
User avatar
sebnil
Posts: 8
Joined: Sun Sep 27, 2009 12:13 pm
Location: Gothenburg, Sweden
Contact:

Re: Web gui for web server

Post by sebnil »

Livin wrote:looks really nice!

Can you build in a function to auto create buttons based on Macros that exist?
... the function would look at each macro in EG and create a button for it if specific conditions exist.
... those conditions could be something like the way the way the event is named, maybe having a "-web" on the end, or a comment object in the macro, etc.

do you think it is doable?
It is doable but not something I will invest time in right now. I chosed this solution because it is easy to style and build more complicated interfaces with html. I think this is difficult to automate, but it is doable.
__________________
sebastiannilsson.com
treplex.se
User avatar
sebnil
Posts: 8
Joined: Sun Sep 27, 2009 12:13 pm
Location: Gothenburg, Sweden
Contact:

Re: Web gui for web server

Post by sebnil »

I have added some support for sliders and two examples for volumebar and lightcontrol. It uses the dynamic webserver to update variables. Take a look at:
http://sebastiannilsson.com/open-source ... -and-light

It allows you to set volume and light dimmers directly.
__________________
sebastiannilsson.com
treplex.se
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Web gui for web server

Post by krambriw »

Hi Sebastian,
I would wish it worked also with a normal browser from Windows. I see a nice way to modernise my existing layout.

With IE, only the text is shown, with Firefox it looks ok but only the sliders generate events in EG

Any hint if it is supposed to work an I'm doing something wrong?

Best regards, Walter
User avatar
sebnil
Posts: 8
Joined: Sun Sep 27, 2009 12:13 pm
Location: Gothenburg, Sweden
Contact:

Re: Web gui for web server

Post by sebnil »

krambriw wrote:Hi Sebastian,
I would wish it worked also with a normal browser from Windows. I see a nice way to modernise my existing layout.

With IE, only the text is shown, with Firefox it looks ok but only the sliders generate events in EG

Any hint if it is supposed to work an I'm doing something wrong?

Best regards, Walter
jQuery Mobile does not work in IE. I have tested it in firefox, chrome and android browser. Every button should generate an event and I do not know why it doesn't work for you. Test it in the latest version of Chrome or Safari.
__________________
sebastiannilsson.com
treplex.se
krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: Web gui for web server

Post by krambriw »

OK, thanks, Chrome works fine, I think there are some issues with firefox but nevermind
m19brandon
Experienced User
Posts: 177
Joined: Mon Feb 03, 2014 10:36 pm

Re: Web gui for web server

Post by m19brandon »

This is great, thanks for all the hard work.
Post Reply