1
0
mirror of https://github.com/kmein/niveum synced 2026-03-20 03:51:07 +01:00

3 Commits

Author SHA1 Message Date
a983ce13f8 feat(streams): add more radio stations 2021-03-11 19:10:01 +01:00
b6fa1fc274 chore: update 2021-03-11 19:09:48 +01:00
68e60b93ff feat(scripts): pimp rfc script 2021-03-11 10:26:19 +01:00
6 changed files with 65 additions and 5 deletions

View File

@@ -1 +0,0 @@
curl -sSL "https://tools.ietf.org/rfc/rfc$*.txt" | less

View File

@@ -1,9 +1,9 @@
{
"url": "https://github.com/NixOS/nixpkgs.git",
"rev": "4d0ee90c6e253d40920f8dae5edb717a7d6f151d",
"date": "2021-03-03T17:56:06+10:00",
"path": "/nix/store/34qxlskmrw071mb2hr2wlki660i5rn1s-nixpkgs",
"sha256": "0i4w6zfj1pz52lnpdz4qn9m8d96zlmwfgizi5dsdy3vcqxdwkqi3",
"rev": "89a06218ca0b931ab872a9c99aa479285183d3c7",
"date": "2021-03-10T11:57:10+01:00",
"path": "/nix/store/pg5lz9zf2fvwng2xn5njhr9ybgqgm2js-nixpkgs",
"sha256": "0lzqs2zzsj3qfnmxz2whap9wjqgff60j30r1qwav3vh89xgl45iz",
"fetchSubmodules": false,
"deepClone": false,
"leaveDotGit": false

View File

@@ -144,6 +144,7 @@ in {
scripts.liddel-scott-jones
# kmein.slide
scripts.tolino-screensaver
scripts.rfc
nix-prefetch-git
scripts.nix-git
nixfmt

View File

@@ -26,6 +26,9 @@ let
royal-name = name: "${name} | RoyalRadio";
royal = name: "http://193.33.170.218:8000/${name}";
stereoscenic-name = name: "${name} | Stereoscenic";
stereoscenic = name: "http://radio.stereoscenic.com/${name}";
radiorecord-name = name: "${name} | Radio Record";
radiorecord = name: "http://air.radiorecord.ru:8102/${name}_320";
radiorecord-logo = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 144 46'%3E%3Cpath d='M68.3 24H79c8-11.4 29.8-18.8 41.7-24l-5.4 1.6-.3.2-15.3 4.6-3.1.9-17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.4.1-.2 1.7-5.6h2.5l2.7 5.7.1.1.1.3h8.2l-3.3-6.6c3.5-.3 4.3-1.7 4.9-4.1zm-7-1.6l-.4 1.4c-.1.4-.3.5-.7.6L10 37.3l1.4-4.5h5.5c.6 0 .8.2.6.8zM71.1 35l1.2-3.8c.5-1.3-.4-2.8-1.9-2.7H57c-2.8 0-4.6 1-5.5 3.6l-2.2 7.5c-.6 2-1.8 4.8.3 5.9.8.4 2 .5 3.1.5h12.5c1.5 0 3.2-1.4 3.6-2.7l1-3.7h-5.7l-.6 2.1h-7.3l2.7-8.9h7l-.8 2.2h6z' fill-rule='evenodd' clip-rule='evenodd' fill='%23fff'/%3E%3C/svg%3E";
@@ -1482,6 +1485,28 @@ in [
station = radiorecord-name "Uplifting";
logo = radiorecord-logo;
}
{
stream = stereoscenic "mod-h";
station = stereoscenic-name "Ambient Modern";
}
{
stream = stereoscenic "asp-h";
station = stereoscenic-name "Ambient Sleeping Pill";
}
{
stream = stereoscenic "ama-h";
station = stereoscenic-name "A. M. Ambient";
}
{
stream = "http://1a-schlagergold.radionetz.de/1a-schlagergold.aac";
station = "1A Schlagergold";
}
{
stream = "http://streams.freetalklive.com:8000/";
station = "Free Talk Live";
logo = "https://upload.wikimedia.org/wikipedia/en/8/8d/FreeTalkLive_Logo.png";
desc = "Talk Radio You Control";
}
{
stream = "http://play2.organlive.com:7000/320";
station = "Organ Live";
@@ -1492,6 +1517,12 @@ in [
desc = "Pipe Organ music 24/7. An Outpost Radio station.";
logo = "https://outpostradio.com/organmagic/organ-magic-1-web.jpg";
}
{
stream = "http://listen.radiopartywelle.com:8000";
station = "Radio Partywelle";
logo = "https://www.radiopartywelle.com/wp-content/uploads/2020/11/RPW-HAUPTLOGO-einfach-gute-Laune-1.png";
desc = "... einfach gute Laune!";
}
]
/*
(caster-fm "TODO" "noasrv" 10182) # https://github.com/cccruzr/albumsyoumusthear/blob/7e00baf575e4d357cd275d54d1aeb717321141a8/HLS/IBERO_90_1.m3u

View File

@@ -302,6 +302,11 @@ in rec {
unicodmenu = pkgs.callPackage ./unicodmenu.nix { };
rfc = wrapScript {
script = ./rfc.sh;
name = "rfc";
packages = [ pkgs.curl pkgs.pup pkgs.gnused pkgs.gawk pkgs.gnugrep pkgs.fzf ];
};
bvg = pkgs.callPackage ./bvg.nix { };
nav = pkgs.callPackage ./nav.nix { };

24
packages/scripts/rfc.sh Normal file
View File

@@ -0,0 +1,24 @@
#!/bin/sh
set -efu
cache_file=/tmp/rfc-index.txt
fetch_index() {
if [ -f "$cache_file" ]
then cat "$cache_file"
else curl -sSL https://tools.ietf.org/rfc/index | tee "$cache_file"
fi
}
rfc_list="$(fetch_index \
| pup 'pre text{}' \
| awk '$0 != "" {printf "%s",$0} $0 == "" {printf "\n"}' \
| sed 's/\s\+/ /g' \
| sed 'n;d' \
| grep '^RFC[[:digit:]]' \
| sed 's/RFC\([[:digit:]]\+\)/\1\t/;s/\. .*//'
)"
selection="$(echo "$rfc_list" | fzf | awk '{print $1}')"
curl -sSL "https://tools.ietf.org/rfc/rfc$selection.txt" | less