Re: [weewx-user] Forecast extension for NWS failing
Re-installed the forecast extension. Problem solved. David Do the right thing. It will gratify some people and astonish the rest. --Mark Twain. David Barto ba...@kdbarto.org -- 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/E3F31D5C-C629-4863-9410-A9A9C53B8E11%40kdbarto.org.
Re: [weewx-user] Forecast extension for NWS failing
No issue here on 4.10.2 with that NWS config. Sep 23 17:57:17 judygirldog64 weewx[809073] INFO user.forecast: MainThread: NWS: forecast version 3.4.0b12Sep 23 17:57:17 judygirldog64 weewx[809073] INFO user.forecast: MainThread: NWS: interval=10800 max_age=604800 lid=CAZ043 lid_desc=Miramar-San Diego CA foid=SGXSep 23 17:57:17 judygirldog64 weewx[809073] INFO user.forecast: MainThread: XTide: forecast version 3.4.0b12Sep 23 17:57:17 judygirldog64 weewx[809073] INFO user.forecast: MainThread: XTide: interval=1209600 max_age=2419200 location='Palo Alto Yacht Harbor, San Francisco Bay, California' duration=2419200Sep 23 18:00:03 judygirldog64 weewx[809073] INFO user.forecast: NWSThread: NWS: downloading forecast from 'http://forecast.weather.gov/product.php?site=NWS&product=PFM&format=txt&issuedby=SGX'Sep 23 18:00:03 judygirldog64 weewx[809073] INFO user.forecast: XTideThread: XTide: generating tides from 2023-09-23 00:00:00 PDT (1695452400) to 2023-10-21 00:00:00 PDT (1697871600)Sep 23 18:00:03 judygirldog64 weewx[809073] INFO user.forecast: NWSThread: NWS: got 40 forecast records for Miramar-San Diego CA 32.87N 117.14W Elev. 482 ftSep 23 18:00:04 judygirldog64 weewx[809073] INFO user.forecast: NWSThread: NWS: saved 40 forecast recordsSep 23 18:00:04 judygirldog64 weewx[809073] INFO user.forecast: NWSThread: NWS: deleted forecasts prior to 1694912404Sep 23 18:00:04 judygirldog64 weewx[809073] INFO user.forecast: XTideThread: XTide: saved 108 forecast recordsSep 23 18:00:04 judygirldog64 weewx[809073] INFO user.forecast: XTideThread: XTide: deleted forecasts prior to 1693098004I think the next step is to do a proper bug report with a sanitized weewx.conf and a log from startup through hitting the issue.On Sep 23, 2023, at 5:46 PM, David Barto wrote:Weewx.conf: [[NWS]] lid = "CAZ043" foid = "SGX" lid_desc = "Miramar-San Diego CA"On Sep 23, 2023, at 5:44 PM, 'John Kline' via weewx-user wrote:Send exactly what’s in the NWS section and I’ll try it.On Sep 23, 2023, at 5:12 PM, David Barto wrote:4.10.2, fully up to date as far as I’m aware.This was working, and when I transferred to the new MacMini, I brought over all the config settings, added in the forecast information and only the NWS is failing. Wunderground worksAeris worksCould it be something in the code itself? "not enough arguments for format string” makes me think that there is a python code error. (*) David* Not a python expert.On Sep 22, 2023, at 1:59 PM, 'John Kline' via weewx-user wrote:What version of WeeWX?On Sep 22, 2023, at 1:52 PM, David Barto wrote:All the bindings appear correct as noted.Stopped, removed, and started weewx as suggested.Error persists. (Dang) DavidOn Sep 22, 2023, at 11:49 AM, 'John Kline' via weewx-user wrote:It looks like you are trying to store a forecast in the weewx database. What do you have for a binding in the [Forecast] section of weewx.conf? It should look like this:data_binding = forecast_bindingAlso, under [DataBindings] in weewx.conf, you should have: [[forecast_binding]] manager = weewx.manager.Manager schema = user.forecast.schema table_name = archive database = forecast_sqliteIf all looks correct, stop weewx, delete the forecast.sdb file in the /archive directory and start weewx. Do you still have the issue?JohnOn Sep 22, 2023, at 10:52 AM, David Barto wrote:I upgraded my MacMini to a newer version and installed from scratch.Getting this error for the NWS forecast:2023-09-22 02:45:16 weewx[820] ERROR user.forecast: NWSThread: NWS: forecast failure: not enough arguments for format stringThe forecast skin I used was the one Tom recommended: https://github.com/chaunceygardiner/weewx-forecastSuggestions? David2023-09-22 02:45:16 weewx[820] DEBUG weewx.manager: Daily summary version is 4.02023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label 'CAZ043-221200'2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label 'MIRAMAR-SAN DI'2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label '32.87N 117.14W'2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label ''2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label 'DATE'2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label ''2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label ''2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label ''2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label 'DATE'2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label ''2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label ''2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: forecast matrix: {'lid': 'CAZ043', 'desc': 'Miramar-San Diego CA', 'location': '32.87N 117.14W Elev. 482 ft', 'issued_ts': 1695328920
Re: [weewx-user] Forecast extension for NWS failing
Weewx.conf: [[NWS]] lid = "CAZ043" foid = "SGX" lid_desc = "Miramar-San Diego CA" > On Sep 23, 2023, at 5:44 PM, 'John Kline' via weewx-user > wrote: > > Send exactly what’s in the NWS section and I’ll try it. > >> On Sep 23, 2023, at 5:12 PM, David Barto wrote: >> >> 4.10.2, fully up to date as far as I’m aware. >> >> This was working, and when I transferred to the new MacMini, I brought over >> all the config settings, added in the forecast information and only the NWS >> is failing. >> Wunderground works >> Aeris works >> >> Could it be something in the code itself? "not enough arguments for format >> string” makes me think that there is a python code error. (*) >> >> David >> >> * Not a python expert. >> >> >>> On Sep 22, 2023, at 1:59 PM, 'John Kline' via weewx-user >>> wrote: >>> >>> What version of WeeWX? >>> On Sep 22, 2023, at 1:52 PM, David Barto wrote: All the bindings appear correct as noted. Stopped, removed, and started weewx as suggested. Error persists. (Dang) David > On Sep 22, 2023, at 11:49 AM, 'John Kline' via weewx-user > wrote: > > It looks like you are trying to store a forecast in the weewx database. > What do you have for a binding in the [Forecast] section of weewx.conf? > It should look like this: > > data_binding = forecast_binding > > Also, under [DataBindings] in weewx.conf, you should have: > >[[forecast_binding]] >manager = weewx.manager.Manager >schema = user.forecast.schema >table_name = archive >database = forecast_sqlite > > If all looks correct, stop weewx, delete the forecast.sdb file in the > /archive directory and start weewx. Do you still have the > issue? > > John > >> On Sep 22, 2023, at 10:52 AM, David Barto wrote: >> >> I upgraded my MacMini to a newer version and installed from scratch. >> >> Getting this error for the NWS forecast: >> 2023-09-22 02:45:16 weewx[820] ERROR user.forecast: NWSThread: NWS: >> forecast failure: not enough arguments for format string >> >> The forecast skin I used was the one Tom recommended: >> https://github.com/chaunceygardiner/weewx-forecast >> >> Suggestions? >> >> David >> >> >> 2023-09-22 02:45:16 weewx[820] DEBUG weewx.manager: Daily summary >> version is 4.0 >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: >> ignore label 'CAZ043-221200' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: >> ignore label 'MIRAMAR-SAN DI' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: >> ignore label '32.87N 117.14W' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: >> ignore label '' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: >> ignore label 'DATE' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: >> ignore label '' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: >> ignore label '' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: >> ignore label '' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: >> ignore label 'DATE' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: >> ignore label '' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: >> ignore label '' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: >> forecast matrix: {'lid': 'CAZ043', 'desc': 'Miramar-San Diego CA', >> 'location': '32.87N 117.14W Elev. 482 ft', 'issued_ts': 1695328920, >> 'ts': [169533, 1695340800, 1695351600, 1695362400, 1695373200, >> 1695384000, 1695394800, 1695405600, 1695416400, 1695427200, 1695438000, >> 1695448800, 1695459600, 1695470400, 1695481200, 1695492000, 1695502800, >> 1695513600, 1695524400, 1695535200, 1695546000, 1695556800, 1695578400, >> 169560, 1695621600, 1695643200, 1695664800, 1695686400, 1695708000, >> 1695729600, 1695751200, 1695772800, 1695794400, 1695816000, 1695837600, >> 1695859200, 1695880800, 1695902400, 1695924000, 1695945600], 'hour': >> ['14', '17', '20', '23', '02', '05', '08', '11', '14', '17', '20', '23', >> '02', '05', '08', '11', '14', '17', '20', '23', '02', '05', '11', '17', >> '23', '05', '11', '17', '23', '05', '11', '17', '23', '05', '11', '17', >> '23', '05', '11', '17'], 'duration': [10800, 10800, 10800, 10800, 10800, >> 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, >> 10800, 10800, 10800, 10800, 10800, 10800, 10800, 21600, 21600, 21600, >> 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21
Re: [weewx-user] Forecast extension for NWS failing
Send exactly what’s in the NWS section and I’ll try it.On Sep 23, 2023, at 5:12 PM, David Barto wrote:4.10.2, fully up to date as far as I’m aware.This was working, and when I transferred to the new MacMini, I brought over all the config settings, added in the forecast information and only the NWS is failing. Wunderground worksAeris worksCould it be something in the code itself? "not enough arguments for format string” makes me think that there is a python code error. (*) David* Not a python expert.On Sep 22, 2023, at 1:59 PM, 'John Kline' via weewx-user wrote:What version of WeeWX?On Sep 22, 2023, at 1:52 PM, David Barto wrote:All the bindings appear correct as noted.Stopped, removed, and started weewx as suggested.Error persists. (Dang) DavidOn Sep 22, 2023, at 11:49 AM, 'John Kline' via weewx-user wrote:It looks like you are trying to store a forecast in the weewx database. What do you have for a binding in the [Forecast] section of weewx.conf? It should look like this:data_binding = forecast_bindingAlso, under [DataBindings] in weewx.conf, you should have: [[forecast_binding]] manager = weewx.manager.Manager schema = user.forecast.schema table_name = archive database = forecast_sqliteIf all looks correct, stop weewx, delete the forecast.sdb file in the /archive directory and start weewx. Do you still have the issue?JohnOn Sep 22, 2023, at 10:52 AM, David Barto wrote:I upgraded my MacMini to a newer version and installed from scratch.Getting this error for the NWS forecast:2023-09-22 02:45:16 weewx[820] ERROR user.forecast: NWSThread: NWS: forecast failure: not enough arguments for format stringThe forecast skin I used was the one Tom recommended: https://github.com/chaunceygardiner/weewx-forecastSuggestions? David2023-09-22 02:45:16 weewx[820] DEBUG weewx.manager: Daily summary version is 4.02023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label 'CAZ043-221200'2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label 'MIRAMAR-SAN DI'2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label '32.87N 117.14W'2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label ''2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label 'DATE'2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label ''2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label ''2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label ''2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label 'DATE'2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label ''2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label ''2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: forecast matrix: {'lid': 'CAZ043', 'desc': 'Miramar-San Diego CA', 'location': '32.87N 117.14W Elev. 482 ft', 'issued_ts': 1695328920, 'ts': [169533, 1695340800, 1695351600, 1695362400, 1695373200, 1695384000, 1695394800, 1695405600, 1695416400, 1695427200, 1695438000, 1695448800, 1695459600, 1695470400, 1695481200, 1695492000, 1695502800, 1695513600, 1695524400, 1695535200, 1695546000, 1695556800, 1695578400, 169560, 1695621600, 1695643200, 1695664800, 1695686400, 1695708000, 1695729600, 1695751200, 1695772800, 1695794400, 1695816000, 1695837600, 1695859200, 1695880800, 1695902400, 1695924000, 1695945600], 'hour': ['14', '17', '20', '23', '02', '05', '08', '11', '14', '17', '20', '23', '02', '05', '08', '11', '14', '17', '20', '23', '02', '05', '11', '17', '23', '05', '11', '17', '23', '05', '11', '17', '23', '05', '11', '17', '23', '05', '11', '17'], 'duration': [10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 10800], 'temp': ['70', '69', '64', '63', '62', '61', '62', '69', '71', '70', '65', '63', '63', '62', '63', '72', '74', '71', '63', '61', '60', '59', '71', '72', '60', '58', '72', '73', '61', '59', '71', '72', '62', '60', '73', '74', '63', '61', '72', '72'], 'dewpoint': ['60', '60', '60', '59', '59', '58', '59', '59', '59', '59', '59', '60', '60', '60', '61', '61', '61', '61', '60', '59', '59', '58', '61', '61', '59', '58', '60', '60', '59', '59', '60', '61', '59', '58', '61', '62', '61', '60', '62', '62'], 'humidity': ['71', '73', '87', '87', '90', '90', '90', '70', '66', '68', '81', '90', '90', '93', '93', '68', '64', '71', '90', '93', '96', '96', None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None], 'windDir': ['W', 'W', 'W', 'NW', 'N', 'N', 'N', 'NW', 'NW', 'NW', 'NW', 'NW', 'NW', 'N', 'N', 'NW', 'NW', 'NW', 'NW', 'NW', 'N', 'N', None, 'NW', None, 'NW', N
Re: [weewx-user] Forecast extension for NWS failing
4.10.2, fully up to date as far as I’m aware. This was working, and when I transferred to the new MacMini, I brought over all the config settings, added in the forecast information and only the NWS is failing. Wunderground works Aeris works Could it be something in the code itself? "not enough arguments for format string” makes me think that there is a python code error. (*) David * Not a python expert. > On Sep 22, 2023, at 1:59 PM, 'John Kline' via weewx-user > wrote: > > What version of WeeWX? > >> On Sep 22, 2023, at 1:52 PM, David Barto wrote: >> >> All the bindings appear correct as noted. >> >> Stopped, removed, and started weewx as suggested. >> >> Error persists. (Dang) >> >> David >> >>> On Sep 22, 2023, at 11:49 AM, 'John Kline' via weewx-user >>> wrote: >>> >>> It looks like you are trying to store a forecast in the weewx database. >>> What do you have for a binding in the [Forecast] section of weewx.conf? It >>> should look like this: >>> >>> data_binding = forecast_binding >>> >>> Also, under [DataBindings] in weewx.conf, you should have: >>> >>>[[forecast_binding]] >>>manager = weewx.manager.Manager >>>schema = user.forecast.schema >>>table_name = archive >>>database = forecast_sqlite >>> >>> If all looks correct, stop weewx, delete the forecast.sdb file in the >>> /archive directory and start weewx. Do you still have the >>> issue? >>> >>> John >>> On Sep 22, 2023, at 10:52 AM, David Barto wrote: I upgraded my MacMini to a newer version and installed from scratch. Getting this error for the NWS forecast: 2023-09-22 02:45:16 weewx[820] ERROR user.forecast: NWSThread: NWS: forecast failure: not enough arguments for format string The forecast skin I used was the one Tom recommended: https://github.com/chaunceygardiner/weewx-forecast Suggestions? David 2023-09-22 02:45:16 weewx[820] DEBUG weewx.manager: Daily summary version is 4.0 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label 'CAZ043-221200' 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label 'MIRAMAR-SAN DI' 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label '32.87N 117.14W' 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label '' 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label 'DATE' 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label '' 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label '' 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label '' 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label 'DATE' 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label '' 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label '' 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: forecast matrix: {'lid': 'CAZ043', 'desc': 'Miramar-San Diego CA', 'location': '32.87N 117.14W Elev. 482 ft', 'issued_ts': 1695328920, 'ts': [169533, 1695340800, 1695351600, 1695362400, 1695373200, 1695384000, 1695394800, 1695405600, 1695416400, 1695427200, 1695438000, 1695448800, 1695459600, 1695470400, 1695481200, 1695492000, 1695502800, 1695513600, 1695524400, 1695535200, 1695546000, 1695556800, 1695578400, 169560, 1695621600, 1695643200, 1695664800, 1695686400, 1695708000, 1695729600, 1695751200, 1695772800, 1695794400, 1695816000, 1695837600, 1695859200, 1695880800, 1695902400, 1695924000, 1695945600], 'hour': ['14', '17', '20', '23', '02', '05', '08', '11', '14', '17', '20', '23', '02', '05', '08', '11', '14', '17', '20', '23', '02', '05', '11', '17', '23', '05', '11', '17', '23', '05', '11', '17', '23', '05', '11', '17', '23', '05', '11', '17'], 'duration': [10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 10800], 'temp': ['70', '69', '64', '63', '62', '61', '62', '69', '71', '70', '65', '63', '63', '62', '63', '72', '74', '71', '63', '61', '60', '59', '71', '72', '60', '58', '72', '73', '61', '59', '71', '72', '62', '60', '73', '74', '63', '61', '72', '72'], 'dewpoint': ['60', '60', '60', '59', '59', '58', '59', '59', '59', '59', '59', '60', '60', '60', '61', '61', '61', '61', '60', '59', '59', '58', '61', '61', '59', '58', '60', '60', '59', '59', '60'
Re: [weewx-user] Forecast extension for NWS failing
What version of WeeWX?On Sep 22, 2023, at 1:52 PM, David Barto wrote:All the bindings appear correct as noted.Stopped, removed, and started weewx as suggested.Error persists. (Dang) DavidOn Sep 22, 2023, at 11:49 AM, 'John Kline' via weewx-user wrote:It looks like you are trying to store a forecast in the weewx database. What do you have for a binding in the [Forecast] section of weewx.conf? It should look like this:data_binding = forecast_bindingAlso, under [DataBindings] in weewx.conf, you should have: [[forecast_binding]] manager = weewx.manager.Manager schema = user.forecast.schema table_name = archive database = forecast_sqliteIf all looks correct, stop weewx, delete the forecast.sdb file in the /archive directory and start weewx. Do you still have the issue?JohnOn Sep 22, 2023, at 10:52 AM, David Barto wrote:I upgraded my MacMini to a newer version and installed from scratch.Getting this error for the NWS forecast:2023-09-22 02:45:16 weewx[820] ERROR user.forecast: NWSThread: NWS: forecast failure: not enough arguments for format stringThe forecast skin I used was the one Tom recommended: https://github.com/chaunceygardiner/weewx-forecastSuggestions? David2023-09-22 02:45:16 weewx[820] DEBUG weewx.manager: Daily summary version is 4.02023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label 'CAZ043-221200'2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label 'MIRAMAR-SAN DI'2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label '32.87N 117.14W'2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label ''2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label 'DATE'2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label ''2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label ''2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label ''2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label 'DATE'2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label ''2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore label ''2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: forecast matrix: {'lid': 'CAZ043', 'desc': 'Miramar-San Diego CA', 'location': '32.87N 117.14W Elev. 482 ft', 'issued_ts': 1695328920, 'ts': [169533, 1695340800, 1695351600, 1695362400, 1695373200, 1695384000, 1695394800, 1695405600, 1695416400, 1695427200, 1695438000, 1695448800, 1695459600, 1695470400, 1695481200, 1695492000, 1695502800, 1695513600, 1695524400, 1695535200, 1695546000, 1695556800, 1695578400, 169560, 1695621600, 1695643200, 1695664800, 1695686400, 1695708000, 1695729600, 1695751200, 1695772800, 1695794400, 1695816000, 1695837600, 1695859200, 1695880800, 1695902400, 1695924000, 1695945600], 'hour': ['14', '17', '20', '23', '02', '05', '08', '11', '14', '17', '20', '23', '02', '05', '08', '11', '14', '17', '20', '23', '02', '05', '11', '17', '23', '05', '11', '17', '23', '05', '11', '17', '23', '05', '11', '17', '23', '05', '11', '17'], 'duration': [10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 10800], 'temp': ['70', '69', '64', '63', '62', '61', '62', '69', '71', '70', '65', '63', '63', '62', '63', '72', '74', '71', '63', '61', '60', '59', '71', '72', '60', '58', '72', '73', '61', '59', '71', '72', '62', '60', '73', '74', '63', '61', '72', '72'], 'dewpoint': ['60', '60', '60', '59', '59', '58', '59', '59', '59', '59', '59', '60', '60', '60', '61', '61', '61', '61', '60', '59', '59', '58', '61', '61', '59', '58', '60', '60', '59', '59', '60', '61', '59', '58', '61', '62', '61', '60', '62', '62'], 'humidity': ['71', '73', '87', '87', '90', '90', '90', '70', '66', '68', '81', '90', '90', '93', '93', '68', '64', '71', '90', '93', '96', '96', None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None], 'windDir': ['W', 'W', 'W', 'NW', 'N', 'N', 'N', 'NW', 'NW', 'NW', 'NW', 'NW', 'NW', 'N', 'N', 'NW', 'NW', 'NW', 'NW', 'NW', 'N', 'N', None, 'NW', None, 'NW', None, 'NW', None, 'NW', None, 'SW', None, 'W', None, 'S', None, 'S', None, 'S'], 'windSpeed': ['9', '9', '5', '3', '2', '2', '3', '4', '8', '10', '5', '5', '6', '6', '4', '6', '10', '10', '8', '5', '5', '4', None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None], 'clouds': ['B1', 'B1', 'B1', 'OV', 'B2', 'OV', 'OV', 'OV', 'B2', 'B2', 'B2', 'B2', 'B2', 'B1', 'B1', 'SC', 'SC', 'SC', 'SC', 'B1', 'B1', 'B1', 'B1', 'FW', 'FW', 'B1', 'B1', 'FW', 'FW', 'B1', 'B1', 'FW', 'FW', 'SC', 'B1', 'FW', 'FW', 'SC', 'SC', 'FW'], 'p
Re: [weewx-user] Forecast extension for NWS failing
All the bindings appear correct as noted. Stopped, removed, and started weewx as suggested. Error persists. (Dang) David > On Sep 22, 2023, at 11:49 AM, 'John Kline' via weewx-user > wrote: > > It looks like you are trying to store a forecast in the weewx database. What > do you have for a binding in the [Forecast] section of weewx.conf? It should > look like this: > > data_binding = forecast_binding > > Also, under [DataBindings] in weewx.conf, you should have: > >[[forecast_binding]] >manager = weewx.manager.Manager >schema = user.forecast.schema >table_name = archive >database = forecast_sqlite > > If all looks correct, stop weewx, delete the forecast.sdb file in the > /archive directory and start weewx. Do you still have the issue? > > John > >> On Sep 22, 2023, at 10:52 AM, David Barto wrote: >> >> I upgraded my MacMini to a newer version and installed from scratch. >> >> Getting this error for the NWS forecast: >> 2023-09-22 02:45:16 weewx[820] ERROR user.forecast: NWSThread: NWS: >> forecast failure: not enough arguments for format string >> >> The forecast skin I used was the one Tom recommended: >> https://github.com/chaunceygardiner/weewx-forecast >> >> Suggestions? >> >> David >> >> >> 2023-09-22 02:45:16 weewx[820] DEBUG weewx.manager: Daily summary version >> is 4.0 >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore >> label 'CAZ043-221200' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore >> label 'MIRAMAR-SAN DI' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore >> label '32.87N 117.14W' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore >> label '' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore >> label 'DATE' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore >> label '' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore >> label '' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore >> label '' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore >> label 'DATE' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore >> label '' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore >> label '' >> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: >> forecast matrix: {'lid': 'CAZ043', 'desc': 'Miramar-San Diego CA', >> 'location': '32.87N 117.14W Elev. 482 ft', 'issued_ts': 1695328920, 'ts': >> [169533, 1695340800, 1695351600, 1695362400, 1695373200, 1695384000, >> 1695394800, 1695405600, 1695416400, 1695427200, 1695438000, 1695448800, >> 1695459600, 1695470400, 1695481200, 1695492000, 1695502800, 1695513600, >> 1695524400, 1695535200, 1695546000, 1695556800, 1695578400, 169560, >> 1695621600, 1695643200, 1695664800, 1695686400, 1695708000, 1695729600, >> 1695751200, 1695772800, 1695794400, 1695816000, 1695837600, 1695859200, >> 1695880800, 1695902400, 1695924000, 1695945600], 'hour': ['14', '17', '20', >> '23', '02', '05', '08', '11', '14', '17', '20', '23', '02', '05', '08', >> '11', '14', '17', '20', '23', '02', '05', '11', '17', '23', '05', '11', >> '17', '23', '05', '11', '17', '23', '05', '11', '17', '23', '05', '11', >> '17'], 'duration': [10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, >> 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, >> 10800, 10800, 10800, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, >> 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 10800], >> 'temp': ['70', '69', '64', '63', '62', '61', '62', '69', '71', '70', '65', >> '63', '63', '62', '63', '72', '74', '71', '63', '61', '60', '59', '71', >> '72', '60', '58', '72', '73', '61', '59', '71', '72', '62', '60', '73', >> '74', '63', '61', '72', '72'], 'dewpoint': ['60', '60', '60', '59', '59', >> '58', '59', '59', '59', '59', '59', '60', '60', '60', '61', '61', '61', >> '61', '60', '59', '59', '58', '61', '61', '59', '58', '60', '60', '59', >> '59', '60', '61', '59', '58', '61', '62', '61', '60', '62', '62'], >> 'humidity': ['71', '73', '87', '87', '90', '90', '90', '70', '66', '68', >> '81', '90', '90', '93', '93', '68', '64', '71', '90', '93', '96', '96', >> None, None, None, None, None, None, None, None, None, None, None, None, >> None, None, None, None, None, None], 'windDir': ['W', 'W', 'W', 'NW', 'N', >> 'N', 'N', 'NW', 'NW', 'NW', 'NW', 'NW', 'NW', 'N', 'N', 'NW', 'NW', 'NW', >> 'NW', 'NW', 'N', 'N', None, 'NW', None, 'NW', None, 'NW', None, 'NW', None, >> 'SW', None, 'W', None, 'S', None, 'S', None, 'S'], 'windSpeed': ['9', '9', >> '5', '3', '2', '2', '3', '4', '8', '10', '5', '5', '6', '6', '4', '6', '10', >> '10', '8', '5', '5', '4', None, None, None, None, None, None, None, None, >> None, None, None
Re: [weewx-user] Forecast extension for NWS failing
It looks like you are trying to store a forecast in the weewx database. What do you have for a binding in the [Forecast] section of weewx.conf? It should look like this: data_binding = forecast_binding Also, under [DataBindings] in weewx.conf, you should have: [[forecast_binding]] manager = weewx.manager.Manager schema = user.forecast.schema table_name = archive database = forecast_sqlite If all looks correct, stop weewx, delete the forecast.sdb file in the /archive directory and start weewx. Do you still have the issue? John > On Sep 22, 2023, at 10:52 AM, David Barto wrote: > > I upgraded my MacMini to a newer version and installed from scratch. > > Getting this error for the NWS forecast: > 2023-09-22 02:45:16 weewx[820] ERROR user.forecast: NWSThread: NWS: forecast > failure: not enough arguments for format string > > The forecast skin I used was the one Tom recommended: > https://github.com/chaunceygardiner/weewx-forecast > > Suggestions? > >David > > > 2023-09-22 02:45:16 weewx[820] DEBUG weewx.manager: Daily summary version is > 4.0 > 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore > label 'CAZ043-221200' > 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore > label 'MIRAMAR-SAN DI' > 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore > label '32.87N 117.14W' > 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore > label '' > 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore > label 'DATE' > 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore > label '' > 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore > label '' > 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore > label '' > 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore > label 'DATE' > 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore > label '' > 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: ignore > label '' > 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: forecast > matrix: {'lid': 'CAZ043', 'desc': 'Miramar-San Diego CA', 'location': '32.87N > 117.14W Elev. 482 ft', 'issued_ts': 1695328920, 'ts': [169533, > 1695340800, 1695351600, 1695362400, 1695373200, 1695384000, 1695394800, > 1695405600, 1695416400, 1695427200, 1695438000, 1695448800, 1695459600, > 1695470400, 1695481200, 1695492000, 1695502800, 1695513600, 1695524400, > 1695535200, 1695546000, 1695556800, 1695578400, 169560, 1695621600, > 1695643200, 1695664800, 1695686400, 1695708000, 1695729600, 1695751200, > 1695772800, 1695794400, 1695816000, 1695837600, 1695859200, 1695880800, > 1695902400, 1695924000, 1695945600], 'hour': ['14', '17', '20', '23', '02', > '05', '08', '11', '14', '17', '20', '23', '02', '05', '08', '11', '14', '17', > '20', '23', '02', '05', '11', '17', '23', '05', '11', '17', '23', '05', '11', > '17', '23', '05', '11', '17', '23', '05', '11', '17'], 'duration': [10800, > 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, > 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 10800, 21600, > 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, 21600, > 21600, 21600, 21600, 21600, 21600, 10800], 'temp': ['70', '69', '64', '63', > '62', '61', '62', '69', '71', '70', '65', '63', '63', '62', '63', '72', '74', > '71', '63', '61', '60', '59', '71', '72', '60', '58', '72', '73', '61', '59', > '71', '72', '62', '60', '73', '74', '63', '61', '72', '72'], 'dewpoint': > ['60', '60', '60', '59', '59', '58', '59', '59', '59', '59', '59', '60', > '60', '60', '61', '61', '61', '61', '60', '59', '59', '58', '61', '61', '59', > '58', '60', '60', '59', '59', '60', '61', '59', '58', '61', '62', '61', '60', > '62', '62'], 'humidity': ['71', '73', '87', '87', '90', '90', '90', '70', > '66', '68', '81', '90', '90', '93', '93', '68', '64', '71', '90', '93', '96', > '96', None, None, None, None, None, None, None, None, None, None, None, None, > None, None, None, None, None, None], 'windDir': ['W', 'W', 'W', 'NW', 'N', > 'N', 'N', 'NW', 'NW', 'NW', 'NW', 'NW', 'NW', 'N', 'N', 'NW', 'NW', 'NW', > 'NW', 'NW', 'N', 'N', None, 'NW', None, 'NW', None, 'NW', None, 'NW', None, > 'SW', None, 'W', None, 'S', None, 'S', None, 'S'], 'windSpeed': ['9', '9', > '5', '3', '2', '2', '3', '4', '8', '10', '5', '5', '6', '6', '4', '6', '10', > '10', '8', '5', '5', '4', None, None, None, None, None, None, None, None, > None, None, None, None, None, None, None, None, None, None], 'clouds': ['B1', > 'B1', 'B1', 'OV', 'B2', 'OV', 'OV', 'OV', 'B2', 'B2', 'B2', 'B2', 'B2', 'B1', > 'B1', 'SC', 'SC', 'SC', 'SC', 'B1', 'B1', 'B1', 'B1', 'FW', 'FW', 'B1', 'B1', > 'FW', 'FW', 'B1', 'B1', 'FW', 'FW', 'SC', 'B1', 'FW', 'FW', 'SC', 'SC', > 'FW'], 'pop':