[weewx-user] Re: Second Anemometer - Davis Vantage Pro2 Plus

2024-06-19 Thread Rich Strle
Hello Rory, were you able to add a second anemometer and have it show up in 
the generated pages as 'roof wind' or something like that? I would like to 
do that but haven't seen any examples.
On Monday, March 4, 2024 at 5:05:21 AM UTC-6 Rory Gillies wrote:

> OK, after a bit of digging I have found the setting in the Drealine WLL 
> driver I am using, you have to add in the extra wind sensor even though it 
> shows up as the main anemometer in the WLL interface / Davis console.
>
> On Sunday, March 3, 2024 at 10:16:35 AM UTC Rory Gillies wrote:
>
>> I may be over thinking this but I have added a second sensor transmitter 
>> with an anemometer mounted on my roof. I use a WeatherLink Live and can see 
>> the data from the second anemometer but Weewx (4.10.2) does not, even if I 
>> unplug the one attached to the main ISS. The idea is the new anemometer 
>> will replace the original one, but how do I get WeeWx to se it?
>>
>> Thanks!
>>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/ac9e3a37-2f2d-4b95-9607-a201e707bc6en%40googlegroups.com.


Re: [weewx-user] FTP Not working

2024-05-29 Thread Rich Strle
The FTP process works perfectly. My issues were all self inflicted. Thanks 
for your help.

On Saturday, May 25, 2024 at 11:07:33 AM UTC-5 vince wrote:

> Your original post with the weewx.conf file had your FTP section 
> containing an odd user value...
>
> skin = Ftp enable = true user = your_u...@cliffandbuster.com < make 
> this just your_username password = "its_password" server = 
> www.cliffandbuster.com path = / secure_ftp = False port = 21 passive = 1  
> And you posted the real account and its actual password (yikes!) so you 
> definitely want to change those pronto.
>
> On Saturday, May 25, 2024 at 4:41:54 AM UTC-7 Rich Strle wrote:
>
>> When I ran that report I didn't do it with sudo. When I run sudo weectl 
>> report run the error goes away. I'm starting weewx with:
>>
>> sudo systemctl start weewx while I'm trouble shooting. Otherwise it runs 
>> as a damon.
>>
>> On Friday, May 24, 2024 at 9:47:41 PM UTC-5 vince wrote:
>>
>>>
>>> Your one small log clearly shows a permission denied error. Fix that and 
>>> things should clear up.
>>>
>>>
>>> On Friday, May 24, 2024 at 6:54:11 PM UTC-7 Rich Strle wrote:
>>>
>>> It doesn't seem to like the 9.9 Mb Log 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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/3eb78c6f-19ab-431d-8019-56b88627d5e5n%40googlegroups.com.


Re: [weewx-user] FTP Not working

2024-05-25 Thread Rich Strle
When I ran that report I didn't do it with sudo. When I run sudo weectl 
report run the error goes away. I'm starting weewx with:

sudo systemctl start weewx while I'm trouble shooting. Otherwise it runs as 
a damon.

On Friday, May 24, 2024 at 9:47:41 PM UTC-5 vince wrote:

>
> Your one small log clearly shows a permission denied error. Fix that and 
> things should clear up.
>
>
> On Friday, May 24, 2024 at 6:54:11 PM UTC-7 Rich Strle wrote:
>
> It doesn't seem to like the 9.9 Mb Log 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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/a33e06e5-4929-4c92-b5ca-3338330040c2n%40googlegroups.com.
Using configuration file /etc/weewx/weewx.conf
All enabled reports will be run.
Generating as of last timestamp in the database.


Re: [weewx-user] FTP Not working

2024-05-24 Thread Rich Strle
It doesn't seem to like the 9.9 Mb Log 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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/3aac9a81-e673-46b9-bd71-fabfeac2c55an%40googlegroups.com.


Re: [weewx-user] FTP Not working

2024-05-24 Thread Rich Strle
I set debug=2 and restarted weewx. I looked through the log file and didn't 
see where the ftp report was running. Would the Ftp process how up in the 
log as started?

Grasping at straws I added the ftpgenerator to the skins.conf file. That 
didn't do anything productive.

I ran weectl report list and weectl report run. Logs are attached.

Thanks for your efforts.

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/df1a3b62-ac01-470a-bc84-f1f52d05eb58n%40googlegroups.com.
Using configuration file /etc/weewx/weewx.conf

  Report  Skin Enabled   Units   Language
   SeasonsReport  Seasons YUS   en   
SmartphoneReport  Smartphone  NUS   en   
MobileReport  Mobile  NUS   en   
  StandardReport  StandardNUS   en   
   AirLinkReport  airlink YUS   en   
 FTP  Ftp YUS   en   
   RSYNC  Rsync   NUS   en   
weectl report run
Using configuration file /etc/weewx/weewx.conf
All enabled reports will be run.
Generating as of last timestamp in the database.
Traceback (most recent call last):
  File "/usr/share/weewx/weewx/reportengine.py", line 220, in run
obj.start()
  File "/usr/share/weewx/weewx/reportengine.py", line 409, in start
self.run()
  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 166, in run
ngen = self.generate(gen_dict[section_name], section_name, self.gen_ts)
   
  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 226, in generate
ngen += self.generate(section[subsection], subsection, gen_ts)
^^
  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 226, in generate
ngen += self.generate(section[subsection], subsection, gen_ts)
^^
  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 371, in generate
with open(tmpname, mode='wb') as fd:
 
PermissionError: [Errno 13] Permission denied: 
'/var/www/html/weewx/NOAA/NOAA-2024-05.txt.tmp'
Traceback (most recent call last):
  File "/usr/share/weewx/weewx/reportengine.py", line 220, in run
obj.start()
  File "/usr/share/weewx/weewx/reportengine.py", line 409, in start
self.run()
  File "/usr/share/weewx/weewx/reportengine.py", line 560, in run
ncopy += weeutil.weeutil.deep_copy_path(path, html_dest_dir)
 ^^^
  File "/usr/share/weewx/weeutil/weeutil.py", line 1811, in deep_copy_path
shutil.copy(path, d)
  File "/usr/lib/python3.11/shutil.py", line 420, in copy
copymode(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.11/shutil.py", line 309, in copymode
chmod_func(dst, stat.S_IMODE(st.st_mode))
PermissionError: [Errno 1] Operation not permitted: 
'/var/www/html/weewx/seasons.css'
Traceback (most recent call last):
  File "/usr/share/weewx/weectl.py", line 74, in 
main()
  File "/usr/share/weewx/weectl.py", line 66, in main
namespace.func(namespace)
  File "/usr/share/weewx/weectllib/__init__.py", line 121, in dispatch
namespace.action_func(config_dict, namespace)
  File "/usr/share/weewx/weectllib/report_cmd.py", line 91, in run_reports
weectllib.report_actions.run_reports(config_dict,
  File "/usr/share/weewx/weectllib/report_actions.py", line 104, in run_reports
t.run(reports)
  File "/usr/share/weewx/weewx/reportengine.py", line 192, in run
with set_cwd(os.path.join(self.config_dict['WEEWX_ROOT'],
  File "/usr/lib/python3.11/contextlib.py", line 137, in __enter__
return next(self.gen)
   ^^
  File "/usr/share/weewx/weewx/reportengine.py", line 73, in set_cwd
os.chdir(new_cwd)
FileNotFoundError: [Errno 2] No such file or directory: 
'/etc/weewx/skins/airlink'


Re: [weewx-user] FTP Not working

2024-05-24 Thread Rich Strle
When I try to post a response I keep getting a 'message is to long 
error...' I hope I didn't make a naughty list : )

On Thursday, May 23, 2024 at 6:25:20 PM UTC-5 Tom Keffer wrote:

> There are some bugs in the Python libraries, but as far as I know, they 
> only affect FTPS, and you're using a regular, insecure, connection.
>
> One thing you could try: set debug=2. This will give you extra logging 
> information. Don't know if it will uncover anything, but it's worth a shot.
>
> On Thu, May 23, 2024 at 3:59 PM Rich Strle  wrote:
>
>> Yes I can. I made a test directory and uploaded the files using ftp on 
>> the new RPi. I used the same username and password as in my weewx.conf.
>>
>> http://strle.com/test/index.html
>>
>> On Tuesday, May 21, 2024 at 8:32:32 PM UTC-5 Tom Keffer wrote:
>>
>>> If you're sure the two FTP sections are identical, it must be a firewall 
>>> / network issue.
>>>
>>> Can you FTP directly from the new RPi using the ftp utility 
>>> <https://linux.die.net/man/1/ftp>?
>>>
>>> On Tue, May 21, 2024 at 5:29 PM Rich Strle  wrote:
>>>
>>>> I have installed the latest version of weewx on a fresh RasberryPi and 
>>>> almost everything is working as expected.
>>>>
>>>> I also have a different Pi running weewx 4.x. It's been running 
>>>> perfectly for years. I shut down weewx on that Pi. After everything is 
>>>> working, I can see the files getting created on the new 5.x Pi, in 
>>>> weewx.conf I turned on upload to WeatherUnderground and FTP to my GoDaddy 
>>>> hosted domain Strle.com. WeatherUnderground is getting through but the FTP 
>>>> to GoDaddy isn't.
>>>> the ftp section of the two Pi's are identical.
>>>> I set debug to 1, and restarted.
>>>> I used journalctl --since "2 hours ago" > \tmp\weewx.log to grab the 
>>>> log.
>>>> I looked through the log and didn't see anything related to FTP or FTP 
>>>> errors.
>>>> I reviewed the wiki and saw a section on additional logging but it 
>>>> looks like v4 code.
>>>>
>>>> -- 
>>>> 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 weewx-user+...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/weewx-user/6d236f5c-a7e0-4f52-86f1-6980d471d0dan%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/weewx-user/6d236f5c-a7e0-4f52-86f1-6980d471d0dan%40googlegroups.com?utm_medium=email_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 weewx-user+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/00e9ac49-987a-4bd8-92e2-3bfa9dd31303n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/00e9ac49-987a-4bd8-92e2-3bfa9dd31303n%40googlegroups.com?utm_medium=email_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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/644bf58d-25ae-4b1c-a7d0-1402644b00e4n%40googlegroups.com.


Re: [weewx-user] FTP Not working

2024-05-23 Thread Rich Strle
Yes I can. I made a test directory and uploaded the files using ftp on the 
new RPi. I used the same username and password as in my weewx.conf.

http://strle.com/test/index.html

On Tuesday, May 21, 2024 at 8:32:32 PM UTC-5 Tom Keffer wrote:

> If you're sure the two FTP sections are identical, it must be a firewall / 
> network issue.
>
> Can you FTP directly from the new RPi using the ftp utility 
> <https://linux.die.net/man/1/ftp>?
>
> On Tue, May 21, 2024 at 5:29 PM Rich Strle  wrote:
>
>> I have installed the latest version of weewx on a fresh RasberryPi and 
>> almost everything is working as expected.
>>
>> I also have a different Pi running weewx 4.x. It's been running perfectly 
>> for years. I shut down weewx on that Pi. After everything is working, I can 
>> see the files getting created on the new 5.x Pi, in weewx.conf I turned on 
>> upload to WeatherUnderground and FTP to my GoDaddy hosted domain Strle.com. 
>> WeatherUnderground is getting through but the FTP to GoDaddy isn't.
>> the ftp section of the two Pi's are identical.
>> I set debug to 1, and restarted.
>> I used journalctl --since "2 hours ago" > \tmp\weewx.log to grab the log.
>> I looked through the log and didn't see anything related to FTP or FTP 
>> errors.
>> I reviewed the wiki and saw a section on additional logging but it looks 
>> like v4 code.
>>
>> -- 
>> 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 weewx-user+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/6d236f5c-a7e0-4f52-86f1-6980d471d0dan%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/6d236f5c-a7e0-4f52-86f1-6980d471d0dan%40googlegroups.com?utm_medium=email_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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/00e9ac49-987a-4bd8-92e2-3bfa9dd31303n%40googlegroups.com.


Re: [weewx-user] FTP Not working

2024-05-23 Thread Rich Strle
>From the RPi I can ftp to the server. I start ftp, login, do a lcd /var, 
lcd www, lcd html lcd weewx then I do an mput * 

It asks me [anpqy?] for each file, I press y and it seems to copy the 
files. I couldn't figure out the - modifiers to copy the directory and 
subdirectory without being prompted for every file.

On Tuesday, May 21, 2024 at 8:32:32 PM UTC-5 Tom Keffer wrote:

> If you're sure the two FTP sections are identical, it must be a firewall / 
> network issue.
>
> Can you FTP directly from the new RPi using the ftp utility 
> <https://linux.die.net/man/1/ftp>?
>
> On Tue, May 21, 2024 at 5:29 PM Rich Strle  wrote:
>
>> I have installed the latest version of weewx on a fresh RasberryPi and 
>> almost everything is working as expected.
>>
>> I also have a different Pi running weewx 4.x. It's been running perfectly 
>> for years. I shut down weewx on that Pi. After everything is working, I can 
>> see the files getting created on the new 5.x Pi, in weewx.conf I turned on 
>> upload to WeatherUnderground and FTP to my GoDaddy hosted domain Strle.com. 
>> WeatherUnderground is getting through but the FTP to GoDaddy isn't.
>> the ftp section of the two Pi's are identical.
>> I set debug to 1, and restarted.
>> I used journalctl --since "2 hours ago" > \tmp\weewx.log to grab the log.
>> I looked through the log and didn't see anything related to FTP or FTP 
>> errors.
>> I reviewed the wiki and saw a section on additional logging but it looks 
>> like v4 code.
>>
>> -- 
>> 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 weewx-user+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/6d236f5c-a7e0-4f52-86f1-6980d471d0dan%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/6d236f5c-a7e0-4f52-86f1-6980d471d0dan%40googlegroups.com?utm_medium=email_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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/1387985c-51ff-4afb-ac0e-2ec3ecd09d76n%40googlegroups.com.


[weewx-user] FTP Not working

2024-05-21 Thread Rich Strle
I have installed the latest version of weewx on a fresh RasberryPi and 
almost everything is working as expected.

I also have a different Pi running weewx 4.x. It's been running perfectly 
for years. I shut down weewx on that Pi. After everything is working, I can 
see the files getting created on the new 5.x Pi, in weewx.conf I turned on 
upload to WeatherUnderground and FTP to my GoDaddy hosted domain Strle.com. 
WeatherUnderground is getting through but the FTP to GoDaddy isn't.
the ftp section of the two Pi's are identical.
I set debug to 1, and restarted.
I used journalctl --since "2 hours ago" > \tmp\weewx.log to grab the log.
I looked through the log and didn't see anything related to FTP or FTP 
errors.
I reviewed the wiki and saw a section on additional logging but it looks 
like v4 code.

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/6d236f5c-a7e0-4f52-86f1-6980d471d0dan%40googlegroups.com.
# WEEWX CONFIGURATION FILE
#
# Copyright (c) 2009-2024 Tom Keffer 
# See the file LICENSE.txt for your rights.

##

# This section is for general configuration information.

# Set to 1 for extra debug info, otherwise comment it out or set to zero.
debug = 1

# Whether to log successful operations. May get overridden below.
log_success = True

# Whether to log unsuccessful operations. May get overridden below.
log_failure = True

# This configuration file was created by ...
version = 5.0.2

##

#   This section is for information about the station.

[Station]

# Description of the station location, such as your town.
location = Strle's Vantage Pro 2 Station

# Latitude in decimal degrees. Negative for southern hemisphere.
latitude = 40.2621
# Longitude in decimal degrees. Negative for western hemisphere.
longitude = -88.5876

# Altitude of the station, with the unit it is in. This is used only
# if the hardware cannot supply a value.
altitude = 829, foot# Choose 'foot' or 'meter' for unit

# Set to type of station hardware. There must be a corresponding stanza
# in this file, which includes a value for the 'driver' option.
station_type = WeatherLinkLive

# If you have a website, you may specify an URL
station_url = http://strle.com

# The start of the rain year (1=January; 10=October, etc.). This is
# downloaded from the station if the hardware supports it.
rain_year_start = 1

# Start of week (0=Monday, 6=Sunday)
week_start = 6

##

[WeatherLinkLive]
# This section configures the WeatherLink Live driver.

# Driver module
driver = user.weatherlink_live

# Host name or IP address of WeatherLink Live
host = 192.168.68.86

# Mapping of transmitter ids to WeeWX records
mapping = th:8, rain:8, wind:8, uv:8, solar:8, windchill:8, thw:8, 
thsw:8:appTemp, th_indoor, baro, battery:1

##

[Vantage]
# This section is for the Davis Vantage series of weather stations.

# Connection type: serial or ethernet 
#  serial (the classic VantagePro)
#  ethernet (the WeatherLinkIP or Serial-Ethernet bridge)
# type = ethernet

# If the connection type is serial, a port must be specified:
#   Debian, Ubuntu, Redhat, Fedora, and SuSE:
# /dev/ttyUSB0 is a common USB port name
# /dev/ttyS0   is a common serial port name
#   BSD:
# /dev/cuaU0   is a common serial port name
# port = /dev/ttyUSB0

# If the connection type is ethernet, an IP Address/hostname is required:
# host = 192.168.68.86

##
# The rest of this section rarely needs any attention. 
# You can safely leave it "as is."
##

# Serial baud rate (usually 19200)
baudrate = 19200

# TCP port (when using the WeatherLinkIP)
tcp_port = 2

# TCP send delay (when using the WeatherLinkIP):
tcp_send_delay = 0.5

# The type of LOOP packet to request: 1 = LOOP1; 2 = LOOP2; 3 = both
loop_request = 1

# The id of your ISS station (usually 1). If you use a wind meter connected
# to a anemometer transmitter kit, use its id
iss_id = 1

# How long to wait for a response from the station before giving up (in
# seconds; must be greater than 2)
timeout = 4

# How long to wait before trying again (in 

Re: [weewx-user] updated to 5.0.1 still no joy

2024-02-07 Thread Rich Strle
Hi Tom, it happens every time. Attached is a log of what happened when I 
turned off the Pi, restarted the Pi, shut down weewx, and restarted weewx. 

I running a fresh RasberryPi Debian install. Vantage Pro2 with a 
WeatherLinkIP attached to a  VantagePro2 console.

Attached is what happened with my most recent boot and the log file.



On Wednesday, February 7, 2024 at 7:54:14 AM UTC-6 Tom Keffer wrote:

> Rich, 
>
> One other question: does this happen after a reboot? Or, every time? 
>
> If it's only after a reboot, the problem could be that the network isn't 
> ready by the time the VP2 needs it.
>
>
> On Tue, Feb 6, 2024 at 7:51 PM Rich Strle  wrote:
>
>> I've been following the 5.0 issues. I have updated to 5.0.1 and done the 
>> usermod but I'm still having issues. RaspberryPi 3 B+ My Vantage Pro is 
>> connected via ethernet using the IP adaptor. I appreciate all the work 
>> that's gone into this free product.
>>
>> vp2pi@rpivp2:~ $ sudo apt update
>> vp2pi@rpivp2:~ $ sudo apt install weewx 
>>  
>> vp2pi@rpivp2:~ $ sudo usermod -aG dialout weewx
>>
>> vp2pi@rpivp2:~ $ sudo systemctl status weewx
>> * weewx.service - WeeWX
>>  Loaded: loaded (/lib/systemd/system/weewx.service; enabled; vendor 
>> preset: enabled)
>>  Active: failed (Result: exit-code) since Tue 2024-02-06 21:19:31 
>> CST; 3min 18s ago
>>Docs: https://weewx.com/docs
>> Process: 460 ExecStart=weewxd /etc/weewx/weewx.conf (code=exited, 
>> status=4)
>>Main PID: 460 (code=exited, status=4)
>> CPU: 966ms
>>
>> Feb 06 21:19:31 rpivp2 weewxd[460]: CRITICAL weewx.engine:  
>>  Vantage.__init__(self, **config_dict[DRIVER_NAME])
>> Feb 06 21:19:31 rpivp2 weewxd[460]: CRITICAL weewx.engine:    
>>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 536, in __init__
>> Feb 06 21:19:31 rpivp2 weewxd[460]: CRITICAL weewx.engine:  
>>  self.port.openPort()
>> Feb 06 21:19:31 rpivp2 weewxd[460]: CRITICAL weewx.engine:    
>>  File "/usr/share/weewx/weewx/drivers/vantage.py", line 359, in openPort
>> Feb 06 21:19:31 rpivp2 weewxd[460]: CRITICAL weewx.engine:  
>>  raise weewx.WeeWxIOError(ex)
>> Feb 06 21:19:31 rpivp2 weewxd[460]: CRITICAL weewx.engine:  
>>  weewx.WeeWxIOError: [Errno 101] Network is unreachable
>> Feb 06 21:19:31 rpivp2 weewxd[460]: CRITICAL __main__: Unable to load 
>> driver: [Errno 101] Network is unreachable
>> Feb 06 21:19:31 rpivp2 weewxd[460]: CRITICAL __main__:  
>>  Exiting...
>> Feb 06 21:19:31 rpivp2 systemd[1]: weewx.service: Main process exited, 
>> code=exited, status=4/NOPERMISSION
>> Feb 06 21:19:31 rpivp2 systemd[1]: weewx.service: Failed with result 
>> 'exit-code'.
>> vp2pi@rpivp2:~ $ sudo usermod -aG dialout weewx
>>
>> -- 
>> 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 weewx-user+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/2c3336ab-72b9-49bb-a602-be652a00e531n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/2c3336ab-72b9-49bb-a602-be652a00e531n%40googlegroups.com?utm_medium=email_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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/e62e3dcb-fc4b-4f2a-a986-99783e3c164fn%40googlegroups.com.
vp2pi@rpivp2:~ $ sudo systemctl status weewx
* weewx.service - WeeWX
 Loaded: loaded (/lib/systemd/system/weewx.service; enabled; vendor preset:>
 Active: failed (Result: exit-code) since Wed 2024-02-07 07:56:05 CST; 55s >
   Docs: https://weewx.com/docs
Process: 437 ExecStart=weewxd /etc/weewx/weewx.conf (code=exited, status=4)
   Main PID: 437 (code=exited, status=4)
CPU: 894ms

Feb 07 07:56:05 rpivp2 weewxd[437]: CRITICAL weewx.engine:   Vantag>
Feb 07 07:56:05 rpivp2 weewxd[437]: CRITICAL weewx.engine: File "/u>
Feb 07 07:56:05 rpivp2 weewxd[437]: CRITICAL weewx.engine:   self.p>
Feb 07 07:56:05 rpivp2 weewxd[437]: CRITICAL weewx.engine: File "/u>
Feb 07 07:56:05 rpivp2 weewxd[437]: CRITICAL weewx.engine:   raise >
Feb 07 07:56:05 rpivp2 weewxd[437]: CRITICAL weewx.engine:   

[weewx-user] updated to 5.0.1 still no joy

2024-02-06 Thread Rich Strle
I've been following the 5.0 issues. I have updated to 5.0.1 and done the 
usermod but I'm still having issues. RaspberryPi 3 B+ My Vantage Pro is 
connected via ethernet using the IP adaptor. I appreciate all the work 
that's gone into this free product.

vp2pi@rpivp2:~ $ sudo apt update
vp2pi@rpivp2:~ $ sudo apt install weewx 
 
vp2pi@rpivp2:~ $ sudo usermod -aG dialout weewx

vp2pi@rpivp2:~ $ sudo systemctl status weewx
* weewx.service - WeeWX
 Loaded: loaded (/lib/systemd/system/weewx.service; enabled; vendor 
preset: enabled)
 Active: failed (Result: exit-code) since Tue 2024-02-06 21:19:31 CST; 
3min 18s ago
   Docs: https://weewx.com/docs
Process: 460 ExecStart=weewxd /etc/weewx/weewx.conf (code=exited, 
status=4)
   Main PID: 460 (code=exited, status=4)
CPU: 966ms

Feb 06 21:19:31 rpivp2 weewxd[460]: CRITICAL weewx.engine:  
 Vantage.__init__(self, **config_dict[DRIVER_NAME])
Feb 06 21:19:31 rpivp2 weewxd[460]: CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 536, in __init__
Feb 06 21:19:31 rpivp2 weewxd[460]: CRITICAL weewx.engine:  
 self.port.openPort()
Feb 06 21:19:31 rpivp2 weewxd[460]: CRITICAL weewx.engine: File 
"/usr/share/weewx/weewx/drivers/vantage.py", line 359, in openPort
Feb 06 21:19:31 rpivp2 weewxd[460]: CRITICAL weewx.engine:  
 raise weewx.WeeWxIOError(ex)
Feb 06 21:19:31 rpivp2 weewxd[460]: CRITICAL weewx.engine:  
 weewx.WeeWxIOError: [Errno 101] Network is unreachable
Feb 06 21:19:31 rpivp2 weewxd[460]: CRITICAL __main__: Unable to load 
driver: [Errno 101] Network is unreachable
Feb 06 21:19:31 rpivp2 weewxd[460]: CRITICAL __main__:   Exiting...
Feb 06 21:19:31 rpivp2 systemd[1]: weewx.service: Main process exited, 
code=exited, status=4/NOPERMISSION
Feb 06 21:19:31 rpivp2 systemd[1]: weewx.service: Failed with result 
'exit-code'.
vp2pi@rpivp2:~ $ sudo usermod -aG dialout weewx

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/2c3336ab-72b9-49bb-a602-be652a00e531n%40googlegroups.com.


[weewx-user] Re: Raspberry Pi fresh install problems

2024-02-02 Thread Rich Strle
You are correct sir! Thanks for your help.

On Friday, February 2, 2024 at 10:18:16 AM UTC-6 matthew wall wrote:

> the gpg keys updated properly when you used keys-old.html
>
> but you need to update your apt cache before your system can see the weewx 
> debs
>
> please do 'sudo apt update' before you 'sudo apt install weewx'
>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/7d565d26-81bc-4fc5-ae4a-eafe1f3562a5n%40googlegroups.com.


[weewx-user] Raspberry Pi fresh install problems

2024-02-02 Thread Rich Strle
Hello, this is on a fresh Raspberry Pi 3 model B+ OS install. I'm following 
the instructions and I ran into problems. I found the NO_PUBKEY issue and 
updated it with:

wget -qO - https://weewx.com/keys-old.html | sudo gpg --dearmor --output 
/etc/apt/trusted.gpg.d/weewx.gpg
File '/etc/apt/trusted.gpg.d/weewx.gpg' exists. Overwrite? (y/N) y

No joy, when I do: sudo apt install weewx

I end up with: Unable to locate package weewx

I'm out of ideas.

vp2pi@rpivp2:~ $ wget -qO - https://weewx.com/keys.html | \
sudo gpg --dearmor --output /etc/apt/trusted.gpg.d/weewx.gpg
vp2pi@rpivp2:~ $ echo "deb [arch=all] https://weewx.com/apt/python3 buster 
main" | \
sudo tee /etc/apt/sources.list.d/weewx.list
deb [arch=all] https://weewx.com/apt/python3 buster main
vp2pi@rpivp2:~ $ sudo apt update
sudo apt install weewx
Get:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB]
Get:2 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB]
Get:3 https://weewx.com/apt/python3 buster InRelease [3,614 B] 

Get:4 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages 
[13.2 MB]
Get:5 http://archive.raspberrypi.org/debian bullseye/main armhf Packages 
[313 kB]
Err:3 https://weewx.com/apt/python3 buster InRelease 
  The following signatures couldn't be verified because the public key is 
not available: NO_PUBKEY ED444FCCF0E2B09E
Reading package lists... Done   
   
W: GPG error: https://weewx.com/apt/python3 buster InRelease: The following 
signatures couldn't be verified because the public key is not available: 
NO_PUBKEY ED444FCCF0E2B09E
E: The repository 'https://weewx.com/apt/python3 buster InRelease' is not 
signed.
N: Updating from such a repository can't be done securely, and is therefore 
disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration 
details.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package weewx

vp2pi@rpivp2:~ $ wget -qO - https://weewx.com/keys-old.html | sudo gpg 
--dearmor --output /etc/apt/trusted.gpg.d/weewx.gpg
File '/etc/apt/trusted.gpg.d/weewx.gpg' exists. Overwrite? (y/N) y

vp2pi@rpivp2:~ $ sudo apt install weewx
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package weewx

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/32e30faa-abbf-4cd4-b490-f6de8f26b9a7n%40googlegroups.com.


[weewx-user] Re: reading current data from weatherlink.com with WLLDriver

2024-01-02 Thread Rich Strle
>From this link: https://www.wxforum.net/index.php?topic=41328.0

I thought weatherlinklive-driver-weewx would be the 
best: https://github.com/Drealine/weatherlinklive-driver-weewx

There are so many drivers with similar names it's easy to go in circles 
looking.

On Tuesday, January 2, 2024 at 9:08:07 PM UTC-6 Rich Strle wrote:

> I have upgraded to a Davis VantagePro2 (VP2) from a VantagePro1 (VP1).
>
> I am trying to read my current data from weatherlink.com with the 
> WLLDriver. Has anyone else tried this? This is the driver section of 
> the whew.conf file. I'm concerned about the hostname for sure. Does someone 
> have a working version I could look at?
>
> [WLLDriver]
> driver = user.WLLDriver
> max_tries = 10
> retry_wait = 5
> poll_interval = 10
> 
> realtime_enable = 0
> hostname = api.weatherlink.com/v2/stations
> time_out = 10
> device_id = iss:1
> wl_archive_enable = 0
> 
> wl_apikey = jwrmkaivlopxwf9o2pgmyzbtcu1cceqy
> wl_apisecret = XOXOXO
> wl_stationid = 169644
> wl_archive_interval = 1
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/36b51a00-04b3-4b9c-80bd-40bc57eb5c6fn%40googlegroups.com.


[weewx-user] reading current data from weatherlink.com with WLLDriver

2024-01-02 Thread Rich Strle
I have upgraded to a Davis VantagePro2 (VP2) from a VantagePro1 (VP1).

I am trying to read my current data from weatherlink.com with the 
WLLDriver. Has anyone else tried this? This is the driver section of 
the whew.conf file. I'm concerned about the hostname for sure. Does someone 
have a working version I could look at?

[WLLDriver]
driver = user.WLLDriver
max_tries = 10
retry_wait = 5
poll_interval = 10

realtime_enable = 0
hostname = api.weatherlink.com/v2/stations
time_out = 10
device_id = iss:1
wl_archive_enable = 0

wl_apikey = jwrmkaivlopxwf9o2pgmyzbtcu1cceqy
wl_apisecret = XOXOXO
wl_stationid = 169644
wl_archive_interval = 1

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/d74f9ac3-2d2d-4468-bafa-4f552dcf1b9en%40googlegroups.com.


[weewx-user] Re: 6100 Davis WeatherLink Live and 'stock' WeeWX

2023-10-12 Thread Rich Strle
I like the way you think Tom. I ordered the console on eBay.

On Thursday, October 12, 2023 at 2:17:50 PM UTC-5 Tom Hogland wrote:

> I'd suggest you look for a console, either on clearance (etc) from a 
> vendor or on eBay, then install the datalogger in it. Consoles aren't too 
> expensive, and it'll let you put up a weather display somewhere new.
>
> Searching eBay for "Davis Vantage Pro2 console" found a number of them, 
> including this one with the datalogger - 
> https://www.ebay.com/itm/196026030497
>
> On Thursday, October 12, 2023 at 10:44:10 AM UTC-8 Rich Strle wrote:
>
> Thanks Gary, that looks interesting but you need the 'old' style console. 
> I have the new fancy console with less functionality.
>
> On Thursday, October 12, 2023 at 9:22:31 AM UTC-5 Gary wrote:
>
> You may be able to use this. I have this and a WLL and like the WFL better.
>
> https://www.scaledinstruments.com/shop/shop-by-category/data-loggers/wifilogger2/
>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/a0eb8b74-a22f-4896-a80a-e0198b8fbe10n%40googlegroups.com.


[weewx-user] Re: 6100 Davis WeatherLink Live and 'stock' WeeWX

2023-10-12 Thread Rich Strle
Thanks Gary, that looks interesting but you need the 'old' style console. I 
have the new fancy console with less functionality.

On Thursday, October 12, 2023 at 9:22:31 AM UTC-5 gary@gmail.com wrote:

> You may be able to use this. I have this and a WLL and like the WFL better.
>
> https://www.scaledinstruments.com/shop/shop-by-category/data-loggers/wifilogger2/
>
>
> On Wednesday, October 11, 2023 at 10:41:35 AM UTC-4 Tom Hogland wrote:
>
>> I currently have a VP2 and use the 6316 Envoy and 6510Ser datalogger 
>> connected to the PC running weewx. If you have the VP2 console close to the 
>> PC you want to use for weewx you can install the new datalogger in it and 
>> run the cord to the PC - nothing else required. If not, then you can either 
>> use the 6316 Envoy and a 6510 datalogger in place of the console and put it 
>> by your PC, or you can get a 6100 WLL. WLL replaces the Envoy and 
>> datalogger and uploads directly to Davis Cloud - the "weatherlinklive" 
>> driver would sniff the network and intercept those packets coming from the 
>> WLL and inject them to weewx. 
>>
>> Note that the WLL has temp/humidity and barometer built in. It can read 
>> additional wireless sensors, but so can the Envoy - each has 8 channels it 
>> can listen to. Both are pricey, but it appears that WLL is the "way of the 
>> future" for them, rather than the Envoy.
>>
>> My VP2 combination has been online since about 2004 without issue, and 
>> using weewx since wview went defunct several years ago. I also run a 
>> Tempest, and I'm looking forward to replacing my weird "dual station" 
>> configuration with two small containers using v5.
>>
>> -Tom
>>
>>
>> On Wednesday, October 11, 2023 at 5:54:29 AM UTC-8 Rich Strle wrote:
>>
>>> Question: Will the ‘stock’ WeeWX driver communicate with the 6100 Davis 
>>> WeatherLink Live?
>>>
>>>
>>> Detail:
>>>
>>>
>>> I have upgraded to a Davis VantagePro2 (VP2) from a VantagePro1 (VP1).
>>>
>>>
>>> Currently I get data from the VP1 from a Davis Envoy product number 6314 
>>> with a serial data logger installed.
>>>
>>>
>>> To get the same functionality in my VP2 I need a new Davis Envoy product 
>>> number 6316 Data Envoy and a new data logger 6510USB Davis WeatherLink 
>>> Computer Interface.
>>>
>>>
>>> Would I be better off with a 6100 Davis WeatherLink Live? It seems to 
>>> offer more functionality like adding additional sensors including the Davis 
>>> Airline air quality sensor.
>>>
>>>
>>> In the Vantage Notes section:
>>>
>>>
>>> “The Davis Vantage stations include a variety of models and 
>>> configurations. The WeeWX driver can communicate with a console or envoy 
>>> using serial, USB, or TCP/IP interface.”
>>>
>>>
>>> Poking around in the drivers section of the wiki, I see a 
>>> weatherlinklive weewx-driver. Is that my best option to feed data into 
>>> weewx?
>>>
>>>
>>> Or will the ‘stock’ WeeWX driver communicate with the 6100 Davis 
>>> WeatherLink Live?
>>>
>>>
>>> Apologies for the long drawn out question. My VP1 ran since 2001 and fed 
>>> data to my website since then. A lot has changed since then.
>>>
>>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/39470b13-e714-4a38-b8e6-c7f4d61ba183n%40googlegroups.com.


[weewx-user] 6100 Davis WeatherLink Live and 'stock' WeeWX

2023-10-11 Thread Rich Strle


Question: Will the ‘stock’ WeeWX driver communicate with the 6100 Davis 
WeatherLink Live?


Detail:


I have upgraded to a Davis VantagePro2 (VP2) from a VantagePro1 (VP1).


Currently I get data from the VP1 from a Davis Envoy product number 6314 
with a serial data logger installed.


To get the same functionality in my VP2 I need a new Davis Envoy product 
number 6316 Data Envoy and a new data logger 6510USB Davis WeatherLink 
Computer Interface.


Would I be better off with a 6100 Davis WeatherLink Live? It seems to offer 
more functionality like adding additional sensors including the Davis 
Airline air quality sensor.


In the Vantage Notes section:


“The Davis Vantage stations include a variety of models and configurations. 
The WeeWX driver can communicate with a console or envoy using serial, USB, 
or TCP/IP interface.”


Poking around in the drivers section of the wiki, I see a weatherlinklive 
weewx-driver. Is that my best option to feed data into weewx?


Or will the ‘stock’ WeeWX driver communicate with the 6100 Davis 
WeatherLink Live?


Apologies for the long drawn out question. My VP1 ran since 2001 and fed 
data to my website since then. A lot has changed since then.

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/775d510d-4730-422c-b399-020c356e0d48n%40googlegroups.com.


Re: [weewx-user] Davis Envoy to Davis Weatherlink

2023-10-11 Thread Rich Strle
Thanks Tom and Greg! I'm going to make a new question about 6100 Davis 
WeatherLink Live as a better option perhaps than the Envoy and data logger.

On Wednesday, October 11, 2023 at 7:26:57 AM UTC-5 Tom Keffer wrote:

> Yup. You need both!
>
> Another option is an SDR connection, but then you'd have to add a 
> barometer.
>
> I have a model 6316, connected to an antique Fit-PC, a 32-bit machine 
> about 15 years old.
>
> Today, I'd use an RPi 4, or the soon-to-be-released RPi 5. Benchmarks 
> <https://github.com/weewx/weewx/wiki/Benchmarks-of-file-and-image-generation>
> .
>
> On Tue, Oct 10, 2023 at 7:08 PM Rich Strle  wrote:
>
>> I see, I need to get a new 6316 Data Envoy and a new data logger 6510USB 
>> Davis WeatherLink Computer Interface in order to upgrade my weather station 
>> from a VP1 to a VP2.
>>
>> Tom, you have a 6314 Data Envoy and the USB data logger connected to a 
>> raspberry pi running weewx, correct? I want to be able to tell my wife 
>> 'well Tom said' when she questions this additional expense ; )
>>
>> On Tuesday, October 10, 2023 at 8:41:18 PM UTC-5 Tom Keffer wrote:
>>
>>> It's a 6316 
>>> <https://www.davisinstruments.com/products/wireless-weather-envoy>. You 
>>> will also need a logger, just like the console.  Ridiculously expensive for 
>>> what you get.
>>>
>>> I've always liked and admired Davis equipment, but they are very much 
>>> behind the times when it comes to pricing and functionality.
>>>
>>> On Tue, Oct 10, 2023 at 6:33 PM Rich Strle  wrote:
>>>
>>>> Davis does not make it easy to discuss there products with their naming 
>>>> convention.
>>>>
>>>> My wireless VP1 communicated with my VP1 console and the Davis Weather 
>>>> Envoy product number 6314. The Davis Weather Envoy was connected to my Pi 
>>>> via a serial to USB cable.
>>>>
>>>> The VP2 is a wireless unit that connects to the new wireless 
>>>> WeatherLink Console that feeds their database.
>>>>
>>>> Tom, what is the product number of your Envoy? I don't think my Envoy 
>>>> is talking to the new VP2.
>>>>
>>>> On Tuesday, October 10, 2023 at 8:16:06 PM UTC-5 Tom Keffer wrote:
>>>>
>>>>> Yes, the Davis Envoy will work with the VP2. In fact, it's what I use.
>>>>>
>>>>> NB: the Davis Envoy 8x is a completely different beast. It is used to 
>>>>> log data from many ISS's simultaneously. It is not compatible with WeeWX.
>>>>>
>>>>> Agree with Greg. It's as if Davis has a list of about 6 approved names 
>>>>> and all products must be labeled with something from that list.
>>>>>
>>>>> On Tue, Oct 10, 2023 at 5:46 PM Greg Troxel  wrote:
>>>>>
>>>>>> Rich Strle  writes:
>>>>>>
>>>>>> > I upgraded from a Davis Vantage Pro (since 2001!) to a Davis 
>>>>>> Vantage Pro 2. 
>>>>>> > I've been using a serial Weather Envoy to connect to my Raspberry 
>>>>>> Pi to 
>>>>>> > feed weewx and then feed my website. It's worked very well for a 
>>>>>> long time.
>>>>>> >
>>>>>> > I understand I need a 6510USB Davis WeatherLink Computer Interface. 
>>>>>> Is that 
>>>>>> > a direct, drop in replacement for the Envoy? I don't see where 
>>>>>> there is 
>>>>>> > differentiation from Envoy to Weatherlink as far as weewx is 
>>>>>> concerned.
>>>>>>
>>>>>> The 6510USB or 6510SER will plug into the VP2 console and speak the
>>>>>> protocol over... USB or serial.   I have a VP2/6510SER and it works
>>>>>> well, via a RPI3 running NetBSD.
>>>>>>
>>>>>> I am unclear about Envoy, and whether it is able to receive the VP2 
>>>>>> ISS
>>>>>> signals.  I kind of have the impression that there is an Envoy for VP
>>>>>> and another flavor for VP2 but am really unclear.
>>>>>>
>>>>>> Beware that weatherlink is a word used with lots of qualifiers and
>>>>>> "weatherlink foo" and "weatherlink bar" do not necessarily have 
>>>>>> closely
>>>>>> similar behavior.
>>>>>>
>>>>>> https://www.davisinstruments.com/products

Re: [weewx-user] Davis Envoy to Davis Weatherlink

2023-10-10 Thread Rich Strle
I see, I need to get a new 6316 Data Envoy and a new data logger 6510USB 
Davis WeatherLink Computer Interface in order to upgrade my weather station 
from a VP1 to a VP2.

Tom, you have a 6314 Data Envoy and the USB data logger connected to a 
raspberry pi running weewx, correct? I want to be able to tell my wife 
'well Tom said' when she questions this additional expense ; )

On Tuesday, October 10, 2023 at 8:41:18 PM UTC-5 Tom Keffer wrote:

> It's a 6316 
> <https://www.davisinstruments.com/products/wireless-weather-envoy>. You 
> will also need a logger, just like the console.  Ridiculously expensive for 
> what you get.
>
> I've always liked and admired Davis equipment, but they are very much 
> behind the times when it comes to pricing and functionality.
>
> On Tue, Oct 10, 2023 at 6:33 PM Rich Strle  wrote:
>
>> Davis does not make it easy to discuss there products with their naming 
>> convention.
>>
>> My wireless VP1 communicated with my VP1 console and the Davis Weather 
>> Envoy product number 6314. The Davis Weather Envoy was connected to my Pi 
>> via a serial to USB cable.
>>
>> The VP2 is a wireless unit that connects to the new wireless WeatherLink 
>> Console that feeds their database.
>>
>> Tom, what is the product number of your Envoy? I don't think my Envoy is 
>> talking to the new VP2.
>>
>> On Tuesday, October 10, 2023 at 8:16:06 PM UTC-5 Tom Keffer wrote:
>>
>>> Yes, the Davis Envoy will work with the VP2. In fact, it's what I use.
>>>
>>> NB: the Davis Envoy 8x is a completely different beast. It is used to 
>>> log data from many ISS's simultaneously. It is not compatible with WeeWX.
>>>
>>> Agree with Greg. It's as if Davis has a list of about 6 approved names 
>>> and all products must be labeled with something from that list.
>>>
>>> On Tue, Oct 10, 2023 at 5:46 PM Greg Troxel  wrote:
>>>
>>>> Rich Strle  writes:
>>>>
>>>> > I upgraded from a Davis Vantage Pro (since 2001!) to a Davis Vantage 
>>>> Pro 2. 
>>>> > I've been using a serial Weather Envoy to connect to my Raspberry Pi 
>>>> to 
>>>> > feed weewx and then feed my website. It's worked very well for a long 
>>>> time.
>>>> >
>>>> > I understand I need a 6510USB Davis WeatherLink Computer Interface. 
>>>> Is that 
>>>> > a direct, drop in replacement for the Envoy? I don't see where there 
>>>> is 
>>>> > differentiation from Envoy to Weatherlink as far as weewx is 
>>>> concerned.
>>>>
>>>> The 6510USB or 6510SER will plug into the VP2 console and speak the
>>>> protocol over... USB or serial.   I have a VP2/6510SER and it works
>>>> well, via a RPI3 running NetBSD.
>>>>
>>>> I am unclear about Envoy, and whether it is able to receive the VP2 ISS
>>>> signals.  I kind of have the impression that there is an Envoy for VP
>>>> and another flavor for VP2 but am really unclear.
>>>>
>>>> Beware that weatherlink is a word used with lots of qualifiers and
>>>> "weatherlink foo" and "weatherlink bar" do not necessarily have closely
>>>> similar behavior.
>>>>
>>>> https://www.davisinstruments.com/products/wireless-weather-envoy
>>>> That sort of looks like you need a 6510USB to plug into the Envoy, but I
>>>> have never seen, touched, or considered buying an Envoy.
>>>>
>>>> I hope this helps you understand better.
>>>>
>>>> -- 
>>>> 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 weewx-user+...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/weewx-user/rmilecavveh.fsf%40s1.lexort.com
>>>> .
>>>>
>>> -- 
>> 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 weewx-user+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/98598994-af54-4d19-9f3c-0dc7ea2fc44an%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/98598994-af54-4d19-9f3c-0dc7ea2fc44an%40googlegroups.com?utm_medium=email_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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/b28fcb39-5dc6-4198-b035-4c9e5eac2e3cn%40googlegroups.com.


