GithubHelp home page GithubHelp logo

matf-pp / 2020_chat-bot-za-vremensku-prognozu Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 267 KB

Ideja je da se pomocu API servisa implementira chat bot koji ce moci da daje informacije o vremenskoj prognozi.

License: GNU General Public License v3.0

Python 100.00%

2020_chat-bot-za-vremensku-prognozu's Introduction

2020_Chat-Bot-za-Vremensku-Prognozu

Ideja je da se pomocu API servisa implementira chat bot koji ce moci da daje informacije o vremenskoj prognozi.

Za dobavljanje informacija o vremenu je koriščen je OpenWeather API.

Za izradu korisničkog interfejsa je korišćena biblioteka Tkinter koja dolazi kao deo standardne Python 3 biblioteke.

startup.png

one-query.png

big-query.png

Biblioteke potrebne za rad programa:

Biblioteke možete instalirati ručno ili možete pokrenuti komandu:

pip install -r requirements.txt

Pokretanje programa

Da biste pokrenuli program, dovoljno je da ukucate sledeću komandu:

python3 gui.py

Ili na windows sistemu:

python.exe gui.py

Unutar programa se nalaze sve potrebne instrukcije.

2020_chat-bot-za-vremensku-prognozu's People

Contributors

imafikus avatar aizenangel avatar

Watchers

James Cloos avatar Milena Vujosevic Janicic avatar

2020_chat-bot-za-vremensku-prognozu's Issues

Restruktuirati kod

Preurediti repozitorijum tako da postoje zasebni folder za izvorni kod.

MissingSchemaError prilikom pokretanja test primera iz help-a

Kolega je pokrenuo program i pratio uputstva iz help komande, ali je dobio naredni error:

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python3.6/tkinter/__init__.py", line 1705, in __call__
    return self.func(*args)
  File "gui.py", line 66, in send_message
    messaging_response = messaging.receive_message_and_make_response(msg)
  File "/home/cugur/Desktop/PP_Projects_2020/2020_Chat-Bot-za-Vremensku-Prognozu-master/messaging.py", line 94, in receive_message_and_make_response
    response = determine_response(user_msg)
  File "/home/cugur/Desktop/PP_Projects_2020/2020_Chat-Bot-za-Vremensku-Prognozu-master/input_parser.py", line 94, in determine_response
    return get_by_city_name(params)
  File "/home/cugur/Desktop/PP_Projects_2020/2020_Chat-Bot-za-Vremensku-Prognozu-master/backend.py", line 50, in get_by_city_name
    obj = make_request(req)
  File "/home/cugur/Desktop/PP_Projects_2020/2020_Chat-Bot-za-Vremensku-Prognozu-master/backend.py", line 19, in make_request
    res = requests.get(req)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 506, in request
    prep = self.prepare_request(req)
  File "/usr/lib/python3/dist-packages/requests/sessions.py", line 449, in prepare_request
    hooks=merge_hooks(request.hooks, self.hooks),
  File "/usr/lib/python3/dist-packages/requests/models.py", line 305, in prepare
    self.prepare_url(url, params)
  File "/usr/lib/python3/dist-packages/requests/models.py", line 379, in prepare_url
    raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL 'weather?q=London&appid=None': No schema supplied. Perhaps you meant http://weather?q=London&appid=None?

Problem je izgleda loše kreiranje URL-a za request, očigledno fali protokol (schema).

Takođe, nije rečeno, da li je potreban nekakav token za autorizaciju ili ne?

Napomene za implementaciju

Ocekujemo ozbiljniju implementaciju GUI-ja u biblioteci koja se ne radi na casu. Posto ML nije dozvoljen, deo za ChatBot ce morati biti pisan rucno. Ovako mora kako bi bilo fer prema ostalim kolegama.

Detaljniji README.md

Prvo što će neko videti kad uđe u vaš repozitirijum je README fajl. Dodajte više generalnih informacija o projektu kao i slike/animacije programa u akciji.

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.