Hi Tom,

Sorry that it took time to update on this, the remote location had a
problem with their internet for a few days so i was not able to access it
remotely until now.

I set debug=2 in weewx.conf and below is the output. Can you make any sense
of it?

2023-05-25 13:33:23  weewx[989] DEBUG weewx.engine: Loading service
weewx.engine.StdReport

2023-05-25 13:33:23  weewx[989] INFO weewx.engine: 'pyephem' not detected,
extended almanac data is not available

2023-05-25 13:33:23  weewx[989] DEBUG weewx.engine: Finished loading
service weewx.engine.StdReport

2023-05-25 13:33:23  weewx[989] INFO __main__: Starting up weewx version
4.10.2

2023-05-25 13:33:23  weewx[989] DEBUG weewx.engine: Station does not
support reading the time

2023-05-25 13:33:23  weewx[989] INFO weewx.engine: Using binding
'wx_binding' to database 'weewx.sdb'

2023-05-25 13:33:23  weewx[989] INFO weewx.manager: Starting backfill of
daily summaries

2023-05-25 13:33:23  weewx[989] INFO weewx.manager: Daily summaries up to
date

2023-05-25 13:33:23  weewx[989] INFO weewx.engine: Starting main packet
loop.

2023-05-25 13:33:23  weewx[989] DEBUG weewx.manager: Daily summary version
is 4.0

2023-05-25 13:36:03  weewx[989] INFO weewx.manager: Added record 2023-05-25
13:35:00 +04 (1685007300) to database 'weewx.sdb'

2023-05-25 13:36:03  weewx[989] INFO weewx.manager: Added record 2023-05-25
13:35:00 +04 (1685007300) to daily summary in 'weewx.sdb'

2023-05-25 13:36:03  weewx[989] DEBUG user.windguru: url:
http://www.windguru.cz/upload/api.php?stationtype=weewx&uid=10004&salt=1685007300~salted&hash=6bbd54aaf782a1a40662b4fcaaf75ee0&interval=60&percip_interval=3600&precip=0.00

2023-05-25 13:36:03  weewx[989] DEBUG weewx.reportengine: Running reports
for latest time in the database.

2023-05-25 13:36:03  weewx[989] DEBUG weewx.reportengine: Running report
'SeasonsReport'

2023-05-25 13:36:03  weewx[989] DEBUG weewx.restx: StationRegistry url: '
http://weewx.com/register/register.cgi?station_url=www.kitebeachcenter.ae&description=Mikoko%2C+UAQ&latitude=25.5388&longitude=55.6287&station_type=WeatherFlowUDP&station_model=%3Cbound+method+WeatherFlowUDPDriver.hardware_name+of+%3Cuser.weatherflowudp.WeatherFlowUDPDriver+object+at+0x1061ec940%3E%3E&python_info=3.10.8&platform_info=macOS-12.5-x86_64-i386-64bit&config_path=%2FUsers%2FShared%2Fweewx%2Fweewx.conf&entry_path=%2FUsers%2FShared%2Fweewx%2Fbin%2Fweewxd&weewx_info=4.10.2
'

2023-05-25 13:36:03  weewx[989] DEBUG weewx.restx: WindGuru url: '
http://www.windguru.cz/upload/api.php?stationtype=weewx&uid=10004&salt=1685007300~salted&hash=6bbd54aaf782a1a40662b4fcaaf75ee0&interval=60&percip_interval=3600&precip=0.00
'

2023-05-25 13:36:03  weewx[989] DEBUG weewx.reportengine: Found
configuration file /Users/Shared/weewx/skins/Seasons/skin.conf for report
'SeasonsReport'

2023-05-25 13:36:03  weewx[989] DEBUG weewx.cheetahgenerator: Using search
list ['weewx.cheetahgenerator.Almanac', 'weewx.cheetahgenerator.Current',
'weewx.cheetahgenerator.DisplayOptions', 'weewx.cheetahgenerator.Extras',
'weewx.cheetahgenerator.Gettext', 'weewx.cheetahgenerator.JSONHelpers',
'weewx.cheetahgenerator.PlotInfo', 'weewx.cheetahgenerator.SkinInfo',
'weewx.cheetahgenerator.Station', 'weewx.cheetahgenerator.Stats',
'weewx.cheetahgenerator.UnitInfo']

2023-05-25 13:36:03  weewx[989] DEBUG weewx.manager: Daily summary version
is 4.0

