← Back to context

Comment by mtlynch

8 months ago

>I designed a backend API that collected the data in real-time data and exported it as a PNG image.

Does anyone know why in these Kindle modding dashboards, they always generate the dashbard image on an external server? Why isn't it possible to build all that functionality into an executable on the Kindle itself? You've got a Linux environment, so why can't you run all the logic locally?

I built this dashboard. The price curves and text are rendered locally from the microcontroller and painted pixel by pixel. Letters use raster fonts stored locally, price curves are generated on the fly. It can be done, it takes a bit of care. Mine only has ~400KB memory. It must be a lot easier on the Kindle, I think it runs Java even.

https://www.asciimx.com/projects/etlas/

I'm just curious about the best way to generate a dashboard image locally without invoking a web browser -- I'm quite terrible at web programming and would be much more comfortable with ImageMagick or even troff.

Most people today do not know how to program in the confines of 256MB of RAM and are not aware that languages other than javascript exist.

  • I expected the Kindle to do a few api calls and call ImageMagick but instead, in Cloudflare, it sets up a headless browser, and renders a web page to a PNG file on the server, and then only the final png image gets returned to the Kindle.