You are not logged in.

#3001 2019-10-12 09:27:35

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

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

You can always make a backup, and don't push anything to the remote repo till everything is solved in `git status`. big_smile

Offline

#3002 2019-10-12 09:30:06

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

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

You do tempt me a bit, I'll see...

EDIT: By the way, git status doesn't report anything abnormal.

Last edited by TeoBigusGeekus (2019-10-12 09:31:37)


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

#3003 2019-10-12 09:31:57

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

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

I had the same problems when I started with git. Now I have a live website that is maintained via git: https://github.com/morfikov/morfikov.github.io

And I'm not afraid changing anything because there's always `git reset HEAD~` big_smile

Offline

#3004 2019-10-12 09:33:09

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

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

I'm more afraid of git than the scripts failing.


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

#3005 2019-10-12 09:33:10

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

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

TeoBigusGeekus wrote:

EDIT: By the way, git status doesn't report anything abnormal.

Now it doesn't, but when you're changing files, it does. So you should type this command a lot.

Offline

#3006 2019-10-12 11:27:21

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

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

git reflog:
1e93f1c (HEAD -> master, origin/master) HEAD@{0}: checkout: moving from random_photo to master
12a36a2 (random_photo) HEAD@{1}: checkout: moving from master to random_photo
1e93f1c (HEAD -> master, origin/master) HEAD@{2}: checkout: moving from random_photo to master
12a36a2 (random_photo) HEAD@{3}: merge master: Merge made by the 'recursive' strategy.
d8b0b49 HEAD@{4}: checkout: moving from master to random_photo
1e93f1c (HEAD -> master, origin/master) HEAD@{5}: commit: Fixed changelog
c4d90b7 HEAD@{6}: checkout: moving from random_photo to master
d8b0b49 HEAD@{7}: checkout: moving from master to random_photo
c4d90b7 HEAD@{8}: checkout: moving from random_photo to master
d8b0b49 HEAD@{9}: checkout: moving from random_photo to random_photo
d8b0b49 HEAD@{10}: checkout: moving from master to random_photo
c4d90b7 HEAD@{11}: checkout: moving from random_photo to master
d8b0b49 HEAD@{12}: checkout: moving from master to random_photo
c4d90b7 HEAD@{13}: checkout: moving from random_photo to master
d8b0b49 HEAD@{14}: checkout: moving from master to random_photo
c4d90b7 HEAD@{15}: checkout: moving from random_photo to master
d8b0b49 HEAD@{16}: commit: Custom script
c4d90b7 HEAD@{17}: merge master: Fast-forward
8b41a0f HEAD@{18}: checkout: moving from master to random_photo
c4d90b7 HEAD@{19}: checkout: moving from random_photo to master
8b41a0f HEAD@{20}: checkout: moving from master to random_photo
c4d90b7 HEAD@{21}: checkout: moving from random_photo to master
8b41a0f HEAD@{22}: checkout: moving from master to random_photo
c4d90b7 HEAD@{23}: checkout: moving from random_photo to master
8b41a0f HEAD@{24}: checkout: moving from master to random_photo
c4d90b7 HEAD@{25}: checkout: moving from random_photo to master
8b41a0f HEAD@{26}: checkout: moving from master to random_photo
c4d90b7 HEAD@{27}: checkout: moving from random_photo to master
8b41a0f HEAD@{28}: checkout: moving from master to random_photo
c4d90b7 HEAD@{29}: pull: Fast-forward
1f8a9e0 HEAD@{30}: commit: Fixed visibility in curr_cond file
ae96949 HEAD@{31}: reset: moving to origin/master
ae96949 HEAD@{32}: merge random_photo: Merge made by the 'recursive' strategy.
a13d770 HEAD@{33}: pull: Fast-forward
3a4f961 HEAD@{34}: pull: Merge made by the 'recursive' strategy.
a34759b HEAD@{35}: commit: Fixed
804f598 HEAD@{36}: reset: moving to HEAD@{ee8e6fc}
6d27a3e HEAD@{37}: commit: Fixed visibility in curr_cond file
2b402cc HEAD@{38}: commit: Fixed visibility in curr_cond file
ee8e6fc HEAD@{39}: checkout: moving from random_photo to master
8b41a0f HEAD@{40}: merge master: Merge made by the 'recursive' strategy.
2176ebe HEAD@{41}: checkout: moving from master to random_photo
ee8e6fc HEAD@{42}: commit: Corrected curr_cond file
9d89ad9 HEAD@{43}: checkout: moving from random_photo to master
2176ebe HEAD@{44}: checkout: moving from master to random_photo
9d89ad9 HEAD@{45}: checkout: moving from random_photo to master
2176ebe HEAD@{46}: merge master: Merge made by the 'recursive' strategy.
a02e73b HEAD@{47}: checkout: moving from master to random_photo
...

As you can see, I did try to reset the head to ee8e6fc (just before the bad 2b402cc commit), but it didn't help, the ignored files stayed there.


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

#3007 2019-10-12 12:58:33

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

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

Could you send me the zip? big_smile

Offline

#3008 2019-10-12 13:34:16

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

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

Archive sent.


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

#3009 2019-10-12 15:44:25

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

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

I can't think I can save this. Have you seen how git sees the repo how? Check:

$ git log --all --oneline --graph --decorate --abbrev-commit

There's so huge mess there and there's "Merge branch 'master' of https://gitlab.com/teobigusgeekus/1_accuweather" (3a4f961) commit, which when reset, it wipes everything and sets all files to the point of "Release Candidate 2" . So why have you merged the remote branch into local one?

