GithubHelp home page GithubHelp logo

ryusuke920 / ootagawastationlinebot Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 14.28 MB

LINE's automatic bot that tells you the departure time of the train from Ootagawa Station (my local station)

Python 70.13% PowerShell 21.07% Shell 8.80%

ootagawastationlinebot's Introduction

OotagawaStationLineBot

LINE's automatic bot that tells you the departure time of the train from Ootagawa Station (my local station)

Production period

2021/04/04(Sun) 〜 2021/04/05(Mon)

Producer

Ryusuke

derectoryName Explanation
img The image of Ootagawa Station, which is the icon of the line, is stored.
line Contains the SDK that creates the outline of the automatic bot.
app.py It is a Py code that describes the timetable of the main train and the sentences to be sent.
station.py This is the Py code I wrote for debug. It doesn't matter if you don't have it.

One flow

1. Terminal operation

git clone https://github.com/ryusuke920/OotagawaStationLineBot.git

Enter.

2. Launch ngrok

./ngrok http 5000

You can get the http and https URLs corresponding to localhost by typing. スクリーンショット 2021-04-05 19 15 18

3. Settings in LINE Developers

Copy this URL into the Webhook URL in the LINE Developers Webhook settings.
At this time, if you are not https, it will be invalidated, so be careful. スクリーンショット 2021-04-05 18 59 39

4. Launch Flask

At the terminal,

flask run

Enter to complete.
If you go to the LINE Bot screen and send the station name and time, the time based on it will be returned automatically.

Image diagram

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.