Giter VIP home page Giter VIP logo

smartdisplay-backend's People

Contributors

andrewjw avatar renovate[bot] avatar

Watchers

 avatar  avatar

smartdisplay-backend's Issues

Handle cancelled trains

----------------------------------------
Exception occurred during processing of request from ('192.168.1.36', 52493)
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/socketserver.py", line 318, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/usr/local/lib/python3.12/socketserver.py", line 349, in process_request
    self.finish_request(request, client_address)
  File "/usr/local/lib/python3.12/socketserver.py", line 362, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/local/lib/python3.12/socketserver.py", line 761, in __init__
    self.handle()
  File "/usr/local/lib/python3.12/http/server.py", line 436, in handle
    self.handle_one_request()
  File "/usr/local/lib/python3.12/http/server.py", line 424, in handle_one_request
    method()
  File "/display/smartdisplay/smart_display_handler.py", line 30, in do_GET
    data = self.trains_to_london()
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/display/smartdisplay/smart_display_handler.py", line 132, in trains_to_london
    "trains": get_trains_to_london()
              ^^^^^^^^^^^^^^^^^^^^^^
  File "/display/smartdisplay/trains.py", line 64, in get_trains_to_london
    "is_late": _is_late(train.std, train.etd)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/display/smartdisplay/trains.py", line 106, in _is_late
    ehour, eminute = int(estimated.split(":")[0]), int(estimated.split(":")[1])
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: invalid literal for int() with base 10: 'Cancelled'
----------------------------------------

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
Dockerfile
  • python 3.12-slim
github-actions
.github/workflows/build.yml
  • actions/checkout v4
  • actions/setup-python v5
pip_requirements
requirements.txt
  • soco ==0.30.2
  • pillow ==10.2.0
  • requests ==2.31.0
  • types-requests ==2.31.0.20240125
  • types-Pillow ==10.2.0.20240125
  • pycodestyle ==2.11.1
  • mypy ==1.8.0
  • nre-darwin-py ==0.4.0
  • sentry-sdk ==1.40.0
  • prometheus-api-client ==0.5.4

  • Check this box to trigger a request for Renovate to run again on this repository

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.