From 40580fe80125f86f3c9750157c4dc14aaf159f91 Mon Sep 17 00:00:00 2001 From: "nein.wtf" Date: Thu, 24 Feb 2022 15:09:06 +0100 Subject: [PATCH] Update README --- README.org | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/README.org b/README.org index cc92e69..1bd5227 100644 --- a/README.org +++ b/README.org @@ -1,16 +1,16 @@ #+TITLE: Readme -* Rough Concept +* Dimensions of Covid Fuck this. Millions of people have died of COVID and probably there are millions more to come. Instead of a coordinated effort of keeping the global suffering as small as possible, most of the energy goes towards squeezing the last bit out of collective organization so that already powerful countries can be kept running and get an edge in the post-pandemic economic recovery. Early pandemic hopes that it could lead to a significant and lasting disruption of business-as-usual seem infinitely far away while the abolition of health protective measures is discussed even in regions with hundreds or thousands of people suffering and dying each day. * What this is about -This project is first and formost about giving the collective experience of loss a space. It tweets one 🖤 per dead person, until every single dead person has at least been given the little bit of honor this can provide. +See https://arnes.space/posts/2022-02-24-allowing-things-to-break/ * How does it work -In regular intervals, this fetches the current covid data from https://covid-19.datasettes.com, which provides data by the Johns Hopkins university, using the following query: +In regular intervals, =update-data.sh= fetches the current covid data from https://covid-19.datasettes.com, which provides data by the Johns Hopkins university, using the following query: #+begin_src sql select day, last_update, sum(deaths) sum_deaths @@ -21,4 +21,16 @@ order by day desc limit 1 #+end_src -This provides an up-to-date approximation of total covid 19 deaths. Tweets are sent as often as the Twitter API allows. +This provides an up-to-date approximation of total covid 19 deaths. In a somewhat backwards manner this is saved in a CSV, which is then again imported into an SQLite database. The database is queried in =index.lua=, where a single HTML page is created as a response. + +* Bundling + +Just add it all to the [[https://redbean.dev][redbean executable]]: + +#+begin_src sh +nix run nixpkgs#zip -- redbean.com *.lua +#+end_src + +The executable can just be put somewher and run. + +Note that there were some problems deploying the executable to uberspace, which could be resolved by using =redbean-unsecure.com=, which comes without built-in SSL support.