What happens to Glass timeline items when a user actually doesn't own a Glass device? - google-mirror-api

A Glassware service can ask for (and receive) authorization to update the Glass timeline for a Google account even if the Google account is for a user who does not own a Glass device.
What happens to timeline items that are inserted into a "device-less" timeline? Are there any error codes or indications that a timeline item will not be delivered because the user has no device?

Everyone with a Google account has a timeline on the Mirror API.
If they have Glass, new items within the timeline are delivered, but at their core, a user's Mirror API timeline and their Glass device are separate entities.
There's no way to determine if a timeline item has been delivered to Glass, but that is a reasonable request. You should consider requesting it as an enhancement to the API. You can do this by filing it in this issue tracker.

Timeline items will sit in the cloud, waiting for the user to activate a Glass unit against that account to receive it. There is currently no way to determine if the user has Glass or not.
There have been some discussion about work-arounds and how to handle this, and you should probably star the related issue: Request how many devices (if any) an authorized user has access to

Related

how to send a link when user asks for alexa skills

Is there any method to send a link to a user when they ask through an Alexa skill? I found Send to Phone Intent but I didn't understand how to implement it. Has anyone had to use this intent? The scenery would be as an example: Alexa, open the amazon website and it would send a push notification to the cell phone and when the customer clicked on the notification it would open the amazon website.
The Send to Phone feature should do exactly what you're describing, but it's in developer preview right now, so you need to apply here to gain access.
In the meantime, here are the tech docs, design guidelines, and a code sample.

Alexa appliance discovery in custom skill

I have been checking around on this topic, but have not seen a concrete solution on how to get it working. I am building a Custom Skill for Alexa, which currently supports speech. Now I would like to extend the skill with video streaming to a TV.
The only thing the Custom Skill seems to support for this is streaming to Echo Show with the VideoApp directives?
I have seen answers that say it is possible, just return a list of devices, but these devices and their appliance id's seem to be hardcoded, I would need to get an actual list of devices linked to the users account.
So the question is: is it actually possible to incorporate Video Skill functionality (and device discovery) in a custom skill, or would it need to be a separate skill?
Since the SmartTV is not an Alexa-enabled device, streaming to it will be a separate API from the Alexa APIs.
An Alexa skill is similar to a web API, where the front end, user interface, is Alexa.
Imagine if you were building a website that had a couple of buttons on it and a text box. Users would enter some info in the text box and press one of the buttons to start streaming on the TV. The code behind the website would have to communicate with the smart TV somehow to stream the content.
The same way, your skill code would have to figure out a way to communicate with the Smart TV.
This is not something that Alexa would support directly, so it become necessary to identify the API for your SmartTV and a way to communicate to it from the internet which won’t be trivial.

Amazon Alexa custom skill and smart home skill. Control devices

I try to implement devices control from Alexa.
I created smart home skill and successfully added user authorization.
I can turn on/off my devices. I understand, that I can add new commands (like stop, play last video, get status and etc.) only using custom skills. But on the basis of this knowledge, I still can not figure out. Can I control devices using additional commands?
For example "Alexa, ask manager to play bedroom TV last video" or "Alexa, ask manager get kitchen camera status".
Yes, you can control.. Refer this project with sample code and steps to interact with amazon alexa. This will help you to get start from the basics.
https://github.com/krvarma/particle-alexa-smart-home-skill

Does bluemix have an API to fetch application monitoring/metrics results?

I see that bluemix has a service called Monitoring and Analytics. All I see from that service are dashboards. I am looking for the information the dashboards are providing in the form of an API. For example, if I want to be notified that my application is down or it is slow running, etc .. Is there a way for me to either receive such alerts or for an API that I can poll periodically?
thank you
The Monitoring & Analytics service does not offer an API to retrieve its collected metrics. We realize that supporting a programmatic interface would be helpful and it's in our backlog to add that capability.
However, M&A does support the other part of your question regarding alerts. There should be an Events tab in your dashboard. In the upper right corner, there's a dropdown to "Configure events policy". If you select it, you can enable Availability alerts ("Is my app down?") and/or Performance Monitoring alerts which are geared to the app's run-time type (Liberty, Node.js, etc.). In that same dropdown you can also "Configure notification". If you specify your email address in the notification dialog, you will start receiving alerts when your Bluemix application is down or running slowly.

Adding Instant Messaging (possibly XMPP) to my website on AppEngine (without using Google Login IDs)

I have developed a dating website built on top of the Google App Engine, to which I would like to add instant messaging, and possibly/probably audio and video conferencing.
Given that the users on the website do not want to share their personal details or real contact information, I am handling all of the login information and sessions without assuming that the clients have (or even want) a google account ID or any other login that is associated with their real identity.
I would like to hear suggestions on how I could go about adding instant messaging to my website given that I cannot just directly access Google Talk or some other existing service.
Would it make sense to use XMPP for this, and if so will Google Talk or any other XMPP service provider allow me to register new user accounts without manual intervention (ie. after a user is registered on my site, automatically register them with the XMPP provider)? Or, if not, perhaps I can use a single google ID with Google Talk with a different resource identifier for each user (me#google.com/user1, me#google.com/user2, etc...), and send messages between the different resources? Could this work, and/or would having thousands of simultaneous connections to a single account get me banned from Google Talk?
Perhaps some kind of AJAX based solution might make more sense given the fact that users are already registered on my website, but are not registered for an XMPP service?
Any suggestions about how I might approach this problem would be greatly appreciated.
Kind Regards
-Alexander
Text chat is the easier problem. You can do either with or without XMPP. Without XMPP, you'll be building a Facebook chat type client on your pages that sends messages from each user to the app, and the app then shows then on the recipient's screen.(The client can be polling, or use comet when it comes out). Check out olark to see how this works.
Once you build code to use the app as a switchboard that routes the correct message to the correct person (anonymously, maybe), you can port this easily to XMPP if you require. Both parties add you.dating.site#appspotchat.com to their buddy lists, and you send all messages from girl#site.com to guy#site.com and vice-versa. (assuming a heterogeneous site.)
Audio and video, I have no clue how to do without sharing details between the parties :-/

Resources