2023-05-25 13:36:04  weewx[989] INFO weewx.cheetahgenerator: Generated 8
files for report SeasonsReport in 0.88 seconds

2023-05-25 13:36:04  weewx[989] DEBUG weewx.manager: Daily summary version
is 4.0

2023-05-25 13:36:04  weewx[989] INFO weewx.imagegenerator: Generated 15
images for report SeasonsReport in 0.58 seconds

2023-05-25 13:36:04  weewx[989] INFO weewx.reportengine: Copied 5 files to
/Users/Shared/weewx/public_html

2023-05-25 13:36:04  weewx[989] DEBUG weewx.reportengine: Report
'SmartphoneReport' not enabled. Skipping.

2023-05-25 13:36:04  weewx[989] DEBUG weewx.reportengine: Report
'MobileReport' not enabled. Skipping.

2023-05-25 13:36:04  weewx[989] DEBUG weewx.reportengine: Report
'StandardReport' not enabled. Skipping.

2023-05-25 13:36:04  weewx[989] DEBUG weewx.reportengine: Report 'FTP' not
enabled. Skipping.

2023-05-25 13:36:04  weewx[989] DEBUG weewx.reportengine: Report 'RSYNC'
not enabled. Skipping.

2023-05-25 13:36:33  weewx[989] DEBUG weewx.restx: StationRegistry: Failed
upload attempt 1: <urlopen error [Errno 8] nodename nor servname provided,
or not known>

2023-05-25 13:36:38  weewx[989] DEBUG weewx.restx: StationRegistry url: '
http://weewx.com/register/register.cgi?station_url=www.kitebeachcenter.ae&description=Mikoko%2C+UAQ&latitude=25.5388&longitude=55.6287&station_type=WeatherFlowUDP&station_model=%3Cbound+method+WeatherFlowUDPDriver.hardware_name+of+%3Cuser.weatherflowudp.WeatherFlowUDPDriver+object+at+0x1061ec940%3E%3E&python_info=3.10.8&platform_info=macOS-12.5-x86_64-i386-64bit&config_path=%2FUsers%2FShared%2Fweewx%2Fweewx.conf&entry_path=%2FUsers%2FShared%2Fweewx%2Fbin%2Fweewxd&weewx_info=4.10.2
'

2023-05-25 13:37:03  weewx[989] DEBUG weewx.restx: WindGuru: Failed upload
attempt 1: <urlopen error timed out>

2023-05-25 13:37:08  weewx[989] DEBUG weewx.restx: StationRegistry: Failed
upload attempt 2: HTTP Error 400: BAD REQUEST

2023-05-25 13:37:08  weewx[989] DEBUG weewx.restx: WindGuru url: '
http://www.windguru.cz/upload/api.php?stationtype=weewx&uid=10004&salt=1685007300~salted&hash=6bbd54aaf782a1a40662b4fcaaf75ee0&interval=60&percip_interval=3600&precip=0.00
'

2023-05-25 13:37:08  weewx[989] INFO weewx.restx: WindGuru: Published
record 2023-05-25 13:35:00 +04 (1685007300)

2023-05-25 13:37:13  weewx[989] DEBUG weewx.restx: StationRegistry url: '
http://weewx.com/register/register.cgi?station_url=www.kitebeachcenter.ae&description=Mikoko%2C+UAQ&latitude=25.5388&longitude=55.6287&station_type=WeatherFlowUDP&station_model=%3Cbound+method+WeatherFlowUDPDriver.hardware_name+of+%3Cuser.weatherflowudp.WeatherFlowUDPDriver+object+at+0x1061ec940%3E%3E&python_info=3.10.8&platform_info=macOS-12.5-x86_64-i386-64bit&config_path=%2FUsers%2FShared%2Fweewx%2Fweewx.conf&entry_path=%2FUsers%2FShared%2Fweewx%2Fbin%2Fweewxd&weewx_info=4.10.2
'

2023-05-25 13:37:13  weewx[989] DEBUG weewx.restx: StationRegistry: Failed
upload attempt 3: HTTP Error 400: BAD REQUEST

2023-05-25 13:37:13  weewx[989] ERROR weewx.restx: StationRegistry: Failed
to publish record 2023-05-25 13:35:00 +04 (1685007300): Failed upload after
3 tries



