Code: Select all
eg.plugins.NetworkSender.plugin.Send("Your_Event", [str(eg.globals.Your_EG_Global_Variable)])2) Create a button in terRemote and in Widget_Properties:
Click "Text" so it expands the selection (as some times the "Internal_Settings do not show up properly when the "Text" properties are not expanded. Maybe this is just my devices, maybe Chris will fix in the future)
Click "Internal settings":
enabled = 'checked'
Identifier = "Unique_Widget_Name"
3) In terRemote Menu->Macros->+(new_macro).
Name=Name_Your_Macro
Enabled='checked'
Event (click from log and select) = "Your_Event"
Actions->Widget_Data:
Widget = "Unique_Widget_Name" (from the Identifier above)
Set = 'checked'
Change = "Text"
To = ${payload.0} (if this was the only payload that came in with the event, second would be ${payload.1}, third ${payload.2} ect)
Click "done" and "Save" to save the macro
I may have left some things out such as Network Setup. You may want to have a macro which calls eventghost to lookup and return values when a layout is opened so eventghost is not sending information when the device is not on the network as others have mentioned that this can tie up eventghost. You may want to use a webveiw instead of a button.
Above image is current home temp in a webview with furnace and air conditioner setpoints
Javier
