Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html output as browser homepage (static html filename?) #157

Open
DavidAccola opened this issue Mar 29, 2020 · 3 comments
Open

html output as browser homepage (static html filename?) #157

DavidAccola opened this issue Mar 29, 2020 · 3 comments

Comments

@DavidAccola
Copy link
Contributor

DavidAccola commented Mar 29, 2020

This falls somewhere between a how-to question and feature request:

My dream is to set my browser startup page (Chrome, probably, be could be any browser) to the local html output dosage creates, building viewing that day's content seamlessly into my day.

The issue is that the html output filename is dynamic by date, so as things are now my homepage will fall further and further out of date. Would it be possible to add a parameter by which you can give the html output a static filename and that it could overwrite itself if it were already present rather than creating a new file?

I'm open to other ideas too on the browser side. Thanks!

@DavidAccola
Copy link
Contributor Author

This can be closed, I've come up with a serviceable way to accomplish this as is. In case anyone stumbling onto this thread is trying to do the same thing, here's my process:

Method for setting your browser startup page to always be today's dosage html output (in WIndows)
(This assumes your basepath/baseurl is C:\Comics. If not, you'll need to make adjustments as needed everywhere that path is referenced.)

  1. Place the ComicsHomepage.html file attached to this post into your Comics folder. This page just auto-redirects to the URL corresponding to whatever today's date is. (Edit the text of this file if your baseurl is not C:\Comics.)
    ComicsHomepage.zip

  2. Set this value as your browser's startup page and/or bookmarks bar when it asks for a URL:
    file:///C:/Comics/ComicsHomepage.html
    (In Chrome, this is at chrome://settings/?search=startup > Open a specific page or set of pages > Add a new page)

  3. Now to ensure dosage catches up on comics every day. Create a .bat file something like this one in your Comics folder (example uses the Windows binary):
    C:\Comics\dosage.exe --continue @ --output html --no-downscale --basepath C:\Comics\ --baseurl C:\Comics\

  4. Schedule that .bat file to run daily with Window's Task Scheduler. Suggestions:
    -Trigger: Daily
    -Action: Start a program
    -Conditions: Start only if the following network connection is available: Any connection
    -Settings: Run the task as soon as possible after a scheduled start is missed

@TobiX
Copy link
Member

TobiX commented Apr 2, 2020

I still think dosage could probably create an index.html which either redirects to the latest file or lists all days...

@DavidAccola
Copy link
Contributor Author

That'd be cool!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants