Skip to content

tankred/daily-painting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Daily (On Kawara) painting generator

Purpose

Create app to generate a daily painting in html (see codepen)

  • 10 . clip some copy from NYT to accompany the html painting
  • 20 . publish a screenshot on your favorite img stream

Getting Started

node src/index.js -h
node src/index.js -V

Prerequisites

Things you need to install and how to install them

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash # install nvm (node version manager)
nvm install 25 # install node v25

Automated screenshots with puppeteer

npm i -g puppeteer
npm install

modify click to specific page

use chancejs on puppeteer projects install chance-cli

Deprecated

use npm pageres to create full page screenshots 6 ♦

npm install pageres-cli
pageres www.charlesverraest.be 1024x768 1366x768 #2 screenshots
pageres www.standaard.be/ 1024x768 1366x768

Lab pageres > using pageres api

update pageres:

npm update -g pageres

Using a list of screen resolutions

pageres <url> < screen-resolutions.txt

SAMPLE:

pageres 891.be 1024x768 1366x768

Generate a daily painting

Get a screenshot (be patient)

node --unhandled-rejections=strict src/index.js

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

Tankred

License

GPLv3 license

Acknowledgments

About

Daily painting generator

Resources

Stars

Watchers

Forks

Packages

No packages published