Sometimes, We need to extend a native class(object) with inheritance. But some meta programmer has a different direction to solve it. They extend the native class by editing itself. It has beneficial because Not necessary to define a new extended class. There surely has some point you should take care of.
Let’s see on typescript
typescript provides these feature, it calls ‘Declaration merging‘
And, There is a risk of this feature that it spoil to native namespace. You should take care of spoiling namespace when you add (or extend) native object.
DynamoDB Data Mapper is an awslab’s open source project. This is very helpful as the ORM library for your application. But for testing, there is something tricky because Query and Scan return QueryIterator(nearby AsyncIterator)
This is fully organized by volunteers from the AAJUG (Amazon Alexa Japan User Group) and JAWS-UG (Japan AWS User Group) community.
For Designers, Builders, and all interesters.
There were many sessions with many scopes. VUX Designing, Deep diving of development, Operations, Analytics, collaborating with Machine Learning, Case Studies in Cooking, Alexa Skills of Traffic company, and workshops.
Recently, Alexa Blueprints was launched in Japan. There were petit Labo of Blueprints with Alexa Evangelist. People all were surprised how quick with launching a skill!
Setting and Deploying the Object Detection Model to the deeplens
Left : selecting Project template on the deeplens console Middle: MQTT topic filter on the deeplens console Right: testing dialog on the AWS IoT console
The deeplens provides the Project Template to implement models easier.
Select the Object Detection in Project template.
MQTT
MQTT is the lightweight M2M protocol. When the model deployed to the deeplens, MQTT topic which sends the detecting status is deployed too. You can see on the deeplens console.
Also, you can test that the handling messages in AWS IoT Core console. You can access it from Project output column.
As you can see, Simple message is receiving on AWS Iot Core console like this.
{ "chair": <percentage of confidence> }
when some bird coming, the deeplens will send message as follows.
{ "bird": <percentage of confidence> }
Make the Alexa skill with notification
OK. Now We could make Object detection part. Let’s make Alexa Skill for accepting notification. To do this, We have to configure the Manifest file for using the Alexa proactive API. The API provides a capability to send notification which Alexa defined schemas.
Unfortunately, We can only use a defined schema. So In this demo, I alternatively use the WheatherAlert Schema for notifying as assuming the bird to storm. 🙂
Step2: deploy lambda function by the serverless framework
The serverless framework is really useful to deploy function and around resources. This script deploy Lambda function and set the trigger from AWS IoT Rules.
git clone https://github.com/haruharuharuby/bird-detect-message-handler
cd bird-detect-message-handler
serverless deploy