Re: [weewx-user] Re: Using Multiple MySQL databases

2022-09-15 Thread Seth Ratner
Yup, replication is what I wanted. Thanks everyone for helping me get to 
the right answer eventually!

On Thursday, September 15, 2022 at 4:52:25 PM UTC-5 nevilled...@gmail.com 
wrote:

> Hi
> Yes I use SQL replication to a spare Raspberry pi, its is a live backup 
> and I also use it as a second source of data in another weewx project I am 
> building.
> I have used replication for years (on QNAP NAS and now Pi), and it is 
> extremely reliable and recovers from power failures, device shutdowns etc 
> without issue so far.
>
> Neville
>
>
> On Thursday, September 15, 2022 at 11:42:23 PM UTC+10 Seth Ratner wrote:
>
>> Thanks Doug and Vince,
>>
>> It looks like the best solution is MySQL replication. I had been using 
>> the backup option without realizing replication was built in. This will be 
>> more than adequate, and will full account for the internet going in and out 
>> between the locations. 
>>
>> I also appreciate the tip on the extensions. I think the forecast one 
>> will be useful in my integrations with Home Assistant.
>>
>> Cheers!
>>
>> On Thu, Sep 15, 2022 at 7:11 AM Doug Jenkins  
>> wrote:
>>
>>> Seth:
>>>
>>> I think you have a couple of options to choose from. One concern I would 
>>> have with MQTT is that it always publishes the latest record, so if your 
>>> farm location is down for 1 hour, your remote will not get the records up 
>>> to the last archive.
>>>
>>> thinking about your use case now, It may make sense to setup the station 
>>> on SQLite and rsync the database to your remote location after the archive 
>>> period. that way if your farm location lost connection, you would know 
>>> based on the last archive record at home and once you have a connection 
>>> again, you would get all the data.
>>>
>>> here is a wiki article on the github weewx repo that kind of explains 
>>> this : Using the RSYNC skin as a backup solution · weewx/weewx Wiki 
>>> (github.com) 
>>> 
>>>
>>> To answer your question about my other databases, for forecast and AQI, 
>>> as Vince indicated earlier, there are a host of extensions available. The 
>>> one I use for forecast is Weewx-Forecast by Matthew Wall ( 
>>> matthewwall/weewx-forecast: 
>>> forecasting extension for weewx (github.com) 
>>> ) and I use a AQI 
>>> extension to pull from my Davis Airlink AQI device ( 
>>> chaunceygardiner/weewx-airlink: 
>>> WeeWX extension to support Davis AirLink air quality sensor. (github.com) 
>>> ) 
>>>
>>> hope this helps!
>>>
>>> Doug Jenkins
>>>
>>> On Wednesday, September 14, 2022 at 9:10:40 PM UTC-4 vince wrote:
>>>
 On Wednesday, September 14, 2022 at 4:47:53 PM UTC-7 Seth Ratner wrote:

> But I also run various programs at home that reference the archive, 
> and they won't work when the WeeWx host has lost internet. 
>
 So I need two copies of the archive available at all times, one for 
> each location. 
>

 Still unclear why without knowing what you're running at the non-weewx 
 site.   Can you run that on the weewx host and upload the results to home 
 occasionally ?   Does the non-weewx site need to be totally up to date 
 always ? Is your internet 'slow' in terms of bandwidth or just unstable ?

 You're jumping to a solution but not really explaining the problem(s) 
 and why you have a split setup.

 -- 
>>> 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/PPGSbaoX_ns/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> weewx-user+...@googlegroups.com.
>>>
>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/9e98036d-592b-4ff4-8c7c-dc9ecbe3a7ffn%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/ca79f6a6-eca9-443b-8c2e-539ebf8ecf90n%40googlegroups.com.


[weewx-user] Re: 2022 Year data not calculated in SQLite database weewx.sdb

2022-09-15 Thread gjr80
First thing to do if you are viewing the file(s) via a web browser is to 
clear the browser cache. You can try viewing the files directly via an 
editor or cat'ing them to a console. Second thing to try is forcing WeeWX 
to regenerate all of your NOAA format month and year files. Delete all of 
the month and year files on your WeeWX machine, wait for the next report 
cycle to complete during which WeeWX will regenerate them all. Be patient, 
depending on how much data you have in your database it could take a while. 
Once they have be regenerated have look and see what's there. Again be 
careful of browser caches if viewing via a browser.

If you still have issues post back here.

Gary

On Friday, 16 September 2022 at 09:04:52 UTC+10 lloyd...@gmail.com wrote:

> I stopped weewx, copied the data base weewx.sdb to a backup location and 
> then restarted weewx. When I look at Yearly reports for 2022 I only have 
> data from the month I restarted it (August). But if I look at monthly 
> reports for January through July I have data there. Also when I look at the 
> current data page and select year data there is nothing from 9/1/21 to 
> 8/1/22.  
> Anyway to rebuild that yearly data for 2022?
>

-- 
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/d4f2ccc9-ad3b-4f03-ba3b-50ba04582fban%40googlegroups.com.


[weewx-user] 2022 Year data not calculated in SQLite database weewx.sdb

2022-09-15 Thread lloyd...@gmail.com
I stopped weewx, copied the data base weewx.sdb to a backup location and 
then restarted weewx. When I look at Yearly reports for 2022 I only have 
data from the month I restarted it (August). But if I look at monthly 
reports for January through July I have data there. Also when I look at the 
current data page and select year data there is nothing from 9/1/21 to 
8/1/22.  
Anyway to rebuild that yearly data for 2022?

-- 
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/81ac4547-6e77-45fb-ad6e-c733c9e7e200n%40googlegroups.com.


Re: [weewx-user] Re: Using Multiple MySQL databases

2022-09-15 Thread Neville Davis
Hi
Yes I use SQL replication to a spare Raspberry pi, its is a live backup and 
I also use it as a second source of data in another weewx project I am 
building.
I have used replication for years (on QNAP NAS and now Pi), and it is 
extremely reliable and recovers from power failures, device shutdowns etc 
without issue so far.

Neville


On Thursday, September 15, 2022 at 11:42:23 PM UTC+10 Seth Ratner wrote:

> Thanks Doug and Vince,
>
> It looks like the best solution is MySQL replication. I had been using the 
> backup option without realizing replication was built in. This will be more 
> than adequate, and will full account for the internet going in and out 
> between the locations. 
>
> I also appreciate the tip on the extensions. I think the forecast one will 
> be useful in my integrations with Home Assistant.
>
> Cheers!
>
> On Thu, Sep 15, 2022 at 7:11 AM Doug Jenkins  
> wrote:
>
>> Seth:
>>
>> I think you have a couple of options to choose from. One concern I would 
>> have with MQTT is that it always publishes the latest record, so if your 
>> farm location is down for 1 hour, your remote will not get the records up 
>> to the last archive.
>>
>> thinking about your use case now, It may make sense to setup the station 
>> on SQLite and rsync the database to your remote location after the archive 
>> period. that way if your farm location lost connection, you would know 
>> based on the last archive record at home and once you have a connection 
>> again, you would get all the data.
>>
>> here is a wiki article on the github weewx repo that kind of explains 
>> this : Using the RSYNC skin as a backup solution · weewx/weewx Wiki 
>> (github.com) 
>> 
>>
>> To answer your question about my other databases, for forecast and AQI, 
>> as Vince indicated earlier, there are a host of extensions available. The 
>> one I use for forecast is Weewx-Forecast by Matthew Wall ( 
>> matthewwall/weewx-forecast: 
>> forecasting extension for weewx (github.com) 
>> ) and I use a AQI 
>> extension to pull from my Davis Airlink AQI device ( 
>> chaunceygardiner/weewx-airlink: 
>> WeeWX extension to support Davis AirLink air quality sensor. (github.com) 
>> ) 
>>
>> hope this helps!
>>
>> Doug Jenkins
>>
>> On Wednesday, September 14, 2022 at 9:10:40 PM UTC-4 vince wrote:
>>
>>> On Wednesday, September 14, 2022 at 4:47:53 PM UTC-7 Seth Ratner wrote:
>>>
 But I also run various programs at home that reference the archive, and 
 they won't work when the WeeWx host has lost internet. 

>>> So I need two copies of the archive available at all times, one for each 
 location. 

>>>
>>> Still unclear why without knowing what you're running at the non-weewx 
>>> site.   Can you run that on the weewx host and upload the results to home 
>>> occasionally ?   Does the non-weewx site need to be totally up to date 
>>> always ? Is your internet 'slow' in terms of bandwidth or just unstable ?
>>>
>>> You're jumping to a solution but not really explaining the problem(s) 
>>> and why you have a split setup.
>>>
>>> -- 
>> 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/PPGSbaoX_ns/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> weewx-user+...@googlegroups.com.
>>
> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/9e98036d-592b-4ff4-8c7c-dc9ecbe3a7ffn%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/f9a9dae1-e298-43ea-9762-273d4dc69844n%40googlegroups.com.


Re: [weewx-user] Re: FTP failure

2022-09-15 Thread Steve2Q
Gary: here is the syslog with Debug =1. As you can see, there are 
definitely errors(s) every time rtg tries to FTP.

ep 15 16:41:04 raspberrypi weewx[5506]: engine: Initializing weewx version 
3.8.2
Sep 15 16:41:04 raspberrypi weewx[5506]: engine: Using Python 2.7.13 
(default, Sep 26 2018, 18:42:22) #012[GCC 6.3.0 20170516]
Sep 15 16:41:04 raspberrypi weewx[5506]: engine: Platform 
Linux-4.14.94-v7+-armv7l-with-debian-9.6
Sep 15 16:41:04 raspberrypi weewx[5506]: engine: Locale is 'en_US.UTF-8'
Sep 15 16:41:04 raspberrypi weewx[5506]: engine: pid file is 
/var/run/weewx.pid
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Using configuration file 
/home/weewx/weewx.conf
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Debug is 1
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Initializing engine
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Loading station type 
Ultimeter (weewx.drivers.ultimeter)
Sep 15 16:41:04 raspberrypi weewx[5495]: Starting weewx weather system: 
weewx.
Sep 15 16:41:04 raspberrypi systemd[1]: Started LSB: weewx weather system.
Sep 15 16:41:04 raspberrypi weewx[5510]: ultimeter: driver version is 
0.11rc3
Sep 15 16:41:04 raspberrypi weewx[5510]: ultimeter: using serial port 
/dev/ttyUSB0
Sep 15 16:41:04 raspberrypi weewx[5510]: ultimeter: polling interval is 1.0
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Loading service 
weewx.engine.StdTimeSynch
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Finished loading service 
weewx.engine.StdTimeSynch
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Loading service 
weewx.engine.StdConvert
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: StdConvert target unit is 
0x1
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Finished loading service 
weewx.engine.StdConvert
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Loading service 
weewx.engine.StdCalibrate
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Finished loading service 
weewx.engine.StdCalibrate
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Loading service 
weewx.engine.StdQC
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Finished loading service 
weewx.engine.StdQC
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Loading service 
weewx.wxservices.StdWXCalculate
Sep 15 16:41:04 raspberrypi weewx[5510]: wxcalculate: The following values 
will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, 
dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=software, 
windrun=prefer_hardware, heatindex=prefer_hardware, 
maxSolarRad=prefer_hardware, humidex=prefer_hardware, 
pressure=prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, 
altimeter=prefer_hardware, cloudbase=prefer_hardware
Sep 15 16:41:04 raspberrypi weewx[5510]: wxcalculate: The following 
algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Finished loading service 
weewx.wxservices.StdWXCalculate
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Loading service 
weewx.engine.StdArchive
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Archive will use data 
binding wx_binding
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Record generation will be 
attempted in 'hardware'
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Using archive interval of 
120 seconds (specified in weewx configuration)
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Use LOOP data in hi/low 
calculations: 1
Sep 15 16:41:04 raspberrypi weewx[5510]: manager: Daily summary version is 
2.0
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Using binding 'wx_binding' 
to database 'weewx.sdb'
Sep 15 16:41:04 raspberrypi weewx[5510]: manager: Starting backfill of 
daily summaries
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Finished loading service 
weewx.engine.StdArchive
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Loading service 
weewx.restx.StdStationRegistry
Sep 15 16:41:04 raspberrypi weewx[5510]: restx: StationRegistry: Station 
will be registered.
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Finished loading service 
weewx.restx.StdStationRegistry
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Loading service 
weewx.restx.StdWunderground
Sep 15 16:41:04 raspberrypi weewx[5510]: restx: Wunderground-RF: Data for 
station KFLBOYNT40 will be posted
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Finished loading service 
weewx.restx.StdWunderground
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Loading service 
weewx.restx.StdPWSweather
Sep 15 16:41:04 raspberrypi weewx[5510]: restx: PWSWeather: Data for 
station KFLBOYNT40 will be posted
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Finished loading service 
weewx.restx.StdPWSweather
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Loading service 
weewx.restx.StdCWOP
Sep 15 16:41:04 raspberrypi weewx[5510]: restx: CWOP: Data for station 
FW7312 will be posted
Sep 15 16:41:04 raspberrypi weewx[5510]: engine: Finished loading service 
weewx.restx.StdCWOP
Sep 15 16:4

Re: [weewx-user] Re: FTP failure

2022-09-15 Thread Steve2Q
Gary; as requested: here is the [RealtimeGaugeData] stanza: ( I will Follow 
with th e log with debug = 1


# Options for extension 'Rtgd'
[RealtimeGaugeData]
remote_server_url = http://photokinetics.org/Weather/post_gauge-data.php
timeout = 2
response_text = success

date_format = %Y.%m.%d %H:%M
#scroller_source = text|file|WU|DS|Zambretti
#scroller_source = DS
#[[DS]]
#api_key = X
#block = hourly
#units = us 
 scroller_source = WU
 [[WU]]
 api_key = X
 units = e
 language = en-US
 interval = 1800
 api_lockout_period = 60
 max_tries = 3
 location = pws:KFLBOYNT40
 debug = 0
 
rtgd_path = /home/weewx/public_html
[[Groups]]
group_altitude = foot
group_pressure = hPa
group_rain = mm
group_speed = km_per_hour
group_temperature = degree_C
[[StringFormats]]
inch_per_hour = %.2f
mile_per_hour = %.1f
degree_compass = %.0f
km_per_hour = %.1f
inHg = %.2f
mm = %.1f
meter_per_second = %.1f
percent = %.0f
km = %.1f
uv_index = %.1f
inch = %.2f
degree_F = %.1f
meter = %.0f
degree_C = %.1f
mile = %.1f
foot = %.0f
hPa = %.1f
mbar = %.1f
watt_per_meter_squared = %.0f
mm_per_hour = %.1f


On Thursday, September 15, 2022 at 4:26:38 PM UTC-4 Steve2Q wrote:

> Gary, Vince and myma
>
> Thank you all! First, I am going through the process to get the Steel 
> Gauges working properly. Then I will delve into using RSync. Gary; I am 
> going to start using the info you gave me, and will post logs .
>

-- 
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/53bbe8d1-f923-4a8d-a752-291dab145fb3n%40googlegroups.com.


Re: [weewx-user] Re: FTP failure

2022-09-15 Thread Steve2Q
Gary, Vince and myma

Thank you all! First, I am going through the process to get the Steel 
Gauges working properly. Then I will delve into using RSync. Gary; I am 
going to start using the info you gave me, and will post logs .

-- 
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/6dc60048-21bb-4db1-a6ad-f6f091380057n%40googlegroups.com.


Re: [weewx-user] FTP upload Problem

2022-09-15 Thread PeterGill
Thanks Steve, I´m talking to my provider right now and I´ll update here if 
the problem is with them


On Thursday, September 15, 2022 at 7:11:29 PM UTC+2 Steve2Q wrote:

> Peter..I had the exact same problem with DreamHost. For some reason they 
> blocked my IP. They unblocked it yesterday afternoon, and FTP started 
> working a few hours later.
>
>
> On Thursday, September 15, 2022 at 9:58:56 AM UTC-4 PeterGill wrote:
>
>> Thanks for the quick answer. Sorry for a stupid follow up question - how 
>> do I make sure the right access permissions are set?
>>
>>
>> On Thursday, September 15, 2022 at 3:52:21 PM UTC+2 tke...@gmail.com 
>> wrote:
>>
>>> I don't know why it would have changed, but make sure you have access 
>>> permissions to whatever directory you are trying to upload to. 
>>>
>>> On Thu, Sep 15, 2022 at 6:39 AM PeterGill  wrote:
>>>
 Hi,

 Suddenly and out of the blue my ftp upload stopped working. The html 
 files are generated as expected in /var/www/html/weewx and the file 
 "celestial.html" referenced in the log extract below certainly exist in 
 the 
 library and opens correctly in Chrome.

 Of course reboot has been tried.

 Any help would be highly appreciated!

 Sep 15 14:46:14 Homeserver weewx[573] ERROR weeutil.ftpupload: Failed 
 uploading /var/www/html/weewx/celestial.html to server ftp.myurl.se. 
 Reason: '550 Requested action not taken. File unavailable (e.g., file not 
 found, no access).'
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
 ftpgenerator: (2): caught exception '': 550 
 Requested action not taken. File unavailable (e.g., file not found, no 
 access).
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
   Traceback (most recent call last):
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
 File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
   n = ftp_data.run()
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
 File "/usr/share/weewx/weeutil/ftpupload.py", line 178, in run
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
   ftp_server.storbinary(stor_cmd, fd)
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
 File "/usr/lib/python3.7/ftplib.py", line 504, in storbinary
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
   with self.transfercmd(cmd, rest) as conn:
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
 File "/usr/lib/python3.7/ftplib.py", line 399, in transfercmd
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
   return self.ntransfercmd(cmd, rest)[0]
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
 File "/usr/lib/python3.7/ftplib.py", line 365, in ntransfercmd
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
   resp = self.sendcmd(cmd)
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
 File "/usr/lib/python3.7/ftplib.py", line 273, in sendcmd
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
   return self.getresp()
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
 File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
   raise error_perm(resp)
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
   ftplib.error_perm: 550 Requested action not taken. File unavailable 
 (e.g., file not found, no access).
 Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
 ftpgenerator: Upload failed
 Sep 15 14:46:14 Homeserver weewx[573] DEBUG weewx.reportengine: Report 
 'RSYNC' not enabled. Skipping.
 Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: 
 (Service) MessageCallbackProvider data-> incoming topic: 
 Jettystation/Watertemp, QOS: 0, retain: 0, payload: b'14.50'
 Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: 
 (Service) TopicManager data-> incoming Jettystation/Watertemp: extraTemp1: 
 14.5



 -- 
 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/ab759762-1149-47e8-bb73-911d61611c23n%40googlegroups.com
  
 

Re: [weewx-user] Re: FTP failure

2022-09-15 Thread gjr80
Steve,

>From what I can see of your SteelSeries Gauges it looks as if the WeeWX 
data file, gauge-data.txt, is not being uploaded to your site. I had a poke 
around on your site and could not find gauge-data.txt in any of the obvious 
locations. As Vince said this is unlikely to have anything to do with your 
host account password. To troubleshoot further we need to know how 
gauge-data.txt is being transferred to the DreamWorks server, from previous 
threads I gather you are still using my realtime gauge-data extension 
 to generate 
gauge-data.txt.  If that is the case could you post the [RealtimeGaugeData] 
stanza from weewx.conf, check before posting for any sensitive info in that 
stanza, I do not expect there are any account names or passwords but there 
may be API keys. If so just blank them out before posting.

You might want to also have a look in the WeeWX log, if upload/transfer of 
gauge-data.txt is failing there should be an indication in the log. Try 
setting debug = 1 then restart WeeWX and check the log for errors.

Also, let's check that the realtime gauge-data extension is indeed being 
loaded. Can you post the startup log extract (with debug = 1) from when 
WeeWX starts through until a couple of report cycles have completed.

Gary
On Friday, 16 September 2022 at 03:19:58 UTC+10 Steve2Q wrote:

> Gary..I my son granted me aux user permission on DreamHost. I was then 
> able to communicate directly with support. They found my IP had been 
> blocked, possibly for too much activity even though I have never changed 
> anything on my end (perhaps someone hacked the account?). They unblocked it 
> and a few hours later the main Weewx program is working,  however my Steel 
> gauges are not filling in properly (photokinetics.org/Weather). Its been 
> so long since I changed anything, I don't remember if there is a setting in 
> steel gauges that requires my password to DreamWorks. I did change it, and 
> changed the FTP file for weewx. I am thinking of switching from FTP to 
> Rsync for security reasons, but I dont know how that will effect other 
> parts of the program. Anyway, maybe you know where I have to make a change 
> within the rtg files and as always, I thank you for your patient help.
>
> On Tuesday, September 13, 2022 at 6:50:43 PM UTC-4 Steve2Q wrote:
>
>> I just called Hotwire (my ISP). They said no changes have been done on 
>> their end to block any IP addresses. I spoke with a tech for quite a while, 
>> and he had a suggestion; try using a VPN.
>> So I started up my VPN and now I can use either terminal program to 
>> access the host server, however, even with the VPN on Weewx still cannot 
>> upload data. However when I took a look at the directories on the host 
>> server, *some* files have been uploaded since the problem started. This 
>> all seems to point to DreamHost blocking my IP (or some other problem). 
>> Since my son has the DreamHost account, I will have to have him contact 
>> them and see what's going on. Here is a snip from the directory on 
>> DreamHost:
>> [image: image.png]
>>
>>
>> On Tue, Sep 13, 2022 at 6:26 PM gjr80  wrote:
>>
>>> Not good. Not being able to SSH into the server is suggestive of 
>>> something to do with your network/router or your host not WeeWX. Before you 
>>> said you could ftp to your host outside of WeeWX, is that still the case?
>>>
>>> Gary
>>> On Wednesday, 14 September 2022 at 07:14:16 UTC+10 Steve2Q wrote:
>>>
 Gary..I dropped the http://, and also tried re-booting my router, but 
>> it didn't make any difference. Now I can't even SSH into the host 
>> server. I 
>> am at a loss.
>>
>
 Steve
  

>>> -- 
>>> 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/Nb_3fPRRiok/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> weewx-user+...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/85671b03-fea5-4fc2-81b8-4ec5f56d3883n%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/2ed3ea7f-1b08-439f-9b57-ebaebe14b34an%40googlegroups.com.


Re: [weewx-user] Re: Weewx and API Integration

2022-09-15 Thread Anton vanNwnhzn@GMail

Please describe what you mean with


unfortunately the data is displayed incorrectly

Is scaling fitting the units listed in the API-description?
Be aware that
epoch-times are related to a specific timezone, with an offset relative 
to UTC as given under 'timeoffset'.


Anton

--
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/af165403-0c39-8077-12ed-85c88b1b6ef1%40gmail.com.


Re: [weewx-user] Re: FTP failure

2022-09-15 Thread vince
Switching to rsync from ftp will give you much more reliable and quicker 
uploads, but that has nothing to do with your ISP blocking your source 
address.  I think it is very unlikely that there is anything related to 
your ISP-side username/password required to have your gauges work.

Don't overthink things and start twisting knobs and dials blindly.  All 
you're doing is uploading pre-generated files from your weewx site to your 
Internet site.

-- 
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/bb73ac17-928a-4a4c-bd28-64394c0e76a9n%40googlegroups.com.


Re: [weewx-user] Re: FTP failure

2022-09-15 Thread Warren Gill
You will probably find (as I have) that rsync works *much* better than FTP.
The protocol is cleaner and more secure. The biggest benefit is that rsync
sends only the bits that changed, instead of ALL the bits. That means the
connection doesn't have to stay active as long, and you transfer a fraction
of the data. Plus you can set compression to even further reduce the
bandwidth requirements.

On Thu, Sep 15, 2022 at 12:20 PM Steve2Q  wrote:

> Gary..I my son granted me aux user permission on DreamHost. I was then
> able to communicate directly with support. They found my IP had been
> blocked, possibly for too much activity even though I have never changed
> anything on my end (perhaps someone hacked the account?). They unblocked it
> and a few hours later the main Weewx program is working,  however my Steel
> gauges are not filling in properly (photokinetics.org/Weather). Its been
> so long since I changed anything, I don't remember if there is a setting in
> steel gauges that requires my password to DreamWorks. I did change it, and
> changed the FTP file for weewx. I am thinking of switching from FTP to
> Rsync for security reasons, but I dont know how that will effect other
> parts of the program. Anyway, maybe you know where I have to make a change
> within the rtg files and as always, I thank you for your patient help.
>
> On Tuesday, September 13, 2022 at 6:50:43 PM UTC-4 Steve2Q wrote:
>
>> I just called Hotwire (my ISP). They said no changes have been done on
>> their end to block any IP addresses. I spoke with a tech for quite a while,
>> and he had a suggestion; try using a VPN.
>> So I started up my VPN and now I can use either terminal program to
>> access the host server, however, even with the VPN on Weewx still cannot
>> upload data. However when I took a look at the directories on the host
>> server, *some* files have been uploaded since the problem started. This
>> all seems to point to DreamHost blocking my IP (or some other problem).
>> Since my son has the DreamHost account, I will have to have him contact
>> them and see what's going on. Here is a snip from the directory on
>> DreamHost:
>> [image: image.png]
>>
>>
>> On Tue, Sep 13, 2022 at 6:26 PM gjr80  wrote:
>>
>>> Not good. Not being able to SSH into the server is suggestive of
>>> something to do with your network/router or your host not WeeWX. Before you
>>> said you could ftp to your host outside of WeeWX, is that still the case?
>>>
>>> Gary
>>> On Wednesday, 14 September 2022 at 07:14:16 UTC+10 Steve2Q wrote:
>>>
 Gary..I dropped the http://, and also tried re-booting my router, but
>> it didn't make any difference. Now I can't even SSH into the host 
>> server. I
>> am at a loss.
>>
>
 Steve


>>> --
>>> 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/Nb_3fPRRiok/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> weewx-user+...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/85671b03-fea5-4fc2-81b8-4ec5f56d3883n%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/b65e086a-48fa-4282-b30a-ae54e138d765n%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/CA%2Bz%2BvD7L4Y75g-Ys5ibQCa5TtTRpejf9x%2BKnZiNP9GF2P0jW7A%40mail.gmail.com.


Re: [weewx-user] Re: FTP failure

2022-09-15 Thread Steve2Q
Gary..I my son granted me aux user permission on DreamHost. I was then able 
to communicate directly with support. They found my IP had been blocked, 
possibly for too much activity even though I have never changed anything on 
my end (perhaps someone hacked the account?). They unblocked it and a few 
hours later the main Weewx program is working,  however my Steel gauges are 
not filling in properly (photokinetics.org/Weather). Its been so long since 
I changed anything, I don't remember if there is a setting in steel gauges 
that requires my password to DreamWorks. I did change it, and changed the 
FTP file for weewx. I am thinking of switching from FTP to Rsync for 
security reasons, but I dont know how that will effect other parts of the 
program. Anyway, maybe you know where I have to make a change within the 
rtg files and as always, I thank you for your patient help.

On Tuesday, September 13, 2022 at 6:50:43 PM UTC-4 Steve2Q wrote:

> I just called Hotwire (my ISP). They said no changes have been done on 
> their end to block any IP addresses. I spoke with a tech for quite a while, 
> and he had a suggestion; try using a VPN.
> So I started up my VPN and now I can use either terminal program to access 
> the host server, however, even with the VPN on Weewx still cannot upload 
> data. However when I took a look at the directories on the host server, 
> *some* files have been uploaded since the problem started. This all seems 
> to point to DreamHost blocking my IP (or some other problem). Since my son 
> has the DreamHost account, I will have to have him contact them and see 
> what's going on. Here is a snip from the directory on DreamHost:
> [image: image.png]
>
>
> On Tue, Sep 13, 2022 at 6:26 PM gjr80  wrote:
>
>> Not good. Not being able to SSH into the server is suggestive of 
>> something to do with your network/router or your host not WeeWX. Before you 
>> said you could ftp to your host outside of WeeWX, is that still the case?
>>
>> Gary
>> On Wednesday, 14 September 2022 at 07:14:16 UTC+10 Steve2Q wrote:
>>
>>> Gary..I dropped the http://, and also tried re-booting my router, but it 
> didn't make any difference. Now I can't even SSH into the host server. I 
> am 
> at a loss.
>

>>> Steve
>>>  
>>>
>> -- 
>> 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/Nb_3fPRRiok/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> weewx-user+...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/85671b03-fea5-4fc2-81b8-4ec5f56d3883n%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/b65e086a-48fa-4282-b30a-ae54e138d765n%40googlegroups.com.


Re: [weewx-user] FTP upload Problem

2022-09-15 Thread Steve2Q
Peter..I had the exact same problem with DreamHost. For some reason they 
blocked my IP. They unblocked it yesterday afternoon, and FTP started 
working a few hours later.


On Thursday, September 15, 2022 at 9:58:56 AM UTC-4 PeterGill wrote:

> Thanks for the quick answer. Sorry for a stupid follow up question - how 
> do I make sure the right access permissions are set?
>
>
> On Thursday, September 15, 2022 at 3:52:21 PM UTC+2 tke...@gmail.com 
> wrote:
>
>> I don't know why it would have changed, but make sure you have access 
>> permissions to whatever directory you are trying to upload to. 
>>
>> On Thu, Sep 15, 2022 at 6:39 AM PeterGill  wrote:
>>
>>> Hi,
>>>
>>> Suddenly and out of the blue my ftp upload stopped working. The html 
>>> files are generated as expected in /var/www/html/weewx and the file 
>>> "celestial.html" referenced in the log extract below certainly exist in the 
>>> library and opens correctly in Chrome.
>>>
>>> Of course reboot has been tried.
>>>
>>> Any help would be highly appreciated!
>>>
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weeutil.ftpupload: Failed 
>>> uploading /var/www/html/weewx/celestial.html to server ftp.myurl.se. 
>>> Reason: '550 Requested action not taken. File unavailable (e.g., file not 
>>> found, no access).'
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>> ftpgenerator: (2): caught exception '': 550 
>>> Requested action not taken. File unavailable (e.g., file not found, no 
>>> access).
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>>   Traceback (most recent call last):
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>> File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>>   n = ftp_data.run()
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>> File "/usr/share/weewx/weeutil/ftpupload.py", line 178, in run
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>>   ftp_server.storbinary(stor_cmd, fd)
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>> File "/usr/lib/python3.7/ftplib.py", line 504, in storbinary
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>>   with self.transfercmd(cmd, rest) as conn:
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>> File "/usr/lib/python3.7/ftplib.py", line 399, in transfercmd
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>>   return self.ntransfercmd(cmd, rest)[0]
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>> File "/usr/lib/python3.7/ftplib.py", line 365, in ntransfercmd
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>>   resp = self.sendcmd(cmd)
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>> File "/usr/lib/python3.7/ftplib.py", line 273, in sendcmd
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>>   return self.getresp()
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>> File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>>   raise error_perm(resp)
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>>   ftplib.error_perm: 550 Requested action not taken. File unavailable 
>>> (e.g., file not found, no access).
>>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>> ftpgenerator: Upload failed
>>> Sep 15 14:46:14 Homeserver weewx[573] DEBUG weewx.reportengine: Report 
>>> 'RSYNC' not enabled. Skipping.
>>> Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: 
>>> (Service) MessageCallbackProvider data-> incoming topic: 
>>> Jettystation/Watertemp, QOS: 0, retain: 0, payload: b'14.50'
>>> Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: 
>>> (Service) TopicManager data-> incoming Jettystation/Watertemp: extraTemp1: 
>>> 14.5
>>>
>>>
>>>
>>> -- 
>>> 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/ab759762-1149-47e8-bb73-911d61611c23n%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

Re: [weewx-user] FTP upload Problem

2022-09-15 Thread PeterGill
Thanks for the quick answer. Sorry for a stupid follow up question - how do 
I make sure the right access permissions are set?


On Thursday, September 15, 2022 at 3:52:21 PM UTC+2 tke...@gmail.com wrote:

