Code Monkey home page Code Monkey logo

ptpager's Introduction

PTPager

Setup AWS Access

  1. Create a new IAM user called polly-tts
  2. Allow programatic access
  3. Give it AmazonPollyReadOnlyAccess permissions
  4. Save access key and secret access key for use later

Setup of Raspberry Pi Machine

  1. On a windows box, download and install the "Windows 10 IoT Core Dashboard"
  2. Image SD Card
    1. Open IoT Dashboard and click Setup a new Device
    2. Select Raspberry Pi, Windows 10 IoT Core
    3. For device name, use ptpager
    4. Set an admin password
    5. Click Download and Install
  3. Boot the pi with the new SD Card and go through welcome screens
  4. Install .NET Core:
    1. From windows box, open \\ptpager\c$ and login with administrator and the password you specified
    2. Create c$/dotnet
    3. 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
    4. 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
  5. Back in IoT Dashboard and click My Devices. Right Click and Click Launch Powershell
  6. Test dotnet by running C:\dotnet\dotnet.exe --version
  7. Create \ptpager\c$\credentials.txt with credentials from the aws setup. Format is:
    [pollyaccess]
    aws_access_key_id = <value>
    aws_secret_access_key = <value>
    
  8. Deploy app:
    1. On windows machine, download this repo
    2. Edit appsettings.Production.json
      • Fill out bindingIp to ip of Pi
      • Fill out ClientSecret from smartthings app
    3. From PTPagerServer\PTPager.Web3 folder, execute:
      • dotnet publish PTPager.Web3.csproj /p:PublishProfile=PiProfile

ptpager's People

Contributors

joeharrison714 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.