I really need some help.
I have a thermometer in my freezer, and I want EG to to warn me if the temperature is below -20 degrees. The paylode I get from the temperature sensor is formated as -25.3|14, the first value is the temperature and the second is the humidity. I only want to use the temperature value.
For now I have got EG to start notepad when the temperature and humidity is -25.3|14.
I need help to get EG to ignore the humidity value, and make an event if the temperature is below a specific value.
Below you can see the macros i have now.
Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1710">
<Macro Name="<unnamed macro>" Expanded="True">
<Event Name="TellStickDuo.mandolyn.temperaturehumidity.21.Temperature.Humidity" />
<Action>
EventGhost.TriggerEvent(u'{(eg.event.payload)}', 0.0)
</Action>
</Macro>
</EventGhost>Code: Select all
<?xml version="1.0" encoding="UTF-8" ?>
<EventGhost Version="1710">
<Macro Name="<unnamed macro>" Expanded="True">
<Event Name="Main.-25.3|14" />
<Action>
System.Execute(u'notepad.exe', u'', 0, False, 2, u'', False, False, u'', False, False, False, False)
</Action>
</Macro>
</EventGhost>Thank you!
Best regards
Jonas