> I don't know why it would have changed, but make sure you have access 
> permissions to whatever directory you are trying to upload to. 
>
> On Thu, Sep 15, 2022 at 6:39 AM PeterGill  wrote:
>
>> Hi,
>>
>> Suddenly and out of the blue my ftp upload stopped working. The html 
>> files are generated as expected in /var/www/html/weewx and the file 
>> "celestial.html" referenced in the log extract below certainly exist in the 
>> library and opens correctly in Chrome.
>>
>> Of course reboot has been tried.
>>
>> Any help would be highly appreciated!
>>
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weeutil.ftpupload: Failed 
>> uploading /var/www/html/weewx/celestial.html to server ftp.myurl.se. 
>> Reason: '550 Requested action not taken. File unavailable (e.g., file not 
>> found, no access).'
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> ftpgenerator: (2): caught exception '': 550 
>> Requested action not taken. File unavailable (e.g., file not found, no 
>> access).
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>   Traceback (most recent call last):
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>   n = ftp_data.run()
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> File "/usr/share/weewx/weeutil/ftpupload.py", line 178, in run
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>   ftp_server.storbinary(stor_cmd, fd)
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> File "/usr/lib/python3.7/ftplib.py", line 504, in storbinary
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>   with self.transfercmd(cmd, rest) as conn:
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> File "/usr/lib/python3.7/ftplib.py", line 399, in transfercmd
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>   return self.ntransfercmd(cmd, rest)[0]
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> File "/usr/lib/python3.7/ftplib.py", line 365, in ntransfercmd
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>   resp = self.sendcmd(cmd)
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> File "/usr/lib/python3.7/ftplib.py", line 273, in sendcmd
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>   return self.getresp()
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>   raise error_perm(resp)
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>>   ftplib.error_perm: 550 Requested action not taken. File unavailable 
>> (e.g., file not found, no access).
>> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
>> ftpgenerator: Upload failed
>> Sep 15 14:46:14 Homeserver weewx[573] DEBUG weewx.reportengine: Report 
>> 'RSYNC' not enabled. Skipping.
>> Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: (Service) 
>> MessageCallbackProvider data-> incoming topic: Jettystation/Watertemp, QOS: 
>> 0, retain: 0, payload: b'14.50'
>> Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: (Service) 
>> TopicManager data-> incoming Jettystation/Watertemp: extraTemp1: 14.5
>>
>>
>>
>> -- 
>> 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/ab759762-1149-47e8-bb73-911d61611c23n%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/ad135206-305b-409d-85c8-c9570351c25an%40googlegroups.com.


Re: [weewx-user] FTP upload Problem

2022-09-15 Thread Tom Keffer
I don't know why it would have changed, but make sure you have access
permissions to whatever directory you are trying to upload to.

On Thu, Sep 15, 2022 at 6:39 AM PeterGill  wrote:

> Hi,
>
> Suddenly and out of the blue my ftp upload stopped working. The html files
> are generated as expected in /var/www/html/weewx and the file
> "celestial.html" referenced in the log extract below certainly exist in the
> library and opens correctly in Chrome.
>
> Of course reboot has been tried.
>
> Any help would be highly appreciated!
>
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weeutil.ftpupload: Failed
> uploading /var/www/html/weewx/celestial.html to server ftp.myurl.se.
> Reason: '550 Requested action not taken. File unavailable (e.g., file not
> found, no access).'
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
> ftpgenerator: (2): caught exception '': 550
> Requested action not taken. File unavailable (e.g., file not found, no
> access).
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
>   Traceback (most recent call last):
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
> File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
>   n = ftp_data.run()
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
> File "/usr/share/weewx/weeutil/ftpupload.py", line 178, in run
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
>   ftp_server.storbinary(stor_cmd, fd)
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
> File "/usr/lib/python3.7/ftplib.py", line 504, in storbinary
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
>   with self.transfercmd(cmd, rest) as conn:
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
> File "/usr/lib/python3.7/ftplib.py", line 399, in transfercmd
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
>   return self.ntransfercmd(cmd, rest)[0]
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
> File "/usr/lib/python3.7/ftplib.py", line 365, in ntransfercmd
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
>   resp = self.sendcmd(cmd)
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
> File "/usr/lib/python3.7/ftplib.py", line 273, in sendcmd
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
>   return self.getresp()
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
> File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
>   raise error_perm(resp)
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
>   ftplib.error_perm: 550 Requested action not taken. File unavailable
> (e.g., file not found, no access).
> Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine:
> ftpgenerator: Upload failed
> Sep 15 14:46:14 Homeserver weewx[573] DEBUG weewx.reportengine: Report
> 'RSYNC' not enabled. Skipping.
> Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: (Service)
> MessageCallbackProvider data-> incoming topic: Jettystation/Watertemp, QOS:
> 0, retain: 0, payload: b'14.50'
> Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: (Service)
> TopicManager data-> incoming Jettystation/Watertemp: extraTemp1: 14.5
>
>
>
> --
> 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/ab759762-1149-47e8-bb73-911d61611c23n%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/CAPq0zEBPHYTohOpDQ7YzJqe%3DbKyhXDNjS7u3ne%3DxnMRQXCTd0w%40mail.gmail.com.


Re: [weewx-user] Re: Using Multiple MySQL databases

2022-09-15 Thread Seth Ratner
Thanks Doug and Vince,

It looks like the best solution is MySQL replication. I had been using the
backup option without realizing replication was built in. This will be more
than adequate, and will full account for the internet going in and out
between the locations.

I also appreciate the tip on the extensions. I think the forecast one will
be useful in my integrations with Home Assistant.

Cheers!

On Thu, Sep 15, 2022 at 7:11 AM Doug Jenkins  wrote:

> Seth:
>
> I think you have a couple of options to choose from. One concern I would
> have with MQTT is that it always publishes the latest record, so if your
> farm location is down for 1 hour, your remote will not get the records up
> to the last archive.
>
> thinking about your use case now, It may make sense to setup the station
> on SQLite and rsync the database to your remote location after the archive
> period. that way if your farm location lost connection, you would know
> based on the last archive record at home and once you have a connection
> again, you would get all the data.
>
> here is a wiki article on the github weewx repo that kind of explains this
> : Using the RSYNC skin as a backup solution · weewx/weewx Wiki
> (github.com)
> 
>
> To answer your question about my other databases, for forecast and AQI, as
> Vince indicated earlier, there are a host of extensions available. The one
> I use for forecast is Weewx-Forecast by Matthew Wall ( 
> matthewwall/weewx-forecast:
> forecasting extension for weewx (github.com)
> ) and I use a AQI
> extension to pull from my Davis Airlink AQI device ( 
> chaunceygardiner/weewx-airlink:
> WeeWX extension to support Davis AirLink air quality sensor. (github.com)
> )
>
> hope this helps!
>
> Doug Jenkins
>
> On Wednesday, September 14, 2022 at 9:10:40 PM UTC-4 vince wrote:
>
>> On Wednesday, September 14, 2022 at 4:47:53 PM UTC-7 Seth Ratner wrote:
>>
>>> But I also run various programs at home that reference the archive, and
>>> they won't work when the WeeWx host has lost internet.
>>>
>> So I need two copies of the archive available at all times, one for each
>>> location.
>>>
>>
>> Still unclear why without knowing what you're running at the non-weewx
>> site.   Can you run that on the weewx host and upload the results to home
>> occasionally ?   Does the non-weewx site need to be totally up to date
>> always ? Is your internet 'slow' in terms of bandwidth or just unstable ?
>>
>> You're jumping to a solution but not really explaining the problem(s) and
>> why you have a split setup.
>>
>> --
> 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/PPGSbaoX_ns/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/9e98036d-592b-4ff4-8c7c-dc9ecbe3a7ffn%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/CAHTssjPOGQeUnOwUcyJd0C2k0B4z%3DZRBpUsqMkQuOXHqSXNJcg%40mail.gmail.com.


[weewx-user] FTP upload Problem

2022-09-15 Thread PeterGill
Hi,

Suddenly and out of the blue my ftp upload stopped working. The html files 
are generated as expected in /var/www/html/weewx and the file 
"celestial.html" referenced in the log extract below certainly exist in the 
library and opens correctly in Chrome.

Of course reboot has been tried.

Any help would be highly appreciated!

Sep 15 14:46:14 Homeserver weewx[573] ERROR weeutil.ftpupload: Failed 
uploading /var/www/html/weewx/celestial.html to server ftp.myurl.se. 
Reason: '550 Requested action not taken. File unavailable (e.g., file not 
found, no access).'
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
ftpgenerator: (2): caught exception '': 550 
Requested action not taken. File unavailable (e.g., file not found, no 
access).
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
  Traceback (most recent call last):
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
File "/usr/share/weewx/weewx/reportengine.py", line 331, in run
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
  n = ftp_data.run()
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
File "/usr/share/weewx/weeutil/ftpupload.py", line 178, in run
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
  ftp_server.storbinary(stor_cmd, fd)
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 504, in storbinary
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
  with self.transfercmd(cmd, rest) as conn:
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 399, in transfercmd
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
  return self.ntransfercmd(cmd, rest)[0]
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 365, in ntransfercmd
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
  resp = self.sendcmd(cmd)
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 273, in sendcmd
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
  return self.getresp()
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
File "/usr/lib/python3.7/ftplib.py", line 246, in getresp
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
  raise error_perm(resp)
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
  ftplib.error_perm: 550 Requested action not taken. File unavailable 
(e.g., file not found, no access).
Sep 15 14:46:14 Homeserver weewx[573] ERROR weewx.reportengine: 
ftpgenerator: Upload failed
Sep 15 14:46:14 Homeserver weewx[573] DEBUG weewx.reportengine: Report 
'RSYNC' not enabled. Skipping.
Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: (Service) 
MessageCallbackProvider data-> incoming topic: Jettystation/Watertemp, QOS: 
0, retain: 0, payload: b'14.50'
Sep 15 14:46:16 Homeserver weewx[573] DEBUG user.MQTTSubscribe: (Service) 
TopicManager data-> incoming Jettystation/Watertemp: extraTemp1: 14.5



-- 
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/ab759762-1149-47e8-bb73-911d61611c23n%40googlegroups.com.


Re: [weewx-user] Re: Using Multiple MySQL databases

2022-09-15 Thread Doug Jenkins
Seth:

I think you have a couple of options to choose from. One concern I would 
have with MQTT is that it always publishes the latest record, so if your 
farm location is down for 1 hour, your remote will not get the records up 
to the last archive.

thinking about your use case now, It may make sense to setup the station on 
SQLite and rsync the database to your remote location after the archive 
period. that way if your farm location lost connection, you would know 
based on the last archive record at home and once you have a connection 
again, you would get all the data.

here is a wiki article on the github weewx repo that kind of explains this 
: Using the RSYNC skin as a backup solution · weewx/weewx Wiki (github.com) 


To answer your question about my other databases, for forecast and AQI, as 
Vince indicated earlier, there are a host of extensions available. The one 
I use for forecast is Weewx-Forecast by Matthew Wall ( 
matthewwall/weewx-forecast: 
forecasting extension for weewx (github.com) 
) and I use a AQI extension 
to pull from my Davis Airlink AQI device ( chaunceygardiner/weewx-airlink: 
WeeWX extension to support Davis AirLink air quality sensor. (github.com) 
) 

hope this helps!

Doug Jenkins

On Wednesday, September 14, 2022 at 9:10:40 PM UTC-4 vince wrote:

> On Wednesday, September 14, 2022 at 4:47:53 PM UTC-7 Seth Ratner wrote:
>
>> But I also run various programs at home that reference the archive, and 
>> they won't work when the WeeWx host has lost internet. 
>>
> So I need two copies of the archive available at all times, one for each 
>> location. 
>>
>
> Still unclear why without knowing what you're running at the non-weewx 
> site.   Can you run that on the weewx host and upload the results to home 
> occasionally ?   Does the non-weewx site need to be totally up to date 
> always ? Is your internet 'slow' in terms of bandwidth or just unstable ?
>
> You're jumping to a solution but not really explaining the problem(s) and 
> why you have a split setup.
>
>

-- 
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/9e98036d-592b-4ff4-8c7c-dc9ecbe3a7ffn%40googlegroups.com.