Relegated /lost/bin

VastOne

I used to see that but just increased the size of my terminal to match it...   :D

Archie correctly uses uname-r to get the kernel, sfectch uses a variation of uname -a to pull it

Archey uses the more standard linux conventions while sfetch went in several different directions

It took me 2 minutes to get archey to work with vsido and 3 days to get sfetch done

Guess you can imagine which one I prefer
VSIDO      VSIDO Change Blog    

    I dev VSIDO

Sector11

  Well, archey was first, and then he published it with a .deb - then that stopped.  It's a python script, I have never touched it.

Then screenfetch came out, displayed a little different info. Bash script, never really understood how it does things either, but every now and then I play with it.  Like I did today, nothing serious just for fun.  I usually mess it up so bad I have to start over again.  :D

Guess huh ... archey, jughead ... Oh I know, veronica, in the rain with black pants and VSIDO on them. ???

... now I need glasses!  -->> archey of course.
Stay Home

VastOne

#17
The archey python is actually done very nicely so that it is easy to edit, you will see it looking at it ..  It is not much different than a bash file and you can copy and paste from the existing to create what you want

What I am saying is that it is not really that difficult   :P
VSIDO      VSIDO Change Blog    

    I dev VSIDO

Sector11

Yea, but programming languages are a bit deep for me.  Someday, maybe, I'll take a boo.  :D
Stay Home

VastOne

Python is very similar to bash ... I would suggest opening archey and you will see the code is just as easy to copy and paste from one area to another and make the format you would want

I do not know how to code in python, but I know how to manipulate it to do what I want it to do
VSIDO      VSIDO Change Blog    

    I dev VSIDO

Sector11

Hahahahaha after a few years of bugging the hell out of Mark (conkyForecast - python) I know when it walking knee deep in mud.  And bugging mrpeachy for what seemed like forever on siple things with LUA - like how do I run it - MANY TIMES, I revisited the mud level again.  :D

Like I said ... someday.
Stay Home

Sector11

OK when Kaivalagi created conkyForcast it was for - well - conky.  But it does have a command line function as well.
in a terminal:
conkyForecast
you will see a temperature.

So Habitual created a 4 day forcast bash script - nothing for today - I added today and gave it six more days.

The original code:
#!/bin/bash
# 4 Day Weather forecast script for Boardman, OH
# Written by John Jones ie: Habitual
# 11.01.2010 12:10:07

# Clear the screen
tput clear

# Tomorrow...(Top-Left Quadrant of output)
tput cup 0 0
echo "Forecast for" `date --date="1 day" | awk '{print $1 ", " $2 " "$3 "  "$6}'`
tput cup 1 0
echo "----------------------------"
tput cup 2 0
echo "Low: " `conkyForecast --location=ARBA0009 -d LT --startday 1`
tput cup 3 0
echo "High:" `conkyForecast --location=ARBA0009 -d HT --startday 1`
tput cup 4 0
echo "Humidity:" `conkyForecast --location=ARBA0009 -d HM  --startday 1`
tput cup 5 0
echo `conkyForecast --location=ARBA0009 -d CT --startday 1`
tput cup 6 0
tput bold; tput setaf 1;
echo "Precipitation:" `conkyForecast --location=ARBA0009 -d PC --startday 1`
tput sgr0

# Tomorrow +1...(Top-Right Quadrant of output)
tput cup 0 40
echo "Forecast for" `date --date="2 day" | awk '{print $1 ", " $2 " "$3 "  "$6}'`
tput cup 1 40
echo "----------------------------"
tput cup 2 40
echo "Low: " `conkyForecast --location=ARBA0009 -d LT --startday 2`
tput cup 3 40
echo "High:" `conkyForecast --location=ARBA0009 -d HT --startday 2`
tput cup 4 40
echo "Humidity:" `conkyForecast --location=ARBA0009 -d HM  --startday 2`
tput cup 5 40
echo `conkyForecast --location=ARBA0009 -d CT --startday 2`
tput cup 6 40
tput bold; tput setaf 1;
echo "Precipitation:" `conkyForecast --location=ARBA0009 -d PC --startday 2`
tput sgr0

