The only work around I found was to create 2 variables. Currently I have: if (currentcondition1 != "Clear" || currentcondition2 != "Fair")īut that should be if (currentcondition != "Clear" || currentcondition != "Fair") But for some reason I do not understand, IFTTT does send me an error saying that it can't use current condition with values Clear and Fair. Now add the following filter code: let sunrise moment (Weather.currentWeather 0.SunriseAt) let sunset moment (Weather.currentWeather 0. Link your Tempest account to IFTTT and use your weather data to trigger actions in hundreds of other apps & products including Twitter, Dropbox, Nest, Fitbit, Rachio, and countless others. Question 2: My code is horrible, I should not have to use 2 different variables with the same value. Start with the Space - ISS passes over a specific location trigger, add the Weather Underground - Current weather query, and the Notifications - Send a notification from the IFTTT app action. IFTTT IFTTT (If This Then That) is a free and easy way to do more with data from your Tempest System. So question 1: anyone knows all the conditions I could use? basically I want to turn off lights with any condition that blocks the sun, like cloudy, rain, snow, etc. Originally I intended to trigger the condition with any condition different to Clear (according to documentation only Clear, Cloudy, Rain and Snow were available) but then I found that a condition "Fair" was available and also useful from what I needed. Source: Weather Underground IFTTT channel. I am trying to do the following: var currentcondition1 = var currentcondition2 = if (currentcondition1 != "Clear" || currentcondition2 != "Fair") You can head over to the Weather Underground channel on IFTTT to get started by adding your location and then enabling the applets that you need. According to the information on IFTTT about Weather Underground there are only 4 conditions supported, but in the logs I had found more, but so far I have not found a list with all the available conditions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |