You are not logged in.

#2751 2019-09-05 16:01:20

unklar
Member
Registered: 2015-10-31
Posts: 949

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

@ector1935

Why don't you visit the main page1wink
There you will find everything you need under the date 2019-08-25 (and following instructions above).

Teo has been under constant stress for over a week to make WU and accuweather workable for us again - and, it's already working   big_smile

Last edited by unklar (2019-09-05 16:02:33)

Offline

#2752 2019-09-05 16:10:32

ector1935
Member
Registered: 2017-05-03
Posts: 162

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Thank you for your work Teo.
I wanted to know how to make the temperatures of the meteo work at the bottom, do I have to restart the horly scripts?
see photo
https://scrot.moe/image/xXpEU

Last edited by ector1935 (2019-09-05 16:10:59)

Offline

#2753 2019-09-05 16:19:57

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,152

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

@ector1935
Read what unklar wrote; consult the first page and your questions will be answered (hint: look for the git tutorial)

morfik wrote:

If you empty the current repository, git will see that the files were deleted and you have to commit that change. But still I don't get what you're trying to do here. Why do you want to empty the repository?

So that I can replace its contents with my working folder and not the clean one I used only for git pushes.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#2754 2019-09-05 16:30:30

ector1935
Member
Registered: 2017-05-03
Posts: 162

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

How found this?
hint: look for the git tutorial
Thank

Last edited by ector1935 (2019-09-05 16:30:46)

Offline

#2755 2019-09-05 16:32:53

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,152

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Look for the GIT-HOW TO USE section on the first post of the thread.

I'm copying it for you here:

Let's say that the script's repository is in the following address

https://gitlab.com/teobigusgeekus/1_accuweather.git

The first time you want to download the script, you go into your home folder, open a terminal and give

git clone https://gitlab.com/teobigusgeekus/1_accuweather.git

A folder named 1_accuweather has been created in your home folder.
From now on, every time I announce an update to the script, you go into the 1_accuweather folder, open a terminal and give

git pull origin master

or simply

git pull

and the contents of your folder are synced with whatever change I've made.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#2756 2019-09-05 18:29:30

ragamatrix
Member
Registered: 2015-10-04
Posts: 411

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Sector11 wrote:
ragamatrix wrote:

conky-goes-sat:
{--{snip}--}
enjoy!
cool

OH I am going to.
Consider it stol---errr--borrowed---um conkynapped and given a good home.

lol  lol  lol   angel

no problem my friend, my conkys are yours smile

Offline

#2757 2019-09-06 10:03:22

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 127
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

TeoBigusGeekus wrote:

So that I can replace its contents with my working folder and not the clean one I used only for git pushes.

Probably, but you will have to configure the repository again, since the git configs differ. Just back it up and see what happens.

Offline

#2758 2019-09-06 15:38:37

ector1935
Member
Registered: 2017-05-03
Posts: 162

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

TeoBigusGeekus wrote:

Look for the GIT-HOW TO USE section on the first post of the thread.

I'm copying it for you here:

Let's say that the script's repository is in the following address

https://gitlab.com/teobigusgeekus/1_accuweather.git

The first time you want to download the script, you go into your home folder, open a terminal and give

git clone https://gitlab.com/teobigusgeekus/1_accuweather.git

A folder named 1_accuweather has been created in your home folder.
From now on, every time I announce an update to the script, you go into the 1_accuweather folder, open a terminal and give

git pull origin master

or simply

git pull

and the contents of your folder are synced with whatever change I've made.


I ran the commands now the old conky works.
The temperatures of the next 4 days are missing.
You can tell me how to get the temperatures back.
Thank you for your work.

https://scrot.moe/image/xXCbh

Offline

#2759 2019-09-06 22:38:40

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,152

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

The daily forecast temps are in the daily_forecast file.
The first day's temp is in line number 7, the next in line number 47, then 87 and so on.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#2760 2019-09-06 22:46:21

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,152

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

morfik wrote:

Probably, but you will have to configure the repository again, since the git configs differ. Just back it up and see what happens.

I can delete that repository and create a new one so that I avoid the subsequent mess.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#2761 2019-09-07 11:31:43

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,152

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

@S11
Regarding pre_exec and getting inspiration by this post by plikhari I've made something up.

1)Create a folder in your home folder called pre_exec_temp

2)Along with your conky launch command whenever you start your pc add the following command as well

