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.

webserver creates events but E.G. doesn't act on them

If you have a question or need help, this is the place to be.
Post Reply
spyderespirt0
Posts: 16
Joined: Fri Sep 14, 2012 7:52 pm

webserver creates events but E.G. doesn't act on them

Post by spyderespirt0 »

I'm using the webserver plugin to go through a code and once its finally entered right it displays door unlocked/locked. Problem is this code only works intermittently, the event will show up in eventghost but eventghost does nothing at all.

Code: Select all

<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1582" Guid="{B7030A5C-F97C-400C-85D4-E9889228B984}" Time="1350588457.72">
    <Autostart Name="Autostart" Expanded="True">
        <Plugin Identifier="DesktopRemote" Guid="{5DFFBD61-7582-4D6F-8EA9-9CB36284C9CF}" File="DesktopRemote">
            gAIpLg==
        </Plugin>
        <Plugin Identifier="Webserver" Guid="{E4305D8E-A3D3-4672-B06E-4EA1F0F6C673}" File="Webserver">
            gAIoWAQAAABIVFRQcQBLUFguAAAAQzpcVXNlcnNcbmV0Ym9va1xEZXNrdG9wXG5ldyBleHBlcmltZW50YWwgaHRtbHEBWAoAAABFdmVudEdob3N0cQJYDQAAAHNweWRlcmVzcGlydDBxA1gHAAAANjU5Njc0MnEEdHEFLg==
        </Plugin>
    </Autostart>
    <Folder Name="door lock/unlock toggle" Expanded="True">
        <Macro Name="Show OSD: DOOR UNLOCKED" id="8" Enabled="False">
            <Event Name="Main.doorunlock/lock" />
            <Action>
                EventGhost.ShowOSD(u'DOOR UNLOCKED', u'0;-24;0;0;0;700;0;0;0;1;0;0;2;32;Arial', (255, 255, 255), (0, 0, 0), 5, (0, 0), 0, 3.0, False)
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(13))
            </Action>
            <Action Name="write to arduino servo unlock door">
                EventGhost.Comment()
            </Action>
        </Macro>
        <Macro Name="Show OSD: DOOR LOCKED" id="13" Expanded="True">
            <Event Name="Main.doorunlock/lock" />
            <Action>
                EventGhost.ShowOSD(u'DOOR LOCKED', u'0;-24;0;0;0;700;0;0;0;1;0;0;2;32;Arial', (255, 255, 255), (0, 0, 0), 5, (0, 0), 0, 3.0, False)
            </Action>
            <Action>
                EventGhost.EnableExclusive(XmlIdLink(8))
            </Action>
            <Action Name="write to arduino door lock">
                EventGhost.Comment()
            </Action>
        </Macro>
        <Folder Name="code attempt1" Expanded="True">
            <Folder Name="code" Expanded="True">
                <Macro Name='Enable: Trigger event "doorunlock"' id="20">
                    <Event Name="DesktopRemote.1" />
                    <Action>
                        EventGhost.EnableExclusive(XmlIdLink(25))
                    </Action>
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(43))
                    </Action>
                    <Action>
                        EventGhost.EnableItem(XmlIdLink(57))
                    </Action>
                </Macro>
                <Macro Name='Enable: Trigger event "doorunlock"' id="25" Enabled="False">
                    <Event Name="DesktopRemote.2" />
                    <Action>
                        EventGhost.EnableExclusive(XmlIdLink(30))
                    </Action>
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(57))
                    </Action>
                    <Action>
                        EventGhost.EnableItem(XmlIdLink(73))
                    </Action>
                </Macro>
                <Macro Name='Enable: Trigger event "doorunlock"' id="30" Enabled="False">
                    <Event Name="DesktopRemote.8" />
                    <Action>
                        EventGhost.EnableExclusive(XmlIdLink(35))
                    </Action>
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(73))
                    </Action>
                    <Action>
                        EventGhost.EnableItem(XmlIdLink(89))
                    </Action>
                </Macro>
                <Macro Name='Enable: Trigger event "doorunlock"' id="35" Enabled="False">
                    <Event Name="DesktopRemote.4" />
                    <Action>
                        EventGhost.ShowOSD(u'CODE CORRECT', u'0;-24;0;0;0;700;0;0;0;1;0;0;2;32;Arial', (5, 216, 37), (0, 0, 0), 5, (0, 0), 0, 3.0, False)
                    </Action>
                    <Action>
                        EventGhost.TriggerEvent(u'doorunlock/lock', 0.0)
                    </Action>
                    <Action>
                        EventGhost.EnableExclusive(XmlIdLink(20))
                    </Action>
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(89))
                    </Action>
                    <Action>
                        EventGhost.EnableItem(XmlIdLink(43))
                    </Action>
                </Macro>
            </Folder>
            <Folder Name="restart code entry if these#" Expanded="True">
                <Macro Name="<unnamed macro>" id="43">
                    <Event Name="DesktopRemote.4" />
                    <Event Name="DesktopRemote.3" />
                    <Event Name="DesktopRemote.5" />
                    <Event Name="DesktopRemote.6" />
                    <Event Name="DesktopRemote.7" />
                    <Event Name="DesktopRemote.9" />
                    <Event Name="DesktopRemote.0" />
                    <Event Name="DesktopRemote.8" />
                    <Event Name="DesktopRemote.2" />
                    <Action>
                        EventGhost.EnableItem(XmlIdLink(20))
                    </Action>
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(35))
                    </Action>
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(30))
                    </Action>
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(25))
                    </Action>
                </Macro>
                <Macro Name="<unnamed macro>" id="57" Enabled="False">
                    <Event Name="DesktopRemote.1" />
                    <Event Name="DesktopRemote.3" />
                    <Event Name="DesktopRemote.5" />
                    <Event Name="DesktopRemote.6" />
                    <Event Name="DesktopRemote.7" />
                    <Event Name="DesktopRemote.9" />
                    <Event Name="DesktopRemote.0" />
                    <Event Name="DesktopRemote.8" />
                    <Event Name="DesktopRemote.4" />
                    <Action>
                        EventGhost.EnableItem(XmlIdLink(20))
                    </Action>
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(35))
                    </Action>
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(30))
                    </Action>
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(25))
                    </Action>
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(57))
                    </Action>
                    <Action>
                        EventGhost.EnableItem(XmlIdLink(43))
                    </Action>
                </Macro>
                <Macro Name="<unnamed macro>" id="73" Enabled="False">
                    <Event Name="DesktopRemote.3" />
                    <Event Name="DesktopRemote.5" />
                    <Event Name="DesktopRemote.6" />
                    <Event Name="DesktopRemote.7" />
                    <Event Name="DesktopRemote.9" />
                    <Event Name="DesktopRemote.0" />
                    <Event Name="DesktopRemote.4" />
                    <Event Name="DesktopRemote.1" />
                    <Event Name="DesktopRemote.2" />
                    <Action>
                        EventGhost.EnableItem(XmlIdLink(20))
                    </Action>
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(35))
                    </Action>
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(30))
                    </Action>
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(25))
                    </Action>
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(73))
                    </Action>
                    <Action>
                        EventGhost.EnableItem(XmlIdLink(43))
                    </Action>
                </Macro>
                <Macro Name="<unnamed macro>" id="89" Enabled="False">
                    <Event Name="DesktopRemote.3" />
                    <Event Name="DesktopRemote.5" />
                    <Event Name="DesktopRemote.6" />
                    <Event Name="DesktopRemote.7" />
                    <Event Name="DesktopRemote.9" />
                    <Event Name="DesktopRemote.0" />
                    <Event Name="DesktopRemote.8" />
                    <Event Name="DesktopRemote.1" />
                    <Event Name="DesktopRemote.2" />
                    <Action>
                        EventGhost.EnableItem(XmlIdLink(20))
                    </Action>
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(35))
                    </Action>
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(30))
                    </Action>
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(25))
                    </Action>
                    <Action>
                        EventGhost.DisableItem(XmlIdLink(89))
                    </Action>
                    <Action>
                        EventGhost.EnableItem(XmlIdLink(43))
                    </Action>
                </Macro>
            </Folder>
        </Folder>
    </Folder>
    <Folder Name="desktop remote">
        <Macro Name="Desktop Remote: Create New Remote" Expanded="True">
            <Action>
                DesktopRemote.CreateNew(85, 85, 20, 20, 4, (108, 108, 108), (255, 255, 255), (78, 78, 78), u'0;-19;0;0;0;700;0;0;0;255;1;2;1;49;Terminal', u'keypad', 0, True, True, True)
            </Action>
        </Macro>
        <Macro Name="<unnamed macro>" />
        <Macro Name="Desktop Remote: Add Button: 3" Expanded="True">
            <Action>
                DesktopRemote.AddButton({'event': u'1', 'label': u'1'})
            </Action>
        </Macro>
        <Macro Name="Desktop Remote: Show at 0,0">
            <Action>
                DesktopRemote.Show(0, 0, False)
            </Action>
        </Macro>
        <Macro Name="Desktop Remote: Start New Line" Expanded="True">
            <Action>
                DesktopRemote.StartNewLine(20)
            </Action>
        </Macro>
    </Folder>
</EventGhost>
spyderespirt0
Posts: 16
Joined: Fri Sep 14, 2012 7:52 pm

Re: webserver creates events but E.G. doesn't act on them

Post by spyderespirt0 »

also can anybody help me figure out why the code attempt 1 folder disables after the successful code entry?
Post Reply