Search found 320 matches

by kkl
Fri Dec 30, 2016 10:21 pm
Forum: General Support
Topic: How to generate event from HTML dropdown select list?
Replies: 13
Views: 3361

Re: How to generate event from HTML dropdown select list?

Sorry, I was referencing my earlier comment that I automatically refresh the page with <meta http-equiv="refresh" content="5">. I don't have a clue how to setup a websocket connection to do this.
by kkl
Fri Dec 30, 2016 7:55 pm
Forum: General Support
Topic: How to generate event from HTML dropdown select list?
Replies: 13
Views: 3361

Re: How to generate event from HTML dropdown select list?

I really appreciate the help. That code works great. Because the page is set to refresh, once an item is selected, the event keeps getting generated. Any idea how to resolve that? I'm just trying to do a quick and dirty for my own use. Edit: The repeat appears to be because the page changes from *.h...
by kkl
Fri Dec 30, 2016 7:15 pm
Forum: General Support
Topic: How to generate event from HTML dropdown select list?
Replies: 13
Views: 3361

Re: How to generate event from HTML dropdown select list?

That code is progress. Now when I select an item, I get a popup that says, <Webserver> says: 68 , but no EG event. I would normally have a link like this, "<a href="commands.html?Test1">This is Test1</a>". When the link is selected, I would get an EG event like HTTP.Test1[]. That's what I'm looking ...
by kkl
Fri Dec 30, 2016 6:18 pm
Forum: General Support
Topic: How to generate event from HTML dropdown select list?
Replies: 13
Views: 3361

Re: How to generate event from HTML dropdown select list?

The problem for me is that javascript might as well be Swahili, without google translate. I did find an example of basic HTML that works, as adapted: <form method="get" action="status.html" name="Adjust Temp"> <select onchange="window.location.href=this.value;"> <option disabled="disabled" selected=...
by kkl
Fri Dec 30, 2016 5:21 am
Forum: General Support
Topic: How to generate event from HTML dropdown select list?
Replies: 13
Views: 3361

Re: How to generate event from HTML dropdown select list?

Thanks for trying to help, but I must be too dense. I still couldn't get it too work. <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> <title>select6</title> <script> function onSelectFunction() { var value = document.getElementById("setTemp").value; "your get r...
by kkl
Thu Dec 29, 2016 11:06 pm
Forum: General Support
Topic: How to generate event from HTML dropdown select list?
Replies: 13
Views: 3361

How to generate event from HTML dropdown select list?

This seems like a basic question, but I couldn't find an example. On a webserver plugin html page, how do you generate an event from a dropdown select list? Here's what I have so far: <form method="get" action="selecttemp.html" name="Adjust Temp"> <select name="Adjust"> <option value="65">65</option...
by kkl
Sat Dec 24, 2016 5:51 pm
Forum: General Support
Topic: Amazon Echo Skill EchoToEventGhost
Replies: 153
Views: 77890

Re: Amazon Echo Skill EchoToEventGhost

I don't know of a built-in function for doing this, but I believe that using the utilities Devcon or Devmanview might do what you want. Discussed briefly in this thread.
by kkl
Fri Dec 23, 2016 12:15 am
Forum: Coding Corner
Topic: Update Namespace unavailable in PyCrust
Replies: 52
Views: 13763

Re: Update Namespace unavailable in PyCrust

kgschlosser, In the second post, you mentioned displaying all of the data from eg.globals.__dict__. I just started looking for that info and realized that only a few of the variables I set have values, but 'eg' has 'NO DATA'. Capture11.JPG There are no system variables available (all of that stuff i...
by kkl
Mon Dec 19, 2016 9:09 pm
Forum: Plugin Support
Topic: AudioEndpoint
Replies: 108
Views: 42767

Re: AudioEndpoint

Another thing: I applied the suggested lib changes by jonib two posts above in the attached test version. Can please somebody test it with EG 0.4 and let me know if it works? (I would have to downgrade EG to test it...) Thank you! Hi Sem;colon, Just tried it out with 0.4.1.r1722. Tried a few action...
by kkl
Sat Dec 17, 2016 4:16 pm
Forum: Coding Corner
Topic: Update Namespace unavailable in PyCrust
Replies: 52
Views: 13763

Re: Update Namespace unavailable in PyCrust

Do you know how far we are away from a 0.5 non-beta release? If it's soon, the 0.4 effort may not be worth it.
by kkl
Sat Dec 17, 2016 4:51 am
Forum: Coding Corner
Topic: Update Namespace unavailable in PyCrust
Replies: 52
Views: 13763

Re: Update Namespace unavailable in PyCrust

The right-click context is the problem one.

I'm happy that you're working on this useful addition to EG. Hopefully others will appreciate it.
by kkl
Sat Dec 17, 2016 1:49 am
Forum: Coding Corner
Topic: Update Namespace unavailable in PyCrust
Replies: 52
Views: 13763

Re: Update Namespace unavailable in PyCrust

ok it's to be expected. Good to know. but the last issue is gone i hope?? The hang on exit seems to be gone (yea). But if I open Show Variable List, then choose Change Value, a window briefly opens for the value to be changed, but it quickly disappears because the most recent non-EG foreground wind...
by kkl
Fri Dec 16, 2016 8:25 pm
Forum: Coding Corner
Topic: Update Namespace unavailable in PyCrust
Replies: 52
Views: 13763

Re: Update Namespace unavailable in PyCrust

So close! I am getting a traceback error though: Capture10.JPG A reproducible sequence is: 1. After EG starts, open Show Variable List 2. Close Show Variable List panel (X) 3. Try to open Show Variable List again 4. Traceback error Same pattern if using Show Nested Attributes instead of Show Variabl...
by kkl
Fri Dec 16, 2016 6:13 am
Forum: General Support
Topic: DeviceRemoved & deviceAttached twice in a row, hoses Macro
Replies: 7
Views: 3050

Re: DeviceRemoved & deviceAttached twice in a row, hoses Mac

I think you could also do it without a python script. Notionally, something like this:

<My Macro>
Event/Trigger
Disable <My Macro>
Perform desired actions
Wait some amount of time for duplicate events to finish (if necessary)
Enable <My Macro>
by kkl
Fri Dec 16, 2016 6:02 am
Forum: General Support
Topic: DeviceRemoved & deviceAttached twice in a row, hoses Macro
Replies: 7
Views: 3050

Re: DeviceRemoved & deviceAttached twice in a row, hoses Mac

Pako previously described a method to ignore duplicate events in this thread.