Nest API: Has anyone found on required fields - nest-api

I have been looking through the nest docs and the only doc that I see around required fields is for the ETA model seen here:
https://developer.nest.com/documentation/eta-reference
Does anyone know if there is a page for the thermostats, structures and Nest protect?
Thanks

Matthew,
The error code page shows (Example) that you must me in 'cool' or 'heat' mode to change the target temperature, and in 'heat-cool' mode to change the high and low settings.
Otherwise, you receive an error when you PUT your changes.
https://www.developer.nest.com/documentation/error-codes#eta
you saw these right?
https : //www.developer.nest.com/documentation/away-guide
https : //www.developer.nest.com/documentation/api#thermostats
https : //www.developer.nest.com/documentation/api#smoke_co_alarms

Related

Gmail markup for online event

While there is good documentation around sending markup emails for specifying offline event. Refrence Can someone help me out on how to add handle an online event?
The issue with offline event is that I need to enter a proper postal address, however in our case the location is simply a url.
Things I have already tried
Putting type of location as VirtualLocation, but that gives error
Entering empty strings in PostalAddress fields
Marking eventAttendanceMode as https://schema.org/OnlineEventAttendanceMode, it gives error
Does gmail support markups for online events? Common sense says it should.
As said by #kayes-fahim comment you can find more information on their blog, and documentation.
By the blog post you could use the virtualLocation but you also need to set the eventAttendanceMode to OnlineEventAttendanceMode. Reference

DSpace - OAI-PMH - Pagination

I would like to illustrate a problem with the pagination of the results of the OAI-PMH Data Provider of DSpace.
Let's assume that I display the first page of results of a specific type, in the context the Identifiers.
The URL of the request ends as shown here:
".../oaidl.jsp?verb=&ListIdentifiers&metadataPrefix=pico"
Until here, no problem. However, when selecting the Show More button, using exactly the Resumption Token indicated at the end of the first request response:
".../oaidl.jsp?verb=ListIdentifiers&resumptionToken=9999-12-31|1753-01-01|null|pico|982|2019-03-02T14%3A29%3A11Z"
I get an error page with the following message:
"XML interpretation error: no root element found..."
Can you tell me my mistake and, if possible, how can I solve it?
Thank you very much in advance!
Which version of DSpace are you running? The reference implementation at demo.dspace.org has a different url pattern than your example.
http://demo.dspace.org/oai/request?verb=Identify

four square api doesn't work properly

I am using four square API to display the auto suggestions when user types a word. I use:
$http.get('https://api.foursquare.com/v2/venues/search?&near='+input+'&query=' +input+'&intent=gloabal&limit=5&oauth_token=D5STL1YLFPPGLOF121W....&v=2016...')
But I am not getting the exact results. Sometimes it shows nothing giving empty objects and also in different languages like tamil, urdu, etc...
Then I tried with an example - taj mahal. If I type taj,taj ma, taj maha like that... It doesn't show anything... API suggests taj mahal only when i type taj mahal fully in the search box.
Can anyone provide some insight?
Just trying to debug this for you. Here are some glaring things that might be the issue here:
a) It appears that your intent specifies gloabal vs global, which would likely default to the intent checkin via https://developer.foursquare.com/docs/venues/search
b) Could be an issue with your search e.g. searching for the taj mahal near the taj mahal.
To get into the details more, it might help to dig into some of the raw HTTP requests being sent to Foursquare.
Here is a sample CURL command for finding 'food' near the Taj Mahal.
curl -v 'https://api.foursquare.com/v2/venues/search?&near=taj%20mahal&query=food&intent=global&limit=5&client_id=CLIENT_ID&client_secret=CLIENT_SECRET&v=20160828'
To diagnose the issue, it might make sense to try and simulate both inputs e.g. near and query params using curl above to diagnose whether the response is what you are looking for.
In addition it's worthwhile noting that near must be a string representing a place in the world. If the near string is not geocodable you should see a failed_geocode error. Specific to your question if you use the the param near=taj%20ma you'll likely get a failed_geocode probably as expected. More details via https://developer.foursquare.com/docs/venues/search
For specifics on language, my understanding is that you can set the locale in the Accept-Language HTTP header in your request (preferred) or alternatively specify parameter locale. If nothing is specified my assumption is that the language that's most popular in the country for that venue will likely be used. More details via https://developer.foursquare.com/overview/versioning

How to handle urls in load runner?

I have created/recorded a script in Vugen, however the the URL of the site has been changed recently. Is there any way just by replacing the url with a parameter works?
I have tried by replacing url with parameters, the new URL is
http://xsx.xxx.xsx.xxx/test99
Yhe parameters I have tried are below:
NewUrl: http://xsx.xxx.xsx.xxx/
Newhos: test99
I have replaced all in the script and when I run it I get the following error:
Error -27651: Attempted read from an unconnected socket (empty response, no HTTP headers received). URL="http://xsx.xxx.xsx.xxx/scripts/uiServer.dll"
What is the solution for this? Should i record again with the new URL ?
Thanks.
Hope I've understood what you're asking for, so here goes. If it's only the URL that has changed and not the content of the site which you might require later on in your script that this is fairly simple to do.
As you have created the new parameters ensure that they are getting the data from the same DAT file. I.e. newurl.dat which contains the following:
newurl,newhost
http://xsx.xxx.xsx.xxx/,test99
and assign the parameters to the correct column and have the newhost set to sameline as newurl. This way it’s easier to maintain I believe.
Now that the parameters have been created and properly assigned in your script you’ll need to change the url your trying to change from:
http://xsx.xxx.xsx.xxx/oldtest to {newurl}{newhost}
this needs to be done for all instances where the change has occurred.
Hope this helps with your problem you’re having.
Are you certain that the build level has not also changed at the same time as the host? If so then your new instance may be out of synch with the request model of the scripts built using an earlier build. Developers have a habit of including items below the scenes that do affect the site visually but change the structure of the requests. The error you are receiving is common when you attempt to continue a conversation on a dead connection resulting from a missed dynamic session component which may have been added in the last build.
When in doubt quickly record the second site and take a look at the differences in the requests, even to the point of using WinDiff (included in LoadRunner) for this purpose.

Putting islandora results in a view or block

I am new to islandora. I have it integrated with solr and it works fine but the results only show on the page with the following URL:
somesite.com/islandora/search
This is fine but I would like the results to show on a different page inside a view or a block.
Is this actually possible?
After reading the documentation it doesn't seem like it is. But I believe this should be a rather slandered requirement.
I have tried using URL Aliases, with no luck.
Has anyone done this??
If you have integrated the apache solr with sit Search then there is a module named Search API Page Block, which can help you showing result in block but it will only work for title of the nodes.
As it explains -
Currently, this module is only useful when placing search result
blocks on node pages, since it currently only uses $node->title as the
search keywords. Future development can lead to other uses, including
using Taxonomy terms, Context module, or custom fields to set the
keywords.

Resources