[weewx-user] Re: Rsync Help or User Help :o)

2022-11-14 Thread vince
path = the absolute path to where you want things to go.  The parent 
directory must already be there and be writable.  I do not provide a 
trailing slash nor a HTML_ROOT item.  Here's mine.

[[RSYNC]]
skin = Rsync
enable = true
server = 1.2.3.4
user = remoteaccounthere
path = /home/remoteaccounthere/public_html/weewx
log_success = true 
log_failure = true
delete = 0

You're getting permission denied errors so I'm not certain the account 
you're logging into on the remote side has permission to log in on the 
remote side.   The port  looks odd to me.  It should be 22.  I have no 
idea where that  is coming from.  My syslog does not show a -p flag.

The only thing I can think of is 'perhaps' you are specifying a port number 
in your /root/.ssh/config for your remote host, but that's just a guess.

On Monday, November 14, 2022 at 4:01:40 PM UTC-8 FIA Ranch wrote:

> First thank you very much for you time and expertise... I do 
> appreciate it.
>
> I have got things running from root.
> Can get in, out, etc with the server.
> Can do long Rsync command at the top of this novel from root.
>
> However.. it did not fix the command content/format error.  
>
> My guess is the missing / after the 'weather' directory???  But it did get 
> in, and no key issues reported.  Here is the tail.  Same as previous 
> regarding the command error.
>
> Nov 14 16:26:27 weather weewx[80341] DEBUG weewx.reportengine:  Using 
> defaults instead.
> Nov 14 16:26:27 weather weewx[80341] DEBUG weeutil.rsyncupload: 
> rsyncupload: cmd: [['rsync', '--archive', '--stats', '--delete', '-e', 'ssh 
> -p ', '/var/www/html/', 
> 'fiar...@fiaranch.com:/home3/fiaranch/public_html/weather']]
> Nov 14 16:26:28 weather weewx[80341] ERROR weeutil.rsyncupload: rsync 
> reported errors. Original command: ['rsync', '--archive', '--stats', 
> '--delete', '-e', 'ssh -p ', '/var/www/html/', 
> 'fiar...@fiaranch.com:/home3/fiaranch/public_html/weather']
> Nov 14 16:26:28 weather weewx[80341] ERROR weeutil.rsyncupload:  
> Permission denied, please try again.
> Nov 14 16:26:28 weather weewx[80341] ERROR weeutil.rsyncupload:  
> Received disconnect from 108.167.172.147 port :2: Too many 
> authentication failures
> Nov 14 16:26:28 weather weewx[80341] ERROR weeutil.rsyncupload:  
> Disconnected from 108.167.172.147 port 
> Nov 14 16:26:28 weather weewx[80341] ERROR weeutil.rsyncupload:  
> rsync: connection unexpectedly closed (0 bytes received so far) [sender]
> Nov 14 16:26:28 weather weewx[80341] ERROR weeutil.rsyncupload:  rsync 
> error: error in rsync protocol data stream (code 12) at io.c(235) 
> [sender=3.1.3]
>
> I tried one thing went into the config and added a second / after the 
> directory "weather//" think it might pick up the first one.  No deal
>
> Any thoughts / ideas on that one??
>
> Again, thanks for you time.
>
> Have a good evening/day/morning, or whatever it is in your corner of the 
> world. Early evening high in the Rockies and I am outa here until tomorrow.
>
> David
>
> On Monday, November 14, 2022 at 2:26:32 PM UTC-7 vince wrote:
>
>> It's doesn't matter what the fiaranch account is.
>>
>> Unless you did something special, weewx runs as root so you have to set 
>> up passwordless ssh in the 'root' account for weewx's rsync uploader to 
>> work.   All your steps looked correct to me.  You just didn't do it under 
>> the root account.
>>
>> Note - do "sudo bash" to open a bash shell as root when you set things 
>> up.  You should be able to do "ssh fiaranch.com" and have it log in 
>> successfully if you have things right.
>>
>> FWIW, I have never needed to set delete=1 nor set the ServerWhatever 
>> items in .ssh/config in many years of running the rsync uploader, but that 
>> isn't relevant to getting you set up.  Just passing it along.
>>
>> On Monday, November 14, 2022 at 12:16:44 PM UTC-8 FIA Ranch wrote:
>>
>>> Thanks.  Am not a Linux expert, but
>>> 1) fiaranch is an admin account. I understand that is not root.
>>> 2) I did all the get, install, etc, under the user account. I hear you 
>>> saying it runs under root.
>>> 3) I will create a key pair under root. Upload the public one to the 
>>> server.  See if that impacts Line 7.
>>> 4) Not seeing how that will impact the Line 6 error. But... we will 
>>> see
>>>
>>> Thanks.  
>>>
>>>
>>> On Monday, November 14, 2022 at 12:29:08 PM UTC-7 vince wrote:
>>>
 Two things.  One is you need to do your steps as the account weewx runs 
 as, which is likely root.   While doing your steps from the unprivileged 
 account 'fiaranch' does prove the remote side works and the key works, it 
 has nothing to do with weewx at all.  To get weewx rsync working you need 
 to set up the passwordless ssh for the root account almost certainly.

 Second thing is the ERROR message.  It's likely you either have no 
 .ssh/known_hosts 

[weewx-user] Re: Rsync Help or User Help :o)

2022-11-14 Thread FIA Ranch
First thank you very much for you time and expertise... I do appreciate 
it.

I have got things running from root.
Can get in, out, etc with the server.
Can do long Rsync command at the top of this novel from root.

However.. it did not fix the command content/format error.  

My guess is the missing / after the 'weather' directory???  But it did get 
in, and no key issues reported.  Here is the tail.  Same as previous 
regarding the command error.

Nov 14 16:26:27 weather weewx[80341] DEBUG weewx.reportengine:  Using 
defaults instead.
Nov 14 16:26:27 weather weewx[80341] DEBUG weeutil.rsyncupload: 
rsyncupload: cmd: [['rsync', '--archive', '--stats', '--delete', '-e', 'ssh 
-p ', '/var/www/html/', 
'fiara...@fiaranch.com:/home3/fiaranch/public_html/weather']]
Nov 14 16:26:28 weather weewx[80341] ERROR weeutil.rsyncupload: rsync 
reported errors. Original command: ['rsync', '--archive', '--stats', 
'--delete', '-e', 'ssh -p ', '/var/www/html/', 
'fiara...@fiaranch.com:/home3/fiaranch/public_html/weather']
Nov 14 16:26:28 weather weewx[80341] ERROR weeutil.rsyncupload:  
Permission denied, please try again.
Nov 14 16:26:28 weather weewx[80341] ERROR weeutil.rsyncupload:  
Received disconnect from 108.167.172.147 port :2: Too many 
authentication failures
Nov 14 16:26:28 weather weewx[80341] ERROR weeutil.rsyncupload:  
Disconnected from 108.167.172.147 port 
Nov 14 16:26:28 weather weewx[80341] ERROR weeutil.rsyncupload:  rsync: 
connection unexpectedly closed (0 bytes received so far) [sender]
Nov 14 16:26:28 weather weewx[80341] ERROR weeutil.rsyncupload:  rsync 
error: error in rsync protocol data stream (code 12) at io.c(235) 
[sender=3.1.3]

I tried one thing went into the config and added a second / after the 
directory "weather//" think it might pick up the first one.  No deal

Any thoughts / ideas on that one??

Again, thanks for you time.

Have a good evening/day/morning, or whatever it is in your corner of the 
world. Early evening high in the Rockies and I am outa here until tomorrow.

David

On Monday, November 14, 2022 at 2:26:32 PM UTC-7 vince wrote:

