Advertisement
Guest User

Untitled

a guest
Apr 10th, 2018
411
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.64 KB | None | 0 0
  1. miststlkr@htpc:~$ nvm install 8.11.1
  2.     v8.11.1 is already installed.
  3.     Now using node v8.11.1 (npm v5.6.0)
  4.  
  5.  
  6. miststlkr@htpc:~$ nvm use 8.11.1
  7.     Now using node v8.11.1 (npm v5.6.0)
  8.  
  9.  
  10. miststlkr@htpc:~$ npm install -g lexigram-cli
  11.     /home/miststlkr/.nvm/versions/node/v8.11.1/bin/lexigram -> /home/miststlkr/.nvm/versions/node/v8.11.1/lib/node_modules/lexigram-cli/dist/index.js
  12.     + lexigram-cli@1.0.3
  13.     added 1 package and updated 7 packages in 13.979s
  14.  
  15.  
  16. miststlkr@htpc:~$ lexigram login
  17.     ? Please create a new profile or overwrite the existing profile.
  18.      [dferruzzi]               ** NULL **
  19.     -------------------- Initialize CLI --------------------
  20.     ? There is no AWS credential setup yet, do you want to continue the initialization? (Default: False) Yes
  21.     Warning: Profile: "dferruzzi" will not be able to deploy lambda functions since no AWS credentials are set up.
  22.  
  23.     Switch to 'Login with Amazon' page...
  24.     Tokens fetched and recorded in ask-cli config.
  25.     Vendor ID set as M3TQETLBUD5CW8
  26.  
  27.     Profile [dferruzzi] initialized successfully.
  28.  
  29.  
  30. miststlkr@htpc:~$ lexigram init-config
  31.     Config file already exists. Would you like to overwrite? [y/n]: y
  32.  
  33. miststlkr@htpc:~$ lexigram init-skill kanzi
  34.     Skill directory exists. Would you like to overwrite? [y/n]: y
  35.     ? Initialize kanzi skill
  36.  
  37. miststlkr@htpc:~$ nano kodi.config
  38.     I changed only the following:
  39.         address  = miststlkr.dyndns.org     // the dyndns address of the Kodi instance  want to control
  40.         port     = 2080                     // the port that my router forwards to the Kodi instance to get to the web interface
  41.         username = kodi                     // login info for Kodi's web interface
  42.         password =
  43.         timezone = US/Pacific
  44.        
  45. miststlkr@htpc:~$ lexigram generate-function kanzi
  46.      ? Check config file
  47.      ? Validate config file
  48.      ? Check skill directory
  49.      ? Remove old Lambda function code
  50.      ? Download latest source code
  51.      ? Extract source code
  52.      ? Copy config file
  53.      ? Create deployment zip file
  54.  
  55.     File is ready. Please upload 'kanzi-lambda-upload.zip' to AWS Lambda.
  56.  
  57. Using Lambda
  58.     Region is Oregon
  59.     Deleted all previous functions and roles
  60.     New Function
  61.         exactly as in screenshot
  62.     Added Alexa Skill set
  63.         disabled skill id verification
  64.         Changed RAM and timeout
  65.         uplodaed zip   
  66.         changed handler title
  67.         hit save
  68.         ARN - arn:aws:lambda:us-west-2:250493968031:function:kanzi
  69.        
  70. miststlkr@htpc:~$ lexigram deploy kanzi
  71.      # Check config file
  72.      # Validate config file
  73.      # Check skill directory
  74.      # Remove old repo code
  75.      # Download latest source code
  76.      # Extract source code
  77.      # Extract source code - Part 2
  78.      # Update skill data
  79.      # Update slot values
  80.      # Deploy skill
  81.        # Deploying skill information.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement