Hi Jean,
If you increase the time between sending loop packets, your provider may
allow the connections when you ask. You'll sacrifice some of the real time
aspect of mesowx, but it will still be updating frequently, compared to the
rest of us (I'm approx 15 seconds)
I assume you are using one of luc's scripts and that it's named something
like sync-lh?.py
Find it (in /usr/share/weewx/user /) and back up that file.
Then open it with a plain text editor (nano, vim...)
Find the line (somewhere around line 140, depending on the version you
have)...
def new_loop_packet(self, event):
and after that (maybe 10 lines down?) there will be one that looks like...
if date_time != self.lastLoopDateTime:
comment it out and add a new line to replace it, as follows...
#if date_time != self.lastLoopDateTime:
if dateTime *>* (self.lastLoopDateTime* + 5*):
where the 5 is a number in seconds.
This will mean that the script will wait for a timestamp larger than 5
seconds difference between loop packets rather than the current test which
only ignores duplicate timestamps. And is why you are sending them as fast
as they are generated, and is when I ask. What's the weather station type -
make and model?
If you don't feel confident enough to edit the script, send it to me and
I'll do it here.
Cheers
Glenn
rorpi - read only raspberry pi & various weewx addons
https://github.com/glennmckechnie
On 1 February 2018 at 10:30, Glenn McKechnie <[email protected]>
wrote:
> This isn't a problem with mesowx (as you've noted in your 2nd post) It's
> to do with establishing the connection to http://meteo-landeda.org/
> <http://meteo-landeda.org/meso/updateData.php>
> They are aborting on you. This note on stackoverflow
> <https://stackoverflow.com/questions/33174804/python-requests-getting-connection-aborted-badstatusline-error>suggests
> one reason.
>
> You appear to be sending very frequently, there's only a second or two
> between each posting? That's possibly why.
>
> > Jan 31 21:14:06 jeanlinux weewx[3323]: sync raw: send record 2018-01-31
> 21:14:07 CET (1517429647)
> > Jan 31 21:14:08 jeanlinux weewx[3323]: sync raw: send record 2018-01-31
> 21:14:09 CET (1517429649)
>
> I believe you can increase that time period in the python module, sync.py.
> I'll have a look and confirm if that's the case.
>
> Cheers
> Glenn
>
> rorpi - read only raspberry pi & various weewx addons
> https://github.com/glennmckechnie
>
> On 1 February 2018 at 09:20, Jean Labous <[email protected]> wrote:
>
>>
>>
>> Le mercredi 31 janvier 2018 23:11:31 UTC+1, Jean Labous a écrit :
>>>
>>> Hello to all
>>> I'm sorry but I'm just as incompetent for the English language as I am
>>> for Linux.
>>> I've been using Weewx for more than two years and it's been running
>>> smoothly all this time.
>>> Weewx is installed on a machine running Debian
>>> The site is
>>> http://www.meteo-landeda.org/
>>> Since yesterday: WeeWX poses some problems: data transfer is interrupted
>>> for long periods of time and then sometimes restarts. If I restart Weewx it
>>> runs for a while and then stops again.
>>>
>> During this time Meso continues to operate ???
>>
>>
>>> Here is the result of syslog:
>>>
>>>
>>> an 31 21:14:00 jeanlinux weewx[3323]: sync raw: send record 2018-01-31
>>> 21:14:01 CET (1517429641)
>>> Jan 31 21:14:02 jeanlinux weewx[3323]: sync raw: send record 2018-01-31
>>> 21:14:03 CET (1517429643)
>>> Jan 31 21:14:03 jeanlinux weewx[3323]: sync: failed http request attempt
>>> #1 to http://meteo-landeda.org/meso/updateData.php
>>> Jan 31 21:14:03 jeanlinux weewx[3323]: **** Reason:
>>> HTTPConnectionPool(host='meteo-landeda.org', port=None): Max retries
>>> exceeded with url: http://meteo-landeda.org/meso/updateData.php (Caused
>>> by ProtocolError('Connection aborted.', BadStatusLine("''",)))
>>> Jan 31 21:14:03 jeanlinux weewx[3323]: sync raw: unable to sync record,
>>> skipping
>>> Jan 31 21:14:03 jeanlinux weewx[3323]: **** Reason: sync: Failed to
>>> invoke http://meteo-landeda.org/meso/updateData.php after 1 tries
>>> Jan 31 21:14:04 jeanlinux weewx[3323]: sync raw: send record 2018-01-31
>>> 21:14:05 CET (1517429645)
>>> Jan 31 21:14:05 jeanlinux weewx[3323]: sync: failed http request attempt
>>> #1 to http://meteo-landeda.org/meso/updateData.php
>>> Jan 31 21:14:05 jeanlinux weewx[3323]: **** Reason:
>>> HTTPConnectionPool(host='meteo-landeda.org', port=None): Max retries
>>> exceeded with url: http://meteo-landeda.org/meso/updateData.php (Caused
>>> by ProtocolError('Connection aborted.', BadStatusLine("''",)))
>>> Jan 31 21:14:05 jeanlinux weewx[3323]: sync raw: unable to sync record,
>>> skipping
>>> Jan 31 21:14:05 jeanlinux weewx[3323]: **** Reason: sync: Failed to
>>> invoke http://meteo-landeda.org/meso/updateData.php after 1 tries
>>> Jan 31 21:14:06 jeanlinux weewx[3323]: sync raw: send record 2018-01-31
>>> 21:14:07 CET (1517429647)
>>> Jan 31 21:14:08 jeanlinux weewx[3323]: sync raw: send record 2018-01-31
>>> 21:14:09 CET (1517429649)
>>> Jan 31 21:14:09 jeanlinux weewx[3323]: sync: failed http request attempt
>>> #1 to http://meteo-landeda.org/meso/updateData.php
>>> Jan 31 21:14:09 jeanlinux weewx[3323]: **** Reason:
>>> HTTPConnectionPool(host='meteo-landeda.org', port=None): Max retries
>>> exceeded with url: http://meteo-landeda.org/meso/updateData.php (Caused
>>> by ProtocolError('Connection aborted.', BadStatusLine("''",)))
>>> Jan 31 21:14:09 jeanlinux weewx[3323]: sync raw: unable to sync record,
>>> skipping
>>> Jan 31 21:14:09 jeanlinux weewx[3323]: **** Reason: sync: Failed to
>>> invoke http://meteo-landeda.org/meso/updateData.php after 1 tries
>>> Jan 31 21:14:10 jeanlinux weewx[3323]: sync raw: send record 2018-01-31
>>> 21:14:11 CET (1517429651)
>>> Jan 31 21:14:11 jeanlinux weewx[3323]: sync: failed http request attempt
>>> #1 to http://meteo-landeda.org/meso/updateData.php
>>> Jan 31 21:14:11 jeanlinux weewx[3323]: **** Reason:
>>> HTTPConnectionPool(host='meteo-landeda.org', port=None): Max retries
>>> exceeded with url: http://meteo-landeda.org/meso/updateData.php (Caused
>>> by ProtocolError('Connection aborted.', BadStatusLine("''",)))
>>> Jan 31 21:14:11 jeanlinux weewx[3323]: sync raw: unable to sync record,
>>> skipping
>>> Jan 31 21:14:11 jeanlinux weewx[3323]: **** Reason: sync: Failed to
>>> invoke http://meteo-landeda.org/meso/updateData.php after 1 tries
>>>
>>>
>>>
>>> *Merci à tous*
>>>
>>> *Jean*
>>>
>> --
>> 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].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
--
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].
For more options, visit https://groups.google.com/d/optout.