Final Project for: 物聯網導論 | Introduction to the Internet of Things | NTU | 吳瑞北教授 | 2021 Fall
IoT_4-9N9mdIQPsTo.mp4
Create a new channel on the LINE Developers Console and get the channel secret and channel access token. Add the LINE Official Account associated with your bot as a friend by scanning the QR code on the Messaging API tab.
Clone the Heran-IoT-LineBot GitHub repository onto your local machine.
Create a new Heroku app from the Heroku dashboard and copy the app name.
Go to your Heran-IoT-LineBot directory and add a Git™ remote. Note: {HEROKU_APP_NAME} is the app name from step 3.
$ heroku git:remote -a {HEROKU_APP_NAME}
Push changes to Heroku.
$ git add .
$ git commit -m 'First commit'
$ git push heroku master
Enter the webhook URL in the LINE Developers Console using this URL format: https://{HEROKU_APP_NAME}.herokuapp.com/callback
.