interceptWH2600 - WH2600 Weather Station Interceptor

In this subforum you can show projects you have made, or you are busy with. Please create your own topic.
Doudy
Posts: 41
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by Doudy » Tuesday 21 November 2017 14:43

Upgrade :
Fisrt command :

Code: Select all

[email protected]:/home/pi/interceptWH2600# git fetch --all
Result :

Code: Select all

fatal: Not a git repository (or any of the parent directories): .git
I do this :

Code: Select all

[email protected]:/home/pi/interceptWH2600# git init
Dépôt Git vide initialisé dans /home/pi/interceptWH2600/.git/
Second command :

Code: Select all

[email protected]:/home/pi/interceptWH2600# git fetch --all

Code: Select all

Nothing Display
Third command:

Code: Select all

[email protected]:/home/pi/interceptWH2600# git reset --hard origin/master
Result :

Code: Select all

fatal: ambiguous argument 'origin/master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
I do this :
??? Nothing ???
:?: :?: :?:

Doudy
Posts: 41
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by Doudy » Tuesday 21 November 2017 14:47

BakSeeDaa wrote:
Tuesday 21 November 2017 13:33
Might it be so that you have altered the python script file using a MSDOS/Windows editor? That will destroy the script file.
I use Notepad++ for modifications
Conding UFT-8 (sans BOM)
Languafe : Python

;)

Doudy
Posts: 41
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by Doudy » Tuesday 21 November 2017 17:33

I have completely reinstalled interceptWH2600 and the .sh is working now.

Code: Select all

sudo apt-get update&&sudo apt-get install git

cd /home/pi && git clone git://github.com/allan-gam/interceptWH2600.git

sudo chmod 755 /home/pi/interceptWH2600/interceptWH2600.py

cd /home/pi/interceptWH2600

etc....
Why ?
How?


;) :) :D

User avatar
BakSeeDaa
Posts: 513
Joined: Thursday 17 September 2015 10:13
Target OS: Raspberry Pi
Domoticz version: beta
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by BakSeeDaa » Tuesday 21 November 2017 17:49

OK.

We will try to find out what's going on on your system.

Your file /home/pi/interceptWH2600/interceptWH2600.py has the size of 21073 bytes.

I just made a new installation following the installation instruction to 100% and my file /home/pi/interceptWH2600/interceptWH2600.py has the size of 20386 bytes.

That's weird. Either something went wrong when you downloaded it with the git clone or you've altered it. I don't know but I suspect that you have altered it by editing it and saving it with MS/DOS line endings (CR+LF). Maybe you'd like to check your Notepad++ editor settings if you primary work with files on Linux systems.

Anyway, the file /home/pi/interceptWH2600/interceptWH2600.py should not be edited at all if you follow the wiki.

Then, for some strange reason, when you follow the upgrade instruction and run command git fetch --all, you get a fatal error message that reads "Not a git repository". That's so very strange. Have you manually been deleting files (e.g. the .git file) in the /home/pi/interceptWH2600 directory?

What is the output if you run command:

Code: Select all

ls -la /home/pi/interceptWH2600/
At Monday 30 October 2017 16:11 you made a post showing that everything seemed to be up and running.

Then at Tuesday 31 October 2017 11:36 you made a new post post that really confirms you've made changes to the python source file. Already there, I can't help you any longer. You have obviously customized the source which is perfectly fine but then I can't use many hours of my free time to find out what goes wrong.

When you installed, did you really follow the installation instructions? Did you encounter any errors while doing that? Have you done anything else after that?

Then later, at Saturday 11 November 2017 11:57 there is a new post and now the script doesn't start any longer.
Doudy wrote:
Saturday 11 November 2017 12:57
...I followed the wiki procedure...
Further on I write in a post that I assume that you have followed the installation instruction carefully .
BakSeeDaa wrote:
Sunday 12 November 2017 11:12
I assume that you have followed the installation instruction carefully and while doing that didn't receive any error messages
I was just about to recommend you to reinstall everything and this time following the installation instruction and after that doing nothing additional. While writing this you posted a new message that says that everything is working after reinstalling.
Doudy wrote:
Tuesday 21 November 2017 17:33
I have completely reinstalled interceptWH2600 and the .sh is working now.

Code: Select all

sudo apt-get update&&sudo apt-get install git

cd /home/pi && git clone git://github.com/allan-gam/interceptWH2600.git

sudo chmod 755 /home/pi/interceptWH2600/interceptWH2600.py

cd /home/pi/interceptWH2600

etc....
Why ?
How?


;) :) :D
I can't say why but we know that it was working initially, then you customized the source file and it stopped working. At some point the git files disappeared.

Nevertheless please feel free to customize the script and make any changes that you wish but after doing that, I can't help you. Let's hope it stays stable for now.

Cheers! ;)
Best wishes

// บักสีดา

Doudy
Posts: 41
Joined: Tuesday 09 August 2016 9:09
Target OS: -
Domoticz version:
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by Doudy » Wednesday 22 November 2017 8:07

BakSeeDaa wrote:
Tuesday 21 November 2017 17:49
What is the output if you run command:

Code: Select all

ls -la /home/pi/interceptWH2600/

Code: Select all

[email protected]:~ $ ls -la /home/pi/interceptWH2600/
total 96
drwxr-xr-x  3 pi pi  4096 nov 21 16:16 .
drwxr-xr-x 33 pi pi  4096 nov 21 16:15 ..
-rw-r--r--  1 pi pi  1608 nov 21 16:19 config.json
-rw-r--r--  1 pi pi  1668 nov 21 16:15 copie_example_config.json
drwxr-xr-x  8 pi pi  4096 nov 21 16:15 .git
-rw-r--r--  1 pi pi    97 nov 21 16:15 .gitignore
-rwxr-xr-x  1 pi pi 20386 nov 21 16:15 interceptWH2600.py
-rwxr-xr-x  1 pi pi  1667 nov 21 16:15 interceptWH2600.sh
-rw-r--r--  1 pi pi 35141 nov 21 16:15 LICENSE
-rw-r--r--  1 pi pi   771 nov 21 16:15 README.md
-rw-r--r--  1 pi pi   451 nov 21 16:15 sample_data.txt
-rwxr-xr-x  1 pi pi   203 nov 21 16:15 watchWH2600.sh
That is OK 20386 bytes.
BakSeeDaa wrote:
Tuesday 21 November 2017 17:49
I can't say why but we know that it was working initially, then you customized the source file and it stopped working. At some point the git files disappeared.
I certainly deleted this file by mistake
:oops:
BakSeeDaa wrote:
Tuesday 21 November 2017 17:49
Nevertheless please feel free to customize the script and make any changes that you wish but after doing that, I can't help you. Let's hope it stays stable for now.
OK

For information - after reboot Pi :

Code: Select all

[email protected]:~ $ sudo /home/pi/interceptWH2600/watchWH2600.sh
Running
Thanks for your help.
;)

User avatar
BakSeeDaa
Posts: 513
Joined: Thursday 17 September 2015 10:13
Target OS: Raspberry Pi
Domoticz version: beta
Contact:

Re: interceptWH2600 - WH2600 Weather Station Interceptor

Post by BakSeeDaa » Wednesday 22 November 2017 9:15

Version 1.1.0 released.

See Wiki for upgrade instructions.
README.md wrote:
  • Corrected a debug print message. (Latest wind direction reading)
  • Added a parameter in configuration file, system->enabled. If set to false program will exit.
  • Added a parameter in configuration file, updateWU. Updates to Weather Underground will be performed conditionally depending on this boolean.
NOTE! After (or before if you prefer) upgrading to version 1.1.0 you need to add the new 2 parameters (enabled and updateWu) manually into your configuration file. Look at the new example_config.json what it should look like.
Happy weather interception!
Best wishes

// บักสีดา

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest