Close

Software architecture

A project log for PiSugar Battery for Raspberry Pi zero

Portable Power Platform for Pi Zero

jdaieJdaie 08/14/2019 at 02:560 Comments

Honestly I didn't have a clear view at the beginning of the coding work, but I believe a friendly UI is always needed. As I go deeper, I found some suitable tools to achieve this goal.

The diagram below shows the architecture behind this.

software architecture

There are several ways to interact with PiSugar 2:

system tray icon

The http sever is just for hosting html and js files, most of the UI communication is based on websocket, which mean we can get realtime data such as button events, whether the RTC alarm is triggered, etc.

To be continue...

Discussions