Exemple #1
0
    def action(self):

        forecast = forecastio.load_forecast(self.api_key, self.latitude, self.longitude)
        x = 0
        for dat in forecast.daily().data:
            if(x==0):
                pass
                #say("Today it will be " + str(dat.summary))
            elif(x==1):
                say("To marrow will be" + str(dat.summary))
            else:
                pass
                #say("The day after that it will be "+str(dat.summary))
            x+=1
 def action(self):
     say("I'm sorry. I'm afraid I cant do that Dave.")