You are not logged in.

#2576 2019-08-24 20:52:46

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

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

TeoBigusGeekus wrote:

Yep, Accuweather is screwed up.

That never happens...lol

Offline

#2577 2019-08-24 22:16:46

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 968

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

Don't despair guys, there might be a way out of this (replacing lynx with w3m).
Stay tuned.


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

#2578 2019-08-25 04:12:54

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

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

Well, just popped in to confirm ... yup ACCUFOOFOO ...

2019-08-25_010552_Scrot11.th.jpg

1 in the morning and sun shinning, and UV of 2  ... no wait clear moonlight.

Another GRRRRR!

Thanks for looking into it Teo

No execpi hell for me --> Conky v1:1.9  :d


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

#2579 2019-08-25 05:39:48

ohnonot
...again
Registered: 2015-09-29
Posts: 3,911
Website

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

TeoBigusGeekus wrote:

Looks good.

git clone https://github.com/teobigusgeekus/2_Wunderground
cd 2_Wunderground/
conky -c wu_conkyrc1 

This essentially works. The conky throws errors and cannot find anything, I guess that's normal at this point.

People downloading your stuff will 'see' only the latest commit by default.

If you make some changes (commits), I can now do

cd 2_Wunderground/
git pull

and will get the latest version.

On your side, you should essentially have the same repo as I have now on my side.
you do changes, then, always inside the repo's root directory so to speak, issue:

git status
git add . # or git add * # essentially adds all new files. check with:
git status
# OK? now:
git commit -m 'message for this commit'
git push origin master # this needs to be set up first to work

There's a lot more to be said; github has really good documentation for every conceivable question; just search and find, e.g. https://help.github.com/en/articles/add … mmand-line

Git-wise, It's good that all temporary files are stored elsewhere otherwise they'd get added to the repo...
This can be avoided with a '.gitignore' file.

Obviously you'd want to add a README etc.

Last edited by ohnonot (2019-08-25 05:53:18)

Offline

#2580 2019-08-25 06:50:06

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 968

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

@S11
Lucky you!

@ohnonot
Thanks for the motivation, I'd never would have been arsed to do it otherwise.
I changed the contents of the repository so that everything is now in the 2_Wunderground folder.
This is a release candidate, so you shouldn't get any error messages; if you still do, can you please post them?

...but enough with WUnderground, Accuweather requires my full attention for now...