> It's doesn't matter what the fiaranch account is.
>
> Unless you did something special, weewx runs as root so you have to set up 
> passwordless ssh in the 'root' account for weewx's rsync uploader to work. 
>   All your steps looked correct to me.  You just didn't do it under the 
> root account.
>
> Note - do "sudo bash" to open a bash shell as root when you set things up. 
>  You should be able to do "ssh fiaranch.com" and have it log in 
> successfully if you have things right.
>
> FWIW, I have never needed to set delete=1 nor set the ServerWhatever items 
> in .ssh/config in many years of running the rsync uploader, but that isn't 
> relevant to getting you set up.  Just passing it along.
>
> On Monday, November 14, 2022 at 12:16:44 PM UTC-8 FIA Ranch wrote:
>
>> Thanks.  Am not a Linux expert, but
>> 1) fiaranch is an admin account. I understand that is not root.
>> 2) I did all the get, install, etc, under the user account. I hear you 
>> saying it runs under root.
>> 3) I will create a key pair under root. Upload the public one to the 
>> server.  See if that impacts Line 7.
>> 4) Not seeing how that will impact the Line 6 error. But... we will 
>> see
>>
>> Thanks.  
>>
>>
>> On Monday, November 14, 2022 at 12:29:08 PM UTC-7 vince wrote:
>>
>>> Two things.  One is you need to do your steps as the account weewx runs 
>>> as, which is likely root.   While doing your steps from the unprivileged 
>>> account 'fiaranch' does prove the remote side works and the key works, it 
>>> has nothing to do with weewx at all.  To get weewx rsync working you need 
>>> to set up the passwordless ssh for the root account almost certainly.
>>>
>>> Second thing is the ERROR message.  It's likely you either have no 
>>> .ssh/known_hosts entry for your remote system or an old one that doesn't 
>>> match the remote system's current host key (which is typical if you rebuilt 
>>> the remote system, os's autogenerate new keys).  That's likely why you're 
>>> getting the host key verification message.
>>>
>>> Shorter answer is - repeat your steps as root, assuming weewx also runs 
>>> as root.  Sounds like you just tested with the wrong account on your client 
>>> side.
>>>
>>> On Monday, November 14, 2022 at 11:07:06 AM UTC-8 FIA Ranch wrote:
>>>
 Is WeeWX Rsync buggy or am I!!  Likely me, and I just haven't found the 
 right bug spray to kill it!!  :o)

 About ready to just run a crontab job! Yes I understand WeeWX and 
 crontab being/getting out of sync.

 I have been fighting this for a couple of days.  So now I am looking 
 for hints.  I have run out!

 I apologize for this being a long post!  I hope I have covered all the 
 "have you tried.."

 What DOES work.

 I can sign into the server, move around, add, delete files, etc.

>>>

[weewx-user] Re: Neowx skin sample site [2]

2022-11-14 Thread 'Rainer Lang' via weewx-user
Vielleicht ist Englisch zu kompliziert - also, man kann eine neue Skin 
nicht dadurch einführen, indem man den Namen einer bestehenden ändert.
Was Du gemacht hast ist wie der Versuch, einen Mercedes zu einem BMW zu 
machen, indem Du den Namen Mercedes am Heck durch BMW ersetzt - geht 
natürlich so nicht.
Jede Skin braucht ihren eigenen Eintrag in der [StdReport] Stanza von 
weewx.conf, eine eigene [[skin]] Stanza

Das funktionierende Beispiel ist unten angeführt.

On 14.11.2022 22:45, Rainer Lang wrote:


I don't know why you couldn't change or add the neowx-material skin to 
your weewx installation.
Probably because you didn't install the skin - or at least didn't 
modify weewx.conf accordingly.
That's what your weewx.conf is saying - there is no proper entry for 
the neowx-material skin in the [StdReport] stanza.


What you have obviously done is to mix up skins - made a 
neowx-material entry inside the [[Seasons]] stanza - which won't work.
What you are trying to do is to convert a Mercedes car into a BMW car 
by changing the name on the car tail.


What you need to have are the following entries in weewx.conf:

 -- start excerpt weewx.conf [StdReport] stanza --

    [[neowx]]
    skin = neowx-material
    enable = true
    HTML_ROOT = /var/www/html/weewx/neowx

    [[SeasonsReport]]
    # The SeasonsReport uses the 'Seasons' skin, which contains the
    # images, templates and plots for the report.
    skin = Seasons
    enable = true

 -- end excerpt weewx.conf [StdReport] stanza --

Then you can have the seasons skin with
http://IP-address/weewx
and the neowx-material skin with
http://IP-address/weewx/neowx


On 14.11.2022 22:28, Günther Wrana wrote:

Hi

I have the .conf and a little bit from the syslog file send.

Why could i not my skin canch to neowx?

Thank you for all your help

Günther Wrana schrieb am Donnerstag, 12. März 2020 um 07:40:18 UTC+1:


 Hello this is my page http://guentherwrana.ddns.net/weewx/ but
for me no values ​​are shown on the curves.
I would also be interested in how I change the language.
Could you give me a tip?
On the weewx.com  site I have not yet figured
out how to change the language of the skins.
Thanks Günther


Am Mittwoch, 30. Januar 2019 13:39:34 UTC+1 schrieb Alan Jackson:

I just installed it. http://www.ajackson.org/weewx

--
You received this message because you are subscribed to the Google 
Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, 
send an email to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/91db6e74-6d3c-4f1a-989a-dd21517ea972n%40googlegroups.com 
.


--
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/bc6f81ba-823d-50f2-f9a1-9aa443b25b32%40gmail.com.


Re: [weewx-user] Re: Neowx skin sample site

2022-11-14 Thread 'Rainer Lang' via weewx-user
I don't know why you couldn't change or add the neowx-material skin to 
your weewx installation.
Probably because you didn't install the skin - or at least didn't modify 
weewx.conf accordingly.
That's what your weewx.conf is saying - there is no proper entry for the 
neowx-material skin in the [StdReport] stanza.


What you have obviously done is to mix up skins - made a neowx-material 
entry inside the [[Seasons]] stanza - which won't work.
What you are trying to do is to convert a Mercedes car into a BMW car by 
changing the name on the car tail.


What you need to have are the following entries in weewx.conf:

 -- start excerpt weewx.conf [StdReport] stanza --

    [[neowx]]
    skin = neowx-material
    enable = true
    HTML_ROOT = /var/www/html/weewx/neowx

    [[SeasonsReport]]
    # The SeasonsReport uses the 'Seasons' skin, which contains the
    # images, templates and plots for the report.
    skin = Seasons
    enable = true

 -- end excerpt weewx.conf [StdReport] stanza --

Then you can have the seasons skin with
http://IP-address/weewx
and the neowx-material skin with
http://IP-address/weewx/neowx


On 14.11.2022 22:28, Günther Wrana wrote:

Hi

I have the .conf and a little bit from the syslog file send.

Why could i not my skin canch to neowx?

Thank you for all your help

Günther Wrana schrieb am Donnerstag, 12. März 2020 um 07:40:18 UTC+1:


 Hello this is my page http://guentherwrana.ddns.net/weewx/ but
for me no values ​​are shown on the curves.
I would also be interested in how I change the language.
Could you give me a tip?
On the weewx.com  site I have not yet figured
out how to change the language of the skins.
Thanks Günther


Am Mittwoch, 30. Januar 2019 13:39:34 UTC+1 schrieb Alan Jackson:

I just installed it. http://www.ajackson.org/weewx

--
You received this message because you are subscribed to the Google 
Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send 
an email to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/91db6e74-6d3c-4f1a-989a-dd21517ea972n%40googlegroups.com 
.


--
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/770fe0a0-caa5-77b5-05ba-46dcaef271a3%40gmail.com.


[weewx-user] Re: Neowx skin sample site

2022-11-14 Thread vince
It has been 2.5 YEARS since your previous post in this thread and I cannot 
understand what you are asking. I would suggest you open a new thread with 
a much better problem description.  Perhaps google translate would be 
helpful ?

Please also read "How to report a problem" 
 in the 
FAQ and "Posting to weewx-user" 
 in the 
wiki.

On Monday, November 14, 2022 at 1:28:39 PM UTC-8 kawa...@gmail.com wrote:

> Hi
>
> I have the .conf and a little bit from the syslog file send.
>
> Why could i not my skin canch to neowx?
>
> Thank you for all your help
>
> Günther Wrana schrieb am Donnerstag, 12. März 2020 um 07:40:18 UTC+1:
>
>>
>>  Hello this is my page http://guentherwrana.ddns.net/weewx/ but for me 
>> no values ​​are shown on the curves.
>> I would also be interested in how I change the language.
>> Could you give me a tip?
>> On the weewx.com site I have not yet figured out how to change the 
>> language of the skins.
>> Thanks Günther
>>
>>
>> Am Mittwoch, 30. Januar 2019 13:39:34 UTC+1 schrieb Alan Jackson:
>>>
>>> I just installed it. http://www.ajackson.org/weewx
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/7f9c1436-58cb-4d2c-82c4-ed6f5b74abe4n%40googlegroups.com.


[weewx-user] Re: Rsync Help or User Help :o)

2022-11-14 Thread vince
It's doesn't matter what the fiaranch account is.

Unless you did something special, weewx runs as root so you have to set up 
passwordless ssh in the 'root' account for weewx's rsync uploader to work. 
  All your steps looked correct to me.  You just didn't do it under the 
root account.

Note - do "sudo bash" to open a bash shell as root when you set things up. 
 You should be able to do "ssh fiaranch.com" and have it log in 
successfully if you have things right.

FWIW, I have never needed to set delete=1 nor set the ServerWhatever items 
in .ssh/config in many years of running the rsync uploader, but that isn't 
relevant to getting you set up.  Just passing it along.

On Monday, November 14, 2022 at 12:16:44 PM UTC-8 FIA Ranch wrote:

> Thanks.  Am not a Linux expert, but
> 1) fiaranch is an admin account. I understand that is not root.
> 2) I did all the get, install, etc, under the user account. I hear you 
> saying it runs under root.
> 3) I will create a key pair under root. Upload the public one to the 
> server.  See if that impacts Line 7.
> 4) Not seeing how that will impact the Line 6 error. But... we will see
>
> Thanks.  
>
>
> On Monday, November 14, 2022 at 12:29:08 PM UTC-7 vince wrote:
>
>> Two things.  One is you need to do your steps as the account weewx runs 
>> as, which is likely root.   While doing your steps from the unprivileged 
>> account 'fiaranch' does prove the remote side works and the key works, it 
>> has nothing to do with weewx at all.  To get weewx rsync working you need 
>> to set up the passwordless ssh for the root account almost certainly.
>>
>> Second thing is the ERROR message.  It's likely you either have no 
>> .ssh/known_hosts entry for your remote system or an old one that doesn't 
>> match the remote system's current host key (which is typical if you rebuilt 
>> the remote system, os's autogenerate new keys).  That's likely why you're 
>> getting the host key verification message.
>>
>> Shorter answer is - repeat your steps as root, assuming weewx also runs 
>> as root.  Sounds like you just tested with the wrong account on your client 
>> side.
>>
>> On Monday, November 14, 2022 at 11:07:06 AM UTC-8 FIA Ranch wrote:
>>
>>> Is WeeWX Rsync buggy or am I!!  Likely me, and I just haven't found the 
>>> right bug spray to kill it!!  :o)
>>>
>>> About ready to just run a crontab job! Yes I understand WeeWX and 
>>> crontab being/getting out of sync.
>>>
>>> I have been fighting this for a couple of days.  So now I am looking for 
>>> hints.  I have run out!
>>>
>>> I apologize for this being a long post!  I hope I have covered all the 
>>> "have you tried.."
>>>
>>> What DOES work.
>>>
>>> I can sign into the server, move around, add, delete files, etc.
>>>
>>> NOTE:  It is a shared server with a shared IP address.  All of the 
>>> following have been tried both ways.  Using the domain and the shared IP.
>>>
>>> 
>>> fiaranch@weather:~$ ssh fiar...@fiaranch.com (Enter)
>>> Last login: Mon Nov 14 07:52:14 2022 from 166.sub-174-212-228.myvzw.com
>>> fiar...@fiaranch.com [~]# exit (Hit Enter)
>>> logout
>>> Connection to fiaranch.com closed.
>>> fiaranch@weather:~$ 
>>> 
>>>
>>> I can rsync from the command line
>>> -
>>> fiaranch@weather:~$ rsync -avhze ssh --progress --update --stats 
>>>  /var/www/html/ --delete 
>>> fiar...@fiaranch.com:/home3/fiaranch/public_html/weather/
>>> (Hit Enter)
>>> sending incremental file list
>>> ./
>>> #FTP.last
>>>  26.05K 100%   23.51MB/s0:00:00 (xfr#1, to-chk=200/202)
>>> belchertown-dark.min.css
>>> |
>>> |
>>> blah-blah-blah
>>> |
>>> Number of files: 202 (reg: 185, dir: 17)
>>> Number of created files: 0
>>> Number of deleted files: 0
>>> Number of regular files transferred: 57
>>> Total file size: 1.91M bytes
>>> Total transferred file size: 1.15M bytes
>>> Literal data: 280.85K bytes
>>> Matched data: 872.30K bytes
>>> File list size: 0
>>> File list generation time: 0.001 seconds
>>> File list transfer time: 0.000 seconds
>>> Total bytes sent: 171.97K
>>> Total bytes received: 11.16K
>>>
>>> sent 171.97K bytes  received 11.16K bytes  73.25K bytes/sec
>>> total size is 1.91M  speedup is 10.44
>>> -
>>>
>>> Immediately run it again..
>>> --
>>> fiaranch@weather:~$ rsync -avhze ssh --progress --update --stats 
>>>  /var/www/html/ --delete 
>>> fiar...@fiaranch.com:/home3/fiaranch/public_html/weather/
>>> (Hit Enter)
>>> sending incremental file list
>>> ./
>>> #FTP.last
>>>  26.05K 100%   23.51MB/s0:00:00 (xfr#1, to-chk=200/202)
>>> belchertown-dark.min.css
>>> |
>>> |
>>> blah-blah-blah
>>> |
>>> Number of files: 202 (reg: 185, dir: 17)
>>> Number of created files: 0
>>> Number of deleted files: 0
>>> Number of regular files transferred: 0
>>> Total file size: 1.91M bytes
>>> Total transferred file size: 0 bytes
>>> Literal data: 0 bytes
>>> Matched data: 0 bytes
>>> File list size: 0
>>> File list generation time: 0.001 seconds
>>> File list transfer time: 0.000 second

Re: [weewx-user] Re: wee_extension - ModuleNotFoundError: No module named 'configobj

2022-11-14 Thread Troy Roberts
What fixed it for me:

sudo pip3 install configobj

-Troy

On Mon, Nov 14, 2022, 12:22 PM George Michalopoulos 
wrote:

> i have the same exact problem...
>
>
>
>
>
>
>
> *# /usr/share/weewx/wee_extension
> --install=/usr/local/bin/WeeWX-MQTTSubscribe/v2.2.2.tar.gz Traceback (most
> recent call last):  File "/usr/share/weewx/wee_extension", line 13, in
> import weecfg.extension  File
> "/usr/share/weewx/weecfg/__init__.py", line 23, in import
> configobjImportError: No module named configobj*
>
> i run python3 and my /etc/default/weewx is
>
> WEEWX_PYTHON=python3
> WEEWX_PYTHON_ARGS=
> WEEWX_BINDIR=/usr/share/weewx
> WEEWX_BIN=/usr/bin/weewxd
> WEEWX_CFG=/etc/weewx/weewx.conf
>
> On Sunday, November 6, 2022 at 1:34:13 PM UTC+2 tarob...@gmail.com wrote:
>
>> Weewx was originally installed using python3 (running on rpi 4 with
>> buster)
>>
>> Running  "ps axu | grep wee"
>>
>> root 15080 15.8  3.3 122252 64084 ?Sl   Nov04 388:36 python3
>> /usr/share/weewx/weewxd --daemon --pidfile=/var/run/weewx.pid
>> /etc/weewx/weewx.conf
>> pi   31454  0.0  0.0   7244   580 pts/0S+   06:30   0:00 grep
>> --color=auto wee
>>
>> And running "cat /etc/default/weewx"
>>
>> WEEWX_PYTHON=python3
>> WEEWX_PYTHON_ARGS=
>> WEEWX_BINDIR=/usr/share/weewx
>> WEEWX_BIN=/usr/bin/weewxd
>> WEEWX_CFG=/etc/weewx/weewx.conf
>> On Sunday, November 6, 2022 at 12:24:32 AM UTC-4 vince wrote:
>>
>>> Guessing you installed weewx using python2 originally.
>>>
>>> Lets see what you're actually running.
>>>
>>> Try "ps axu | grep wee" and it should show us which python version
>>> you're running.
>>>
>>> An example will look something like the following for a python3 packaged
>>> install on debian 11:
>>>
>>> root 394  0.2  2.2 103192 22496 ?Sl   21:20   0:00
>>> python3 /usr/share/weewx/weewxd --daemon --pidfile=/var/run/weewx.pid
>>> /etc/weewx/weewx.conf
>>>
>>> Also for a packaged install, run "cat /etc/default/weewx" which should
>>> agree.
>>>
>>> On the same deb11 system, mine looks like:
>>>
>>> WEEWX_PYTHON=python3
>>> WEEWX_BINDIR=/usr/share/weewx
>>> WEEWX_BIN=/usr/bin/weewxd
>>> WEEWX_CFG=/etc/weewx/weewx.conf
>>>
>>> --
> You received this message because you are subscribed to a topic in the
> Google Groups "weewx-user" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/weewx-user/ZK7Y7uDx4w0/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/3eff76b2-76bf-49d7-8fd1-a0ac5df8decbn%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CABY4LHPSnfHaU2_Wgp0y44d8L-Ex3q7j%3DhTCT4pwMJvdDvSqrQ%40mail.gmail.com.


Re: [weewx-user] Shortly after upgrading to 4.9.1 I have a weird issue - sending empry data but...?

2022-11-14 Thread gjr80
I agree with Tom, the WindGuru uploader is not part of WeeWX so the problem 
should be taken up with the WindGuru uploader author. But

It would be worthwhile seeing the full story rather than just a few small 
extracts. Interceptor based installs can be complex and you can sometimes 
see some (seemingly) unusual behaviour. Does the WindGuru issue occur every 
archive record or just occasionally? It would be worthwhile seeing the 
WeeWX startup and an extended log extract. I would suggest editing 
weewx.conf and setting debug = 2. Restart WeeWX. Let WeeWX run until at 
least a couple of WindGuru errors occur. Take a log extract showing the 
full WeeWX startup sequence, do not alter/filter anything in the log. This 
will give us a clear picture of your WeeWX config. Also include a log 
extract showing the WindGuru errors, make sure you include at least two 
full archive periods before the WindGuru error. Again don't alter/filter 
anything in the log. With debug = 2, the interceptor driver and multiple 
uploads the log extract will likely be lengthy, but it will give the full 
picture as to what is going on.

Gary

On Tuesday, 15 November 2022 at 03:06:50 UTC+10 tke...@gmail.com wrote:

> On Mon, Nov 14, 2022 at 8:49 AM Kruse Ludington  
> wrote:
>
>> Here's an example of data received every 16 seconds form the 
>> AmbientWeather WS-2902C using the Interceptor driver:
>>
>> Nov 14 11:30:14 kruse-pi homeassistant[821]: #033[32m2022-11-14 
>> 11:30:14.951 INFO (MainThread) [aioambient] Received packet MESSAGE data 
>> 2["data",{"dateutc":166844340,"tempinf":76.3,"humidityin":33,"baromrelin":30.154,"baromabsin":30.281,"tempf":42.3,"battout":1,"humidity":50,"winddir":313,"windspeedmph":6.3,"windgustmph":8.1,"maxdailygust":17.2,"hourlyrainin":0,"eventrainin":0,"dailyrainin":0,"weeklyrainin":0.091,"monthlyrainin":1.701,"totalrainin":15.63,"solarradiation":390.55,"uv":3,"temp1f":69.6,"humidity1":49,"batt1":1,"batt_co2":1,"feelsLike":38.31,"dewPoint":25,"feelsLike1":68.6,"dewPoint1":49.6,"feelsLikein":75.2,"dewPointin":45.1,"lastRain":"2022-11-13T13:35:00.000Z","tz":"America/New_York","date":"2022-11-14T16:30:00.000Z","macAddress":"E8:DB:84:E6:D0:B0"}]#033[0m
>>
>
> None of these observation types are in the normal WeeWX schema. Perhaps 
> the interceptor station map is wrong or inoperative?
>
> I don't have an explanation for why they would work for other upload 
> sites. Perhaps they just don't report an error?
>
> -tk
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/77c77efb-7f34-442c-8567-f73a3996fbe8n%40googlegroups.com.


[weewx-user] Re: wee_extension - ModuleNotFoundError: No module named 'configobj

2022-11-14 Thread George Michalopoulos
i have the same exact problem...







*# /usr/share/weewx/wee_extension 
--install=/usr/local/bin/WeeWX-MQTTSubscribe/v2.2.2.tar.gz Traceback (most 
recent call last):  File "/usr/share/weewx/wee_extension", line 13, in 
import weecfg.extension  File 
"/usr/share/weewx/weecfg/__init__.py", line 23, in import 
configobjImportError: No module named configobj*

i run python3 and my /etc/default/weewx is 
 
WEEWX_PYTHON=python3
WEEWX_PYTHON_ARGS=
WEEWX_BINDIR=/usr/share/weewx
WEEWX_BIN=/usr/bin/weewxd
WEEWX_CFG=/etc/weewx/weewx.conf

On Sunday, November 6, 2022 at 1:34:13 PM UTC+2 tarob...@gmail.com wrote:

> Weewx was originally installed using python3 (running on rpi 4 with buster)
>
> Running  "ps axu | grep wee"
>
> root 15080 15.8  3.3 122252 64084 ?Sl   Nov04 388:36 python3 
> /usr/share/weewx/weewxd --daemon --pidfile=/var/run/weewx.pid 
> /etc/weewx/weewx.conf
> pi   31454  0.0  0.0   7244   580 pts/0S+   06:30   0:00 grep 
> --color=auto wee
>
> And running "cat /etc/default/weewx"
>
> WEEWX_PYTHON=python3
> WEEWX_PYTHON_ARGS=
> WEEWX_BINDIR=/usr/share/weewx
> WEEWX_BIN=/usr/bin/weewxd
> WEEWX_CFG=/etc/weewx/weewx.conf
> On Sunday, November 6, 2022 at 12:24:32 AM UTC-4 vince wrote:
>
>> Guessing you installed weewx using python2 originally.
>>
>> Lets see what you're actually running.
>>
>> Try "ps axu | grep wee" and it should show us which python version 
>> you're running.
>>
>> An example will look something like the following for a python3 packaged 
>> install on debian 11:
>>
>> root 394  0.2  2.2 103192 22496 ?Sl   21:20   0:00 
>> python3 /usr/share/weewx/weewxd --daemon --pidfile=/var/run/weewx.pid 
>> /etc/weewx/weewx.conf
>>
>> Also for a packaged install, run "cat /etc/default/weewx" which should 
>> agree.
>>
>> On the same deb11 system, mine looks like:
>>
>> WEEWX_PYTHON=python3
>> WEEWX_BINDIR=/usr/share/weewx
>> WEEWX_BIN=/usr/bin/weewxd
>> WEEWX_CFG=/etc/weewx/weewx.conf
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/3eff76b2-76bf-49d7-8fd1-a0ac5df8decbn%40googlegroups.com.


[weewx-user] Re: Rsync Help or User Help :o)

2022-11-14 Thread FIA Ranch
Thanks.  Am not a Linux expert, but
1) fiaranch is an admin account. I understand that is not root.
2) I did all the get, install, etc, under the user account. I hear you 
saying it runs under root.
3) I will create a key pair under root. Upload the public one to the 
server.  See if that impacts Line 7.
4) Not seeing how that will impact the Line 6 error. But... we will see

Thanks.  


On Monday, November 14, 2022 at 12:29:08 PM UTC-7 vince wrote:

> Two things.  One is you need to do your steps as the account weewx runs 
> as, which is likely root.   While doing your steps from the unprivileged 
> account 'fiaranch' does prove the remote side works and the key works, it 
> has nothing to do with weewx at all.  To get weewx rsync working you need 
> to set up the passwordless ssh for the root account almost certainly.
>
> Second thing is the ERROR message.  It's likely you either have no 
> .ssh/known_hosts entry for your remote system or an old one that doesn't 
> match the remote system's current host key (which is typical if you rebuilt 
> the remote system, os's autogenerate new keys).  That's likely why you're 
> getting the host key verification message.
>
> Shorter answer is - repeat your steps as root, assuming weewx also runs as 
> root.  Sounds like you just tested with the wrong account on your client 
> side.
>
> On Monday, November 14, 2022 at 11:07:06 AM UTC-8 FIA Ranch wrote:
>
>> Is WeeWX Rsync buggy or am I!!  Likely me, and I just haven't found the 
>> right bug spray to kill it!!  :o)
>>
>> About ready to just run a crontab job! Yes I understand WeeWX and crontab 
>> being/getting out of sync.
>>
>> I have been fighting this for a couple of days.  So now I am looking for 
>> hints.  I have run out!
>>
>> I apologize for this being a long post!  I hope I have covered all the 
>> "have you tried.."
>>
>> What DOES work.
>>
>> I can sign into the server, move around, add, delete files, etc.
>>
>> NOTE:  It is a shared server with a shared IP address.  All of the 
>> following have been tried both ways.  Using the domain and the shared IP.
>>
>> 
>> fiaranch@weather:~$ ssh fiar...@fiaranch.com (Enter)
>> Last login: Mon Nov 14 07:52:14 2022 from 166.sub-174-212-228.myvzw.com
>> fiar...@fiaranch.com [~]# exit (Hit Enter)
>> logout
>> Connection to fiaranch.com closed.
>> fiaranch@weather:~$ 
>> 
>>
>> I can rsync from the command line
>> -
>> fiaranch@weather:~$ rsync -avhze ssh --progress --update --stats 
>>  /var/www/html/ --delete 
>> fiar...@fiaranch.com:/home3/fiaranch/public_html/weather/
>> (Hit Enter)
>> sending incremental file list
>> ./
>> #FTP.last
>>  26.05K 100%   23.51MB/s0:00:00 (xfr#1, to-chk=200/202)
>> belchertown-dark.min.css
>> |
>> |
>> blah-blah-blah
>> |
>> Number of files: 202 (reg: 185, dir: 17)
>> Number of created files: 0
>> Number of deleted files: 0
>> Number of regular files transferred: 57
>> Total file size: 1.91M bytes
>> Total transferred file size: 1.15M bytes
>> Literal data: 280.85K bytes
>> Matched data: 872.30K bytes
>> File list size: 0
>> File list generation time: 0.001 seconds
>> File list transfer time: 0.000 seconds
>> Total bytes sent: 171.97K
>> Total bytes received: 11.16K
>>
>> sent 171.97K bytes  received 11.16K bytes  73.25K bytes/sec
>> total size is 1.91M  speedup is 10.44
>> -
>>
>> Immediately run it again..
>> --
>> fiaranch@weather:~$ rsync -avhze ssh --progress --update --stats 
>>  /var/www/html/ --delete 
>> fiar...@fiaranch.com:/home3/fiaranch/public_html/weather/
>> (Hit Enter)
>> sending incremental file list
>> ./
>> #FTP.last
>>  26.05K 100%   23.51MB/s0:00:00 (xfr#1, to-chk=200/202)
>> belchertown-dark.min.css
>> |
>> |
>> blah-blah-blah
>> |
>> Number of files: 202 (reg: 185, dir: 17)
>> Number of created files: 0
>> Number of deleted files: 0
>> Number of regular files transferred: 0
>> Total file size: 1.91M bytes
>> Total transferred file size: 0 bytes
>> Literal data: 0 bytes
>> Matched data: 0 bytes
>> File list size: 0
>> File list generation time: 0.001 seconds
>> File list transfer time: 0.000 seconds
>> Total bytes sent: 5.31K
>> Total bytes received: 35
>>
>> sent 5.31K bytes  received 35 bytes  2.14K bytes/sec
>> total size is 1.91M  speedup is 357.60
>> ---
>>
>> All of the above tells me that the ssh keys are set and working.  Also 
>> says that Rsync is working between client and server. 
>>
>> Now we go to WeeWX !!!
>>
>> Following are the file setups as they currently exist.
>>
>> First the external files
>>
>> The .ssh directory
>> fiaranch@weather:~$ dir ~/.ssh (Hit Enter)
>>
>> configid_rsaknown_hosts
>>
>> Three files - config, key file, known hosts
>>
>> Config File Content
>> --
>> HostName fiaranch.com
>> IdentityFile ~/.ssh/id_rsa
>> StrictHostKeyChecking no
>> User fiaranch
>> ServerAliveInterval 30
>> ServerAliveCountMax 6
>> -
>> NOTE: The ServerAlive entries are from researching one of the debug 
>> errors.  Same with t

Re: [weewx-user] Re: install issues

2022-11-14 Thread gjr80
Did you sort the timezone issue mentioned previously? If so good, if not 
you will need to expand on what is wrong.

Gary

On Tuesday, 15 November 2022 at 00:57:08 UTC+10 vanuxe...@gmail.com wrote:

> All good now i will close this thread.
> Thank you.
>
>
> Op zo 13 nov. 2022 14:59 schreef Alex Vanuxem :
>
>> Succes! 
>>
>> My path was incorrect , lol. 
>>
>> One thing though weewxd is resetting everytime i run to utc time.
>> I need CET time.
>>
>> Can you tell me how? 
>>
>> Thx a lot. It was a pain. But i am there.
>> Grtz
>>
>> Op zo 13 nov. 2022 13:28 schreef Alex Vanuxem :
>>
>>> Hi Gary,
>>>
>>> finally getting somewhere.
>>> i installed ubuntu server instead on virtual box, did the install again 
>>> as correct as i can.
>>>
>>> in the ftp settings, i should have set the ip address instead of the 
>>> name.
>>> in the log the system can connect to my host;
>>> but i see a lot of ftp errors.
>>>
>>> in attachment the log, but here an extract:
>>>
>>> 2022-11-13 12:17:19  weewx[2148] DEBUG weeutil.ftpupload: Attempting 
>>> connection to 85.255.199.22
>>> 2022-11-13 12:17:19  weewx[2148] DEBUG weeutil.ftpupload: Connected to 
>>> 85.255.199.22
>>> 2022-11-13 12:17:19  weewx[2148] DEBUG weeutil.ftpupload: 0 
>>> ./weekradiation.png 
>>> e4e9d09c9a410af104aeb54059eb45247f7d51cf4f85a10f8be03d8e4b345f57
>>> 2022-11-13 12:17:20  weewx[2148] ERROR weeutil.ftpupload: Failed 
>>> uploading /var/www/html/weewx/weekradiation.png to server 85.255.199.22. 
>>> Reason: '553 Could not create file.'
>>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: ftpgenerator: 
>>> (2): caught exception '': 553 Could not create 
>>> file.
>>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine:   
>>> Traceback (most recent call last):
>>>
>>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine:   
>>>   File "/home/weewx/bin/weewx/reportengine.py", line 437, in run
>>>
>>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine:   
>>> n = ftp_data.run()
>>>
>>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine:   
>>>   File "/home/weewx/bin/weeutil/ftpupload.py", line 220, in run
>>>
>>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine:   
>>> ftp_server.storbinary(stor_cmd, fd)
>>>
>>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine:   
>>>   File "/usr/lib/python3.10/ftplib.py", line 498, in storbinary
>>>
>>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine:   
>>> with self.transfercmd(cmd, rest) as conn:
>>>
>>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine:   
>>>   File "/usr/lib/python3.10/ftplib.py", line 393, in transfercmd
>>>
>>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine:   
>>> return self.ntransfercmd(cmd, rest)[0]
>>>
>>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine:   
>>>   File "/usr/lib/python3.10/ftplib.py", line 359, in ntransfercmd
>>>
>>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine:   
>>> resp = self.sendcmd(cmd)
>>>
>>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine:   
>>>   File "/usr/lib/python3.10/ftplib.py", line 281, in sendcmd
>>>
>>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine:   
>>> return self.getresp()
>>>
>>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine:   
>>>   File "/usr/lib/python3.10/ftplib.py", line 254, in getresp
>>>
>>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine:   
>>> raise error_perm(resp)
>>>
>>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine:   
>>> ftplib.error_perm: 553 Could not create file.
>>>
>>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: ftpgenerator: 
>>> Upload failed
>>> 2022-11-13 12:17:20  weewx[2148] DEBUG weewx.reportengine: Report 
>>> 'RSYNC' not enabled. Skipping.
>>>
>>> thank again!!!
>>> grtz
>>>
>>> alex
>>>
>>>
>>> Op zo 13 nov. 2022 om 11:03 schreef gjr80 :
>>>
 You should not need to install anything extra to use FTP, neither 
 should whether your website is https (or http) affect your FTP setup. The 
 path will need to be set correctly, but I would suggest that first you 
 need 
 to ensure that FTP is connecting and uploading to your web host without 
 error.

 You should setup the [StdReport] [[FTP]] stanza in weewx.conf as per 
 the requirements for your hosting service, ie user, password, server 
 etc. The [[FTP]] section 
  in the Users Guide 
 explains what each setting is for. Once you have the [[FTP]] stanza 
 set correctly locate the debug setting near the top of weewx.conf and 
 set it to debug = 1. Save weewx.conf and restart WeeWX. The log should 
 now show the FTP report being called and whether it was successfully 
 

[weewx-user] Re: Rsync Help or User Help :o)

2022-11-14 Thread vince
Two things.  One is you need to do your steps as the account weewx runs as, 
which is likely root.   While doing your steps from the unprivileged 
account 'fiaranch' does prove the remote side works and the key works, it 
has nothing to do with weewx at all.  To get weewx rsync working you need 
to set up the passwordless ssh for the root account almost certainly.

Second thing is the ERROR message.  It's likely you either have no 
.ssh/known_hosts entry for your remote system or an old one that doesn't 
match the remote system's current host key (which is typical if you rebuilt 
the remote system, os's autogenerate new keys).  That's likely why you're 
getting the host key verification message.

Shorter answer is - repeat your steps as root, assuming weewx also runs as 
root.  Sounds like you just tested with the wrong account on your client 
side.

On Monday, November 14, 2022 at 11:07:06 AM UTC-8 FIA Ranch wrote:

> Is WeeWX Rsync buggy or am I!!  Likely me, and I just haven't found the 
> right bug spray to kill it!!  :o)
>
> About ready to just run a crontab job! Yes I understand WeeWX and crontab 
> being/getting out of sync.
>
> I have been fighting this for a couple of days.  So now I am looking for 
> hints.  I have run out!
>
> I apologize for this being a long post!  I hope I have covered all the 
> "have you tried.."
>
> What DOES work.
>
> I can sign into the server, move around, add, delete files, etc.
>
> NOTE:  It is a shared server with a shared IP address.  All of the 
> following have been tried both ways.  Using the domain and the shared IP.
>
> 
> fiaranch@weather:~$ ssh fiar...@fiaranch.com (Enter)
> Last login: Mon Nov 14 07:52:14 2022 from 166.sub-174-212-228.myvzw.com
> fiar...@fiaranch.com [~]# exit (Hit Enter)
> logout
> Connection to fiaranch.com closed.
> fiaranch@weather:~$ 
> 
>
> I can rsync from the command line
> -
> fiaranch@weather:~$ rsync -avhze ssh --progress --update --stats 
>  /var/www/html/ --delete 
> fiar...@fiaranch.com:/home3/fiaranch/public_html/weather/
> (Hit Enter)
> sending incremental file list
> ./
> #FTP.last
>  26.05K 100%   23.51MB/s0:00:00 (xfr#1, to-chk=200/202)
> belchertown-dark.min.css
> |
> |
> blah-blah-blah
> |
> Number of files: 202 (reg: 185, dir: 17)
> Number of created files: 0
> Number of deleted files: 0
> Number of regular files transferred: 57
> Total file size: 1.91M bytes
> Total transferred file size: 1.15M bytes
> Literal data: 280.85K bytes
> Matched data: 872.30K bytes
> File list size: 0
> File list generation time: 0.001 seconds
> File list transfer time: 0.000 seconds
> Total bytes sent: 171.97K
> Total bytes received: 11.16K
>
> sent 171.97K bytes  received 11.16K bytes  73.25K bytes/sec
> total size is 1.91M  speedup is 10.44
> -
>
> Immediately run it again..
> --
> fiaranch@weather:~$ rsync -avhze ssh --progress --update --stats 
>  /var/www/html/ --delete 
> fiar...@fiaranch.com:/home3/fiaranch/public_html/weather/
> (Hit Enter)
> sending incremental file list
> ./
> #FTP.last
>  26.05K 100%   23.51MB/s0:00:00 (xfr#1, to-chk=200/202)
> belchertown-dark.min.css
> |
> |
> blah-blah-blah
> |
> Number of files: 202 (reg: 185, dir: 17)
> Number of created files: 0
> Number of deleted files: 0
> Number of regular files transferred: 0
> Total file size: 1.91M bytes
> Total transferred file size: 0 bytes
> Literal data: 0 bytes
> Matched data: 0 bytes
> File list size: 0
> File list generation time: 0.001 seconds
> File list transfer time: 0.000 seconds
> Total bytes sent: 5.31K
> Total bytes received: 35
>
> sent 5.31K bytes  received 35 bytes  2.14K bytes/sec
> total size is 1.91M  speedup is 357.60
> ---
>
> All of the above tells me that the ssh keys are set and working.  Also 
> says that Rsync is working between client and server. 
>
> Now we go to WeeWX !!!
>
> Following are the file setups as they currently exist.
>
> First the external files
>
> The .ssh directory
> fiaranch@weather:~$ dir ~/.ssh (Hit Enter)
>
> configid_rsaknown_hosts
>
> Three files - config, key file, known hosts
>
> Config File Content
> --
> HostName fiaranch.com
> IdentityFile ~/.ssh/id_rsa
> StrictHostKeyChecking no
> User fiaranch
> ServerAliveInterval 30
> ServerAliveCountMax 6
> -
> NOTE: The ServerAlive entries are from researching one of the debug 
> errors.  Same with the StrictHost That info coming up.
>
> The known_hosts file (without all the key stuff
> 
> |1|lz75l---
> |1|lMA4Y..
> fiaranch.com
> 
> NOTE: Added the domain from another research finding
>
> Now the WeeWX config file - Again omitting everything except relevant parts
>
>
> -
> [[RSYNC]]
> skin = Rsync
> enable = true
> server = fiaranch.com
> user = fiaranch
> path = /home3/fiaranch/public_html/weather/
> HTML_ROOT = /var/www/html
> delete = 1
> ---
> NOTE:  Yes, HTML_ROOT is a different directory

[weewx-user] Rsync Help or User Help :o)

2022-11-14 Thread FIA Ranch
Is WeeWX Rsync buggy or am I!!  Likely me, and I just haven't found the 
right bug spray to kill it!!  :o)

About ready to just run a crontab job! Yes I understand WeeWX and crontab 
being/getting out of sync.

I have been fighting this for a couple of days.  So now I am looking for 
hints.  I have run out!

I apologize for this being a long post!  I hope I have covered all the 
"have you tried.."

What DOES work.

I can sign into the server, move around, add, delete files, etc.

NOTE:  It is a shared server with a shared IP address.  All of the 
following have been tried both ways.  Using the domain and the shared IP.


fiaranch@weather:~$ ssh fiara...@fiaranch.com (Enter)
Last login: Mon Nov 14 07:52:14 2022 from 166.sub-174-212-228.myvzw.com
fiara...@fiaranch.com [~]# exit (Hit Enter)
logout
Connection to fiaranch.com closed.
fiaranch@weather:~$ 


I can rsync from the command line
-
fiaranch@weather:~$ rsync -avhze ssh --progress --update --stats 
 /var/www/html/ --delete 
fiara...@fiaranch.com:/home3/fiaranch/public_html/weather/
(Hit Enter)
sending incremental file list
./
#FTP.last
 26.05K 100%   23.51MB/s0:00:00 (xfr#1, to-chk=200/202)
belchertown-dark.min.css
|
|
blah-blah-blah
|
Number of files: 202 (reg: 185, dir: 17)
Number of created files: 0
Number of deleted files: 0
Number of regular files transferred: 57
Total file size: 1.91M bytes
Total transferred file size: 1.15M bytes
Literal data: 280.85K bytes
Matched data: 872.30K bytes
File list size: 0
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 171.97K
Total bytes received: 11.16K

sent 171.97K bytes  received 11.16K bytes  73.25K bytes/sec
total size is 1.91M  speedup is 10.44
-

Immediately run it again..
--
fiaranch@weather:~$ rsync -avhze ssh --progress --update --stats 
 /var/www/html/ --delete 
fiara...@fiaranch.com:/home3/fiaranch/public_html/weather/
(Hit Enter)
sending incremental file list
./
#FTP.last
 26.05K 100%   23.51MB/s0:00:00 (xfr#1, to-chk=200/202)
belchertown-dark.min.css
|
|
blah-blah-blah
|
Number of files: 202 (reg: 185, dir: 17)
Number of created files: 0
Number of deleted files: 0
Number of regular files transferred: 0
Total file size: 1.91M bytes
Total transferred file size: 0 bytes
Literal data: 0 bytes
Matched data: 0 bytes
File list size: 0
File list generation time: 0.001 seconds
File list transfer time: 0.000 seconds
Total bytes sent: 5.31K
Total bytes received: 35

sent 5.31K bytes  received 35 bytes  2.14K bytes/sec
total size is 1.91M  speedup is 357.60
---

All of the above tells me that the ssh keys are set and working.  Also says 
that Rsync is working between client and server. 

Now we go to WeeWX !!!

Following are the file setups as they currently exist.

First the external files

The .ssh directory
fiaranch@weather:~$ dir ~/.ssh (Hit Enter)

configid_rsaknown_hosts

Three files - config, key file, known hosts

Config File Content
--
HostName fiaranch.com
IdentityFile ~/.ssh/id_rsa
StrictHostKeyChecking no
User fiaranch
ServerAliveInterval 30
ServerAliveCountMax 6
-
NOTE: The ServerAlive entries are from researching one of the debug errors. 
 Same with the StrictHost That info coming up.

The known_hosts file (without all the key stuff

|1|lz75l---
|1|lMA4Y..
fiaranch.com

NOTE: Added the domain from another research finding

Now the WeeWX config file - Again omitting everything except relevant parts


-
[[RSYNC]]
skin = Rsync
enable = true
server = fiaranch.com
user = fiaranch
path = /home3/fiaranch/public_html/weather/
HTML_ROOT = /var/www/html
delete = 1
---
NOTE:  Yes, HTML_ROOT is a different directory

Now we get to the terminal tail output using - sudo tail -f /var/log/syslog

NOTE:  In the config file all debug options are on. I have left all the 
timestamps in the list to show it is a fast fail. I added the line breaks 
and line numbers to make it easier to read and note

1) Nov 14 08:42:30 weather weewx[71342] DEBUG weewx.reportengine: Running 
report 'RSYNC'

2) Nov 14 08:42:30 weather weewx[71342] DEBUG weewx.reportengine: Found 
configuration file /etc/weewx/skins/Rsync/skin.conf for report 'RSYNC'

3) Nov 14 08:42:30 weather weewx[71342] DEBUG weewx.reportengine: Cannot 
read localization file /etc/weewx/skins/Rsync/lang/en.conf for report 
'RSYNC': Config file not found: "/etc/weewx/skins/Rsync/lang/en.conf".

4) Nov 14 08:42:30 weather weewx[71342] DEBUG weewx.reportengine:  
Using defaults instead.

5) Nov 14 08:42:30 weather weewx[71342] DEBUG weeutil.rsyncupload: 
rsyncupload: cmd: [['rsync', '--archive', '--stats', '--delete', '-e', 
'ssh', '/var/www/html/', 
'fiara...@fiaranch.com:/home3/fiaranch/public_html/weather']]

6) Nov 14 08:42:31 weather weewx[71342] ERROR weeutil.rsyncupload: rsync 
reported errors. Original command: ['rsync', '--arc

[weewx-user] SNMP Service

2022-11-14 Thread Karen K
I created a service to fetch data by SNMP.

See https://github.com/roe-dl/weewx-snmp

Data by SNMP are often provided by electronic equipment to inform about 
their status. Some sensors speak SNMP, too. 

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/3067caf9-62f4-49ed-bd7f-678b90714511n%40googlegroups.com.


Re: [weewx-user] Shortly after upgrading to 4.9.1 I have a weird issue - sending empry data but...?

2022-11-14 Thread Tom Keffer
On Mon, Nov 14, 2022 at 8:49 AM Kruse Ludington 
wrote:

> Here's an example of data received every 16 seconds form the
> AmbientWeather WS-2902C using the Interceptor driver:
>
> Nov 14 11:30:14 kruse-pi homeassistant[821]: #033[32m2022-11-14
> 11:30:14.951 INFO (MainThread) [aioambient] Received packet MESSAGE data
> 2["data",{"dateutc":166844340,"tempinf":76.3,"humidityin":33,"baromrelin":30.154,"baromabsin":30.281,"tempf":42.3,"battout":1,"humidity":50,"winddir":313,"windspeedmph":6.3,"windgustmph":8.1,"maxdailygust":17.2,"hourlyrainin":0,"eventrainin":0,"dailyrainin":0,"weeklyrainin":0.091,"monthlyrainin":1.701,"totalrainin":15.63,"solarradiation":390.55,"uv":3,"temp1f":69.6,"humidity1":49,"batt1":1,"batt_co2":1,"feelsLike":38.31,"dewPoint":25,"feelsLike1":68.6,"dewPoint1":49.6,"feelsLikein":75.2,"dewPointin":45.1,"lastRain":"2022-11-13T13:35:00.000Z","tz":"America/New_York","date":"2022-11-14T16:30:00.000Z","macAddress":"E8:DB:84:E6:D0:B0"}]#033[0m
>

None of these observation types are in the normal WeeWX schema. Perhaps the
interceptor station map is wrong or inoperative?

I don't have an explanation for why they would work for other upload sites.
Perhaps they just don't report an error?

-tk

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPq0zEBOweFpcoF-pzZ1LxedpcNOVgWbh_-ZQo88g1Q16hLVvg%40mail.gmail.com.


Re: [weewx-user] Shortly after upgrading to 4.9.1 I have a weird issue - sending empry data but...?

2022-11-14 Thread Kruse Ludington
Here's an example of data received every 16 seconds form the AmbientWeather 
WS-2902C using the Interceptor driver:

Nov 14 11:30:14 kruse-pi homeassistant[821]: #033[32m2022-11-14 
11:30:14.951 INFO (MainThread) [aioambient] Received packet MESSAGE data 
2["data",{"dateutc":166844340,"tempinf":76.3,"humidityin":33,"baromrelin":30.154,"baromabsin":30.281,"tempf":42.3,"battout":1,"humidity":50,"winddir":313,"windspeedmph":6.3,"windgustmph":8.1,"maxdailygust":17.2,"hourlyrainin":0,"eventrainin":0,"dailyrainin":0,"weeklyrainin":0.091,"monthlyrainin":1.701,"totalrainin":15.63,"solarradiation":390.55,"uv":3,"temp1f":69.6,"humidity1":49,"batt1":1,"batt_co2":1,"feelsLike":38.31,"dewPoint":25,"feelsLike1":68.6,"dewPoint1":49.6,"feelsLikein":75.2,"dewPointin":45.1,"lastRain":"2022-11-13T13:35:00.000Z","tz":"America/New_York","date":"2022-11-14T16:30:00.000Z","macAddress":"E8:DB:84:E6:D0:B0"}]#033[0m

And it is going through out to several other services, information  from 
WindGuru in the logs shows as:

Nov 14 11:27:41 kruse-pi weewx[12402] DEBUG weewx.engine: Loading service 
user.windguru.WindGuru
Nov 14 11:27:41 kruse-pi weewx[12402] INFO user.windguru: service version 
is 0.2
Nov 14 11:27:41 kruse-pi weewx[12402] INFO user.windguru: Data will be 
uploaded for 9-WeewxID-9
Nov 14 11:27:41 kruse-pi weewx[12402] DEBUG weewx.engine: Finished loading 
service user.windguru.WindGuru
Nov 14 11:30:22 kruse-pi weewx[12402] DEBUG user.windguru: url: 
http://www.windguru.cz/upload/api.php?stationtype=weewx&uid=9-WeewxID-9&date=14.11.2022&time=11%3A30&interval=5&precip_interval=5
Nov 14 11:30:22 kruse-pi weewx[12402] DEBUG weewx.restx: WindGuru url: 
'http://www.windguru.cz/upload/api.php?stationtype=weewx&uid=9-WeewxID-9&date=14.11.2022&time=11%3A30&interval=5&precip_interval=5'
Nov 14 11:30:22 kruse-pi weewx[12402] DEBUG weewx.restx: WindGuru: Failed 
upload attempt 1: Server response: b'ERROR (no data)'
Nov 14 11:30:27 kruse-pi weewx[12402] DEBUG weewx.restx: WindGuru url: 
'http://www.windguru.cz/upload/api.php?stationtype=weewx&uid=9-WeewxID-9&date=14.11.2022&time=11%3A30&interval=5&precip_interval=5'
Nov 14 11:30:28 kruse-pi weewx[12402] DEBUG weewx.restx: WindGuru: Failed 
upload attempt 2: Server response: b'ERROR (no data)'
Nov 14 11:30:33 kruse-pi weewx[12402] DEBUG weewx.restx: WindGuru url: 
'http://www.windguru.cz/upload/api.php?stationtype=weewx&uid=9-WeewxID-9&date=14.11.2022&time=11%3A30&interval=5&precip_interval=5'
Nov 14 11:30:33 kruse-pi weewx[12402] DEBUG weewx.restx: WindGuru: Failed 
upload attempt 3: Server response: b'ERROR (no data)'
Nov 14 11:30:33 kruse-pi weewx[12402] ERROR weewx.restx: WindGuru: Failed 
to publish record 2022-11-14 11:30:00 EST (1668443400): Failed upload after 
3 tries

Got this from debug set to as you suggested I am sending nothing... 
On Sunday, November 13, 2022 at 8:19:18 AM UTC-5 tke...@gmail.com wrote:

> I would suggest contacting the author of the extension. 
>
> It's worth noting that if you set debug=2, then the actual HTTP GET that 
> WeeWX is sending out will be logged.
>
> On Sat, Nov 12, 2022 at 7:12 PM Kruse Ludington  
> wrote:
>
>> I upgrade to 4.9.1 with no issue and am sneding to many places.
>>
>> A week or so ago i started getting the dreaded error - but for only one 
>> location - 
>>
>> Nov 12 21:56:11 kruse-pi weewx[193904] ERROR weewx.restx: WindGuru: 
>> Failed to publish record 2022-11-12 21:55:00 EST (1668308100): Failed 
>> upload after 3 tries
>>
>> I spoke with the WindGuru folks, asked them to check their logs because I 
>> am sending data to many other places with Weewx with no issue - and they 
>> replied with this:
>>
>> Hi,
>> there is no problem with password or connection
>> but the station still only sends "nothing":
>>
>> 96.240.13.169 [www.windguru.cz](http://www.windguru.cz/) - 
>> [08/Nov/2022:16:35:22 +0100] "GET 
>> /upload/api.php?stationtype=weewx&uid=9-WeewxID-9&date=08.11.2022&time=10%3A35&interval=5&precip_interval=5
>>  
>> HTTP/1.1" 200 15 "-" "weewx/4.9.1"
>> 96.240.13.169 [www.windguru.cz](http://www.windguru.cz/) - 
>> [08/Nov/2022:16:35:27 +0100] "GET 
>> /upload/api.php?stationtype=weewx&uid=9-WeewxID-9&date=08.11.2022&time=10%3A35&interval=5&precip_interval=5
>>  
>> HTTP/1.1" 200 15 "-" "weewx/4.9.1"
>> 96.240.13.169 [www.windguru.cz](http://www.windguru.cz/) - 
>> [08/Nov/2022:16:35:32 +0100] "GET 
>> /upload/api.php?stationtype=weewx&uid=9-WeewxID-9&date=08.11.2022&time=10%3A35&interval=5&precip_interval=5
>>  
>> HTTP/1.1" 200 15 "-" "weewx/4.9.1"
>> 96.240.13.169 [www.windguru.cz](http://www.windguru.cz/) - 
>> [08/Nov/2022:16:40:26 +0100] "GET 
>> /upload/api.php?stationtype=weewx&uid=9-WeewxID-9&date=08.11.2022&time=10%3A40&interval=5&precip_interval=5
>>  
>> HTTP/1.1" 200 15 "-" "weewx/4.9.1"
>> 96.240.13.169 [www.windguru.cz](http://www.windguru.cz/) - 
>> [08/Nov/2022:16:40:31 +0100] "GET 
>> /upload/api.php?stationtype=weewx&uid=9-WeewxID-9&date=08.11.2022&time=10%3A40&interval=5&precip_interval=5

Re: [weewx-user] Re: install issues

2022-11-14 Thread Alex Vanuxem
All good now i will close this thread.
Thank you.


Op zo 13 nov. 2022 14:59 schreef Alex Vanuxem :

> Succes!
>
> My path was incorrect , lol.
>
> One thing though weewxd is resetting everytime i run to utc time.
> I need CET time.
>
> Can you tell me how?
>
> Thx a lot. It was a pain. But i am there.
> Grtz
>
> Op zo 13 nov. 2022 13:28 schreef Alex Vanuxem :
>
>> Hi Gary,
>>
>> finally getting somewhere.
>> i installed ubuntu server instead on virtual box, did the install again
>> as correct as i can.
>>
>> in the ftp settings, i should have set the ip address instead of the name.
>> in the log the system can connect to my host;
>> but i see a lot of ftp errors.
>>
>> in attachment the log, but here an extract:
>>
>> 2022-11-13 12:17:19  weewx[2148] DEBUG weeutil.ftpupload: Attempting
>> connection to 85.255.199.22
>> 2022-11-13 12:17:19  weewx[2148] DEBUG weeutil.ftpupload: Connected to
>> 85.255.199.22
>> 2022-11-13 12:17:19  weewx[2148] DEBUG weeutil.ftpupload: 0
>> ./weekradiation.png
>> e4e9d09c9a410af104aeb54059eb45247f7d51cf4f85a10f8be03d8e4b345f57
>> 2022-11-13 12:17:20  weewx[2148] ERROR weeutil.ftpupload: Failed
>> uploading /var/www/html/weewx/weekradiation.png to server 85.255.199.22.
>> Reason: '553 Could not create file.'
>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: ftpgenerator:
>> (2): caught exception '': 553 Could not create
>> file.
>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: 
>> Traceback (most recent call last):
>>
>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: 
>>   File "/home/weewx/bin/weewx/reportengine.py", line 437, in run
>>
>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: 
>> n = ftp_data.run()
>>
>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: 
>>   File "/home/weewx/bin/weeutil/ftpupload.py", line 220, in run
>>
>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: 
>> ftp_server.storbinary(stor_cmd, fd)
>>
>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: 
>>   File "/usr/lib/python3.10/ftplib.py", line 498, in storbinary
>>
>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: 
>> with self.transfercmd(cmd, rest) as conn:
>>
>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: 
>>   File "/usr/lib/python3.10/ftplib.py", line 393, in transfercmd
>>
>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: 
>> return self.ntransfercmd(cmd, rest)[0]
>>
>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: 
>>   File "/usr/lib/python3.10/ftplib.py", line 359, in ntransfercmd
>>
>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: 
>> resp = self.sendcmd(cmd)
>>
>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: 
>>   File "/usr/lib/python3.10/ftplib.py", line 281, in sendcmd
>>
>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: 
>> return self.getresp()
>>
>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: 
>>   File "/usr/lib/python3.10/ftplib.py", line 254, in getresp
>>
>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: 
>> raise error_perm(resp)
>>
>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: 
>> ftplib.error_perm: 553 Could not create file.
>>
>> 2022-11-13 12:17:20  weewx[2148] ERROR weewx.reportengine: ftpgenerator:
>> Upload failed
>> 2022-11-13 12:17:20  weewx[2148] DEBUG weewx.reportengine: Report 'RSYNC'
>> not enabled. Skipping.
>>
>> thank again!!!
>> grtz
>>
>> alex
>>
>>
>> Op zo 13 nov. 2022 om 11:03 schreef gjr80 :
>>
>>> You should not need to install anything extra to use FTP, neither should
>>> whether your website is https (or http) affect your FTP setup. The path
>>> will need to be set correctly, but I would suggest that first you need to
>>> ensure that FTP is connecting and uploading to your web host without error.
>>>
>>> You should setup the [StdReport] [[FTP]] stanza in weewx.conf as per
>>> the requirements for your hosting service, ie user, password, server
>>> etc. The [[FTP]] section
>>>  in the Users Guide
>>> explains what each setting is for. Once you have the [[FTP]] stanza set
>>> correctly locate the debug setting near the top of weewx.conf and set
>>> it to debug = 1. Save weewx.conf and restart WeeWX. The log should now
>>> show the FTP report being called and whether it was successfully generated
>>> or not. If there was an error it should be logged. If you cannot work out
>>> from the log what the problem is, post a copy of the log here showing the
>>> full WeeWX startup and the first couple of report cycles.
>>>
>>> Gary
>>>
>>> On Sunday, 13 November 2022 at 00:21:41 UTC+10 vanuxe...@gmail.com
>>> wrote:
>>>
 Thx again.

 Sorry for posting picture.
 I reinstall