You are not logged in.

#2701 2019-08-31 20:09:01

seatommyboy
Member
Registered: 2016-09-12
Posts: 22

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

TeoBigusGeekus wrote:

@seatommyboy
Thanks for the suggestion. Maybe in the future; baby steps for the time being.
As for the high/low temp values, you have to go to the night section of the specific date to find the low value.

got it sorted... thanks! working on a script for you now...
https://drive.google.com/open?id=1R20lf … NlBfwGtXbV

Last edited by seatommyboy (2019-08-31 20:09:43)

Offline

#2702 2019-08-31 20:28:47

loutch
Member
Registered: 2015-12-12
Posts: 383

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

TeoBigusGeekus wrote:

But you didn't escape the semicolon.
What I meant was

sed -i -e 's/\&#234\;/ê/g' -e 's/\&#233\;/é/g' -e 's/\&#244\;/ô/g' -e 's/\&#232\;/è/g' -e 's/\\u0027/'"'"'/g' $HOME/1_accuweather/daily_forecast

yes not everywhere just here


-e 's/\\u0027/'"'"'/g'

the rest work great i have é è


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Online

#2703 2019-09-01 06:17:41

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

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

Ok, alright then.

@seatommyboy
Weather images simple, nice I like 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!

Online

#2704 2019-09-01 09:00:38

loutch
Member
Registered: 2015-12-12
Posts: 383

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

Hello

1567328437.png


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Online

#2705 2019-09-01 09:37:17

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

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

Gorgeous!!!


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!

Online

#2706 2019-09-01 14:56:43

loutch
Member
Registered: 2015-12-12
Posts: 383

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

Hello

1567349797.png


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 19.04 xfce on ASUS Rog STRIX

Online

#2707 2019-09-01 15:03:43

seatommyboy
Member
Registered: 2016-09-12
Posts: 22

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

TeoBigusGeekus wrote:

Ok, alright then.

@seatommyboy
Weather images simple, nice I like it.

Thank you... I've used this layout for years...
On another note
So, what I found was commenting out the address line in the 1_accuweather script then adding

export address="https://www.accuweather.com/en/us/hutto-tx/78634/weather-forecast/2110192"

to .bashrc, I thought, was the easiest answer. However, after rebooting, it doesn't download the info for the text files or place images in the image output folder. But after killing then restarting conky, everything runs perfrectly. I'm not sure why this is as it doesn't really seem to throw any kind of errors.

As for keeping the repo clean, adding a .gitignore file to the root will fix the potential conflicts with files generated by the script.

	curr_cond
	curr_cond_raw
	daily_forecast
	forecast_2015/*
	forecast_2016/*

And you should be able to safely remove the .gitkeep file in the images folder. Otherwise, if you get the empty folder conflict, you can replace it with a .gitignore file and add

*.png

Last edited by seatommyboy (2019-09-01 15:05:14)

Offline

#2708 2019-09-01 15:15:56

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

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

One of the main reasons I keep a separate folder for the working script and the git repo is that in the version of the script that I'm using I've added some lines to do some custom stuff, unrelated to a weather forecast.
So I guess I'll keep it like this for the time being.

As for conky updating after a reboot, have you put the correct command in the weather_conky_launch_command variable?
This is used for pausing and resuming conky so that the text files and images have time to get generated before conky populates the desktop.


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!

Online

#2709 2019-09-01 17:16:53

seatommyboy
Member
Registered: 2016-09-12
Posts: 22

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

TeoBigusGeekus wrote:

One of the main reasons I keep a separate folder for the working script and the git repo is that in the version of the script that I'm using I've added some lines to do some custom stuff, unrelated to a weather forecast.
So I guess I'll keep it like this for the time being.

As for conky updating after a reboot, have you put the correct command in the weather_conky_launch_command variable?
This is used for pausing and resuming conky so that the text files and images have time to get generated before conky populates the desktop.

I left the command to conky -b (default)
But un-commenting my address line fixes the conky not updating after reboot.

Offline

#2710 2019-09-01 19:07:39

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

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

TeoBigusGeekus wrote:

One of the main reasons I keep a separate folder for the working script and the git repo is that in the version of the script that I'm using I've added some lines to do some custom stuff, unrelated to a weather forecast.
So I guess I'll keep it like this for the time being.

You can always create a separate branch for the other config and switch between them. smile You can sync whatever you want (one branch, all, etc), and also you have full diff of the branches, so you can compare any changes at any time in the future. So it's still a way easier to maintain the code.

Online

#2711 2019-09-02 11:11:25

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

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

morfik wrote:
TeoBigusGeekus wrote:

One of the main reasons I keep a separate folder for the working script and the git repo is that in the version of the script that I'm using I've added some lines to do some custom stuff, unrelated to a weather forecast.
So I guess I'll keep it like this for the time being.

You can always create a separate branch for the other config and switch between them. smile You can sync whatever you want (one branch, all, etc), and also you have full diff of the branches, so you can compare any changes at any time in the future. So it's still a way easier to maintain the code.

I hadn't read about branches, you're right, it would solve this problem.
But it would essentially be the same, wouldn't it?
I'd have to keep two copies of the script as I do now.


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!

Online

#2712 2019-09-02 16:12:49

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

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

Trying something with a moon picture, work in progress, just an idea  smile
wu_moon_2019-09-02_18-10-45.png

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

Offline

#2713 2019-09-02 19:04:53

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

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

TeoBigusGeekus wrote:

I hadn't read about branches, you're right, it would solve this problem.
But it would essentially be the same, wouldn't it?
I'd have to keep two copies of the script as I do now.

Look here -- you have there a kernel source and many branches, each for "different" kernel.

Whenever you make some changes, you should ask yourself a question "should this change go to the project directly?". If not, you create a branch. You can have temporary branches, for instance you create a branch called "dev" and you commit changes there till the thing you wanted to do is complete, and after some weeks/months you merge it. But when you look at the kernel git tree, you can see they have branches called 5.1.y or 5.2.y and those branches will never be merged. They share some code, and at some point in time they split and live on their own.

Simply, you can do whatever you want. big_smile

Online

#2714 2019-09-02 20:02:17

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

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

ragamatrix wrote:

Trying something with a moon picture, work in progress, just an idea  smile
https://cdn.scrot.moe/images/2019/09/02 … -10-45.png

WOW!!!!!   VERY NICE!


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

#2715 2019-09-02 20:57:00

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

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

2_Wunderground

Teo,
I often don't see the moon icon, because the name is not available in WU_Moon.

Error message reads:

cp: der Aufruf von stat für '/home/unklar/2_Wunderground/WU_Moon/n-3.png' ist nicht möglich: Datei oder Verzeichnis nicht gefunden
cp: der Aufruf von stat für '/home/unklar/2_Wunderground/WU_Moon/n-3.png' ist nicht möglich: Datei oder Verzeichnis nicht gefunden

The file moon_icon contains:

3

with 03 everything would be ok...   smile

Offline

#2716 2019-09-02 21:20:32

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

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

@ragamatrix
Yes I agree with S11, beautiful indeed.

@morfik
How can I make changes to both files, the script intended for the public and my version of the script, using branches?

@unklar
Working on it mein Freund.


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!

Online

#2717 2019-09-02 21:35:35

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

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

Just create a new branch and switch to it. Make some changes and when you switch to the other branch, files will be set according to the status of the branch you switched to, and so on.

Last edited by morfik (2019-09-02 21:35:58)

Online

#2718 2019-09-02 21:42:48

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

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

Yeah, but I still have to keep two physical copies of it, don't I?
For me it sounds like a recipe for disaster...


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!

Online

#2719 2019-09-02 21:43:50

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

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

ANNOUNCEMENT
Updated the 2_Wunderground script to fix the single digit moon phase icon problem.
Thanks to unklar for reporting 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!

Online

#2720 2019-09-02 21:47:47

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

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

TeoBigusGeekus wrote:

Yeah, but I still have to keep two physical copies of it, don't I?
For me it sounds like a recipe for disaster...

No. Like in the case of the kernel source, there's only one tree, but many version, and you can switch between them, commit changes, etc. Everything is in one place. Every change you do will always be visible in the diff before you commit anything.

Last edited by morfik (2019-09-02 21:48:58)

Online

#2721 2019-09-02 22:05:08

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

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

Yeah, but how do I get to test the different versions of the script?
I created a private repository on gitlab and added this folder
PnmrwXqt.jpg
As you can see I have two versions of the script: 1_accuweather and 1_accuweather_teo_version
There's also a .gitignore file

Forecast_Images_2016/svg2png
Forecast_Images_2016/tt
Forecast_Images_2016_ds/
forecast_2015/*.png
forecast_2016/*.png
hourly_2015/*.png
hourly_2016/*.png
What_Is_What.odt
1_README.odt
1_Output_of_the_script.ods
curr_cond
curr_cond_raw
daily_forecast
hourly
hourly_raw1
hourly_raw2
altogether24_2016
altogether24
altogether24_2015
1_accuweather_teo_version

I use the second version; say I make some changes to it.
How do I update the first, official version?
I test the conkyrcs with my script, do I have to edit them all, replace the calls for 1_accuweather_teo_version with 1_accuweather, test them, push them and then replace the calls again so that I have them working with my version of the script?
Is this inception?
Am I too confused?
Probably...


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!

Online

#2722 2019-09-02 22:19:11

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

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

TeoBigusGeekus wrote:

Yeah, but how do I get to test the different versions of the script?
As you can see I have two versions of the script: 1_accuweather and 1_accuweather_teo_version

Basically, when you created the git repository and put 1_accuweather there -- that should go to one branch (and it did -- master). Then you create a new branch, switch to it, and make changes (the same you did to 1_accuweather_teo_version) and commit them. Now you have two branches, each of which has different changes made to the  1_accuweather file. And you can switch between branches, and when you do so, a different state of this file will be restored depending on the changes in the corresponding branch. Don't create another file.

Online

#2723 2019-09-03 06:32:23

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

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

Ok, I'll try to test it and see if it can make any sense in my case.

Last edited by TeoBigusGeekus (2019-09-03 09:48:47)


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!

Online

#2724 2019-09-03 07:48:35

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

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

TeoBigusGeekus wrote:

Updated the 2_Wunderground script to fix the single digit moon phase icon problem.

excellent, Master. That works.
Thank you very much.   smile

Offline

#2725 2019-09-03 09:44:12

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

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

@Teo and S11 Thanks a lot for compliments, I made the try with the moon inside the center circle and it works (with xplanet) but I'm not sure that people would like to install xplanet so I'm searching for another possiblility with clipping script on this website: moon ...

@Teo: what happens with our custom configs when we update on github?

Last edited by ragamatrix (2019-09-03 09:47:12)

Offline

Board footer

Powered by FluxBB