Hello,
Thanks for your help
I have changed the script but is does not seems to work.
I have put some breakpoints in the code and run it. When debug stopped at the line Dim temp As Float = TempSensor.GetTemp() the value stays ) (zero) and then the tempstring also contains nothing and as a result nothing is sent to IFTTT
Then at the end I get an runtime error. (see picture)
This is my script now.
It would be very helpful if I could started with a working script. From that point I can move on.
Regards
henk
Class temperatuur
Shared Event GetTemp() RaiseEvent Every 1 Minutes
LedGreen = True
Dim temp As Float = TempSensor.GetTemp()
Dim tempstring As String = temp.ToString()
Lplan.IFTTT("d8cAVjNUjBr1S9aUB70Wvc", "Temperatuur", tempstring, "", "")
If temp > 25.0 Then
LedRed = True
Else
LedRed = False
End If
LedGreen = False
End Event
End Class
[ Guests cannot view attachments ]