MadeInPierre / finalynx

A minimalistic companion (CLI & web) to organize your investment portfolio, simulate its future, and reach your life goals.
https://finalynx.readthedocs.io
GNU General Public License v3.0
68 stars 13 forks source link

Option to save the final tree in a PNG? #50

Closed MadeInPierre closed 1 year ago

MadeInPierre commented 1 year ago

Could be nice to generate this image daily in a server somewhere (home raspberry pi?) and get a daily/weekly image of our portfolio

lasconic commented 1 year ago

Not a PNG, but what about HTML ? See https://randomgeekery.org/post/2021/08/extracting-rich-output/

MadeInPierre commented 1 year ago

That was the first thing I tried in the web dashboard (see https://github.com/zauberzeug/nicegui/discussions/725) but the output wasn't perfect as there was some display glitches when exporting to HTML. It was pretty decent though for a temporary solution, but I replaced it with the interactive NiceGUI Tree available today.

The best way would be to (optionally) turn Finalynx into a web server, host it on a raspberry pi, create a nice/responsive/mobile web dashboard, and use it from our phone/desktop browsers. However, I'm a noob in web development and can't make a nice responsive dashboard :sweat_smile: If Finary supports OAuth one day, Finalynx could be hosted somewhere like AWS and be available for everyone.

Otherwise, something like a daily PNG post to our Telegram account could be nice too but a bit more niche. I haven't found a way to generate a PNG as beautiful as the terminal output yet.

lasconic commented 1 year ago

Once you have HTML, you could have PNG no ? Also, if there is not much interactivity (configuration etc...), there might be no need to have a web server but instead push the HTML to an existing one ?

MadeInPierre commented 1 year ago

Oh well, wasn't hard after all, thanks for the push ^^ Pretty fun to have a Telegram bot now: