- Ubuntu 16.04 server
- One AWS account
- Alexa developer console
- Generate Access key and secret key using aws iam console.
- Generate google maps api key
- AWS lambda(For serverless compute)
- AWS dynamo DB(for NoSQL database service)
- AWS SNS service(for messaging and notification service)
- S3(for static data files storage)
- AWS IOT endpoint (using mqtt and iot endpoint transmitting data to police control dasgboard)
- For user speech and emotion analysis using tensorflow
####Softwares needs to be installed on server
- setup virtual environement for python
- apt-get install awscli
- pip install boto3
- pip install flask
- pip install boto3
- pip install pytz
- pip install requests
###configure aws credentials
- execute command 'aws configure'
- AWS Access Key ID [****************L4WQ]: AWS_ACCESS_ID
- AWS Secret Access Key [****************YXwd]: AWS_SECRET_KEY
- Default region name [us-east-1]: REGION_NAME
- Default output format [json]: JSON
#####Alexa configuration and setup
- After setting up alexa developer account use following option:
- create alexa skill and copy-paste json data(it contains user utterances and intents) which is located at Hackathon-Git-Data/AlexaFile/speech.json
- Paste lamnda code in lambda editor Hackathon-Git-Data/AlexaFile/lambda.py
########### Dynamo DB #######
- database: 2 tables
- registration
{ "appid": "irj-2", "city": "jaipur", "country": "india", "demo_desc": "only known", "id": 2, "latitude": "26.879214", "longitude": "75.804782", "name": "user2", "password": "pass2", "state": "rajasthan", "user_mobile": "+918888578393", "username": "user2", "zipcode": 303329 }
- report
{ "appid": "irj-99", "latitude": "26.887594", "longitude": "75.813964", "time": "20180312-2023" } ########## place html content in /var/www/html