Unfortunately, on login, CWOP will accept any combination of user and
passcode. It's only later down the data stream that they reject posts, when
it's far too late for us to do anything about it. Hence, the check in
restx.py.

Still, I think the right thing to do is to stop checking on our end. That
means mysterious failures if a passcode is not specified when one is
needed, but it's better than us trying to guess what CWOP wants. There's
also findu.com for figuring out what went wrong.

Commit f185322
<https://github.com/weewx/weewx/commit/f185322f14cd68dedc45d05b652419901bfdba55>

-tk

On Sun, Nov 17, 2019 at 9:02 PM Mickael Hoareau <[email protected]>
wrote:

> Hello,
>
>
> I would like to report a problem I encountered  when configuring CWOP rest
> service.
>
> I was configuring weewx for a user migrating from Weatherlink IP (Davis
> Vantage Pro2). He is a radio amateur from Reunion (France), in Indian Ocean.
> In the weatherlink configuration, the link with CWOP was settup with the
> ID and without passcode and it has been working for a long time.
>
> In the weewx.conf, I then did this :
>     [[CWOP]]
>         enable = true
>         station = FR5ZU
>         post_interval = 300
>
>
>
> But I kept getting this error message in the log :
> APRS station FR5ZU requires passcode
>
>
> In the restx.py file, the problem was in the test line 1048 here :
> https://github.com/weewx/weewx/blob/3eb97346b92b588beb451449d67aab30b30ad6f3/bin/weewx/restx.py#L1048
> This test return false for the "FR5ZU" id.
>
>
> If I comment all the "if ... else" code and try this :
>         _cwop_dict.setdefault('passcode', '-1')
>         #if re.match(StdCWOP.valid_prefix_re, _cwop_dict['station']):
>         #    # It does not.
>         #    _cwop_dict.setdefault('passcode', '-1')
>         #elif 'passcode' not in _cwop_dict:
>         #    syslog.syslog(syslog.LOG_NOTICE,
>         #                  "APRS station %s requires passcode" %
>         #                  _cwop_dict['station'])
>         #    return
>
> *=> It works juste fine.*
>
> I am not really familiar with CWOP, but isn't there a problem with the
> *StdCWOP.valid_prefix_re* regexp ?
>
> Have a nice day,
> Mickael
>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-development" 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-development/100af05c-24f3-4f6f-affa-1b1b297f8d86%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-development/100af05c-24f3-4f6f-affa-1b1b297f8d86%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" 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-development/CAPq0zED%3DctKbPnK3Hnf%2B1_G4WzUiFS%3DkiHvLKwzP9EFHyM%3D1Bg%40mail.gmail.com.

Reply via email to