Git Product home page Git Product logo

unitconversionbot's Introduction

A Telegram bot that converts units (e.g. feet → meters). Uses AWS Lambda.

Local Setup

  1. Install Python 3 and pipenv.
  2. Run pipenv install --dev.
  3. Run pipenv run make serve-local to run it locally.

To run tests run pipenv run make test.

Deploy

Copy .chalice/config.example.json to .chalice/config.json. Insert an API key from Open Exchange Rates and a S3 bucket name to the config file.

License

GNU General Public License v3.0 See LICENSE.txt to see the full text.

unitconversionbot's People

Contributors

dependabot[bot] avatar divi255 avatar maltsev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

divi255

unitconversionbot's Issues

Add conversion for Power/Torque, L/100km

Hello!

i just found your bot and really liked it. Very handy.
This bot does not accept power or torque requests and it kindly asks me to ask you to teach the bot. ft-lb/Nm, hp/kW/PSare not supported. The fuel consumption conversion to L/100km in "/units/fuel_consumption.py" is also not finished. I have seen a few examples online and it seems doable. Though i am no developer nor mathematician.
Below are the numbers necessary for conversion of torque and power:

|     | PS      | hp      | kW       |  
|-----|---------|---------|----------|
| 1PS | 1       | 0.98632 | 0.735499 | 
| 1hp | 1.01387 | 1       | 0.74570  |
| 1kW | 1.35962 | 1.34102 | 1        |

1 Nm is 0.74 ft-lb
1 ft-lb is 1.36 Nm

Thank you for your attention.

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.