Re: [weewx-user] Davis Envoy to Davis Weatherlink

2023-10-10 Thread Rich Strle
Davis does not make it easy to discuss there products with their naming 
convention.

My wireless VP1 communicated with my VP1 console and the Davis Weather 
Envoy product number 6314. The Davis Weather Envoy was connected to my Pi 
via a serial to USB cable.

The VP2 is a wireless unit that connects to the new wireless WeatherLink 
Console that feeds their database.

Tom, what is the product number of your Envoy? I don't think my Envoy is 
talking to the new VP2.

On Tuesday, October 10, 2023 at 8:16:06 PM UTC-5 Tom Keffer wrote:

> Yes, the Davis Envoy will work with the VP2. In fact, it's what I use.
>
> NB: the Davis Envoy 8x is a completely different beast. It is used to log 
> data from many ISS's simultaneously. It is not compatible with WeeWX.
>
> Agree with Greg. It's as if Davis has a list of about 6 approved names and 
> all products must be labeled with something from that list.
>
> On Tue, Oct 10, 2023 at 5:46 PM Greg Troxel  wrote:
>
>> Rich Strle  writes:
>>
>> > I upgraded from a Davis Vantage Pro (since 2001!) to a Davis Vantage 
>> Pro 2. 
>> > I've been using a serial Weather Envoy to connect to my Raspberry Pi to 
>> > feed weewx and then feed my website. It's worked very well for a long 
>> time.
>> >
>> > I understand I need a 6510USB Davis WeatherLink Computer Interface. Is 
>> that 
>> > a direct, drop in replacement for the Envoy? I don't see where there is 
>> > differentiation from Envoy to Weatherlink as far as weewx is concerned.
>>
>> The 6510USB or 6510SER will plug into the VP2 console and speak the
>> protocol over... USB or serial.   I have a VP2/6510SER and it works
>> well, via a RPI3 running NetBSD.
>>
>> I am unclear about Envoy, and whether it is able to receive the VP2 ISS
>> signals.  I kind of have the impression that there is an Envoy for VP
>> and another flavor for VP2 but am really unclear.
>>
>> Beware that weatherlink is a word used with lots of qualifiers and
>> "weatherlink foo" and "weatherlink bar" do not necessarily have closely
>> similar behavior.
>>
>> https://www.davisinstruments.com/products/wireless-weather-envoy
>> That sort of looks like you need a 6510USB to plug into the Envoy, but I
>> have never seen, touched, or considered buying an Envoy.
>>
>> I hope this helps you understand better.
>>
>> -- 
>> 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 weewx-user+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/rmilecavveh.fsf%40s1.lexort.com
>> .
>>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/98598994-af54-4d19-9f3c-0dc7ea2fc44an%40googlegroups.com.


[weewx-user] Davis Envoy to Davis Weatherlink

2023-10-10 Thread Rich Strle
I upgraded from a Davis Vantage Pro (since 2001!) to a Davis Vantage Pro 2. 
I've been using a serial Weather Envoy to connect to my Raspberry Pi to 
feed weewx and then feed my website. It's worked very well for a long time.

I understand I need a 6510USB Davis WeatherLink Computer Interface. Is that 
a direct, drop in replacement for the Envoy? I don't see where there is 
differentiation from Envoy to Weatherlink as far as weewx is concerned.

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/61fef5eb-8d94-4661-ad48-8ed3ee83485cn%40googlegroups.com.


[weewx-user] Station in registry twice

2021-11-17 Thread Rich Strle
Hi, my station is in the registry twice. 

I had a hardware issue, reinstalled weeWX, put in the wrong url, changed it 
after a couple of days. The station is showing up correctly but the small 
image isn't.

I'm out of ideas ; )

Across from IWU in Bloomington, IL 
http://onmainblm.com/weather/
4.5.1
Vantage
Fri, 12 Nov 2021 20:00:17 GMT


Across from IWU in Bloomington, IL 
http://onmainblm.com/weather/index.html

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/3ac79f7b-0ed3-441d-9832-1b71e6c23223n%40googlegroups.com.


Re: [weewx-user] Re: New internet provider - now ftp doesn't work

2021-01-19 Thread Rich Strle
Thank you Karen, Tom, and the others who tried to help. I think Karen could 
be on to something.

The t-mobile home internet router does not have an advanced interface and 
no bridge mode. The connection speed is slow at my location. The device is 
going back and I'm going to stick with my current provider.

On Tuesday, January 19, 2021 at 3:53:40 PM UTC-6 kk44...@gmail.com wrote:

> What catched my eyes is the "229 Extended Passive Mode Entered" in the 
> log. There is passive mode and extended passive mode, and it's not the 
> same. I googled a littled bit, and all the discussions about that message 
> involve firewall and router configuration. 
>
> From what I read, extended passive mode sends less information to the 
> client how to transfer data, and the client (in this case weewx) is to 
> assume what's missing. So it could be that weewx is not ready for extended 
> passive mode but for standard passive mode, only. But more likely it is a 
> firewall or router issue.
>
> tke...@gmail.com schrieb am Dienstag, 19. Januar 2021 um 02:50:26 UTC+1:
>
>> Well, that sucks. It works nicely on my end. 
>>
>> So, it must be something on your end. Perhaps your firewall, or some IPv6 
>> issue, which I am totally unqualified to diagnose. The only thing I can 
>> suggest is to try testing your connection to see if it is IPv6 ready: 
>> https://test-ipv6.com/
>>
>> Other than that, I'm out of ideas.
>>
>> -tk
>>
>> On Mon, Jan 18, 2021 at 5:24 PM Rich Strle  wrote:
>>
>>> No joy
>>>
>>> I tried  reuse_ssl = True here:
>>>
>>> # 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
>>>
>>> reuse_ssl = True
>>>
>>> # Most FTP servers use port 21
>>> port = 21
>>>
>>> # Set to 1 to use passive mode, zero for active mode
>>> passive = 1
>>>
>>> And closer to the bottom of the FTP section.
>>>
>>> Jan 17 23:50:27 pi-weather weewx[429] DEBUG weewx.reportengine: Found 
>>> configuration file /etc/weewx/skins/Ftp/skin.conf for report 'FTP'
>>> Jan 17 23:50:28 pi-weather weewx[429] DEBUG weeutil.ftpupload: 
>>> Attempting connection to www.cliffandbuster.com
>>> Jan 17 23:50:33 pi-weather weewx[429] DEBUG weeutil.ftpupload: Connected 
>>> to www.cliffandbuster.com
>>> Jan 17 23:50:33 pi-weather weewx[429] ERROR weeutil.ftpupload: Failed 
>>> uploading /var/www/html/weewx/yearradiation.png to server 
>>> www.cliffandbuster.com. Reason: '229 Extended Passive Mode Entered 
>>> (|||50223|)'
>>> Jan 17 23:50:33 pi-weather weewx[429] ERROR weewx.reportengine: 
>>> ftpgenerator: (0): caught exception '': 229 
>>> Extended Passive Mode Entered (|||50223|)
>>> Jan 17 23:50:33 pi-weather weewx[429] ERROR weewx.reportengine:
>>>    Traceback (most recent call last):
>>> Jan 17 23:50:33 pi-weather weewx[429] ERROR weewx.reportengine:
>>>  File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
>>> Jan 17 23:50:33 pi-weather weewx[429] ERROR weewx.reportengine:
>>>    n = ftp_data.run()
>>> Jan 17 23:50:33 pi-weather weewx[429] ERROR weewx.reportengine:
>>>  File "/usr/share/weewx/weeutil/ftpupload.py", line 163, in run
>>> Jan 17 23:50:33 pi-weather weewx[429] ERROR weewx.reportengine:
>>>    ftp_server.storbinary(stor_cmd, fd)
>>> Jan 17 23:50:33 pi-weather weewx[429] ERROR weewx.reportengine:
>>>  File "/usr/lib/python3.7/ftplib.py", line 504, in storbinary
>>> Jan 17 23:50:33 pi-weather weewx[429] ERROR weewx.reportengine:
>>>    with self.transfercmd(cmd, rest) as conn:
>>> Jan 17 23:50:33 pi-weather weewx[429] ERROR weewx.reportengine:
>>>  File "/usr/lib/python3.7/ftplib.py", line 399, in transfercmd
>>>
>>>
>>> On Monday, January 18, 2021 at 5:46:12 PM UTC-6 tke...@gmail.com wrote:
>>>
>>>> [Rich sent me his credentials via a private email.]
>>>>
>>>> As soon as I tried FTP to Rich's server, I recognized the problem. The 
>>>> server is using Pure-FTPd, which reuses SSL connections. The Python 
>>>> library 
>>>> has a bug 
>>>> <https://stackoverflow.com/questions/46633536/getting-a-oserror-when-trying-to-list-ftp-directo

Re: [weewx-user] Re: New internet provider - now ftp doesn't work

2021-01-18 Thread Rich Strle
No joy

I tried  reuse_ssl = True here:

# 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

reuse_ssl = True

# Most FTP servers use port 21
port = 21

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

And closer to the bottom of the FTP section.

Jan 17 23:50:27 pi-weather weewx[429] DEBUG weewx.reportengine: Found 
configuration file /etc/weewx/skins/Ftp/skin.conf for report 'FTP'
Jan 17 23:50:28 pi-weather weewx[429] DEBUG weeutil.ftpupload: Attempting 
connection to www.cliffandbuster.com
Jan 17 23:50:33 pi-weather weewx[429] DEBUG weeutil.ftpupload: Connected to 
www.cliffandbuster.com
Jan 17 23:50:33 pi-weather weewx[429] ERROR weeutil.ftpupload: Failed 
uploading /var/www/html/weewx/yearradiation.png to server 
www.cliffandbuster.com. Reason: '229 Extended Passive Mode Entered 
(|||50223|)'
Jan 17 23:50:33 pi-weather weewx[429] ERROR weewx.reportengine: 
ftpgenerator: (0): caught exception '': 229 
Extended Passive Mode Entered (|||50223|)
Jan 17 23:50:33 pi-weather weewx[429] ERROR weewx.reportengine:
   Traceback (most recent call last):
Jan 17 23:50:33 pi-weather weewx[429] ERROR weewx.reportengine:
 File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
Jan 17 23:50:33 pi-weather weewx[429] ERROR weewx.reportengine:
   n = ftp_data.run()
Jan 17 23:50:33 pi-weather weewx[429] ERROR weewx.reportengine:
 File "/usr/share/weewx/weeutil/ftpupload.py", line 163, in run
Jan 17 23:50:33 pi-weather weewx[429] ERROR weewx.reportengine:
   ftp_server.storbinary(stor_cmd, fd)
Jan 17 23:50:33 pi-weather weewx[429] ERROR weewx.reportengine:
 File "/usr/lib/python3.7/ftplib.py", line 504, in storbinary
Jan 17 23:50:33 pi-weather weewx[429] ERROR weewx.reportengine:
   with self.transfercmd(cmd, rest) as conn:
Jan 17 23:50:33 pi-weather weewx[429] ERROR weewx.reportengine:
 File "/usr/lib/python3.7/ftplib.py", line 399, in transfercmd


On Monday, January 18, 2021 at 5:46:12 PM UTC-6 tke...@gmail.com wrote:

> [Rich sent me his credentials via a private email.]
>
> As soon as I tried FTP to Rich's server, I recognized the problem. The 
> server is using Pure-FTPd, which reuses SSL connections. The Python library 
> has a bug 
> <https://stackoverflow.com/questions/46633536/getting-a-oserror-when-trying-to-list-ftp-directories-in-python/53456626>
>  
> that prevents this. WeeWX V4.1.0 and greater have a workaround for the bug. 
> To activate, add option reuse_ssl and set it to true.
>
> [[FTP]]
> ...
> reuse_ssl = True
>
> See if that helps.
>
> -tk
>
> On Mon, Jan 18, 2021 at 9:39 AM Rich Strle  wrote:
>
>> Status: Resolving address of www.cliffandbuster.com
>> Status: Connecting to 107.180.51.77:21...
>> Status: Connection established, waiting for welcome message...
>> Status: Initializing TLS...
>> Status: Verifying certificate...
>> Status: TLS connection established.
>> Status: Logged in
>> Status: Retrieving directory listing of "/"...
>> Status: Directory listing of "/" successful
>> Status: Resolving address of www.cliffandbuster.com
>> Status: Connecting to 107.180.51.77:21...
>> Status: Connection established, waiting for welcome message...
>> Status: Initializing TLS...
>> Status: Verifying certificate...
>> Status: TLS connection established.
>> Status: Logged in
>> Status: Starting upload of /var/www/html/weewx/image.jpg
>> Status: File transfer successful, transferred 49,150 bytes in 1 second
>> Status: Retrieving directory listing of "/"...
>> Status: Directory listing of "/" successful
>>
>> I disconnected and reconnected. Does filezilla trust the site now so 
>> we're not seeing all of the connection comments?
>>
>> On Monday, January 18, 2021 at 10:37:24 AM UTC-6 tke...@gmail.com wrote:
>>
>>> That's pretty much what I'm thinking, but I'm trying to get the evidence 
>>> from Filezilla. It should say that as it negotiates with the server. 
>>>
>>> FTP is 40 year old technology. It's amazing that there are still so many 
>>> incompatible versions out there.
>>>
>>> On Mon, Jan 18, 2021 at 8:34 AM Les Niles  wrote:
>>>
>>>> The server is responding to the PASV command by entering extended 
>>>> passive mode EPSV, which apparently is a legal response but which 
>>>> weewx/ftplib is not handling correctly. (I don’t have access to the code 
>>>> right now so ca

Re: [weewx-user] Re: New internet provider - now ftp doesn't work

2021-01-18 Thread Rich Strle
Status: Resolving address of www.cliffandbuster.com
Status: Connecting to 107.180.51.77:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Retrieving directory listing of "/"...
Status: Directory listing of "/" successful
Status: Resolving address of www.cliffandbuster.com
Status: Connecting to 107.180.51.77:21...
Status: Connection established, waiting for welcome message...
Status: Initializing TLS...
Status: Verifying certificate...
Status: TLS connection established.
Status: Logged in
Status: Starting upload of /var/www/html/weewx/image.jpg
Status: File transfer successful, transferred 49,150 bytes in 1 second
Status: Retrieving directory listing of "/"...
Status: Directory listing of "/" successful

I disconnected and reconnected. Does filezilla trust the site now so we're 
not seeing all of the connection comments?

On Monday, January 18, 2021 at 10:37:24 AM UTC-6 tke...@gmail.com wrote:

> That's pretty much what I'm thinking, but I'm trying to get the evidence 
> from Filezilla. It should say that as it negotiates with the server. 
>
> FTP is 40 year old technology. It's amazing that there are still so many 
> incompatible versions out there.
>
> On Mon, Jan 18, 2021 at 8:34 AM Les Niles  wrote:
>
>> The server is responding to the PASV command by entering extended passive 
>> mode EPSV, which apparently is a legal response but which weewx/ftplib is 
>> not handling correctly. (I don’t have access to the code right now so can’t 
>> be more precise about where to fix.) The difference is that in EPSV mode 
>> the server doesn’t return an IP, just a port number. (The line “host, port 
>> = self.makepasv()” is not going to work.) 
>>
>> Apparently passive mode has been the default for ftplib since python 2.1, 
>> so maybe just skip trying to change to PASV entirely?
>>
>>   -Les
>>
>>
>> On Jan 18, 2021, at 7:21 AM, Rich Strle  wrote:
>>
>> 
>> Command: TYPE I
>> Trace: CFtpControlSocket::OnReceive()
>> Response: 200 TYPE is now 8-bit binary
>> Trace: CFtpRawTransferOpData::ParseResponse() in state 1
>> Trace: CControlSocket::SendNextCommand()
>> Trace: CFtpRawTransferOpData::Send() in state 2
>> Command: PASV
>> Trace: CFtpControlSocket::OnReceive()
>> Response: 200 TYPE is now 8-bit binary
>> Trace: CFtpRawTransferOpData::ParseResponse() in state 1
>> Trace: CControlSocket::SendNextCommand()
>> Trace: CFtpRawTransferOpData::Send() in state 2
>> Command: PASV
>> Trace: CFtpControlSocket::OnReceive()
>> Response: 227 Entering Passive Mode (107,180,51,77,196,142)
>> Trace: CFtpRawTransferOpData::ParseResponse() in state 2
>> Trace: CControlSocket::SendNextCommand()
>> Trace: CFtpRawTransferOpData::Send() in state 4
>> Trace: Binding data connection source IP to control connection source IP 
>> 192.168.12.117
>> Command: STOR yearbarometer.png
>> Trace: CTransferSocket::OnConnect
>> Trace: CTlsSocketImpl::Handshake()
>> Trace: Trying to resume existing TLS session.
>> Trace: CTlsSocketImpl::ContinueHandshake()
>> Trace: CFtpControlSocket::OnReceive()
>> Response: 227 Entering Passive Mode (107,180,51,77,197,217)
>> Trace: CFtpRawTransferOpData::ParseResponse() in state 2
>> Trace: CControlSocket::SendNextCommand()
>> Trace: CFtpRawTransferOpData::Send() in state 4
>> Trace: Binding data connection source IP to control connection source IP 
>> 192.168.12.117
>> Command: STOR yearhilow.png
>>
>> On Monday, January 18, 2021 at 7:16:26 AM UTC-6 tke...@gmail.com wrote:
>>
>>> Good to hear that Filezilla is working. We can use it to understand what 
>>> the server is doing.
>>>
>>> Using Filezilla, go into its "Settings" (under the "Edit" menu). Then 
>>> the "Debug" tab. There's a drop down list of message levels. Default is "0 
>>> - None". Set it to "3- Verbose". Then click "OK".
>>>
>>> [image: image.png]
>>>
>>> Then use Filezilla again to transfer some files. This time, watch the 
>>> window at top that tells you what Filezilla is doing. See if the client 
>>> (Filezilla, in this case) is negotiating with the server. Tell us what you 
>>> see, or, better, copy and paste it into a post.
>>>
>>>
>>>
>>> On Sun, Jan 17, 2021 at 7:33 PM Rich Strle  wrote:
>>>
>>>> Jan 17 21:30:44 pi-weather weewx[429] ERROR weeutil.ftpupload: Failed 
>>>> uploading /var/

Re: [weewx-user] Re: New internet provider - now ftp doesn't work

2021-01-18 Thread Rich Strle
Command: TYPE I
Trace: CFtpControlSocket::OnReceive()
Response: 200 TYPE is now 8-bit binary
Trace: CFtpRawTransferOpData::ParseResponse() in state 1
Trace: CControlSocket::SendNextCommand()
Trace: CFtpRawTransferOpData::Send() in state 2
Command: PASV
Trace: CFtpControlSocket::OnReceive()
Response: 200 TYPE is now 8-bit binary
Trace: CFtpRawTransferOpData::ParseResponse() in state 1
Trace: CControlSocket::SendNextCommand()
Trace: CFtpRawTransferOpData::Send() in state 2
Command: PASV
Trace: CFtpControlSocket::OnReceive()
Response: 227 Entering Passive Mode (107,180,51,77,196,142)
Trace: CFtpRawTransferOpData::ParseResponse() in state 2
Trace: CControlSocket::SendNextCommand()
Trace: CFtpRawTransferOpData::Send() in state 4
Trace: Binding data connection source IP to control connection source IP 
192.168.12.117
Command: STOR yearbarometer.png
Trace: CTransferSocket::OnConnect
Trace: CTlsSocketImpl::Handshake()
Trace: Trying to resume existing TLS session.
Trace: CTlsSocketImpl::ContinueHandshake()
Trace: CFtpControlSocket::OnReceive()
Response: 227 Entering Passive Mode (107,180,51,77,197,217)
Trace: CFtpRawTransferOpData::ParseResponse() in state 2
Trace: CControlSocket::SendNextCommand()
Trace: CFtpRawTransferOpData::Send() in state 4
Trace: Binding data connection source IP to control connection source IP 
192.168.12.117
Command: STOR yearhilow.png

On Monday, January 18, 2021 at 7:16:26 AM UTC-6 tke...@gmail.com wrote:

> Good to hear that Filezilla is working. We can use it to understand what 
> the server is doing.
>
> Using Filezilla, go into its "Settings" (under the "Edit" menu). Then the 
> "Debug" tab. There's a drop down list of message levels. Default is "0 - 
> None". Set it to "3- Verbose". Then click "OK".
>
> [image: image.png]
>
> Then use Filezilla again to transfer some files. This time, watch the 
> window at top that tells you what Filezilla is doing. See if the client 
> (Filezilla, in this case) is negotiating with the server. Tell us what you 
> see, or, better, copy and paste it into a post.
>
>
>
> On Sun, Jan 17, 2021 at 7:33 PM Rich Strle  wrote:
>
>> Jan 17 21:30:44 pi-weather weewx[429] ERROR weeutil.ftpupload: Failed 
>> uploading /var/www/html/weewx/yearradiation.png to server 
>> www.cliffandbuster.com. Reason: '229 Extended Passive Mode Entered 
>> (|||50458|)'
>> Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine: 
>> ftpgenerator: (2): caught exception '': 229 
>> Extended Passive Mode Entered (|||50458|)
>> Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
>>    Traceback (most recent call last):
>> Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
>>  File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
>> Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
>>    n = ftp_data.run()
>> Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
>>  File "/usr/share/weewx/weeutil/ftpupload.py", line 163, in run
>> Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
>>    ftp_server.storbinary(stor_cmd, fd)
>> Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
>>  File "/usr/lib/python3.7/ftplib.py", line 504, in storbinary
>> Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
>>    with self.transfercmd(cmd, rest) as conn:
>> Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
>>  File "/usr/lib/python3.7/ftplib.py", line 399, in transfercmd
>> Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
>>    return self.ntransfercmd(cmd, rest)[0]
>> Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
>>  File "/usr/lib/python3.7/ftplib.py", line 359, in ntransfercmd
>> Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
>>    host, port = self.makepasv()
>> Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
>>  File "/usr/lib/python3.7/ftplib.py", line 337, in makepasv
>> Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
>>    host, port = parse227(self.sendcmd('PASV'))
>> Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
>>  File "/usr/lib/python3.7/ftplib.py", line 845, in parse227
>> Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
>>    raise error_reply(resp)
>> Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine: 

Re: [weewx-user] Re: New internet provider - now ftp doesn't work

2021-01-17 Thread Rich Strle
Jan 17 21:30:44 pi-weather weewx[429] ERROR weeutil.ftpupload: Failed 
uploading /var/www/html/weewx/yearradiation.png to server 
www.cliffandbuster.com. Reason: '229 Extended Passive Mode Entered 
(|||50458|)'
Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine: 
ftpgenerator: (2): caught exception '': 229 
Extended Passive Mode Entered (|||50458|)
Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
   Traceback (most recent call last):
Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
 File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
   n = ftp_data.run()
Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
 File "/usr/share/weewx/weeutil/ftpupload.py", line 163, in run
Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
   ftp_server.storbinary(stor_cmd, fd)
Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
 File "/usr/lib/python3.7/ftplib.py", line 504, in storbinary
Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
   with self.transfercmd(cmd, rest) as conn:
Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
 File "/usr/lib/python3.7/ftplib.py", line 399, in transfercmd
Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
   return self.ntransfercmd(cmd, rest)[0]
Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
 File "/usr/lib/python3.7/ftplib.py", line 359, in ntransfercmd
Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
   host, port = self.makepasv()
Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
 File "/usr/lib/python3.7/ftplib.py", line 337, in makepasv
Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
   host, port = parse227(self.sendcmd('PASV'))
Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
 File "/usr/lib/python3.7/ftplib.py", line 845, in parse227
Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
   raise error_reply(resp)
Jan 17 21:30:45 pi-weather weewx[429] ERROR weewx.reportengine:
   ftplib.error_reply: 229 Extended Passive Mode Entered (|||50458|)
Jan 17 21:30:45 pi-weather weewx[429] DEBUG weewx.reportengine: Report 
'RSYNC' not enabled. Skipping.


On Sunday, January 17, 2021 at 9:28:38 PM UTC-6 Rich Strle wrote:

> I installed FileZilla and was able to use the same user name and password 
> to upload files from /var/www/html/weewx/ to the same spot on my webserver. 
> I did get an error message Hostname does not match certificate but I've 
> gotten that before...
>
> On Sunday, January 17, 2021 at 7:24:45 PM UTC-6 tke...@gmail.com wrote:
>
>> Can you FTP using Filezilla? The goal here is to see if it's some 
>> firewall / network/ provider issue, or a problem peculiar to the Python FTP 
>> library.
>>
>> On Sun, Jan 17, 2021 at 10:04 AM Rich Strle  wrote:
>>
>>> My bad, the ftp in whew still doesn't work. The Access Point only has an 
>>> IPv6 number listed, it doesn't have an IPv4 number listed. My website 
>>> provider only allows 1 sftp account at the root level and I was trying to 
>>> avoid using that.
>>>
>>> On Sunday, January 17, 2021 at 11:41:18 AM UTC-6 Rich Strle wrote:
>>>
>>>> I spoke with t-mobile again. They didn't say they did anything but all 
>>>> of a sudden ftp started working. I will continue to monitor.
>>>>
>>>> On Sunday, January 17, 2021 at 10:50:19 AM UTC-6 galfert wrote:
>>>>
>>>>> Anyone care to google "T-Mobile FTP"  You'll see that this is an 
>>>>> issue for everyone! My recommendation is to try to instead use SFTP.
>>>>>
>>>>>
>>>>> On Sunday, January 17, 2021 at 11:41:25 AM UTC-5 Rich Strle wrote:
>>>>>
>>>>>> I did as instructed. Attached is the log file after I made the 
>>>>>> change. I have a call into my provider to see if they are IPV6.
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Sunday, January 17, 2021 at 10:17:33 AM UTC-6 tke...@gmail.com 
>>>>>> wrote:
>>>>>>
>>>>>>> You definitely want passive mode (passive=1).
>>>>>>>
>>>>>>> Two things:
>>>>>>>
>>>>>>> 1. By any chance, is your new provider using IPV6 (instead of 
>>>>>&

Re: [weewx-user] Re: New internet provider - now ftp doesn't work

2021-01-17 Thread Rich Strle
I installed FileZilla and was able to use the same user name and password 
to upload files from /var/www/html/weewx/ to the same spot on my webserver. 
I did get an error message Hostname does not match certificate but I've 
gotten that before...

On Sunday, January 17, 2021 at 7:24:45 PM UTC-6 tke...@gmail.com wrote:

> Can you FTP using Filezilla? The goal here is to see if it's some firewall 
> / network/ provider issue, or a problem peculiar to the Python FTP library.
>
> On Sun, Jan 17, 2021 at 10:04 AM Rich Strle  wrote:
>
>> My bad, the ftp in whew still doesn't work. The Access Point only has an 
>> IPv6 number listed, it doesn't have an IPv4 number listed. My website 
>> provider only allows 1 sftp account at the root level and I was trying to 
>> avoid using that.
>>
>> On Sunday, January 17, 2021 at 11:41:18 AM UTC-6 Rich Strle wrote:
>>
>>> I spoke with t-mobile again. They didn't say they did anything but all 
>>> of a sudden ftp started working. I will continue to monitor.
>>>
>>> On Sunday, January 17, 2021 at 10:50:19 AM UTC-6 galfert wrote:
>>>
>>>> Anyone care to google "T-Mobile FTP"  You'll see that this is an 
>>>> issue for everyone! My recommendation is to try to instead use SFTP.
>>>>
>>>>
>>>> On Sunday, January 17, 2021 at 11:41:25 AM UTC-5 Rich Strle wrote:
>>>>
>>>>> I did as instructed. Attached is the log file after I made the change. 
>>>>> I have a call into my provider to see if they are IPV6.
>>>>>
>>>>>
>>>>>
>>>>> On Sunday, January 17, 2021 at 10:17:33 AM UTC-6 tke...@gmail.com 
>>>>> wrote:
>>>>>
>>>>>> You definitely want passive mode (passive=1).
>>>>>>
>>>>>> Two things:
>>>>>>
>>>>>> 1. By any chance, is your new provider using IPV6 (instead of 
>>>>>> the traditional IPV4)?
>>>>>>
>>>>>> 2. Set debug=2 in weewx.conf, then retry. This will put lots of 
>>>>>> information in the log about what FTP is doing.
>>>>>>
>>>>>> -tk
>>>>>>
>>>>>> On Sun, Jan 17, 2021 at 7:46 AM Rich Strle  wrote:
>>>>>>
>>>>>>> Thanks for your response David but that didn't fix my issue. 
>>>>>>>
>>>>>>> It was set at 1. I stopped the weewx process, set the ftp to 0, 
>>>>>>> restarted weewx and it did not help. I changed it back to 1.
>>>>>>>
>>>>>>> On Sunday, January 17, 2021 at 6:21:02 AM UTC-6 dav...@gmail.com 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Check out http://weewx.com/docs/usersguide.htm#config_FTP and look 
>>>>>>>> to add/adjust the passive setting in your weewx.conf config. 
>>>>>>>>
>>>>>>>> David 
>>>>>>>>
>>>>>>>> On Saturday, January 16, 2021 at 10:11:56 PM UTC-5 Rich Strle wrote:
>>>>>>>>
>>>>>>>>> I changed out my internet provider to t-mobile home internet 
>>>>>>>>> service and now I'm getting ftp errors. I tried connecting to the ftp 
>>>>>>>>> from 
>>>>>>>>> another computer and that worked. When my raspberry pi tries to 
>>>>>>>>> connect I 
>>>>>>>>> get errors. This was working fine before I switched providers. Any 
>>>>>>>>> ideas?
>>>>>>>>>
>>>>>>>>> Jan 16 21:01:25 pi-weather weewx[30706] DEBUG weeutil.ftpupload: 
>>>>>>>>> Attempting connection to www.cliffandbuster.com
>>>>>>>>> Jan 16 21:01:26 pi-weather weewx[30706] DEBUG weeutil.ftpupload: 
>>>>>>>>> Connected to www.cliffandbuster.com
>>>>>>>>> Jan 16 21:01:26 pi-weather weewx[30706] ERROR weeutil.ftpupload: 
>>>>>>>>> Failed uploading /var/www/html/weewx/seasons.css to server 
>>>>>>>>> www.cliffandbuster.com. Reason: '229 Extended Passive Mode 
>>>>>>>>> Entered (|||50207|)'
>>>>>>>>> Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine: 
>>>>>>>>> ftpgenerator: (1): caught exception '': 
>>>>>>>>> 229 
>>

Re: [weewx-user] Re: New internet provider - now ftp doesn't work

2021-01-17 Thread Rich Strle
My bad, the ftp in whew still doesn't work. The Access Point only has an 
IPv6 number listed, it doesn't have an IPv4 number listed. My website 
provider only allows 1 sftp account at the root level and I was trying to 
avoid using that.

On Sunday, January 17, 2021 at 11:41:18 AM UTC-6 Rich Strle wrote:

> I spoke with t-mobile again. They didn't say they did anything but all of 
> a sudden ftp started working. I will continue to monitor.
>
> On Sunday, January 17, 2021 at 10:50:19 AM UTC-6 galfert wrote:
>
>> Anyone care to google "T-Mobile FTP"  You'll see that this is an 
>> issue for everyone! My recommendation is to try to instead use SFTP.
>>
>>
>> On Sunday, January 17, 2021 at 11:41:25 AM UTC-5 Rich Strle wrote:
>>
>>> I did as instructed. Attached is the log file after I made the change. I 
>>> have a call into my provider to see if they are IPV6.
>>>
>>>
>>>
>>> On Sunday, January 17, 2021 at 10:17:33 AM UTC-6 tke...@gmail.com wrote:
>>>
>>>> You definitely want passive mode (passive=1).
>>>>
>>>> Two things:
>>>>
>>>> 1. By any chance, is your new provider using IPV6 (instead of 
>>>> the traditional IPV4)?
>>>>
>>>> 2. Set debug=2 in weewx.conf, then retry. This will put lots of 
>>>> information in the log about what FTP is doing.
>>>>
>>>> -tk
>>>>
>>>> On Sun, Jan 17, 2021 at 7:46 AM Rich Strle  wrote:
>>>>
>>>>> Thanks for your response David but that didn't fix my issue. 
>>>>>
>>>>> It was set at 1. I stopped the weewx process, set the ftp to 0, 
>>>>> restarted weewx and it did not help. I changed it back to 1.
>>>>>
>>>>> On Sunday, January 17, 2021 at 6:21:02 AM UTC-6 dav...@gmail.com 
>>>>> wrote:
>>>>>
>>>>>> Check out http://weewx.com/docs/usersguide.htm#config_FTP and look 
>>>>>> to add/adjust the passive setting in your weewx.conf config. 
>>>>>>
>>>>>> David 
>>>>>>
>>>>>> On Saturday, January 16, 2021 at 10:11:56 PM UTC-5 Rich Strle wrote:
>>>>>>
>>>>>>> I changed out my internet provider to t-mobile home internet service 
>>>>>>> and now I'm getting ftp errors. I tried connecting to the ftp from 
>>>>>>> another 
>>>>>>> computer and that worked. When my raspberry pi tries to connect I get 
>>>>>>> errors. This was working fine before I switched providers. Any ideas?
>>>>>>>
>>>>>>> Jan 16 21:01:25 pi-weather weewx[30706] DEBUG weeutil.ftpupload: 
>>>>>>> Attempting connection to www.cliffandbuster.com
>>>>>>> Jan 16 21:01:26 pi-weather weewx[30706] DEBUG weeutil.ftpupload: 
>>>>>>> Connected to www.cliffandbuster.com
>>>>>>> Jan 16 21:01:26 pi-weather weewx[30706] ERROR weeutil.ftpupload: 
>>>>>>> Failed uploading /var/www/html/weewx/seasons.css to server 
>>>>>>> www.cliffandbuster.com. Reason: '229 Extended Passive Mode Entered 
>>>>>>> (|||50207|)'
>>>>>>> Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine: 
>>>>>>> ftpgenerator: (1): caught exception '': 229 
>>>>>>> Extended Passive Mode Entered (|||50207|)
>>>>>>> Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine:
>>>>>>>    Traceback (most recent call last):
>>>>>>> Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine:
>>>>>>>  File "/usr/share/weewx/weewx/reportengine.py", line 331, 
>>>>>>> in run
>>>>>>> Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine:
>>>>>>>    n = ftp_data.run()
>>>>>>>
>>>>>>> -- 
>>>>> 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 weewx-user+...@googlegroups.com.
>>>>> To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/weewx-user/ba3b1d83-b48b-4578-b7a5-85b3fe2e4fden%40googlegroups.com
>>>>>  
>>>>> <https://groups.google.com/d/msgid/weewx-user/ba3b1d83-b48b-4578-b7a5-85b3fe2e4fden%40googlegroups.com?utm_medium=email_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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/08999a97-41a4-4436-b59d-2f8793532fb6n%40googlegroups.com.


Re: [weewx-user] Re: New internet provider - now ftp doesn't work

2021-01-17 Thread Rich Strle
I spoke with t-mobile again. They didn't say they did anything but all of a 
sudden ftp started working. I will continue to monitor.

On Sunday, January 17, 2021 at 10:50:19 AM UTC-6 galfert wrote:

> Anyone care to google "T-Mobile FTP"  You'll see that this is an issue 
> for everyone! My recommendation is to try to instead use SFTP.
>
>
> On Sunday, January 17, 2021 at 11:41:25 AM UTC-5 Rich Strle wrote:
>
>> I did as instructed. Attached is the log file after I made the change. I 
>> have a call into my provider to see if they are IPV6.
>>
>>
>>
>> On Sunday, January 17, 2021 at 10:17:33 AM UTC-6 tke...@gmail.com wrote:
>>
>>> You definitely want passive mode (passive=1).
>>>
>>> Two things:
>>>
>>> 1. By any chance, is your new provider using IPV6 (instead of 
>>> the traditional IPV4)?
>>>
>>> 2. Set debug=2 in weewx.conf, then retry. This will put lots of 
>>> information in the log about what FTP is doing.
>>>
>>> -tk
>>>
>>> On Sun, Jan 17, 2021 at 7:46 AM Rich Strle  wrote:
>>>
>>>> Thanks for your response David but that didn't fix my issue. 
>>>>
>>>> It was set at 1. I stopped the weewx process, set the ftp to 0, 
>>>> restarted weewx and it did not help. I changed it back to 1.
>>>>
>>>> On Sunday, January 17, 2021 at 6:21:02 AM UTC-6 dav...@gmail.com wrote:
>>>>
>>>>> Check out http://weewx.com/docs/usersguide.htm#config_FTP and look to 
>>>>> add/adjust the passive setting in your weewx.conf config. 
>>>>>
>>>>> David 
>>>>>
>>>>> On Saturday, January 16, 2021 at 10:11:56 PM UTC-5 Rich Strle wrote:
>>>>>
>>>>>> I changed out my internet provider to t-mobile home internet service 
>>>>>> and now I'm getting ftp errors. I tried connecting to the ftp from 
>>>>>> another 
>>>>>> computer and that worked. When my raspberry pi tries to connect I get 
>>>>>> errors. This was working fine before I switched providers. Any ideas?
>>>>>>
>>>>>> Jan 16 21:01:25 pi-weather weewx[30706] DEBUG weeutil.ftpupload: 
>>>>>> Attempting connection to www.cliffandbuster.com
>>>>>> Jan 16 21:01:26 pi-weather weewx[30706] DEBUG weeutil.ftpupload: 
>>>>>> Connected to www.cliffandbuster.com
>>>>>> Jan 16 21:01:26 pi-weather weewx[30706] ERROR weeutil.ftpupload: 
>>>>>> Failed uploading /var/www/html/weewx/seasons.css to server 
>>>>>> www.cliffandbuster.com. Reason: '229 Extended Passive Mode Entered 
>>>>>> (|||50207|)'
>>>>>> Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine: 
>>>>>> ftpgenerator: (1): caught exception '': 229 
>>>>>> Extended Passive Mode Entered (|||50207|)
>>>>>> Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine:
>>>>>>    Traceback (most recent call last):
>>>>>> Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine:
>>>>>>  File "/usr/share/weewx/weewx/reportengine.py", line 331, in 
>>>>>> run
>>>>>> Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine:
>>>>>>    n = ftp_data.run()
>>>>>>
>>>>>> -- 
>>>> 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 weewx-user+...@googlegroups.com.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/weewx-user/ba3b1d83-b48b-4578-b7a5-85b3fe2e4fden%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/weewx-user/ba3b1d83-b48b-4578-b7a5-85b3fe2e4fden%40googlegroups.com?utm_medium=email_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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/1bf4f912-9199-4d46-b140-f2708402f8d0n%40googlegroups.com.


Re: [weewx-user] Re: New internet provider - now ftp doesn't work

2021-01-17 Thread Rich Strle
I did as instructed. Attached is the log file after I made the change. I 
have a call into my provider to see if they are IPV6.



On Sunday, January 17, 2021 at 10:17:33 AM UTC-6 tke...@gmail.com wrote:

> You definitely want passive mode (passive=1).
>
> Two things:
>
> 1. By any chance, is your new provider using IPV6 (instead of 
> the traditional IPV4)?
>
> 2. Set debug=2 in weewx.conf, then retry. This will put lots of 
> information in the log about what FTP is doing.
>
> -tk
>
> On Sun, Jan 17, 2021 at 7:46 AM Rich Strle  wrote:
>
>> Thanks for your response David but that didn't fix my issue. 
>>
>> It was set at 1. I stopped the weewx process, set the ftp to 0, restarted 
>> weewx and it did not help. I changed it back to 1.
>>
>> On Sunday, January 17, 2021 at 6:21:02 AM UTC-6 dav...@gmail.com wrote:
>>
>>> Check out http://weewx.com/docs/usersguide.htm#config_FTP and look to 
>>> add/adjust the passive setting in your weewx.conf config. 
>>>
>>> David 
>>>
>>> On Saturday, January 16, 2021 at 10:11:56 PM UTC-5 Rich Strle wrote:
>>>
>>>> I changed out my internet provider to t-mobile home internet service 
>>>> and now I'm getting ftp errors. I tried connecting to the ftp from another 
>>>> computer and that worked. When my raspberry pi tries to connect I get 
>>>> errors. This was working fine before I switched providers. Any ideas?
>>>>
>>>> Jan 16 21:01:25 pi-weather weewx[30706] DEBUG weeutil.ftpupload: 
>>>> Attempting connection to www.cliffandbuster.com
>>>> Jan 16 21:01:26 pi-weather weewx[30706] DEBUG weeutil.ftpupload: 
>>>> Connected to www.cliffandbuster.com
>>>> Jan 16 21:01:26 pi-weather weewx[30706] ERROR weeutil.ftpupload: Failed 
>>>> uploading /var/www/html/weewx/seasons.css to server 
>>>> www.cliffandbuster.com. Reason: '229 Extended Passive Mode Entered 
>>>> (|||50207|)'
>>>> Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine: 
>>>> ftpgenerator: (1): caught exception '': 229 
>>>> Extended Passive Mode Entered (|||50207|)
>>>> Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine:  
>>>>  Traceback (most recent call last):
>>>> Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine:  
>>>>File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
>>>> Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine:  
>>>>  n = ftp_data.run()
>>>>
>>>> -- 
>> 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 weewx-user+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/ba3b1d83-b48b-4578-b7a5-85b3fe2e4fden%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/ba3b1d83-b48b-4578-b7a5-85b3fe2e4fden%40googlegroups.com?utm_medium=email_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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/215595b0-70e1-4e1d-b3cd-bc723304b81cn%40googlegroups.com.
Jan 17 10:21:56 pi-weather weewx[20816] INFO weewx.manager: Starting backfill 
of daily summaries
Jan 17 10:21:56 pi-weather weewx[20816] DEBUG weewx.manager: Daily summary 
version is 2
Jan 17 10:21:56 pi-weather weewx[20816] DEBUG weewx.drivers.vantage: Getting 
archive packets since 2021-01-17 10:20:00 CST (1610900400)
Jan 17 10:21:56 pi-weather weewx[20816] DEBUG weewx.drivers.vantage: Gentle 
wake up of console successful
Jan 17 10:21:56 pi-weather weewx[20816] DEBUG weewx.drivers.vantage: Retrieving 
0 page(s); starting index= 0
Jan 17 10:21:56 pi-weather weewx[20816] INFO weewx.engine: Starting main packet 
loop.
Jan 17 10:22:00 pi-weather weewx[20816] DEBUG weewx.drivers.vantage: Retry #0 
failed
Jan 17 10:22:00 pi-weather weewx[20816] DEBUG weewx.drivers.vantage: Gentle 
wake up of console successful
Jan 17 10:22:00 pi-weather weewx[20816] DEBUG weewx.drivers.vantage: Requesting 
200 LOOP packets.
Jan 17 10:22:00 pi-weather weewx[20816] DEBUG weewx.drivers.vantage: Gentle 
wake up of console successful
Jan 17 10:28:34 pi-weather weewx[20816] DEBUG weewx.drivers.vantage: Requesting 
200 LOOP packets.
Jan 17 10:28:34 

[weewx-user] Re: New internet provider - now ftp doesn't work

2021-01-17 Thread Rich Strle
Thanks for your response David but that didn't fix my issue. 

It was set at 1. I stopped the weewx process, set the ftp to 0, restarted 
weewx and it did not help. I changed it back to 1.

On Sunday, January 17, 2021 at 6:21:02 AM UTC-6 dav...@gmail.com wrote:

> Check out http://weewx.com/docs/usersguide.htm#config_FTP and look to 
> add/adjust the passive setting in your weewx.conf config. 
>
> David 
>
> On Saturday, January 16, 2021 at 10:11:56 PM UTC-5 Rich Strle wrote:
>
>> I changed out my internet provider to t-mobile home internet service and 
>> now I'm getting ftp errors. I tried connecting to the ftp from another 
>> computer and that worked. When my raspberry pi tries to connect I get 
>> errors. This was working fine before I switched providers. Any ideas?
>>
>> Jan 16 21:01:25 pi-weather weewx[30706] DEBUG weeutil.ftpupload: 
>> Attempting connection to www.cliffandbuster.com
>> Jan 16 21:01:26 pi-weather weewx[30706] DEBUG weeutil.ftpupload: 
>> Connected to www.cliffandbuster.com
>> Jan 16 21:01:26 pi-weather weewx[30706] ERROR weeutil.ftpupload: Failed 
>> uploading /var/www/html/weewx/seasons.css to server 
>> www.cliffandbuster.com. Reason: '229 Extended Passive Mode Entered 
>> (|||50207|)'
>> Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine: 
>> ftpgenerator: (1): caught exception '': 229 
>> Extended Passive Mode Entered (|||50207|)
>> Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine:
>>    Traceback (most recent call last):
>> Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine:
>>  File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
>> Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine:
>>    n = ftp_data.run()
>>
>>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/ba3b1d83-b48b-4578-b7a5-85b3fe2e4fden%40googlegroups.com.


[weewx-user] New internet provider - now ftp doesn't work

2021-01-16 Thread Rich Strle
I changed out my internet provider to t-mobile home internet service and 
now I'm getting ftp errors. I tried connecting to the ftp from another 
computer and that worked. When my raspberry pi tries to connect I get 
errors. This was working fine before I switched providers. Any ideas?

Jan 16 21:01:25 pi-weather weewx[30706] DEBUG weeutil.ftpupload: Attempting 
connection to www.cliffandbuster.com
Jan 16 21:01:26 pi-weather weewx[30706] DEBUG weeutil.ftpupload: Connected 
to www.cliffandbuster.com
Jan 16 21:01:26 pi-weather weewx[30706] ERROR weeutil.ftpupload: Failed 
uploading /var/www/html/weewx/seasons.css to server www.cliffandbuster.com. 
Reason: '229 Extended Passive Mode Entered (|||50207|)'
Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine: 
ftpgenerator: (1): caught exception '': 229 
Extended Passive Mode Entered (|||50207|)
Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine:
   Traceback (most recent call last):
Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine:
 File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
Jan 16 21:01:27 pi-weather weewx[30706] ERROR weewx.reportengine:
   n = ftp_data.run()

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/275f6cf2-2e9f-4466-b5db-c044ff37fdefn%40googlegroups.com.


Re: [weewx-user] Problem after power outage

2020-12-26 Thread Rich Strle
Exactly right. This fixed my problem. Thanks for pointing me in the right 
direction.

On Thursday, December 24, 2020 at 5:58:02 PM UTC-6 tke...@gmail.com wrote:

> Classic corrupt logger memory. 
> <https://github.com/weewx/weewx/wiki/Troubleshooting-the-Davis-Vantage-station#corrupt-station-memory>
>
> On Thu, Dec 24, 2020 at 3:37 PM Rich Strle  wrote:
>
>> We lost power last night and now I'm not updating. The FTP part is 
>> working, my image is processing correctly and I see the timestamp change as 
>> it should.
>>
>> I have reset my Davis Envoy but no joy. Ideas please?
>>
>> Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Finished 
>> loading service weewx.restx.StdWunderground
>> Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Loading service 
>> weewx.restx.StdPWSweather
>> Dec 24 17:26:42 pi-weather weewx[428] INFO weewx.restx: PWSweather: 
>> Posting not enabled.
>> Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Finished 
>> loading service weewx.restx.StdPWSweather
>> Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Loading service 
>> weewx.restx.StdCWOP
>> Dec 24 17:26:42 pi-weather weewx[428] INFO weewx.restx: CWOP: Posting not 
>> enabled.
>> Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Finished 
>> loading service weewx.restx.StdCWOP
>> Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Loading service 
>> weewx.restx.StdWOW
>> Dec 24 17:26:42 pi-weather weewx[428] INFO weewx.restx: WOW: Posting not 
>> enabled.
>> Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Finished 
>> loading service weewx.restx.StdWOW
>> Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Loading service 
>> weewx.restx.StdAWEKAS
>> Dec 24 17:26:42 pi-weather weewx[428] INFO weewx.restx: AWEKAS: Posting 
>> not enabled.
>> Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Finished 
>> loading service weewx.restx.StdAWEKAS
>> Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Loading service 
>> weewx.engine.StdPrint
>> Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Finished 
>> loading service weewx.engine.StdPrint
>> Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Loading service 
>> weewx.engine.StdReport
>> Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Finished 
>> loading service weewx.engine.StdReport
>> Dec 24 17:26:42 pi-weather weewx[428] INFO __main__: Starting up weewx 
>> version 4.2.0
>> Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.drivers.vantage: Gentle 
>> wake up of console successful
>> Dec 24 17:26:42 pi-weather weewx[428] INFO weewx.engine: Clock error is 
>> -1545.78 seconds (positive is fast)
>> Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.manager: Daily summary 
>> version is 2
>> Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.drivers.vantage: Gentle 
>> wake up of console successful
>> Dec 24 17:26:42 pi-weather weewx[428] INFO weewx.drivers.vantage: Clock 
>> set to 2020-12-24 17:26:43 CST (1608852403)
>> Dec 24 17:26:42 pi-weather weewx[428] INFO weewx.engine: Using binding 
>> 'wx_binding' to database 'weewx.sdb'
>> Dec 24 17:26:42 pi-weather weewx[428] INFO weewx.manager: Starting 
>> backfill of daily summaries
>> Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.drivers.vantage: 
>> Getting archive packets since 2020-12-24 01:50:00 CST (1608796200)
>> Dec 24 17:26:46 pi-weather weewx[428] DEBUG weewx.drivers.vantage: Retry 
>> #0 failed
>> Dec 24 17:26:46 pi-weather weewx[428] DEBUG weewx.drivers.vantage: Gentle 
>> wake up of console successful
>> Dec 24 17:26:46 pi-weather weewx[428] DEBUG weewx.drivers.vantage: 
>> Retrieving 0 page(s); starting index= 0
>> Dec 24 17:26:46 pi-weather weewx[428] INFO weewx.engine: Starting main 
>> packet loop.
>> Dec 24 17:26:50 pi-weather weewx[428] DEBUG weewx.drivers.vantage: Retry 
>> #0 failed
>> Dec 24 17:26:50 pi-weather weewx[428] DEBUG weewx.drivers.vantage: Gentle 
>> wake up of console successful
>> Dec 24 17:26:50 pi-weather weewx[428] DEBUG weewx.drivers.vantage: 
>> Requesting 200 LOOP packets.
>> Dec 24 17:26:50 pi-weather weewx[428] DEBUG weewx.drivers.vantage: Gentle 
>> wake up of console successful
>>
>> -- 
>> 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 weewx-user+...@googlegroups.com.
>> To view this discussion on the web visit 
>> http

[weewx-user] Problem after power outage

2020-12-24 Thread Rich Strle
We lost power last night and now I'm not updating. The FTP part is working, 
my image is processing correctly and I see the timestamp change as it 
should.

I have reset my Davis Envoy but no joy. Ideas please?

Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Finished loading 
service weewx.restx.StdWunderground
Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Loading service 
weewx.restx.StdPWSweather
Dec 24 17:26:42 pi-weather weewx[428] INFO weewx.restx: PWSweather: Posting 
not enabled.
Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Finished loading 
service weewx.restx.StdPWSweather
Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Loading service 
weewx.restx.StdCWOP
Dec 24 17:26:42 pi-weather weewx[428] INFO weewx.restx: CWOP: Posting not 
enabled.
Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Finished loading 
service weewx.restx.StdCWOP
Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Loading service 
weewx.restx.StdWOW
Dec 24 17:26:42 pi-weather weewx[428] INFO weewx.restx: WOW: Posting not 
enabled.
Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Finished loading 
service weewx.restx.StdWOW
Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Loading service 
weewx.restx.StdAWEKAS
Dec 24 17:26:42 pi-weather weewx[428] INFO weewx.restx: AWEKAS: Posting not 
enabled.
Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Finished loading 
service weewx.restx.StdAWEKAS
Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Loading service 
weewx.engine.StdPrint
Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Finished loading 
service weewx.engine.StdPrint
Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Loading service 
weewx.engine.StdReport
Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.engine: Finished loading 
service weewx.engine.StdReport
Dec 24 17:26:42 pi-weather weewx[428] INFO __main__: Starting up weewx 
version 4.2.0
Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.drivers.vantage: Gentle 
wake up of console successful
Dec 24 17:26:42 pi-weather weewx[428] INFO weewx.engine: Clock error is 
-1545.78 seconds (positive is fast)
Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.manager: Daily summary 
version is 2
Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.drivers.vantage: Gentle 
wake up of console successful
Dec 24 17:26:42 pi-weather weewx[428] INFO weewx.drivers.vantage: Clock set 
to 2020-12-24 17:26:43 CST (1608852403)
Dec 24 17:26:42 pi-weather weewx[428] INFO weewx.engine: Using binding 
'wx_binding' to database 'weewx.sdb'
Dec 24 17:26:42 pi-weather weewx[428] INFO weewx.manager: Starting backfill 
of daily summaries
Dec 24 17:26:42 pi-weather weewx[428] DEBUG weewx.drivers.vantage: Getting 
archive packets since 2020-12-24 01:50:00 CST (1608796200)
Dec 24 17:26:46 pi-weather weewx[428] DEBUG weewx.drivers.vantage: Retry #0 
failed
Dec 24 17:26:46 pi-weather weewx[428] DEBUG weewx.drivers.vantage: Gentle 
wake up of console successful
Dec 24 17:26:46 pi-weather weewx[428] DEBUG weewx.drivers.vantage: 
Retrieving 0 page(s); starting index= 0
Dec 24 17:26:46 pi-weather weewx[428] INFO weewx.engine: Starting main 
packet loop.
Dec 24 17:26:50 pi-weather weewx[428] DEBUG weewx.drivers.vantage: Retry #0 
failed
Dec 24 17:26:50 pi-weather weewx[428] DEBUG weewx.drivers.vantage: Gentle 
wake up of console successful
Dec 24 17:26:50 pi-weather weewx[428] DEBUG weewx.drivers.vantage: 
Requesting 200 LOOP packets.
Dec 24 17:26:50 pi-weather weewx[428] DEBUG weewx.drivers.vantage: Gentle 
wake up of console successful

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/9b26d540-a649-44b1-bd76-cfb0f3370530n%40googlegroups.com.


Re: [weewx-user] Re: Copy webcam image to /var/www/html/weewx/image.jpg

2020-11-28 Thread Rich Strle
Duh! There was an extra space between: password=user  
http://192.168.254.33/jpg/image.jpg?size=3

^
Thanks everyone for your help. The march forward continues...

On Tuesday, November 24, 2020 at 8:19:50 PM UTC-6 vince wrote:

> We can't help much without an exact transcript of what you're 
> seeing...your descriptions aren't quite enough for us.
>
> It is likely you have quotes in there, or you're missing quotes, based on 
> a google search for ":schema missing wget" and poking around the first few 
> links.
>
> Try putting quotes around the URL.  The question mark character in there 
> can throw bash off.  You probably want a space after -O as well.
>
>wget --user=user --password=user  "
> http://192.168.254.33/jpg/image.jpg?size=3;  -O 
> /home/pi/Pictures/image.jpg 
>
>
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/76eb5f72-1d7d-41b4-905d-372c1796effdn%40googlegroups.com.


Re: [weewx-user] Re: Copy webcam image to /var/www/html/weewx/image.jpg

2020-11-24 Thread Rich Strle
Thank you for all the suggestions. I need to take my linux-fu a lot.

Before I can move forward, I have a problem on my weather station Pi. On my 
'dev' Pi this wget command works as expected wget --user=user 
--password=user  http://192.168.254.33/jpg/image.jpg?size=3 
-O/home/pi/Pictures/image.jpg works as expected

When I run the same wget command on my weather station Pi I get an error 
message :schema Missing from wget. it makes the file but there isn't any 
data in the file. if I put the URL into a browser window I get the image I 
expect. 

if it matters, I am running WeeWX directly. I believe both Pi's have the 
same version of the operating system and I didn't change any permissions.

I'm out of ideas...

On Monday, November 23, 2020 at 10:03:46 AM UTC-6 sali...@gmail.com wrote:

> hello,
>
> here, what I did to capture a video image and put it on the RPi server 
> with the belchertown skin. I used an intermediate server, here a NAS. 
> (freeNas).
> 1- Samsung Camera > FTP > Freenas.
> 2 - SCP transfer from RPi (weewx) ---> FreeNas -> / home / pi / 
> transfer-images / "capture name"
> 3 - script to rename "capture name" ---> new name.jpg
> 4- cp "new name.jpg" ---> / var / www / html / weewx / belchertown / 
> images /
> 5- to automate everything, this I created a batch that I put in crontab.
>
> Patrick
> Le 23/11/2020 à 15:35, Greg Sinclair a écrit :
>
> I do this by doing all the processing on the Pi capturing the image and 
> then doing a sftp to place the image where weewx can find it. 
>
> Greg
>
> On Sunday, November 22, 2020 at 1:47:33 PM UTC-6 Rich Strle wrote:
>
>> Thanks very much Vince. 
>>
>> I appreciate your advice on the Linux Fundamentals course. 
>>
>> Rich Strle 
>> 309-824-9213 <(309)%20824-9213> 
>>
>> On Sun, Nov 22, 2020 at 12:34 PM vince  wrote: 
>> > 
>> > On Sunday, November 22, 2020 at 8:44:01 AM UTC-8 Rich Strle wrote: 
>> >> 
>> >> Looking at my passwrd file I see: 
>> www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin 
>> >> Would I remove the /nologin? 
>> >> 
>> > 
>> > Please don't do that. 
>> > 
>> > www-data is the owner of the web 'data' and your webserver process 
>> likely runs as that user. 
>> > The nologin there ensures that if anybody/anything breaks security on 
>> your webserver running process, then they still wouldn't be able to get a 
>> shell and install/run malware etc. 
>> > 
>> > What you want to do is: 
>> > 
>> > put all your processing in a script 
>> > run that script as the non-privileged user 'pi' and write to scratch 
>> directories that pi can write to (/tmp or /var/tmp are likely places) 
>> > in your script, do the 'privileged' copy of the output file to the 
>> /var/www/html directory by prefacing your 'cp' command ala 'sudo cp' 
>> > and you'll likely want to set the permissions on the file in 
>> /var/www/html also with 'sudo chmod' 
>> > 
>> > (standard suggestion - if you're asking this you need to up your 
>> linux-fu a little - I always suggest looking at the free edx.org Linux 
>> Fundamentals course that literally a million folks have taken) 
>> > 
>> > A simple script that grabs Google's logo image as an example would look 
>> something like: 
>> > 
>> > #!/bin/bash 
>> > UPSTREAM_URL="
>> https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png;
>>  
>>
>> > SCRATCH_FILE="/tmp/image.jpg" 
>> > FINAL_OUTPUT="/var/www/html/image.jpg" 
>> > 
>> > # wget the file in quiet mode to a temporary location 
>> > wget -q "${URL}" "${SCRATCH_FILE}" 
>> > 
>> > # copy it into place and fix up permissions via sudo 
>> > sudo cp "${SCRATCH_FILE}" "${FINAL_OUTPUT}" 
>> > sudo chown www-data "${FINAL_OUTPUT}" 
>> > sudo chmod 644 "${FINAL_OUTPUT}" 
>> > 
>> > This script did the right thing for me, FWIW. You'll of course have to 
>> put in the right wget switches to grab your image from the camera, as well 
>> as doing any processing with ImageMagick etc. before you copy your image 
>> into the web tree, but this should give you a skeleton to start with that 
>> does the permission stuff... 
>> > 
>> > 
>> > -- 
>> > You received this message because you are subscribed to a topic in the 
>> Google Groups "weewx-user" group. 
>> > To unsubscri

Re: [weewx-user] Re: Copy webcam image to /var/www/html/weewx/image.jpg

2020-11-22 Thread Rich Strle
Thanks very much Vince.

I appreciate your advice on the Linux Fundamentals course.

Rich Strle
309-824-9213

On Sun, Nov 22, 2020 at 12:34 PM vince  wrote:
>
> On Sunday, November 22, 2020 at 8:44:01 AM UTC-8 Rich Strle wrote:
>>
>> Looking at my passwrd file I see: 
>> www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin
>> Would I remove the /nologin?
>>
>
> Please don't do that.
>
> www-data is the owner of the web 'data' and your webserver process likely 
> runs as that user.
> The nologin there ensures that if anybody/anything breaks security on your 
> webserver running process, then they still wouldn't be able to get a shell 
> and install/run malware etc.
>
> What you want to do is:
>
> put all your processing in a script
> run that script as the non-privileged user 'pi' and write to scratch 
> directories that pi can write to (/tmp or /var/tmp are likely places)
> in your script, do the 'privileged' copy of the output file to the 
> /var/www/html directory by prefacing your 'cp' command ala 'sudo cp'
> and you'll likely want to set the permissions on the file in /var/www/html 
> also with 'sudo chmod'
>
> (standard suggestion - if you're asking this you need to up your linux-fu a 
> little - I always suggest looking at the free edx.org Linux Fundamentals 
> course that literally a million folks have taken)
>
> A simple script that grabs Google's logo image as an example would look 
> something like:
>
>#!/bin/bash
>
> UPSTREAM_URL="https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png;
>SCRATCH_FILE="/tmp/image.jpg"
>FINAL_OUTPUT="/var/www/html/image.jpg"
>
># wget the file in quiet mode to a temporary location
>wget -q "${URL}" "${SCRATCH_FILE}"
>
># copy it into place and fix up permissions via sudo
>sudo cp "${SCRATCH_FILE}" "${FINAL_OUTPUT}"
>sudo chown www-data "${FINAL_OUTPUT}"
>sudo chmod 644  "${FINAL_OUTPUT}"
>
> This script did the right thing for me, FWIW.  You'll of course have to put 
> in the right wget switches to grab your image from the camera, as well as 
> doing any processing with ImageMagick etc. before you copy your image into 
> the web tree, but this should give you a skeleton to start with that does the 
> permission stuff...
>
>
> --
> 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/979HfPDddwc/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> weewx-user+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/ca47e7f4-cdd5-4989-92f1-6af8d1a154dan%40googlegroups.com.

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAPdkeQBXV9E8ihWFxXc42W00zK5NX_G-LUANWgFujdzLdWZB0g%40mail.gmail.com.


[weewx-user] Re: Copy webcam image to /var/www/html/weewx/image.jpg

2020-11-22 Thread Rich Strle
Thank you John. I have more questions. I'll try and be specific so the next 
person who wants to grab an image, resize it, and include it in the ftp 
process can go it easier.

Looking at my passwrd file I see: 
www-data:x:33:33:www-data:/var/www:/usr/sbin/nologin

Would I remove the /nologin?

Can you explain this please? "once that is done you can sudo su - www-data 
and add the cron entry."

My bigger question is, where did weewx set permissions for itself? Does 
that happen in the install process?
On Sunday, November 22, 2020 at 8:18:11 AM UTC-6 john.bu...@gmail.com wrote:

> I am doing something similar
>
> What I did was run that under www-data user.  First I had to change the 
> shell in /etc/passwd to look like this.
>
> www-data:x:1028:33:www-data:/var/www:/bin/bash
>
> once that is done you can sudo su - www-data and add the cron entry.
>
> Another way would be to add the pi user to the www-data group and mess 
> with the directory permissions.
>
> On Sunday, November 22, 2020 at 9:06:21 AM UTC-5 Rich Strle wrote:
>
>> My copy of weewx is running on a Raspberry Pi. I am trying to get an 
>> image from a webcam on my local network using wget, resizing the image 
>> using imagemagick, then put it in the /var/www/html/weewx/ folder so it 
>> will get uploaded to my web host.
>>
>> wget --user=user --password=user  
>> http://192.168.254.33/jpg/image.jpg?size=3 
>> -O/var/www/html/weewx/image.jpg
>>
>> I get a Permission denied error.
>>
>> From there my plan was to use imagick to reduced the size of the file and 
>> include the image in the upload.
>>
>> I as able to put this in a bash script and run a cron job to do this 
>> process to my /home/pi/Pictures/image.jpg folder but I can''t figure out 
>> how to copy the file to the html/weewx directory.
>>
>> If there is a better way to do what I'm trying to accomplish I'm willing 
>> to try that.
>>
>> Thanks in advance.
>>
>>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/4a1b1452-f1f6-4c01-8cb2-c0955965168bn%40googlegroups.com.


[weewx-user] Copy webcam image to /var/www/html/weewx/image.jpg

2020-11-22 Thread Rich Strle
My copy of weewx is running on a Raspberry Pi. I am trying to get an image 
from a webcam on my local network using wget, resizing the image using 
imagemagick, then put it in the /var/www/html/weewx/ folder so it will get 
uploaded to my web host.

wget --user=user --password=user  
http://192.168.254.33/jpg/image.jpg?size=3 -O/var/www/html/weewx/image.jpg

I get a Permission denied error.

>From there my plan was to use imagick to reduced the size of the file and 
include the image in the upload.

I as able to put this in a bash script and run a cron job to do this 
process to my /home/pi/Pictures/image.jpg folder but I can''t figure out 
how to copy the file to the html/weewx directory.

If there is a better way to do what I'm trying to accomplish I'm willing to 
try that.

Thanks in advance.

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/fa466bb2-d58a-42cc-9870-316770563bd7n%40googlegroups.com.


[weewx-user] Re: Include image file in ftp?

2020-05-16 Thread Rich Strle
Outstanding. Thank you for the reply.

On Saturday, May 16, 2020 at 7:30:34 AM UTC-5, Rich Strle wrote:
>
> I have a jpg image captured from a webcam. 
>
> The image is on the Pi that runs weewx. 
>
> Can that image be included in the ftp upload process that weewx does to my 
> webserver?
>

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/34bc02b3-40c6-4c9b-9dcf-82c11411dbfd%40googlegroups.com.


[weewx-user] Include image file in ftp?

2020-05-16 Thread Rich Strle
I have a jpg image captured from a webcam. 

The image is on the Pi that runs weewx. 

Can that image be included in the ftp upload process that weewx does to my 
webserver?

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/b121e865-1572-4b0b-93a0-8f40d4b7acef%40googlegroups.com.