Do you have the backup zip file that you sent me the other day? I have the zip file you gave me (intact). So maybe you could start with it, because I wouldn't advise to go with the repo you have now.

Also I have some advice for you:

1. always check `git status`
2. after adding files, check `git status`
3. after adding files, check diff via `git diff --cached` -- it will print any change you are about to make via `git commit` .

These 3 steps will save you a lot of nerves. big_smile

Last edited by morfik (2019-10-12 15:53:18)

Offline

#3010 2019-10-12 17:34:40

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

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

morfik wrote:

I can't think I can save this. Have you seen how git sees the repo how? Check:

$ git log --all --oneline --graph --decorate --abbrev-commit

That's... almost... beautiful...

I using git

I'm thinking of deleting the repository and creating it anew. I'll also abandon the stupid numbers naming scheme and I'll just call the script Accuweather, plain and simple:
https://www.youtube.com/watch?v=aCbfMkh940Q


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

#3011 2019-10-12 17:57:29

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

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

I can send you the zip you sent me earlier if you like.

Offline

#3012 2019-10-12 18:01:09

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

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

morfik wrote:

I can send you the zip you sent me earlier if you like.

No thanks, I'll nuke that steaming pile of crap and start from the beginning.

Enough about git, do you know a way to get wget to work under a vpn with accuweather?


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

#3013 2019-10-12 18:06:44

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

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

I don't know, why doesn't it work anyway? big_smile

Offline

#3014 2019-10-12 18:10:00

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

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

No idea, it works without a vpn using a random user agent, like "Hi Mark", or "supercalifragilisticexpialidocious", or whatever, but if you use a vpn it just hangs there without ever downloading the page.


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

#3015 2019-10-12 22:29:36

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

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

ANNOUNCEMENT
Accuweather_conky_script
Pushed everything to a brand new repository, the old one had been massacred beyond recognition. I also changed the name of the script and the script's folder to accuweather and Accuweather_conky_script respectively. The number naming scheme made no sense because problems would arise when new scripts where created or old ones abandoned. It's also a great distraction from the fact that I suck at 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

#3016 2019-10-12 22:45:40

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

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

@morfik
Can I rename a repository at gitlab?
Can I rename the folder of a 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!

Offline

#3017 2019-10-12 23:10:46

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

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

You can rename repo on gitlab.
You have to rename the folder in the local git repo and git will detect the change -- you will have to add a commit.

Offline

#3018 2019-10-12 23:14:03

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

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

Ok, thanks.
I want to rename the 2_Wunderground script to simply WUnderground.
I'll eventually rename all scripts and repositories.


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

#3019 2019-10-13 07:00:35

ohnonot
...again
Registered: 2015-09-29
Posts: 4,159
Website

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

TeoBigusGeekus wrote:

No idea, it works without a vpn using a random user agent, like "Hi Mark", or "supercalifragilisticexpialidocious", or whatever, but if you use a vpn it just hangs there without ever downloading the page.

I can think of a few questions/tests:

  • which vpn? can you try other vpns?

  • can you view the website normally via that same vpn? and download it through the browser? also with sth like dillo?

  • have you tried various proper useragents?

  • have you tried curl?

And... I might be wrong, but isn't a VPN a sort of proxy? So searching curl's man page for "proxy" could help?

Offline

#3020 2019-10-13 14:25:35

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

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

Teo, it's working fine again!
Thank you for your tireless work.  smile

You still have a little mistake in it.
git creates in $HOME the directory accuweather_conky_script

All paths in the script and the files have a capital Accuweather_conky_script   wink

Offline

#3021 2019-10-13 15:52:04

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

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

unklar wrote:

Teo, it's working fine again!
Thank you for your tireless work.  smile

You still have a little mistake in it.
git creates in $HOME the directory accuweather_conky_script

All paths in the script and the files have a capital Accuweather_conky_script   wink

Corrected.
Thanks for the feedback 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!

Offline

#3022 2019-10-13 16:00:06

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

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

ohnonot wrote:
  • which vpn? can you try other vpns?

  • can you view the website normally via that same vpn? and download it through the browser? also with sth like dillo?

  • have you tried various proper useragents?

  • have you tried curl?

And... I might be wrong, but isn't a VPN a sort of proxy? So searching curl's man page for "proxy" could help?

I use Expressvpn, I cannot try other vpns.

Everything works fine with Expressvpn, graphic browsers or the command line, even the other scripts. The only thing that doesn't work is the Accuweather script, be it with wget, curl, w3m, lynx, etc. with a user agent or without, proper or fake. Without a user agent I get a message that access is forbidden to Accuweather; with a user agent (real or fake) the commands hang there indefinitely, never downloading the page.

I have tried various proper useragents, as I've said before.

Curl doesn't work either, user agent or not.

I did a search on curl's proxy settings but I couldn't find anything.

Last edited by TeoBigusGeekus (2019-10-13 16:01:16)


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

#3023 2019-10-13 16:32:00

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

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

Maybe Accuweather blocks it?

Offline

#3024 2019-10-13 16:36:59

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

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

The strange thing is that I have no problem accessing Accuweather with any graphic browser using expressvpn, only via command line.

Last edited by TeoBigusGeekus (2019-10-13 16:38:18)


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

#3025 2019-10-13 16:44:43

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

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

Is there any way to test this vpn? I used riseup and it works fine. :]

Offline

Board footer

Powered by FluxBB