2
Help us understand the problem. What are the problem?
Organization

Run LINE bot on Raspberry Pi with Nerves 🚀

12/25, 2021

Introduction

Hey!

Enjoy Elixir:bangbang::bangbang::bangbang:
Enjoy Nerves:bangbang::bangbang::bangbang:

I run LINE bot on Nerves.
LINE is one of the most popular messaging app in Japan.

This bot does to parrot.
I use Nerves and Bandit.
Thanks a lot!!!

Source code

Documentations

Architecture

スクリーンショット 2021-12-26 8.14.04.png

Run

Would you please refer README?

ngrok

Spend more time programming. One command for an instant, secure URL to your localhost server through any NAT or firewall.

Usage on PC

192.168.1.9 is example.
Set your Nerves IP address.

$ ngrok http 192.168.1.9:4000

ngrok by @inconshreveable                                                                                         (Ctrl+C to quit)

Session Status                online                                                                                              
Account                       TORIFUKUKaiou (Plan: Free)                                                                          
Version                       2.3.40                                                                                              
Region                        United States (us)                                                                                  
Web Interface                 http://127.0.0.1:4040                                                                               
Forwarding                    http://dad0-133-218-30-187.ngrok.io -> http://192.168.1.9:4000                                      
Forwarding                    https://dad0-133-218-30-187.ngrok.io -> http://192.168.1.9:4000                                     

Connections                   ttl     opn     rt1     rt5     p50     p90                                                         
                              3       0       0.00    0.00    246.76  340.47

Set Webhook URL on LINE Developers Console.

スクリーンショット 2021-12-25 19.32.54.png

Wrapping up :lgtm::lgtm::lgtm::lgtm::lgtm:

Enjoy Elixir:bangbang::bangbang::bangbang:
Enjoy Nerves:bangbang::bangbang::bangbang:

We can make Slack app as same!!!

I organize autoracex.
And I belong to NervesJP.
I hope someday you'll join us.

We Are The Alchemists, my friends!

https___qiita-user-contents.imgix.net_https%3A%2F%2Fqiita-image-store.s3.ap-northeast-1.amazonaws.com%2F0%2F240349%2F5ef22bb9-f357-778c-1bff-b018cce54948.png_ixlib=rb-1.2.png

bonous ーー making

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Sign upLogin
2
Help us understand the problem. What are the problem?