JohannesNE / literature-clock

Clock using time quotes from the literature, based on the work of Jaap Meijers

Home Page:http://literature-clock.jenevoldsen.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How can you change the display size?

nakitadog opened this issue · comments

I noticed that you are using viewport vw for the font size as well as an equation to dynamically size the literary quote.

Is there a way to make it so that the display will fill a container of 600px X 800px?

I'm interested in modifying the code so that I can export the literary quotes as individual images in order to pass over to the Kindle.

I think you should have a look at https://www.instructables.com/id/Literary-Clock-Made-From-E-reader/

Tjaap has already generated the Kindle images.

That's actually why I was asking.

That download that he provides in his instructions does not contain as many literary quotes you have. He does not have a full 1,440 minutes. You seem to have all minutes and alternatives for some minutes.

I wanted a way to loop through all of your quotes and generate the images so I can push them to my Kindle clock that I created based on that particular instructable.

The issue I keep running into is CSS and getting everything to fit in 600px X 800px.

The dataset in the project is based entirely on the Kindle project. I have just filled empty minutes with the latest quote, so the clock is a few minutes slow at some points.

To answer your question I do not have a specific solution, but I'm sure you can make it fit by fiddling with the values in the script. I did it by finding the vw that worked best for many screen sizes for different lengths of text, an then fitted at 3rd order polynomial to it.

Okay thank you.