On Mon, May 22, 2023 at 3:28 AM Tom Keffer <[email protected]> wrote:

> Right you are.
>
> Fixed.
>
> On Sun, May 21, 2023 at 2:40 PM [email protected] <[email protected]>
> wrote:
>
>> Sorry, I was in a hurry and wasn’t clear. I think StationRegistry and
>> WindGuru are both failing.
>> Re: StationRegistry
>> Go to http://weewx.com/stations.html. Nothing is displayed. The GET
>> request to  /api/v2/stations/?limit=2000 is also returning a 502. So, like
>> you said, seems like a server issue…
>> rich
>>
>> On Sunday, 21 May 2023 at 16:22:54 UTC-4 Tom Keffer wrote:
>>
>>> Oops. Missed that! Thanks, Rich.
>>>
>>> Not sure why the registry would return that error. Try debug=2 in
>>> weewx.conf, restart weewxd, let it run for a reporting cycle of two, then
>>> post the log. Option debug=2 will log the full URL used for the GET to the
>>> registry.
>>>
>>>
>>>
>>> On Sun, May 21, 2023 at 12:53 PM [email protected] <[email protected]>
>>> wrote:
>>>
>>>> Tom,
>>>> I think the 502 is from station registry. Nothing is displaying on the
>>>> map and GET stations is returning a 502
>>>> rich
>>>>
>>>> On Sunday, 21 May 2023 at 11:59:08 UTC-4 Tom Keffer wrote:
>>>>
>>>>> I don't know anything about the windguru uploader. You can try asking
>>>>> the author.
>>>>>
>>>>> I will say that "Bad Gateway" usually means a problem with a load
>>>>> balancing server, or something like that. It could be a problem on the
>>>>> windguru end.
>>>>>
>>>>> There's also a pending "pull request
>>>>> <https://github.com/claudobahn/weewx-windguru/pull/4>" that updates
>>>>> how authentication is done. Perhaps that's the problem? Don't know. You 
>>>>> can
>>>>> give it a try.
>>>>>
>>>>> -tk
>>>>>
>>>>> On Sun, May 21, 2023 at 8:47 AM [email protected] <[email protected]>
>>>>> wrote:
>>>>>
>>>>>> Thank you for the replies and suggestions. The logging is now working
>>>>>> to /var/log/weewx.log
>>>>>>
>>>>>> When I run weewx directly I can see the sensor data coming in. It
>>>>>> seems like it's just the final step when it uploads the data to windguru
>>>>>> that it is failing. I have confirmed that the station details are 
>>>>>> correct.
>>>>>> When I ping windguru.cz, there is a reply. Any ideas?
>>>>>>
>>>>>> 2023-05-21 19:35:41  weewx[3859] DEBUG weewx.reportengine: Report
>>>>>> 'RSYNC' not enabled. Skipping.
>>>>>> 2023-05-21 19:35:44  weewx[3859] DEBUG weewx.restx: WindGuru: Failed
>>>>>> upload attempt 2: Server response: b'ERROR (no data)'
>>>>>> 2023-05-21 19:35:45  weewx[3859] DEBUG weewx.restx: StationRegistry:
>>>>>> Failed upload attempt 2: HTTP Error 502: Bad Gateway
>>>>>> 2023-05-21 19:35:50  weewx[3859] DEBUG weewx.restx: WindGuru: Failed
>>>>>> upload attempt 3: Server response: b'ERROR (no data)'
>>>>>> 2023-05-21 19:35:50  weewx[3859] ERROR weewx.restx: WindGuru: Failed
>>>>>> to publish record 2023-05-21 19:35:00 +04 (1684683300): Failed upload 
>>>>>> after
>>>>>> 3 tries
>>>>>> 2023-05-21 19:35:51  weewx[3859] DEBUG weewx.restx: StationRegistry:
>>>>>> Failed upload attempt 3: HTTP Error 502: Bad Gateway
>>>>>> 2023-05-21 19:35:51  weewx[3859] ERROR weewx.restx: StationRegistry:
>>>>>> Failed to publish record 2023-05-21 19:35:00 +04 (1684683300): Failed
>>>>>> upload after 3 tries
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Sunday, May 21, 2023 at 3:43:15 PM UTC+4 Tom Keffer wrote:
>>>>>>
>>>>>>> I have never been able to get system logging from Python to work on
>>>>>>> the Mac. I'm sure it can be done --- I just don't know how. If you 
>>>>>>> Google
>>>>>>> around, apparently others have struggled to get it to work as well.
>>>>>>>
>>>>>>> Instead, I just log to a rotating file. See the section *Logging to
>>>>>>> rotating files
>>>>>>> <https://github.com/weewx/weewx/wiki/WeeWX-v4-and-logging#logging-to-rotating-files>*
>>>>>>>  in
>>>>>>> the Wiki. The example logs to /var/log/weewx.log, which will
>>>>>>> require root privileges. Another option is to log to
>>>>>>> /Users/Shared/weewx/weewx.log, or some other place where you don't
>>>>>>> need those privileges.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On Sun, May 21, 2023 at 2:47 AM Graham Eddy <[email protected]> wrote:
>>>>>>>
>>>>>>>> tom did not say that 4.10.2 removed [Logging], he did ask you to
>>>>>>>> remove that section temporarily, to get it to use default, in case 
>>>>>>>> your own
>>>>>>>> content of that section was wrong. tom said that you were using a 
>>>>>>>> specific
>>>>>>>> item (i think it was ‘rotate’) that was removed in 4.10.2 and thus 
>>>>>>>> causing
>>>>>>>> your runtime error
>>>>>>>>
>>>>>>>> i think in macOS the default behaviour is to log under
>>>>>>>> /var/log/system.log
>>>>>>>>
>>>>>>>> once the default configuration is working, no doubt you will add
>>>>>>>> some entries to [Logging] to use a file of your choice, such as
>>>>>>>> /var/log/weewx.log
>>>>>>>> *⊣GE⊢*
>>>>>>>>
>>>>>>>> On 21 May 2023, at 7:33 pm, [email protected] <[email protected]>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>> However, I am still having some problem and I'm struggling to
>>>>>>>> identify exactly what because I'm not sure how to check the logs on 
>>>>>>>> MacOS.
>>>>>>>> I'm sorry for the noob question, but can someone please guide me on 
>>>>>>>> where
>>>>>>>> weewx is logging to? I can confirm that it is not /var/log/weewx.log or
>>>>>>>> /var/tmp/weewx.log. Originally I had added a [Logging] section in
>>>>>>>> weewx.conf but now the weewx 4.10.2 has removed that functionality I 
>>>>>>>> am not
>>>>>>>> sure how else to log weewx output to a different file.
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> 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 [email protected].
>>>>>>>>
>>>>>>> To view this discussion on the web visit
>>>>>>>> https://groups.google.com/d/msgid/weewx-user/ADD2976B-D69E-4BD4-A23F-FA1D439063DC%40geddy.au
>>>>>>>> <https://groups.google.com/d/msgid/weewx-user/ADD2976B-D69E-4BD4-A23F-FA1D439063DC%40geddy.au?utm_medium=email&utm_source=footer>
>>>>>>>> .
>>>>>>>>
>>>>>>> --
>>>>>> 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 [email protected].
>>>>>>
>>>>> To view this discussion on the web visit
>>>>>> https://groups.google.com/d/msgid/weewx-user/c18a02bc-6371-49a8-ad07-42e794b524e9n%40googlegroups.com
>>>>>> <https://groups.google.com/d/msgid/weewx-user/c18a02bc-6371-49a8-ad07-42e794b524e9n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>>>> .
>>>>>>
>>>>> --
>>>> 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 [email protected].
>>>>
>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/weewx-user/e6b2b60e-e273-4834-b63d-c3685146aadfn%40googlegroups.com
>>>> <https://groups.google.com/d/msgid/weewx-user/e6b2b60e-e273-4834-b63d-c3685146aadfn%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> --
>> 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 [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/weewx-user/3e6bdfd7-595f-415f-95b2-e3423e2426b4n%40googlegroups.com
>> <https://groups.google.com/d/msgid/weewx-user/3e6bdfd7-595f-415f-95b2-e3423e2426b4n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> 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/H2wz1mwlK7I/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/CAPq0zEB9YcwJOoh_BuY2uYFyHe8dYdTeGtex5K2TXhP9z37vQw%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEB9YcwJOoh_BuY2uYFyHe8dYdTeGtex5K2TXhP9z37vQw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CALeSoZk4de5ZuO39OD63h68bBr%3DhOnBmSXihswDSkTqW%3Dy%2BSZQ%40mail.gmail.com.

Reply via email to