Skip to content

Instantly share code, notes, and snippets.

@dewomser
Last active November 5, 2025 11:52
Show Gist options
  • Select an option

  • Save dewomser/37bee8b04be32a985489ee65cbdadd30 to your computer and use it in GitHub Desktop.

Select an option

Save dewomser/37bee8b04be32a985489ee65cbdadd30 to your computer and use it in GitHub Desktop.

Revisions

  1. dewomser revised this gist Sep 11, 2025. 1 changed file with 5 additions and 0 deletions.
    5 changes: 5 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    #!/bin/bash
    # Es geht auch ohne Variable a
    t=$(curl -s https://wetter.hs-worms.de/api/v3/data | jq '.temperature.out')
    t1=15
    if [[ $t < $t1 ]]; then echo "Uh, this is cold !"; else echo "Uff,rather warm !"; fi
  2. dewomser revised this gist Oct 24, 2024. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions hotornot.sh
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,8 @@
    #!/bin/bash
    t=$(curl -s https://wetter.hs-worms.de/api/v3/data | jq '.temperature.out')
    t1=15
    # old school a=$(echo "$t<$t1"|bc)
    a=$(( t<t1 ))
    a=$(echo "$t<$t1"|bc)
    #testa failed =$(( t<t1 ))
    if [[ $a -eq 1 ]]; then
    echo "Uh, this is cold !"
    else
  3. dewomser revised this gist Sep 3, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion hotornot.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    #!/bin/bash
    t=$(curl -s https://wetter.hs-worms.de/api/v3/data | jq '.temperature.out')
    t1=15
    # old schhol a=$(echo "$t<$t1"|bc)
    # old school a=$(echo "$t<$t1"|bc)
    a=$(( t<t1 ))
    if [[ $a -eq 1 ]]; then
    echo "Uh, this is cold !"
  4. dewomser revised this gist Sep 3, 2024. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion hotornot.sh
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,8 @@
    #!/bin/bash
    t=$(curl -s https://wetter.hs-worms.de/api/v3/data | jq '.temperature.out')
    t1=15
    a=$(echo "$t<$t1"|bc)
    # old schhol a=$(echo "$t<$t1"|bc)
    a=$(( t<t1 ))
    if [[ $a -eq 1 ]]; then
    echo "Uh, this is cold !"
    else
  5. dewomser created this gist Aug 21, 2024.
    9 changes: 9 additions & 0 deletions hotornot.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/bin/bash
    t=$(curl -s https://wetter.hs-worms.de/api/v3/data | jq '.temperature.out')
    t1=15
    a=$(echo "$t<$t1"|bc)
    if [[ $a -eq 1 ]]; then
    echo "Uh, this is cold !"
    else
    echo "Uff,rather warm !"
    fi