v79 / Khartoum

A library and app to display text and images on an Raspberry Pi eInk display
0 stars 0 forks source link

Refactor application into data sources that can return data headlessly #3

Closed v79 closed 1 week ago

v79 commented 1 week ago

Each data source (spotify, google calendar...) should be able to run and return data without calling or displaying anything on the screen. That way, I can ease debugging of data fetching without the slowness of the screen refreshes.

Define a communications format so that the data source can provide instructions to the display routine? Perhaps something in JSON?

{ "black": {
  "lg-w": "This is my song title",
   "sm-t": "Album name"
  },
  "red": {
 "sm-t": "Singer name",
  }
}

This might be OK for text, but will be much harder to send draw commands?