WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

1i/goDart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GODART

Alexa skill to have DART times for the requested station.
Alexa open Next Dart for Pearse Station

build and deploy

Build the go file into an executable.
GOOS=linux GOARCH=amd64 go build -o alexa alexa.go

Zip up the go executable.
zip alexa.zip alexa

Update the lambda zip.
aws lambda update-function-code --function-name godart --zip fileb://./alexa.zip

Invoke the lambda and log the results.
aws lambda invoke --cli-binary-format raw-in-base64-out --function-name godart --payload '{"request": {"locale": "en-US","requestId": "amzn1.echo-api.request.a1d80dd9-0538-4f62-ba27-decfd8ade0d8","shouldLinkResultBeReturned": false,"timestamp": "2022-02-12T16:30:15Z","type": "LaunchRequest"},"version": "1.0"}' --log-type Tail outfile | grep "LogResult"| awk -F'"' '{print $4}' | base64 --decode

TO DO

Allow saving of a default station if invoked without a station in the request.
Save the Alexa account Id to DynamoDB and query if there is a default station set for that user.

About

Amazon Alexa skill in Go to read train times out loud.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages