thingpedia-common-devices
thingpedia-common-devices copied to clipboard
Thingpedia interface code for commonly used devices
To limit to restaurants that are open at a certain time. It should map to `contains(openingHours, new Time(...))`
If the user says "show me restaurants within XX of YY", we should extract the location and pass it to Yelp. Otherwise we pass the default location, which is Palo...
placeholder while we figure out how best to get this updated and running again.
On occasion, Yelp requests time out with error 504: ``` Failed to invoke query HTTPError: Unexpected HTTP error 504 in request to https://api.yelp.com/v3/businesses/search?limit=50&sort_by=best_match&locale=en_US&latitude=37.442156&longitude=-122.1634471&categories=restaurants at IncomingMessage. (/home/travis/build/stanford-oval/thingpedia-common-devices/node_modules/thingpedia/dist/helpers/http.js:139:35) at IncomingMessage.emit (events.js:326:22) at...
Log: ``` ==== # main/4d19e0a2-775b-4148-9a85-e2030828a58f #! timestamp: 2021-08-03T19:05:16.901Z U: play the podcast all the presidents laywers UT: $dialogue @org.thingpedia.dialogue.transaction.execute; UT: @org.thingpedia.media-source.show() filter id =~ "all the presidents laywers" => @org.thingpedia.media-player.play(playable=id);...
Log: ``` ==== # main/a951fd6b-aefc-4d91-a716-baa760a8f432 #! timestamp: 2021-08-03T19:12:20.089Z U: what's the latest by charlie xcx UT: $dialogue @org.thingpedia.dialogue.transaction.execute; UT: sort(release_date desc of @org.thingpedia.media-source.playable() filter contains(artists, null^^org.thingpedia.media-source:artist("charlie xcx")))[1]; #! timestamp: 2021-08-03T19:12:21.812Z...
Screencap:  But nothing got played. I suspect it's because the program never called the exit procedure hook because it's a long running program.
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,...