ok, one thing at a time: I replaced the ftpupload.py file as required and
added
[[FTP]] # (Other options as before) ftp_encoding = latin-1 to weew.conf but
it gave me the same initial error.
then I edited the ftpupload.py file with
log.debug ("Attempting connection to% s", self.server) ftp_server =
ftplib.FTP (encoding = 'latin-1')
and it is restarted. Now works. For this I await instructions.
Il giorno sabato 20 novembre 2021 alle 08:45:30 UTC+1 Massimiliano
Scarzella ha scritto:
> I did as you told me but now I have the same mistake again. I replaced
> the file and added to the weew.conf file in the ftp section. before the
> change it worked
> Il giorno venerdì 19 novembre 2021 alle 22:10:03 UTC+1 [email protected]
> ha scritto:
>
>> Massimiliano,
>>
>> I've fixed this in commit fd6d9a
>> <https://github.com/weewx/weewx/commit/fd6d9a1f8e4f00b7559f004617f0f529a1c454fb>,
>>
>> which offers a new option "ftp_encoding", where you can specify an
>> alternative encoding.
>>
>> Could you replace your copy of ftplib.py with the new version, which is
>> attached. Then in your [[FTP]] section, add
>>
>> [[FTP]]
>> # (Other options as before)
>> ftp_encoding = latin-1
>>
>> Thanks for testing this.
>>
>> -tk
>>
>>
>>
>> On Fri, Nov 19, 2021 at 12:09 PM Massimiliano Scarzella <
>> [email protected]> wrote:
>>
>>>
>>> Thanks Vince. I don't know of the Http post so I can't fix it. I can
>>> tell you that by clicking on the post_clientraw.php file the answer is 405
>>> Method Not Allowed, that is 405 - Method Not Allowed for GET or HEAD
>>> request but I can't solve.
>>> Il giorno venerdì 19 novembre 2021 alle 19:03:40 UTC+1 vince ha scritto:
>>>
>>>> On Friday, November 19, 2021 at 9:20:24 AM UTC-8 [email protected]
>>>> wrote:
>>>>
>>>>>
>>>>> Perfect, the ftp upload problem was SOLVED using Tom's solution and
>>>>> the ephemeris problem SOLVED with Gary's solution, thanks to both. Only
>>>>> this problem remains in the log: Nov 19 18:05:05 raspberrypi weewx [1197]
>>>>> INFO user.rtcr: Failed to post data. Exception error message: 'HTTP Error
>>>>> 403: Forbidden' which refers to the [[RealtimeClientraw]] what is missing?
>>>>
>>>>
>>>> That error tells me that the webserver is not configured to permit the
>>>> HTTP POST from the weewx computer. How to do that depends on which
>>>> webserver you are running and how you have it configured. I would expect
>>>> the default setting is to deny this, so you probably need to open
>>>> something
>>>> up in your webserver configuration.
>>>>
>>>>
>>>>> In the / etc / weewx version where is the rtcr.py file located?
>>>>
>>>>
>>>> Not understanding why you'd want to look for that when you're getting a
>>>> permission denied from your webserver.
>>>>
>>>> Try "find / -name rtcr.py -print" for the Linux way to find it.
>>>> But to answer, the extension puts it in the same place all other
>>>> extension executables go.... /usr/share/weewx/user
>>>>
>>>>
>>>>
>>>> --
>>> 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/0db0e42f-49ea-4349-9098-91b6ade53edbn%40googlegroups.com
>>>
>>> <https://groups.google.com/d/msgid/weewx-user/0db0e42f-49ea-4349-9098-91b6ade53edbn%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/b5f71653-4807-4a41-88f3-810d1e435da2n%40googlegroups.com.