StringMid, curcondition, a_loopfield, quotestart, %quotelen% IfNotInString, a_loopfield, wind_condition data GuiControl,curtemp,%curtemp%☏`n%curcondition% StringMid, curtemp, a_loopfield, quotestart, %quotelen% StringGetPos, quoteend, a_loopfield, `", L2 StringGetPos, quotestart, a_loopfield, `", L1 IfInString, a_loopfield, forecast_conditions Updateseconds:=updateseconds*1000 Convert to milliseconds Updateseconds=300 Set Seconds between updates. Zipcode=57186 change 57186 to your zip code It is currently set to update the weather from the US zipcode 57186 every 5 minutes (300 seconds) in fahrenheit. It pulls the weather information from Googles open weather API. You are free to fix or manipulate this code anyway you see fit. I know there are plenty of more advanced weather apps made, but I wanted just a simple little weather script to add to some of my scripts.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |