here it is,

[[FTP]]
# FTP'ing the results to a webserver is treated as just another report,
# albeit one with an unusual report generator!
skin = Ftp

# If you wish to use FTP, set "enable" to "true", then
# fill out the next four lines.
# Use quotes around passwords to guard against parsing errors.
enable = true
user = ''
password = ''
server = ftp.sassarimeteo.altervista.org    # The ftp server name, e.g, 
www.myserver.org
path = /    # The destination directory, e.g., /weather

# Set to True for an FTP over TLS (FTPS) connection. Not all servers
# support this.
secure_ftp = False

# To upload files from something other than what HTML_ROOT is set
# to above, specify a different HTML_ROOT here.
HTML_ROOT = /var/www/html/weewx

# Most FTP servers use port 21
port = 21

# Set to 1 to use passive mode, zero for active mode
passive = 1

# (Other options as before)
ftp_encoding = latin-1


Il giorno sabato 20 novembre 2021 alle 14:29:04 UTC+1 [email protected] ha 
scritto:

> When you added 
>
> ftp_encoding = latin-1
>
> Did you put it in the same [[FTP]] section you already have? When you're 
> done, the results should look like this:
>
> [StdReport]
>
>     ... options for other reports
>
>     [[FTP]]
>         skin = Ftp
>         enable = true
>         user = your user name
>         password = your password
>         server = your server name
>         path = /weather
>         passive = 1
>         ftp_encoding = latin-1
>
>
>         
>
> On Sat, Nov 20, 2021 at 12:32 AM Massimiliano Scarzella <
> [email protected]> wrote:
>
>> 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
>>  
>> <https://groups.google.com/d/msgid/weewx-user/b5f71653-4807-4a41-88f3-810d1e435da2n%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/42539f5a-2b4e-4786-88bc-4df0db4c41d9n%40googlegroups.com.

Reply via email to