Git Product home page Git Product logo

hcra's People

Contributors

kj7rrv avatar

Stargazers

 avatar

Watchers

 avatar

hcra's Issues

Try just sending whole frames

The tile system does slightly increase framerate, but it severely overloads the server. I need to either fix it or get rid of it.

Migrate to Tornado

Eventually, I should migrate the server to Tornado for a more production-quality server.

AssertionError in Tornado

I guess the switch to Tornado didn't improve stability. It now does this occasionally:

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "wss.py", line 83, in run
    loop.run_until_complete(self.cycle())
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "wss.py", line 73, in cycle
    self.write_message(item)
  File "/home/kj7rrv/.local/lib/python3.8/site-packages/tornado/websocket.py", line 340, in write_message
    return self.ws_connection.write_message(message, binary=binary)
  File "/home/kj7rrv/.local/lib/python3.8/site-packages/tornado/websocket.py", line 1096, in write_message
    fut = self._write_frame(True, opcode, message, flags=flags)
  File "/home/kj7rrv/.local/lib/python3.8/site-packages/tornado/websocket.py", line 1073, in _write_frame
    return self.stream.write(frame)
  File "/home/kj7rrv/.local/lib/python3.8/site-packages/tornado/iostream.py", line 544, in write
    self._handle_write()
  File "/home/kj7rrv/.local/lib/python3.8/site-packages/tornado/iostream.py", line 974, in _handle_write
    self._write_buffer.advance(num_bytes)
  File "/home/kj7rrv/.local/lib/python3.8/site-packages/tornado/iostream.py", line 183, in advance
    assert 0 < size <= self._size
AssertionError

Steps to reproduce

  1. Connect
  2. Wait

Support X11 mode on real displays in fullscreen

Currently the X11 backend assumes that the display is 800x480 and shows nothing but HamClock, effectively making Xvfb a requirement. It should be able to "find" HamClock when centered on a real screen.

Use subprocess

The server currently uses os.system a lot. Most if not all of these calls should be replaced with subprocess.

Version negotiation

There needs to be some way for the client and server to determine the latest version of the protocol that they both support. If I add a version negotiation system, it will need to be before the first release.

I will probably do this at the same time as the new password system (see #5).

Also related to migrating to Tornado (see #7).

"Integrated HamClock" backend

At some point I want to try modifying HamClock to integrate directly with the HCRA server, avoiding the overhead of image processing.

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.