rm $HOME/pre_exec_temp/*

3)Create an empty file and put this code in it

#!/usr/bin/env bash

if [ ! -f "$HOME/pre_exec_temp/$*" ]; then
	$*
	touch "$HOME/pre_exec_temp/$*"
fi

Save it as pre_exec and make it executable. Move it in your custom bin folder ie. the folder in which you keep your custom scripts and programs. If you don't have one, create a folder called bin in your home folder and add the following line in your .bashrc file

export PATH="/home/teo/bin:$PATH"

Replace teo with your username of course.

Now try and see if the pre_exec conkyrcs work with conky 1.10

EDIT: The way you'd use it would of course be something like

${texecpi 10000 pre_exec whatever}

Last edited by TeoBigusGeekus (2019-09-07 15:55:31)


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#2762 2019-09-07 17:48:06

Sector11
The Tpyo Knig Mod
From: 77345 ¡#
Registered: 2015-08-20
Posts: 5,653

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Will give that a try ... when I get to conky v1.10+


BunsenLabs Forum Rules ---== I'm a Conky 1.9'er ==---
System:    Host: d67 Kernel: 4.9.0-9-amd64 x86_64 (64 bit gcc: 6.3.0)
Desktop: Openbox 3.6.1 Distro: Debian GNU/Linux 9 (stretch)

Offline

#2763 2019-09-09 19:48:35

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,152

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

ANNOUNCEMENT
The Accuweather script has been steady so I pushed the final release.
No changes, I just moved the script's folder to where my own working script folder was and added a gitignore file so that you don't see any unnecessary files.
I hope I haven't screwed up anything many things. Please report back if you see anything weird after a pull request.
I did try to create a markdown README file, but the pdfs should suffice for the moment; the whole thing was taking too much time, sorry.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#2764 2019-09-09 19:59:36

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,152

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

No negative feedback from 2_Wunderground as well so I will push a final version with some pdf documentation as soon as I get the time.
The other scripts will follow suit and will get transferred to git as well in the immediate future.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#2765 2019-09-10 07:37:31

ragamatrix
Member
Registered: 2015-10-04
Posts: 411

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

I had may be a stupid question but what mean the day forecast for this icon ? why the moon icon for partly cloudy during the day?
2.png

Last edited by ragamatrix (2019-09-10 07:41:52)

Offline

#2766 2019-09-10 10:11:39

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,152

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Probably a mistake, try rerunning the script.

Last edited by TeoBigusGeekus (2019-09-10 11:03:21)


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#2767 2019-09-10 12:35:42

ragamatrix
Member
Registered: 2015-10-04
Posts: 411

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

no no I think it's not a mistake because it's also like that on the website, that just mean partly cloudy even if it is daylight ...  glasses

Offline

#2768 2019-09-10 12:37:19

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,152

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

An eclipse maybe? tongue


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#2769 2019-09-10 13:47:35

ragamatrix
Member
Registered: 2015-10-04
Posts: 411

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

otherwise we can look out the window to see if it's daylight.  tongue
Oh noooo ! tomorow will be a day night    hmm

Last edited by ragamatrix (2019-09-10 13:51:02)

Offline

#2770 2019-09-10 16:41:03

saltasatelites
Member
Registered: 2016-09-10
Posts: 9

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

As always, thank you for your great work and for the dedication you put into it.
I have a question. With the previous script I could change the days of the week to lowercase letters, but now I can't find how to do it.
Any ideas or suggestions?

Offline

#2771 2019-09-10 17:33:53

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,152

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Do you mean the Accuweather or the Wunderground script?


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#2772 2019-09-10 17:52:06

saltasatelites
Member
Registered: 2016-09-10
Posts: 9

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

The Accuweather script.

Last edited by saltasatelites (2019-09-10 17:53:26)

Offline

#2773 2019-09-10 18:04:53

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,152

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

The original names of the week in the daily_forecast file are in lowercase letters.
I use the tr command in the conkyrc files to convert them into uppercase

${texeci 600 sed -n '23p' $HOME/1_accuweather/daily_forecast|tr a-z A-Z}

If you remove the tr pipes, ie

${texeci 600 sed -n '23p' $HOME/1_accuweather/daily_forecast}

you'll have Monday instead of MONDAY, Tuesday instead of TUESDAY, etc.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#2774 2019-09-10 18:15:10

saltasatelites
Member
Registered: 2016-09-10
Posts: 9

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

Thanks!!  You're the best!

Offline

#2775 2019-09-10 18:22:08

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,152

Re: Conky weather+moon scripts (Accuw/WUndergr/Weather.com/NWS/MoonGiant)

You're welcome!


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

Board footer

Powered by FluxBB