You are not logged in.

#2621 2019-08-26 14:53:05

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

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

I know, but not at the moment. Perhaps in the future, let's concentrate in the scripts themselves.


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

#2622 2019-08-26 15:00:27

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

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

You can also add a regular readme file. You can loot at this example: https://github.com/robbyrussell/oh-my-z … /README.md

Offline

#2623 2019-08-26 15:01: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)

Can I add photos and tables in it?


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

#2624 2019-08-26 15:12:27

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

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

Yes, it's a regular text file formated with markdown:
https://github.com/adam-p/markdown-here … Cheatsheet

You can always check the source by clicking raw:
https://github.com/robbyrussell/oh-my-z … /README.md
https://raw.githubusercontent.com/robby … /README.md

Last edited by morfik (2019-08-26 15:14:40)

Offline

#2625 2019-08-26 15:21:37

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

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

TeoBigusGeekus wrote:

About pre_exec, have you looked at this?

First I have seen it.  From 2012 to 2018 to get that fix that is some sort of code-foo and not something built into conky.

AND each lines need a new file name.  I have one conky that has 54 lines with ${pre_exec} in it.  There are others.

So which i is simpler:

54lines like this:

${texecpi 10000 if [ ! -e /tmp/t001conky ]; conkyDateDiff 19831111; touch /tmp/t001conky; fi }${goto 305}${texecpi 10000 if [ ! -e /tmp/t002conky ]; conkyDaysDiff 19831111; touch /tmp/t002conky; fi }
${texecpi 10000 if [ ! -e /tmp/t003conky ]; conkyDateDiff 20110522; touch /tmp/t003conky; fi }${goto 305}${texecpi 10000 if [ ! -e /tmp/t004conky ]; conkyDaysDiff 20110222; touch /tmp/t004conky; fi }
... {snip}
${texecpi 10000 if [ ! -e /tmp/t051conky ]; conkyDateDiff 20100818; touch /tmp/t051conky; fi }${goto 305}${texecpi 10000 if [ ! -e /tmp/t052conky ]; conkyDaysDiff 19831111; touch /tmp/t052conky; fi }
${texecpi 10000 if [ ! -e /tmp/t053conky ];  conkyDateDiff 19891207; touch /tmp/t053conky; fi }${goto 305}${texecpi 10000 if [ ! -e /tmp/t054conky ]; conkyDaysDiff 19891207; touch /tmp/t054conky; fi }

or 54 lines like this:

  RSW: 11/11/83: ${color1}${pre_exec conkyDateDiff 19831111}${goto 305}${color5}${pre_exec conkyDaysDiff 19831111}${color}
  R&T: 22/05/11: ${color1}${pre_exec conkyDateDiff 20110522}${goto 305}${color5}${pre_exec conkyDaysDiff 20110222}${color}
... {snip}
  RW2: 18/08/10: ${color1}${pre_exec conkyDateDiff 20100818}${goto 305}${color5}${pre_exec conkyDaysDiff 20100818}${color}
  TAR: 07/12/89: ${color1}${pre_exec conkyDateDiff 19891207}${goto 305}${color5}${pre_exec conkyDaysDiff 19891207}${color}

pre_exec in action

Considering I have 0 editing to do by using conky v1.9 for the conkys I run daily - not the 3000, a fair chunk which are v1.10.  They are all an historical archive of tips-n-tricks.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#2626 2019-08-26 15:24:08

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

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

Teo,
is it normal there isn't Forecast_Images folder for the new pack of wunderground?
@loutch thanks a lot conky "collègue"  smile

Last edited by ragamatrix (2019-08-26 15:28:53)

Offline

#2627 2019-08-26 16:12:58

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:

Ok, it looks promising. I have a lot to do in the future...

@S11
Ok buddy, whatever suits you. The workaround does seem like too much work for 3000+ conky config files...

ragamatrix wrote:

Teo,
is it normal there isn't Forecast_Images folder for the new pack of wunderground?
@loutch thanks a lot conky "collègue"  smile

No, it's completely abnormal.
Wait a few minutes...
EDIT: Crap, git does not push empty folders

Last edited by TeoBigusGeekus (2019-08-26 16:23:39)


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

#2628 2019-08-26 16:30:50

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

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

TeoBigusGeekus wrote:

EDIT: Crap, git does not push empty folders

You can do the following:
https://stackoverflow.com/questions/115 … repository

Offline

#2629 2019-08-26 16:33:27

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

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

ANNOUNCEMENT
I moved the 2_WUnderground RL3 to gitlab as well.
Link on the first post of the thread.


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

#2630 2019-08-26 16:34:32

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:
TeoBigusGeekus wrote:

EDIT: Crap, git does not push empty folders

You can do the following:
https://stackoverflow.com/questions/115 … repository

I just added an empty .gitkeep file inside the empty folders of both the Accuweather and WUnderground scripts.


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

#2631 2019-08-26 16:39:18

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

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

Also fix the temp bug, see the merge request. smile

Offline

#2632 2019-08-26 16:41:39

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:

Also fix the temp bug, see the merge request. smile

Do you mean the changelog?

EDIT: Nevermind, found your comment. I'll attend to it as soon as I can.

Last edited by TeoBigusGeekus (2019-08-26 16:42:55)


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

#2633 2019-08-26 16:42:35

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

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

Offline

#2634 2019-08-26 16:45:25

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

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

I answered.


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

#2635 2019-08-26 17:37:20

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

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

Ok, I just converted my conky, it looks like it works. smile

Last edited by morfik (2019-08-26 19:55:15)

Offline

#2636 2019-08-26 20:32:31

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

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

Major screw up on this one, see my answer on gitlab and wait for an update.


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

#2637 2019-08-26 20:39:28

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

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

Also, add the .gitignore file and put there a list of all the files that will be downloaded and change with time, for instance:

.conky/1_accuweather/altogether*
.conky/1_accuweather/curr_cond*
.conky/1_accuweather/first_days*
.conky/1_accuweather/forecast_2015/*.png
.conky/1_accuweather/forecast_2016/*.png
.conky/1_accuweather/hourly*
.conky/1_accuweather/hourly_2015/*.png
.conky/1_accuweather/hourly_2016/*.png
.conky/1_accuweather/hourly_raw*
.conky/1_accuweather/last_days*
.conky/1_accuweather/daily_forecast
.conky/4_Moon/*.png
.conky/4_Moon/raw
.conky/4_Moon/*.jpg

Having these files in the .gitignore file makes git to ignore them and you won't see them when you issue "git add" and other related commands.

Offline

#2638 2019-08-26 21:03:16

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:

Also, add the .gitignore file and put there a list of all the files that will be downloaded and change with time, for instance:

.conky/1_accuweather/altogether*
.conky/1_accuweather/curr_cond*
.conky/1_accuweather/first_days*
.conky/1_accuweather/forecast_2015/*.png
.conky/1_accuweather/forecast_2016/*.png
.conky/1_accuweather/hourly*
.conky/1_accuweather/hourly_2015/*.png
.conky/1_accuweather/hourly_2016/*.png
.conky/1_accuweather/hourly_raw*
.conky/1_accuweather/last_days*
.conky/1_accuweather/daily_forecast
.conky/4_Moon/*.png
.conky/4_Moon/raw
.conky/4_Moon/*.jpg

Having these files in the .gitignore file makes git to ignore them and you won't see them when you issue "git add" and other related commands.

No need for that, I keep a clean copy of the script folder for git.


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

#2639 2019-08-26 21:06:24

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 1_accuweather repository has been updated.
Thanks to morfik for the valuable advice and sharp eyes.


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

#2640 2019-08-26 21:14:48

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

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

TeoBigusGeekus wrote:

No need for that, I keep a clean copy of the script folder for git.

Yes, but those who will clone and want to contribute, they will see those files. So it's a good thing to have such list of files that ppl shouldn't care about.

Offline

Board footer

Powered by FluxBB