Skip to content
Snippets Groups Projects
Commit d8496407 authored by Karol Hennessy's avatar Karol Hennessy
Browse files

minor changes, added sw packages

parent 2c5977f3
Branches
No related merge requests found
......@@ -32,6 +32,12 @@
name: "{{ item }}"
with_items: "{{ pip_list }}"
- name: link fonts for hev-display
file:
src: "/usr/share/fonts/truetype/dejavu"
dest: "/usr/local/qt5pi/lib/fonts"
state: link
#- name: install arduino suite
#command: ./arduino_suite.sh
......
......@@ -6,6 +6,8 @@ rpi_swlist:
- python3-serial
- python3-flask
- sqlite3
- fonts-open-sans
- libts0
pip_list:
- libscrc
......
......@@ -184,9 +184,9 @@ class HEVServer(object):
LOCALHOST = "127.0.0.1"
b1 = self.serve_broadcast(LOCALHOST, 54320) # WebUI broadcast
r1 = self.serve_request(LOCALHOST, 54321) # joint request socket
#b2 = self.serve_broadcast(LOCALHOST, 54322) # NativeUI broadcast
#tasks = [b1, r1, b2]
tasks = [b1, r1]
b2 = self.serve_broadcast(LOCALHOST, 54322) # NativeUI broadcast
tasks = [b1, r1, b2]
#tasks = [b1, r1]
await asyncio.gather(*tasks, return_exceptions=True)
def serve_all(self) -> None:
......@@ -206,8 +206,14 @@ if __name__ == "__main__":
else:
# get arduino serial port
for port in list_ports.comports():
vidpid = ""
if port.pid != None and port.vid != None:
vidpid = f"{ port.vid:04x}:{port.pid:04x}".upper()
logging.debug(vidpid)
if port.manufacturer and "ARDUINO" in port.manufacturer.upper():
port_device = port.device
elif vidpid == "10C4:EA60" :
port_device = port.device
# initialise low level interface
try:
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment