Updated README.md
[lace] / README.md
1 Forked from https://gitlab.com/uoou/dotfiles/-/blob/master/stow/bin/home/drew/.local/bin/lace
2
3 Lace is a small script to interlace Gemini Capsule micro blogs.
4
5 Enhancements made to the original lace with this fork.
6
7 The original lace would not run on Linux distributions running sed 3.7 or on Termux on Android.
8
9 Lace can now run on either a standard Linux distributions running sed 3.7, Termux on android, and UserLAnd on Android.  Sed, date, openssl, curl, less are dependencies that need to be installed.
10
11 The original script showed how long ago a entry was posted. Lace now shows how long ago a post occurred and the date and time of the post. 
12
13 ### Favicons
14
15 Lace may show the actual code for a favicon rather than the icon itself depending on the version of GNU less and/or fonts installed. If this happens you can either install a font that supports the favicon or comment out the following line in the script.
16
17 ```
18 fav=$(openssl s_client -crlf -quiet -connect "$domain:1965" <<<"gemini://$domain/favicon.txt" 2>/dev/null | sed -e '1d')
19 ```
20 Since favicons are not part of the Gemini standard, you may not want favicons to display.  Commenting out the above line of code will prevent favicons from displaying.
21
22 ### Updates
23 2021-04-27 I added a timeout variable in that is used with the timeout command to timeout connecting after a designated time to an unresponsive server.  If the value for the variable is a number it is in seconds if it is a number followed by a m then it is in minutes.  
24
25 ## Things to Do
26 Currently the script checks the server for a favicon and the actual blog page, so it connects to a server twice.  Currently, the script will check even an unresponsive server twice.  I need to add the logic that if the server times out on the first connect to skip the second connect.
27
28 ### Post about original script.
29
30 https://friendo.monster/posts/a-script-to-interleave-tiny-gemini-logs.html
31