# Tomorrow +2...(Bottom-Left Quadrant of output)
tput cup 9 0
echo "Forecast for" `date --date="3 day" | awk '{print $1 ", " $2 " "$3 "  "$6}'`
tput cup 10 0
echo "----------------------------"
tput cup 11 0
echo "Low: " `conkyForecast --location=ARBA0009 -d LT --startday 3`
tput cup 12 0
echo "High:" `conkyForecast --location=ARBA0009 -d HT --startday 3`
tput cup 13 0
echo "Humidity:" `conkyForecast --location=ARBA0009 -d HM  --startday 3`
tput cup 14 0
echo `conkyForecast --location=ARBA0009 -d CT --startday 3`
tput cup 15 0
tput bold; tput setaf 1;
echo "Precipitation:" `conkyForecast --location=ARBA0009 -d PC --startday 3`
tput sgr0

# Tomorrow +3...(Bottom-Right Quadrant of output)
tput cup 9 40
echo "Forecast for" `date --date="4 day" | awk '{print $1 ", " $2 " "$3 "  "$6}'`
tput cup 10 40
echo "----------------------------"
tput cup 11 40
echo "Low: " `conkyForecast --location=ARBA0009 -d LT --startday 4`
tput cup 12 40
echo "High:" `conkyForecast --location=ARBA0009 -d HT --startday 4`
tput cup 13 40
echo "Humidiy:" `conkyForecast --location=ARBA0009 -d HM  --startday 4`
tput cup 14 40
echo `conkyForecast --location=ARBA0009 -d CT --startday 4`
tput cup 15 40
tput bold; tput setaf 1;
echo "Precipitation:" `conkyForecast --location=ARBA0009 -d PC --startday 4`
tput sgr0

tput cup 17 0


The output:
Forecast for Mon, Jan 14 2013           Forecast for Tue, Jan 15 2013
----------------------------            ----------------------------
Low:  20°C                              Low:  22°C
High: 32°C                              High: 33°C
Humidity: 51%                           Humidity: 46%
Partly Cloudy                           Clear
Precipitation: 0%                       Precipitation: 0%


Forecast for Wed, Jan 16 2013           Forecast for Thu, Jan 17 2013
----------------------------            ----------------------------
Low:  22°C                              Low:  21°C
High: 33°C                              High: 31°C
Humidity: 48%                           Humidiy: 58%
Partly Cloudy                           Scattered Thunderstorms
Precipitation: 0%                       Precipitation: 30%

sector11 @ sector11
13 Jan 13 | 18:38:28 ~
         $


My altered version I call cf7
#!/bin/bash
# --- original ---
# 4 Day Weather forecast script for Boardman, OH
# Written by John Jones ie: Habitual
# 11.01.2010 12:10:07
# --- Edited by Sector11 ---
# 7 Day Forecast
# ~/bin/cf7
# 13 Jan 2013 14:08 UTC
# conkyForecast by: Kaivalagi


# Clear the screen
tput clear
# Today (Left 1st Group)
tput cup 0 0
echo "Today" `date --date="0 day" | awk '{print $1", "$3" "$2" "$6}'`
tput cup 1 0
echo "----------------------------------"
tput cup 2 0
tput bold; tput setaf 2;
echo "C" `conkyForecast --location=ARBA0009 -d HT --hideunits`
tput cup 2 8
tput bold; tput setaf 6;
echo "±" `conkyForecast --location=ARBA0009 -d LT --hideunits`
tput sgr0
tput cup 2 16
echo "Hum" `conkyForecast --location=ARBA0009 -d HM  --startday 0`
tput cup 2 25
echo "CoR" `conkyForecast --location=ARBA0009 -d PC --startday 0`
tput cup 3 0
echo `conkyForecast --location=ARBA0009 -d CT --startday 0`


