Re: [weewx-user] weewx upgrade from python2 to python3

2020-09-07 Thread Bob Grattan
Having another problem with the move to python3. This time it's the 
weewx-emoncms extension. I have installed the latest version which should 
run on python3, from what I understand.
At bootup, I get the normal:

Sep  7 16:04:07 n4mrv wee_reports[27467] INFO user.emoncms: service version 
is 0.17
Sep  7 16:04:07 n4mrv wee_reports[27467] INFO user.emoncms: node is 0
Sep  7 16:04:07 n4mrv wee_reports[27467] INFO user.emoncms: Data will be 
uploaded with token=b634 

In weewx.config I have:

[StdRESTful]
  [[EmonCMS]]

url = http://192.168.1.103/emoncms/input/post.json
token = b634

But I get:
weewx.log:
Sep  7 16:15:16 n4mrv weewx[27417] DEBUG weewx.restx: EmonCMS: Failed 
upload attempt 1: Server returned 'b'ok''
Sep  7 16:15:21 n4mrv weewx[27417] DEBUG weewx.restx: EmonCMS: Failed 
upload attempt 2: Server returned 'b'ok''
Sep  7 16:15:26 n4mrv weewx[27417] DEBUG weewx.restx: EmonCMS: Failed 
upload attempt 3: Server returned 'b'ok''
Sep  7 16:15:26 n4mrv weewx[27417] ERROR weewx.restx: EmonCMS: Failed to 
publish record 2020-09-07 16:15:00 EDT (1599509700): Failed upload after 3 
tries

It was working fine in python2. The token and local server are the same and 
correct. I'm not sure I understand the debug error. Can anyone help?  
Thanks in advance.
Bob



On Tuesday, September 1, 2020 at 5:01:03 PM UTC-4, Bob Grattan wrote:
>
> Thanks to everyone for the help.
> Bob
>
> On Tuesday, September 1, 2020 at 2:50:51 PM UTC-4 wwwd...@gmail.com wrote:
>
>> I just went through the same thing, as was mentioned above make sure all 
>> of your plugins have been updated to the latest version. I had a few 
>> plugins that I no longer run as they hadn't been upgraded and after a look 
>> at the code the work to upgrade them was more than I was willing to tackle. 
>> WeeWX-WD for example (although someone has a work-in-progress repo where 
>> it's being worked on, but doesn't have any releases yet -- I did an install 
>> from a GitHub clone and it seems to be working so far).
>>
>> At least for the two simple plugins I wrote I just had to change Queue to 
>> queue and replace urllib2 with urllib.request.
>>
>> On Tuesday, September 1, 2020 at 11:32:49 AM UTC-7 tke...@gmail.com 
>> wrote:
>>
>>> Same issue, except this time, it's cmon. Your version has not been 
>>> ported to Python 3. Fortunately, a newer version is available which has.
>>>
>>> On Tue, Sep 1, 2020 at 11:28 AM bgra...@umw.edu  wrote:
>>>
>>>> Hello,
>>>> Seeing the discussion of python3, I thought I would do the switch 
>>>> myself but ran into some errors. See below:
>>>>
>>>> +++
>>>> /var/log/weewx.log:
>>>> Sep  1 11:51:21 n4mrv weewx[3283] INFO __main__: Initializing weewx 
>>>> version 4.1.1
>>>> Sep  1 11:51:21 n4mrv weewx[3283] INFO __main__: Using Python 3.6.9 
>>>> (default, Jul 17 2020, 12:50:27) #012[GCC 8.4.0]
>>>> Sep  1 11:51:21 n4mrv weewx[3283] INFO __main__: Platform 
>>>> Linux-4.15.0-115-generic-x86_64-with-Ubuntu-18.04-bionic
>>>> Sep  1 11:51:21 n4mrv weewx[3283] INFO __main__: Locale is 'en_US.UTF-8'
>>>> Sep  1 11:51:21 n4mrv weewx[3283] INFO __main__: Using configuration 
>>>> file /home/weewx/weewx.conf
>>>> Sep  1 11:51:21 n4mrv weewx[3283] INFO __main__: Debug is 0
>>>> Sep  1 11:51:21 n4mrv weewx[3283] INFO weewx.engine: Loading station 
>>>> type Vantage (weewx.drivers.vantage)
>>>> Sep  1 11:51:21 n4mrv weewx[3283] INFO weewx.engine: StdConvert target 
>>>> unit is 0x1
>>>> Sep  1 11:51:21 n4mrv weewx[3283] INFO weewx.wxservices: The following 
>>>> values will be calculated: pressure=prefer_hardware, 
>>>> barometer=prefer_hardware, altimeter=prefer_hardware, 
>>>> windchill=prefer_hardware, heatindex=prefer_hardware, 
>>>> dewpoint=prefer_hardware, inDewpoint=prefer_hardware, 
>>>> rainRate=prefer_hardware, maxSolarRad=prefer_hardware, 
>>>> cloudbase=prefer_hardware, humidex=prefer_hardware, 
>>>> appTemp=prefer_hardware, ET=prefer_hardware, windrun=prefer_hardware
>>>> Sep  1 11:51:21 n4mrv weewx[3283] INFO weewx.wxservices: The following 
>>>> algorithms will be used for calculations: altimeter=aaASOS, maxSolarRad=RS
>>>> Sep  1 11:51:21 n4mrv weewx[3283] CRITICAL __main__: Caught 
>>>> unrecoverable exception:
>>>> Sep  1 11:51:21 n4mrv weewx[3283] CRITICAL __main__:   invalid 
>>>> syntax (cmon.py, line 315)
>>>> Sep  1 11:51:21 n4mrv weewx[3283] C

[weewx-user] Re: need to modify daily rain in weewx.sdb

2020-05-03 Thread Bob Grattan
Many thanks for the replies and suggestions!  Bob

On Saturday, May 2, 2020 at 11:50:45 AM UTC-4, Bob Grattan wrote:
>
> Hello,
> I have a constant battle with my VP2 tipping bucket rain gauge as it often 
> gets clogged with trash. I check it against an accurate manual gauge to 
> make sure it's reasonable since I know tipping buckets have problems.
> I would like suggestions for the following:
>
> 1.  An easy way to modify weewx.sdb when I need to modify the rain amount. 
> I have used DB Browser (SQLite) in the past but am not certain this is the 
> easiest. If possible, I want to avoid the SQL search/modify mode as my 
> skills are limited.
>
> 2. Once the "rain" amount in weewx.sdb is modified, how do I get the 
> system to incorporate the new total in the various displays such as for 
> month and year? In wview I was able to erase certain indexes and they were 
> recreated using the new values from the db; however, I'm not sure how this 
> works in weewx.
>
> I am running weewx 3.x.x (latest using "setup") on Ubuntu 18 and my 
> station is a Davis VP2+.
>
> Thanks for your help. Please take care and stay safe in these difficult 
> times.
>
> Bob
> grattans.org/wx
>

-- 
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/4491a7be-e1f4-41e6-90cf-f71bf46f530f%40googlegroups.com.


[weewx-user] need to modify daily rain in weewx.sdb

2020-05-02 Thread Bob Grattan
Hello,
I have a constant battle with my VP2 tipping bucket rain gauge as it often 
gets clogged with trash. I check it against an accurate manual gauge to 
make sure it's reasonable since I know tipping buckets have problems.
I would like suggestions for the following:

1.  An easy way to modify weewx.sdb when I need to modify the rain amount. 
I have used DB Browser (SQLite) in the past but am not certain this is the 
easiest. If possible, I want to avoid the SQL search/modify mode as my 
skills are limited.

2. Once the "rain" amount in weewx.sdb is modified, how do I get the system 
to incorporate the new total in the various displays such as for month and 
year? In wview I was able to erase certain indexes and they were recreated 
using the new values from the db; however, I'm not sure how this works in 
weewx.

I am running weewx 3.x.x (latest using "setup") on Ubuntu 18 and my station 
is a Davis VP2+.

Thanks for your help. Please take care and stay safe in these difficult 
times.

Bob
grattans.org/wx

-- 
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/d8d97b91-622a-4e68-b261-3a6b38d340f0%40googlegroups.com.


[weewx-user] Re: Godaddy FTP problem

2019-07-26 Thread Bob Grattan
Thanks, Andy, I’ve wanted to try rsync but wasn’t sure how to set it up with 
Godaddy. I’ll make an attempt as it seems the better method. Not real sure of 
myself in this area.
Bob

-- 
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/5c28bb17-2be2-4c3f-8d26-75c88813b2a4%40googlegroups.com.


[weewx-user] Godaddy FTP problem

2019-07-25 Thread Bob Grattan
Hello,

I have seen this discussed some but am not sure I understand exactly what 
is going on. I have used Godaddy for at least 10 years with no weewx FTP 
problems, until now. My weewx.conf contains

[[FTP]]
skin = Ftp
secure_ftp = True
#HTML_ROOT = public_html
port = 21
passive = 1
# If you wish to use FTP, uncomment and fill out the next four 
lines.
user = bgrattan
password = 
server = grattans.org
path = /weewx

They informed me that I need to move to their new hosting system so I have 
created "new.grattans.org" to move weewx data into before deleting the old 
and renaming the new one present grattans.org.

By changing the weewx.conf data above to new.grattans.org I am unable to 
upload from the weewx FTP function. I wonder if anyone can spot what is 
happening. I am able to use filezilla to move files into the new site but 
the weewx function no longer works. Not being an expert in this, I'm sure 
I'm doing something stupid but I don't know what.

Thanks for any help. I'm running Ubuntu 18 and weewx 3.9.1

Bob

http://grattans.org/wx  (working)

http://new.grattans.org/weewx  (FTP not working)

-- 
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/c4d6de73-9abd-438d-be3b-52c592427bc6%40googlegroups.com.