You are not logged in.

#2741 2019-09-04 20:50:21

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

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

@morfik
One last question before I succumb to the dark side (git branches)

Say I have the official script and the branch with my customization.
Then Accuweather changes something on their page and I change the customized script in order for the latter to work.
Can I merge the branch with the master script without merging my customized code, but only the changed lines due to Accuweather's screw up?

Also, if I decide to use this method, can I just delete my local git folder and create a new one using the same address?

Last edited by TeoBigusGeekus (2019-09-04 20:50:53)


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

#2742 2019-09-05 07:48:07

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

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

unklar wrote:

@ragamatrix

Excellent! Thank you, my friend, for your work.  cool
For me the beautiful earth is simply fabulous.

You're welcome I'm glad that you enjoy it smile yes earth is beautiful and fabulous but terrifying and hostile in the same time...

Offline

#2743 2019-09-05 10:04:34

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

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

TeoBigusGeekus wrote:

Say I have the official script and the branch with my customization.
Then Accuweather changes something on their page and I change the customized script in order for the latter to work.
Can I merge the branch with the master script without merging my customized code, but only the changed lines due to Accuweather's screw up?

No, if you merge branches, all the commits from the merged branch will go to the other branch. So in this case, all the commits from teo_version go to master, and it's not what you want. When the site changes, you make a commit in teo_version branch, and import that change to the master branch.

TeoBigusGeekus wrote:

Also, if I decide to use this method, can I just delete my local git folder and create a new one using the same address?

What do you want to do here? smile

Offline

#2744 2019-09-05 13:32:34

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

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

When you say "...import that change to the master branch" I guess you mean change the master branch manually, or not?

morfik wrote:

What do you want to do here? smile

If I empty the current repository, can I upload the contents of a totally different folder in it?
Or do I have to delete the repository, create a new one and push the new folder in the latter?


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

#2745 2019-09-05 14:37:52

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

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

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   O:)


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2746 2019-09-05 15:32:11

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

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

Hello teo,
I'm having problems with the weather, it often happens that the conky is seen like this:
https://cdn.scrot.moe/images/2019/09/05 … 00x900.png

After a few minutes all the images and temperature reappear, except for the first temperature change of the weather in the bottom of the conky.
Has anything changed, I have to download new accuweather version?
thank for  help

edit

here when the conky reappears with the weather, as you can see is incomplete

https://scrot.moe/image/xXogy

Last edited by ector1935 (2019-09-05 15:39:30)

Offline

#2747 2019-09-05 15:51:30

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

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

What's the version you're using ector1935?
There's been a major update to the script, I don't know if you've followed.


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

#2748 2019-09-05 15:58:31

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

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

TeoBigusGeekus wrote:

When you say "...import that change to the master branch" I guess you mean change the master branch manually, or not?

See here:
https://stackoverflow.com/questions/247 … to-another

TeoBigusGeekus wrote:

If I empty the current repository, can I upload the contents of a totally different folder in it?
Or do I have to delete the repository, create a new one and push the new folder in the latter?

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?

Offline

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

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,640

Re: Conky weather+moon scripts (Accuw/WUndergr/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

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

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

Re: Conky weather+moon scripts (Accuw/WUndergr/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

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

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/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

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

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

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

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

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

Offline

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

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/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

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

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

Re: Conky weather+moon scripts (Accuw/WUndergr/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   O:)

no problem my friend, my conkys are yours smile

Offline

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

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

Re: Conky weather+moon scripts (Accuw/WUndergr/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

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

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

Re: Conky weather+moon scripts (Accuw/WUndergr/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

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

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/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

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

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/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

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

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/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

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

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,008

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

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


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

Board footer

Powered by FluxBB