More Application can check branch : version2
- LineBot’s sample code for echo response
- Some useful APIs about IoTtalk connection
- Don’t need to modify them
- Mainly modify this file
• Design the scenario
- Reply:the status of machines, the information of something, the location of something, etc.
- Recommendation: Restaurants, Movies, Attractions, etc.
- Other:Game …
• IoTtalk
• Design your own Device Model (at least one)
• LineBot
• Your LineBot need to interact with IoTtalk(send/receive data to/from IoTtalk)
• You can modify ‘app.py’ to finish mini project 4
Preliminary
- Line Account (https://developers.line.biz/en/)
- Ngrok (https://ngrok.com/download)
- You need to sign up and follow the instruction on the download page to add authtoken.
-
When you run python app.py, you will see the device name. IoTtalk's device needs to connect to this name.
-
You can run linebot_echo.py, but you need to change the token and secret to your own. You can apply for these at Line Developers.
After executing, when you type in this Line channel, you'll see it echo back exactly what you typed. -
Ngrok,it provides a service that helps developers share sites and apps running on their local machines or servers.
- Start a tunnel : ngrok http port