JonnyBooker / split-flap

Code for split-flap display based on: https://github.com/Dave19171/split-flap
https://www.prusaprinters.org/prints/69464-split-flap-display
GNU General Public License v3.0
47 stars 7 forks source link

Reading RSS? #18

Open Tomtim1 opened 2 months ago

Tomtim1 commented 2 months ago

Hi! Is there any possibility to write using RSS on this screen? I imagine it would work the best with GPT to shorten news everyday to 2-3 lines of text and display them one by one every few seconds.

JonnyBooker commented 1 month ago

Hello! I feel that is quite a niche feature for this type of device to do, so I don't think its quite a fit for this project at this time. However I think it should be very possible and happy to outline how think that could be done.

You could create a new "Mode" similar to date/text/time/countdown which could support it and add in a bunch of configuration options to point it at an RSS Feed. There are several tutorials on reading a RSS Feed on google with a Arduino which I think would be simple to translate and even this library which might help.

You could probably leverage a lot of what is already there as I've already implemented message splitting which if you were to "parse" your text from a RSS feed/ChatGPT, you can pass it along to the showText method here which would take care of splitting all the words across several turns of the display.

I have some concerns about ensuring that you don't pull down from the RSS feed too often and it does not exhaust your ChatGPT tokens so you'd have to be careful on that one to not rack up a bill!

Happy to give feedback and answer questions if decide to pursue this further :)