Im developing a smart home automation for the weather forecast, I have everything ready but I need a text file that the program is gonna read from, that is updated every hour or 15 mins ... So when I press a switch in the house, I will listen from the speakers the weather Forecast for the day.
For that to finalize, I need a simple way of retrieving the weather information from any web source and convert it into a custom .txt file.
But I need a custom sentence to be formed as .TXT
Need those informations retrieved :
* If its morning, afternoon or night
* The date like "Saturday, November 16, 2013"
* Current Condition : "Mostly Cloud" or "Sunny" or "Snowstorm" (which Im not looking forward to hear that, lol)
* Temperature (in Celsius)
* Feels like
* Wind Speed (just the speed in km/h, I DONT need where the wind is coming from like "NW")
* High of x and Low of x
So getting this info I would have two files exported as TXT that would look like this :
Good AFTERNOON dear Thiago, today is Saturday, 16 November, 2013 , the current condition is, Mostly Cloudy , the temperature is 11 degrees and feels like 9 degrees . Wind speed of 15 kilometers per hour. High of 16 and low of 9 . Have a wonderful AFTERNOON
And the other file would be same info but different name, my wife's if she is the one pressing the button.
Once I will have a MAC Mini computer running just for that program, I need the software Mac based.
I've tried Automator with Excel, works perfectly, I copy the content of the weather website, made a formula in excel to collect just the cells I need, Made a script that would copy this cell text and paste on a TXT file and save the file. Works perfect, but when the computer sleeps I always get an error saying that it couldnt retrieve info from the website so I get the error and the application crashes and the file doesnt update until I go back and press all the "ok's" and run the program again ...
I've tried with Query Data from excel as well but if the computer turns off and on again, there is this "Enable Data" button that has to be pressed everytime I open the file, so Its not an automatic task anymore ...
I really hope there is someone in here that would be able to make this app really fast and simple, I have no background in programming and I almost got it to work, but as I always hear:
-Leave the job for the professionals to do it ! =)))
PS.: If I can get something like if its snowing so add on the text file how many centimeters predicted for the day ... Or any extra idea you have !
Thanks very much in advance !
Would be nice to have a way of changing the names or the "strings" of what i want to hear.
I forgot to mentioned that I need that running all the time, refreshing in a certain period of time and If the computer goes off, I can restart the computer and the app would start again and keep on running.
6 freelancers estão ofertando em média $321 para esse trabalho
hi ther what an awesome application, can i know what script is it, is it a by flash application? hope you can show me this application ( website or url will be fine) thanks for your time