simple startpage script with rss support

Posted: 09/26/2021 03:25:52 PM. Updated: 12/22/2021 07:39:01 AM

here is the example output

made quite simple static startpage script with rss support as with growing number of devices maintaing multiple feed readers is just annoying. also it has the list of commonly used websites which is also nice as trying to remember all of those is annoying. for rss it uses sfeed.

here is the code in a single file format, put it and use >> in any cron-like format or other repeated task to keep it updated.

feel free adjusted the common used links to your own needs

#!/bin/sh
markdown=smu
sfeed_update 1>&2 2>/dev/null

cat << EOF
<!DOCTYPE html>
<html lang="en">
<head>
<link rel=stylesheet href="./static/css/main.css">
<meta http-equiv="refresh" content="1200">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>start page</title>
</head>
<body>
EOF

smu << EOF
**travel**: [osm](https://www.openstreetmap.org/) 

**weather**: [bbc weather](https://www.bbc.co.uk/weather/2643743)

**time:** [1m](https://e.ggtimer.com/1minute) | [2m](https://e.ggtimer.com/2minutes) | [3m](https://e.ggtimer.com/3minutes) | [4m](https://e.ggtimer.com/4minutes) | [5m](https://e.ggtimer.com/5minutes) | [6m](https://e.ggtimer.com/6minutes) | [7m](https://e.ggtimer.com/7minutes) | [8m](https://e.ggtimer.com/8minutes) | [9m](https://e.ggtimer.com/9minutes) | [10m](https://e.ggtimer.com/10minutes) | [15m](https://e.ggtimer.com/15minutes) | [20m](https://e.ggtimer.com/20minutes) | [25m](https://e.ggtimer.com/25minutes) | [30m](https://e.ggtimer.com/30minutes) | [45m](https://e.ggtimer.com/45minutes) | [60m](https://e.ggtimer.com/60minutes) | [2h](https://e.ggtimer.com/2hours) | [3h](https://e.ggtimer.com/3hours) | [pomo](https://pomodorro.net/)[doro](https://ricostacruz.com/flowloop) | [time.is](https://time.is/) | [time converter](https://www.worldtimebuddy.com/)

**news**: [bbc](https://www.bbc.co.uk/news/) / [england](https://www.bbc.co.uk/news/england) / [world](https://www.bbc.co.uk/search?q=World+Update&filter=programmes) | [reuters](https://uk.reuters.com/) | [ap](https://apnews.com/)

**food**: [budgetbytes](https://www.budgetbytes.com/)

**tools**: [riseup share](https://share.riseup.net/) | [etymonline](https://www.etymonline.com/) | [google scholar](https://scholar.google.com) | [smmry](https://smmry.com/)

**music**: [rym](https://rateyourmusic.com)

**misc**: [ebay](https://ebay.co.uk) | [textboards](http://xiongnu.org/overtext/) 

![london weather](https://v2.wttr.in/London.png)
EOF

cd ~/.sfeed/feeds/ || exit 1

awk -F '\t' -v "old=$(($(date +'%s') - 604800))" '
BEGIN { OFS = "\t"; }
int($1) >= old {
        $2 = "[" FILENAME "] " $2;
        print $0;
}' * | \
sort -k1,1rn | \
sed 50q | sfeed_html | sed -n '/div>/d;/<title>/d;10,$ p;'

please contact me if you deeply disagree or are able to prove me wrong on any points. i will publish worthwhile comments and critiques under the article.

enjoyed the article? Please consider donating. Thanks.

Back to the index