# Today Forcast (Right 1st Group)
tput cup 0 40
echo "Today Continues"
tput cup 1 40
echo "----------------------------------"
tput cup 2 40
tput bold; tput setaf 2;
echo "H" `conkyForecast --location=ARBA0009 -d HT --hideunits --startday 0`
tput cup 2 48
tput bold; tput setaf 6;
echo "L" `conkyForecast --location=ARBA0009 -d LT --hideunits --startday 0`
tput sgr0
tput cup 2 56
echo "SR" `conkyForecast --location=ARBA0009 -d SR  --startday 0`
tput cup 2 65
echo "SS" `conkyForecast --location=ARBA0009 -d SS --startday 0`
tput cup 3 40
tput bold; tput setaf 2;
echo "Bar" `conkyForecast --location=ARBA0009 -d BR`
tput cup 3 53
tput bold; tput setaf 6;
echo `conkyForecast --location=ARBA0009 -d BD`
tput sgr0
tput cup 3 64
echo "Day" `conkyForecast --location=ARBA0009 -d DL --startday 0`


# Tomorrow (Left - 2nd Group)
tput cup 5 0
echo `date --date="1 day" | awk '{print $1", "$3" "$2" "$6}'`
tput cup 6 0
echo "----------------------------------"
tput cup 7 0
tput bold; tput setaf 2;
echo "H" `conkyForecast --location=ARBA0009 -d HT --hideunits --startday 1`
tput cup 7 8
tput bold; tput setaf 6;
echo "L" `conkyForecast --location=ARBA0009 -d LT --hideunits --startday 1`
tput sgr0
tput cup 7 16
echo "Hum" `conkyForecast --location=ARBA0009 -d HM  --startday 1`
tput cup 7 25
echo "CoR" `conkyForecast --location=ARBA0009 -d PC --startday 1`
tput cup 8 0
echo `conkyForecast --location=ARBA0009 -d CT --startday 1`
tput sgr0

# Tomorrow +1...(Right - 2nd Group)
tput cup 5 40
echo `date --date="2 day" | awk '{print $1", "$3" "$2" "$6}'`
tput cup 6 40
echo "----------------------------------"
tput cup 7 40
tput bold; tput setaf 2;
echo "H" `conkyForecast --location=ARBA0009 -d HT --hideunits --startday 2`
tput cup 7 48
tput bold; tput setaf 6;
echo "L" `conkyForecast --location=ARBA0009 -d LT --hideunits --startday 2`
tput sgr0
tput cup 7 56
echo "Hum" `conkyForecast --location=ARBA0009 -d HM  --startday 2`
tput cup 7 65
echo "CoR" `conkyForecast --location=ARBA0009 -d PC --startday 2`
tput cup 8 40
echo `conkyForecast --location=ARBA0009 -d CT --startday 2`
tput sgr0

# Tomorrow +2...(Left 3rd Group)
tput cup 10 0
echo `date --date="3 day" | awk '{print $1", "$3" "$2" "$6}'`
tput cup 11 0
echo "----------------------------------"
tput cup 12 0
tput bold; tput setaf 2;
echo "H" `conkyForecast --location=ARBA0009 -d HT --hideunits --startday 3`
tput cup 12 8
tput bold; tput setaf 6;
echo "L" `conkyForecast --location=ARBA0009 -d LT --hideunits --startday 3`
tput sgr0
tput cup 12 16
echo "Hum" `conkyForecast --location=ARBA0009 -d HM  --startday 3`
tput cup 12 25
echo "CoR " `conkyForecast --location=ARBA0009 -d PC --startday 3`
tput cup 13 0
echo `conkyForecast --location=ARBA0009 -d CT --startday 3`

