LoginSignup
12
3

More than 1 year has passed since last update.

Run LINE bot on Raspberry Pi with Nerves 🚀

Last updated at Posted at 2021-12-25

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

12
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
3