Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weather forecast doesn't find the right time #414

Open
gcampax opened this issue Aug 3, 2021 · 0 comments
Open

Weather forecast doesn't find the right time #414

gcampax opened this issue Aug 3, 2021 · 0 comments
Labels
bug P3 Nice to have, not working on it for now release: main Issues that affect devices in the "main" release

Comments

@gcampax
Copy link
Contributor

gcampax commented Aug 3, 2021

Log (notice it is parsed correctly):

====
# main/0cc5d1a4-4d91-443b-8c5e-d4d21e99d53a
#! timestamp: 2021-08-03T19:40:48.920Z
U: will it rain tomorrow
UT: $dialogue @org.thingpedia.dialogue.transaction.execute;
UT: @org.thingpedia.weather.forecast();
C: $dialogue @org.thingpedia.dialogue.transaction.execute;
C: @org.thingpedia.weather.forecast(location=new Location(37.4863239, -122.232523, "Redwood City, California"), date=$end_of(day))
C: #[results=[
C:   { temperature=13.7C, wind_speed=1.8mps, humidity=81.1, cloudiness=68, fog=0, status=enum cloudy, icon="http://api.met.no/weatherapi/weathericon/1.1/?symbol=3;content_type=image/png"^^tt:picture, date=new Date("2021-08-04T14:00:00.000Z"), location=new Location(37.4863239, -122.232523, "Redwood City, California") }
C: ]];
#! timestamp: 2021-08-03T19:40:50.452Z
A: It will be cloudy tomorrow at 7:00 AM in Redwood City, California and the temperature will be 13.7 C.
AT: $dialogue @org.thingpedia.dialogue.transaction.sys_display_result;
#! timestamp: 2021-08-03T19:41:00.736Z
U: will it rain tomorrow at 2pm
UT: $dialogue @org.thingpedia.dialogue.transaction.execute;
UT: @org.thingpedia.weather.forecast(date=set_time($end_of(day), new Time(14, 0)));
C: $dialogue @org.thingpedia.dialogue.transaction.execute;
C: @org.thingpedia.weather.forecast(location=new Location(37.4863239, -122.232523, "Redwood City, California"), date=$end_of(day))
C: #[results=[
C:   { temperature=13.7C, wind_speed=1.8mps, humidity=81.1, cloudiness=68, fog=0, status=enum cloudy, icon="http://api.met.no/weatherapi/weathericon/1.1/?symbol=3;content_type=image/png"^^tt:picture, date=new Date("2021-08-04T14:00:00.000Z"), location=new Location(37.4863239, -122.232523, "Redwood City, California") }
C: ]];
C: @org.thingpedia.weather.forecast(date=set_time($end_of(day), new Time(14, 0)), location=new Location(37.4863239, -122.232523, "Redwood City, California"))
C: #[results=[
C:   { temperature=13.7C, wind_speed=1.8mps, humidity=81.1, cloudiness=68, fog=0, status=enum cloudy, icon="http://api.met.no/weatherapi/weathericon/1.1/?symbol=3;content_type=image/png"^^tt:picture, date=new Date("2021-08-04T14:00:00.000Z"), location=new Location(37.4863239, -122.232523, "Redwood City, California") }
C: ]];
#! timestamp: 2021-08-03T19:41:01.918Z
A: It will be cloudy tomorrow at 7:00 AM in Redwood City, California and the temperature will be 13.7 C.
AT: $dialogue @org.thingpedia.dialogue.transaction.sys_display_result;
#! timestamp: 2021-08-03T19:41:16.789Z
U: cancel
UT: $dialogue @org.thingpedia.dialogue.transaction.cancel;
C: $dialogue @org.thingpedia.dialogue.transaction.cancel;
C: @org.thingpedia.weather.forecast(location=new Location(37.4863239, -122.232523, "Redwood City, California"), date=$end_of(day))
C: #[results=[
C:   { temperature=13.7C, wind_speed=1.8mps, humidity=81.1, cloudiness=68, fog=0, status=enum cloudy, icon="http://api.met.no/weatherapi/weathericon/1.1/?symbol=3;content_type=image/png"^^tt:picture, date=new Date("2021-08-04T14:00:00.000Z"), location=new Location(37.4863239, -122.232523, "Redwood City, California") }
C: ]];
C: @org.thingpedia.weather.forecast(date=set_time($end_of(day), new Time(14, 0)), location=new Location(37.4863239, -122.232523, "Redwood City, California"))
C: #[results=[
C:   { temperature=13.7C, wind_speed=1.8mps, humidity=81.1, cloudiness=68, fog=0, status=enum cloudy, icon="http://api.met.no/weatherapi/weathericon/1.1/?symbol=3;content_type=image/png"^^tt:picture, date=new Date("2021-08-04T14:00:00.000Z"), location=new Location(37.4863239, -122.232523, "Redwood City, California") }
C: ]];
#! timestamp: 2021-08-03T19:41:16.807Z
A: Alright, let me know if I can help you with anything else!
AT: $dialogue @org.thingpedia.dialogue.transaction.sys_end;

(this might be related to stanford-oval/genie-cloud#1064 though)

@gcampax gcampax added bug release: main Issues that affect devices in the "main" release labels Aug 3, 2021
@nrser nrser added the P3 Nice to have, not working on it for now label Aug 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug P3 Nice to have, not working on it for now release: main Issues that affect devices in the "main" release
Projects
None yet
Development

No branches or pull requests

2 participants