# Tomorrow +3...(Right 3rd Group)
tput cup 10 40
echo `date --date="4 day" | awk '{print $1", "$3" "$2" "$6}'`
tput cup 11 40
echo "----------------------------------"
tput cup 12 40
tput bold; tput setaf 2;
echo "H" `conkyForecast --location=ARBA0009 -d HT --hideunits --startday 4`
tput cup 12 48
tput bold; tput setaf 6;
echo "L" `conkyForecast --location=ARBA0009 -d LT --hideunits --startday 4`
tput sgr0
tput cup 12 56
echo "Hum" `conkyForecast --location=ARBA0009 -d HM  --startday 4`
tput cup 12 65
echo "CoR" `conkyForecast --location=ARBA0009 -d PC --startday 4`
tput cup 13 40
echo `conkyForecast --location=ARBA0009 -d CT --startday 4`

# Tomorrow +4...(Left 4th Group)
tput cup 15 0
echo `date --date="5 day" | awk '{print $1", "$3" "$2" "$6}'`
tput cup 16 0
echo "----------------------------------"
tput cup 17 0
tput bold; tput setaf 2;
echo "H" `conkyForecast --location=ARBA0009 -d HT --hideunits --startday 5`
tput cup 17 8
tput bold; tput setaf 6;
echo "L" `conkyForecast --location=ARBA0009 -d LT --hideunits --startday 5`
tput sgr0
tput cup 17 16
echo "Hum" `conkyForecast --location=ARBA0009 -d HM  --startday 5`
tput cup 17 25
echo "CoR " `conkyForecast --location=ARBA0009 -d PC --startday 5`
tput cup 18 0
echo `conkyForecast --location=ARBA0009 -d CT --startday 5`

# Tomorrow +5...(Right 4th Group)
tput cup 15 40
echo `date --date="6 day" | awk '{print $1", "$3" "$2" "$6}'`
tput cup 16 40
echo "----------------------------------"
tput cup 17 40
tput bold; tput setaf 2;
echo "H" `conkyForecast --location=ARBA0009 -d HT --hideunits --startday 6`
tput cup 17 48
tput bold; tput setaf 6;
echo "L" `conkyForecast --location=ARBA0009 -d LT --hideunits --startday 6`
tput sgr0
tput cup 17 56
echo "Hum" `conkyForecast --location=ARBA0009 -d HM  --startday 6`
tput cup 17 65
echo "CoR" `conkyForecast --location=ARBA0009 -d PC --startday 6`
tput cup 18 40
echo `conkyForecast --location=ARBA0009 -d CT --startday 6`

tput sgr0
tput cup 22 0


The output:
Today Sun, 13 Jan 2013                  Today Continues
----------------------------------      ----------------------------------
C 28°   ± 29°   Hum 64%  CoR 0%         H N/A   L 20°   SR 05:55 SS 20:09
Partly Cloudy                           Bar 1013.9mb falling    Day 14:14

Mon, 14 Jan 2013                        Tue, 15 Jan 2013
----------------------------------      ----------------------------------
H 32°   L 20°   Hum 51%  CoR 0%         H 33°   L 22°   Hum 46%  CoR 0%
Partly Cloudy                           Clear

Wed, 16 Jan 2013                        Thu, 17 Jan 2013
----------------------------------      ----------------------------------
H 33°   L 22°   Hum 48%  CoR  0%        H 31°   L 21°   Hum 58%  CoR 30%
Partly Cloudy                           Scattered Thunderstorms

Fri, 18 Jan 2013                        Sat, 19 Jan 2013
----------------------------------      ----------------------------------
H 29°   L 21°   Hum 64%  CoR  20%       H 28°   L 19°   Hum 60%  CoR 0%
Partly Cloudy                           Partly Cloudy



sector11 @ sector11
13 Jan 13 | 18:40:31 ~
         $


or in colour!


Thanks to Kaivalagi for conkyForecast and habitual for the bash script!
Stay Home

GrouchyGaijin

Thank you,

GG

Sector11

@ GrouchyGaijin,

Thanks but all kudos go to:
# bash script from johnraff
over on #!, he wrote it, I just use it.
Stay Home

GrouchyGaijin

I know - but you posted it. John wrote a great script.
Thank you,

GG