You are browsing as a guest. Sign up (or log in) to start making projects!

6h 23m 44s logged

worked on the local backend

this update was mainly about taking the web app i made earlier and actually connecting it with the ADeck board and my pc. the web part was already getting pretty complete with profiles, slots, themes and local storage so now i started working on the python side and making the whole thing actually work with the board

  • made the main deck.py file for the local python backend

  • connected the web app with the uno r4 wifi through the serial connection and added auto detection for the board and its COM port so i dont have to keep changing the port manually

  • added the firmware install part using Arduino CLI so the board can be setup from the project itself

  • added the ping pong check so the backend can make sure the correct adeck firmware is actually responding

  • added saving of the profiles and button settings on the pc so the data stays there even after restarting

  • connected the save button with the real TFT so changing a label or color in the web app also changes it on the physical adeck

  • added command support so now a button on the adeck can run things on my pc and tested this with vs code, Notepad, Calculator and Paint, also i had a small problem where the apps were opening in the background instead of coming in front. had to change the windows command launching part in deck.py and test it again with different apps

  • made adeck_control.py for controlling the backend from the terminal and added the small ADeck-Control.bat menu where i can use options like 1 start, **2 **check system, 3 install or repair, 4 firmware, 5 logs, 6 stop, 7 errors and 8 status

  • fixed the problem where starting adeck again while it was already running was causing another backend to start and show an error

  • changed the setup so it checks if ADeck is already healthy and reuses it instead of starting another one and added the Setup ADeck.bat and Start ADeck.bat files so setup and normal starting can be done without typing all the python commands every time

  • added test_reliability.py and used it to check the main startup and recovery cases

  • tested stopping and starting the backend again and also tested removing and reconnecting the board and added .gitignore so things like .venv, .build and other generated files dont get pushed to github

there were quite a few small problems while connecting everything together but now the web app, python backend, pc commands and the physical adeck are all working together. the next part will be more testing and adding more things on top of this

sorry for those irritating lines on the TFT display🥀🥲

i guess some moisture messed it up a bit and thats why those lines showed up

0
18

Comments 0

No comments yet. Be the first!