Code Monkey home page Code Monkey logo

viber-walks-bot's Introduction

Viber Walks Bot

This is a Viber bot created using ASP.NET Core WebApi. The bot provides walking tour suggestions to users based on their location using data stored in a MSSQL database. The procedure for calculating the walking tours is also included in the project.

Prerequisites

To run this bot locally, you need to have the following software installed on your system:

Usage

  1. Clone the repository and open it in Visual Studio or another code editor.
  2. Open the MSSQL script file provided and run it to create the necessary database tables.
  3. Modify the connection string in the appsettings.json file to point to the newly created database.
  4. Build and run the project in your code editor.
  5. Start ngrok and expose the local port the project is running on.
  6. Register a Viber public account and set up a bot.
  7. Configure the Viber bot webhook to point to the ngrok URL.
  8. Use the bot to get walking tour suggestions based on the user's location or to get information about walking tours by entering an IMEI number.

Calculations

The procedure for calculating the walking tours includes the following steps:

  1. Divide the data into separate walks. A new walk is considered if the time between the last signal is 30 minutes or more.
  2. Calculate the distance covered for each walk.
  3. Calculate the duration of each walk.
  4. Calculate the total distance and total duration for the day.
  5. Create a Viber bot that displays the total information and a top 10 list of walking tours by distance covered.

Built With

viber-walks-bot's People

Contributors

wanderlust-li avatar

Watchers

 avatar

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.