You are not logged in.

#2861 2019-10-03 14:58:17

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

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

[[Time:17:51 Location:~/1_accuweather]]
$ git remote update && git status
Fetching origin
On branch random_photo
nothing to commit, working tree clean
$ git remote update && git status
Fetching origin
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
$ git log --all --oneline --graph --decorate --abbrev-commit
* 902e5c6 (HEAD -> master, origin/master) Changelog
* 770d4f5 Changelog
| * 581433a (random_photo) test
| * e46a937 test
| * 251d431 test
| * e7b4770 test
| *   ffe3454 Merge branch 'master' into random_photo
| |\  
| |/  
|/|   
* | 93ceae7 Changed downloader again
| * ca8cb6e test commit
| * d68d006 test commit
| * 53a1b6a Made my custom changes to the script
|/  
* adf9acb Changed downloader again
* b4c5f50 Changed downloader again
* a3595b7 Final Release
* 76a5cd3 Release Candidate 3
*   909a3a9 Merge branch 'master' of https://gitlab.com/teobigusgeekus/1_accuweather
|\  
| * fa02456 Add CHANGELOG
* | f7b6b02 Release Candidate 2
|/  
* 804f598 Release Candidate 2

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

#2862 2019-10-03 15:07: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)

ohnonot wrote:

You always should test with different user agents!
(apparently w3m does not have that option, but lynx has, and wget and curl of course).

I thought I might try to fiigure out how to build it dynamically against the installed browser.

User agents work with Accuweather and wget, lynx, etc., they just didn't work with my vpn.
Even now, if I do a

wget -O save_file https://www.accuweather.com/en/gr/kastoria/178682/october-weather/178682

or a

wget -U "Firefox" -O save_file https://www.accuweather.com/en/gr/kastoria/178682/october-weather/178682

or

wget -U "Chrome" -O save_file https://www.accuweather.com/en/gr/kastoria/178682/october-weather/178682

or whatever, I get nothing from Accuweather.
However, if I replace the user agent with gibberish

wget -U "Supercalifragilisticexpialidocious" -O save_file https://www.accuweather.com/en/gr/kastoria/178682/october-weather/178682

it works!
Don't ask me why, maybe the Accuweather coders have banned specific user agents from reaching the site, who knows?
The thing is that it works this way with expressvpn and that's what I wanted.

PS: I used the string "Oh hi Mark!" as the user agent to pay my respects to the greatest cinema masterpiece ever, "The Room".


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

#2863 2019-10-03 19:17:38

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

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

@TeoBigusGeekus , so basically the `93ceae7` commit shouldn't go to the master branch, right?

Offline

#2864 2019-10-03 20:04: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)

Hmm... now that I see it, it might mean that the "93ceae7 Changed downloader again" commit happened from the branch instead of the master.

I'm not sure I'm reading this correctly, sorry tongue

Last edited by TeoBigusGeekus (2019-10-03 20:20: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!

Offline

#2865 2019-10-03 20:46:56

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

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

I just compared what you have in the public repo, and it looks like this commit shouldn't go where it went. big_smile I think you simply have to reset the head in the master branch by 3 commits, and make the changes covered by the two latest commits once more:

$ git reset HEAD~3

Then repush the local master branch to the remote with the -f parameter, and it should work again well.

Offline

#2866 2019-10-03 20:53:18

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 last two commits where nothing of importance, I was just desperate to push something, just in case the repository was corrected.

So...

git checkout master
git reset HEAD~3
git push -u origin master

Am I right?


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

#2867 2019-10-03 20:55:58

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

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

When you reset head, git will say that your local version is behind some commits. So if you don't want to commit anything in the master,  after reseting the head, you have to sync your local repo with force, and the -f switch is for that. Then the remote repo will have the same changes what your local one.

Offline

#2868 2019-10-03 20:57: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)

Ok, wish me luck.


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

#2869 2019-10-03 20:58:23

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

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

I wish you luck. big_smile

Offline

#2870 2019-10-03 20:59:37

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

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

Ok

$ git push -u -f origin master
Username for 'https://gitlab.com': teobigusgeekus
Password for 'https://teobigusgeekus@gitlab.com': 
Total 0 (delta 0), reused 0 (delta 0)
remote: GitLab: You are not allowed to force push code to a protected branch on this project.
To https://gitlab.com/teobigusgeekus/1_accuweather.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://gitlab.com/teobigusgeekus/1_accuweather.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

#2871 2019-10-03 21:01:20

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

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

You have to configure the repo in gitlab settings for force push.

Last edited by morfik (2019-10-03 21:01:36)

Offline

#2872 2019-10-03 21:02:00

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

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

Also

$ git checkout random_photo
error: Your local changes to the following files would be overwritten by checkout:
        CHANGELOG
Please commit your changes or stash them before you switch branches.
Aborting

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

#2873 2019-10-03 21:04:26

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:

You have to configure the repo in gitlab settings for force push.

Ok, I did that and then force pushed.


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

#2874 2019-10-03 21:04:53

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

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

What `git status` says?

Offline

#2875 2019-10-03 21:08: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)

I did a git stash and then gave a git status:

$ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean

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

#2876 2019-10-03 21:08:50

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

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

What about the other branch?

Offline

#2877 2019-10-03 21:09:51

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

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

$ git status
On branch random_photo
nothing to commit, working tree clean

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

#2878 2019-10-03 21:10:21

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

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

So you did what you wanted? big_smile

Offline

#2879 2019-10-03 21:11: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)

Let me test.


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

#2880 2019-10-03 21:11:44

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

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

Show also the graph.

Offline

Board footer

Powered by FluxBB