- Create a new IAM user called polly-tts
- Allow programatic access
- Give it
AmazonPollyReadOnlyAccess
permissions - Save access key and secret access key for use later
- On a windows box, download and install the "Windows 10 IoT Core Dashboard"
- Image SD Card
- Open IoT Dashboard and click
Setup a new Device
- Select Raspberry Pi, Windows 10 IoT Core
- For device name, use ptpager
- Set an admin password
- Click Download and Install
- Open IoT Dashboard and click
- Boot the pi with the new SD Card and go through welcome screens
- Install .NET Core:
- From windows box, open
\\ptpager\c$
and login with administrator and the password you specified - Create c$/dotnet
- Download SDK for ARM32 and unzip to that folder from
https://dotnet.microsoft.com/download/dotnet/current
https://download.visualstudio.microsoft.com/download/pr/048302c4-d583-4a31-acba-fdf85d0ebad7/8d33b36319286e27463e9e3fe1d46597/dotnet-sdk-3.1.300-win-arm.zip
- Download asp.net runtime for ARM32 and unzip to that folder
https://download.visualstudio.microsoft.com/download/pr/3bb0854c-541c-46c1-9efa-f26e9dfc701b/b53fb590dca38a967f1b1e12a5c10165/aspnetcore-runtime-3.1.4-win-arm.zip
- From windows box, open
- Back in IoT Dashboard and click
My Devices
. Right Click and ClickLaunch Powershell
- Test dotnet by running
C:\dotnet\dotnet.exe --version
- Create \ptpager\c$\credentials.txt with credentials from the aws setup. Format is:
[pollyaccess] aws_access_key_id = <value> aws_secret_access_key = <value>
- Deploy app:
- On windows machine, download this repo
- Edit appsettings.Production.json
- Fill out
bindingIp
to ip of Pi - Fill out ClientSecret from smartthings app
- Fill out
- From PTPagerServer\PTPager.Web3 folder, execute:
dotnet publish PTPager.Web3.csproj /p:PublishProfile=PiProfile