Last edited by TeoBigusGeekus (2019-08-25 06:50: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

#2581 2019-08-25 14:11:24

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

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

TeoBigusGeekus wrote:

The pages' layout hasn't been changed, as far as I've managed to download anything and test it, it's just that Accuweather has probably banned every text browser in existence.

Looks like the following can access the website:

$ curl -A "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_5; de-de) AppleWebKit/534.15 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4" https://www.accuweather.com/

Offline

#2582 2019-08-25 14:53:51

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 968

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

I've found a way with w3m.
Just wait an hour or two.


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

#2583 2019-08-25 15:02:40

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

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

w3m  by the 3M company!  big_smile
Good stuff that.


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

#2584 2019-08-25 16:08:53

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 968

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

ANNOUNCEMENT: 1_accuweather - Release Candidate 1
Accuweather's changed their pages' layout again.
Lynx downloads the old layout and then downloads the new layout for the next 4-5 times.
w3m consistently brings the new one so I've decided to switch to w3m for the 1_accuweather script.

A new layout means that the whole thing, at least at its core, had to be written anew.

I've managed to keep the old conkyrc's mostly intact, although the output files have changed:
We no longer have a 10 days' forecast divided into first_days and last_days, but a file called daily_forecast holds a 15 day forecast. This does not only provide info for the days, but for the nights as well.
Simirarly, we don't get two files called hourly1 and hourly 2 for 8+8 hours, but a single file called hourly which contains a 24hours' weather forecast.
The parameter -h_8h has changed to -h_12h. If added with an hourly forecast, the file created by the script (altogether24, altogether24_2015 or altogether24_2016) has info for only 12 hours and not 24.

Execpi has been replaced with texeci everywhere. The exceptions are the calls to the altogether files which need execpi to function properly.

A git repository has been created for the script, see the first page.
All you have to do is navigate to your home folder and run

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

Whenever there is an update, you go inside the 1_accuweather folder and run

git pull

Git will download whatever's changed ignoring what hasn't.
Talking about magic, heh?...

Thanks to morfik and ohnonot for getting my lazy ass to use git.

As always with a new script, treat it with tenderness and affection. I tried to test it as much as I could but I can only manage up to a point.
Your feedback and opinions are always welcome.

PS: I couldn't test the old conkyrc files thoroughly because they look atrocious on my system (dpi etc.) I just made sure that all the info was there, I couldn't do anything about the layout. The latter shouldn't have any changes at all, but you never know.

Last edited by TeoBigusGeekus (2019-08-26 14:37:34)


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

#2585 2019-08-25 16:19:52

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 968

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

ANNOUNCEMENT: 2_Wunderground - Release Candidate 3
As you already know, the WUnderground script has been rewritten from scratch.
A git repository has been added to the first page, see the previous post on what to do with it.
Please pardon my monstrous conkyrc files, but my 4k monitor's dpi settings are to blame, sorry.
As with 1_accuweather, your feedback and opinions are always welcome for this script as well.


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

#2586 2019-08-25 19:15:11

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

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

accuweather

Teo, thank you so much for your work.

I can tell you the following so far:
- downloading and processing the data with git works great

- in the script you're standing:

weather_conky_launch_command="conky -b"

I changed it that way:

weather_conky_launch_command="conky -c ~/rolfi/.conkyrc10"

- i changed my address and copied it into my old VZ

For security reasons I terminated all Conky instances and executed the start command in the terminal. There are no errors.

The files
curr_cond
curr_cond_raw
daily_forecast

was created.

first_days and last_days remain empty. They are also not updated.

PS:
OK, I take it all back. Anyone who can read has a clear advantage. ops
Your original files work perfectly.

I have to "knit" my own files.   tongue

Last edited by unklar (2019-08-25 19:57:44)

Offline

#2587 2019-08-25 19:47:15

ohnonot
...again
Registered: 2015-09-29
Posts: 3,911
Website

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

TeoBigusGeekus wrote:

@ohnonot
Thanks for the motivation, I'd never would have been arsed to do it otherwise.
I changed the contents of the repository so that everything is now in the 2_Wunderground folder.

It seems you started from scratch; I could not 'git pull' ("refusing to merge unrelated histories" or some such) - I had to remove the folder and 'git clone ...' again.

But even so, I find this much more convenient than gevil drive.

If you do want to use some of the enormous benefits of git, you should get aquainted with 2 things:

  • install git on your own machine and make your packages actual git repos on your machine

  • set up an ssh key to easily push changes to github

maybe you should do the second step first:
https://help.github.com/en/enterprise/2 … ub-account
(it talks about enterprise accounts here, but i'm pretty sure this has always been possible for everyone)

then this basically walks you through the rest:
https://help.github.com/en/articles/add … mmand-line

Offline

#2588 2019-08-25 20:10:14

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 968

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

unklar wrote:

I have to "knit" my own files.   tongue

I know unklar, it couldn't be helped, I'll have to fix my own configuration as well.
Let's hope that Accuweather won't screw the whole thing again...

ohnonot wrote:

It seems you started from scratch; I could not 'git pull' ("refusing to merge unrelated histories" or some such) - I had to remove the folder and 'git clone ...' again.

But even so, I find this much more convenient than gevil drive.

If you do want to use some of the enormous benefits of git, you should get aquainted with 2 things:

  • install git on your own machine and make your packages actual git repos on your machine

  • set up an ssh key to easily push changes to github

maybe you should do the second step first:
https://help.github.com/en/enterprise/2 … ub-account
(it talks about enterprise accounts here, but i'm pretty sure this has always been possible for everyone)

then this basically walks you through the rest:
https://help.github.com/en/articles/add … mmand-line

You got me, I did start from scratch.
The first folder/repo was a temporary one to test git, now that I found my way through it I put it on its proper place.

I did create git repos on my machine with git init and pushed them to their github repositories.
As for the ssh key, we'll see...
What matters is that I've moved on from Google Drive, the whole thing was bothering me as well.
You see, whenever I dedicate time to the scripts, I try to correct/rewrite them. By the time I achieve the latter I just say "Well screw it, everything works, who's got the time for git".
But this time I actually did it and I'm very glad about it; thanks again mate!

Last edited by TeoBigusGeekus (2019-08-25 20:36:27)


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

#2589 2019-08-25 20:40:36

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

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

Booked tonight .....

Play tomorrow.
But no one interested in my stuff, still a conky 1.9'er

@ohnonot:  gevile or msevil what's the difference? MS acquired GitHub in Oct 2018

Last edited by Sector11 (2019-08-25 20:43:50)


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

#2590 2019-08-25 20:51:01

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 968

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

Just out of curiosity, why do you still use 1.9?


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

#2591 2019-08-26 01:40:02

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

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

TeoBigusGeekus wrote:

Just out of curiosity, why do you still use 1.9?

I have a deb here:

conky-pre2_2.0_git20121101-1_amd64.deb
date: 07/01/2013 on my machine but the git date: 2012

a "beta" of what was being called the new 'conky v2' back then, but it became conky v1.10 instead.  It was the first "LUA based conky and I hated it. 

When conky v1.10 first came out I grabbed it eager to test.  What a mess it made of my conkys.

No "pre_exec" command which I use quite a few of in various conkys. 
There is at least one other command that is missing, can't remember what it is at the moment.

And the mess it made of using other lua scripts made by mrpeachy, wlourf, easysid or the draw_bg.lua script originally by llondonali1010.

So I went back to installing v1.9 and placing a "hold" on it.  Until head_on_a_stick compiled conky v1:1.9.0  that will always be "newer" then v1.11 and quite possibly conky v2.0 is/when that comes out.

Also by running v1.9 it means that a good 85% of my old conkys, 3146 of them according to catfish, still work.  Might need some tweaking do to changes in fonts over the years etc  but ....

There you have it.

Also I just plain do not like the new LUA conky and since the idea behind Linix is "having it your way" ....

Last edited by Sector11 (2019-08-26 01:42:52)


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

#2592 2019-08-26 06:25:01

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 968

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

About pre_exec, have you looked at this?


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

#2593 2019-08-26 09:40:31

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

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

Hello

Here with forecast & 4_Moon icons


1566812446.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

Offline

#2594 2019-08-26 10:12:47

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 968

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

It looks very nice loutch, thanks for the feedback.


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

#2595 2019-08-26 10:14:14

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

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

Sector11 wrote:

MS acquired GitHub in Oct 2018

That's what bothers me about the whole thing!
Everywhere they have their fingers in the game.  mad

If only I hadn't become a Linuxer...

Offline

#2596 2019-08-26 10:16:50

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

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

^ Hello loutch, Did you renamed the whole icons? I love these ones, the same of the first intellicast script from mr peachy (I think)

Offline

#2597 2019-08-26 10:40:18

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 968

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

unklar wrote:
Sector11 wrote:

MS acquired GitHub in Oct 2018

That's what bothers me about the whole thing!
Everywhere they have their fingers in the game.  mad

If only I hadn't become a Linuxer...

My limited search concluded that github is my best option for a git repository, so I didn't overthink it.
I don't much care about Microsoft or Google or Apple, as long as I don't pay them anything.
In any case, I can move my repositories anywhere else whenever I want, so, there you go.


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

#2598 2019-08-26 12:09:20

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

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

hello

ragamatrix wrote:

^ Hello loutch, Did you renamed the whole icons? I love these ones, the same of the first intellicast script from mr peachy (I think)


yes , rename  icons not all

here


Wu_forecast


https://drive.google.com/open?id=1_E5lw … Orbm2Ofbcp

Wu_Moon4

https://drive.google.com/open?id=1TW98G … lGG3WUc3NY

Last edited by loutch (2019-08-26 12:11:36)


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

Offline

#2599 2019-08-26 12:34:57

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

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

TeoBigusGeekus wrote:

My limited search concluded that github is my best option for a git repository, so I didn't overthink it.
I don't much care about Microsoft or Google or Apple, as long as I don't pay them anything.
In any case, I can move my repositories anywhere else whenever I want, so, there you go.

No, github is passé, it was nice some time ago, till M$ took it. Now ppl move away from it, even open gapps moved somewhere else because of github's shitty policy. I would suggest gitlab -- it's a way better.

Also, you created the 1_accuweather/ dir inside of the root git repository. This isn't a good thing.  When you git clone this repo, you will have 1_accuweather/1_accuweather/ dir structure, and you have to move the subdir to a parent dir, so conky would render properly. You have to create git repo directly inside of the 1_accuweather/ directory.

Also use some file editor which can strip a file from white spaces -- you left a lot of them, and diff shows them all. Use geany, for instance. smile

Offline

#2600 2019-08-26 12:51:14

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 968

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

Is gitlab free?


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

Board footer

Powered by FluxBB