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 > <weewx-user@googlegroups.com> wrote: > > Send exactly what’s in the NWS section and I’ll try it. > >> On Sep 23, 2023, at 5:12 PM, David Barto <ba...@kdbarto.org> 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 >>> <weewx-user@googlegroups.com> wrote: >>> >>> What version of WeeWX? >>> >>>> On Sep 22, 2023, at 1:52 PM, David Barto <ba...@kdbarto.org> 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 >>>>> <weewx-user@googlegroups.com> 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 >>>>> <weewx-home>/archive directory and start weewx. Do you still have the >>>>> issue? >>>>> >>>>> John >>>>> >>>>>> On Sep 22, 2023, at 10:52 AM, David Barto <ba...@kdbarto.org> 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': [1695330000, 1695340800, 1695351600, 1695362400, 1695373200, >>>>>> 1695384000, 1695394800, 1695405600, 1695416400, 1695427200, 1695438000, >>>>>> 1695448800, 1695459600, 1695470400, 1695481200, 1695492000, 1695502800, >>>>>> 1695513600, 1695524400, 1695535200, 1695546000, 1695556800, 1695578400, >>>>>> 1695600000, 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': [None, None, None, None, None, '0', None, >>>>>> None, None, '0', None, None, None, '0', None, None, None, '0', None, >>>>>> None, None, '0', None, '0', None, '0', None, '0', None, '0', None, '0', >>>>>> None, '0', None, '0', None, '0', None, '0'], 'qpf': [None, None, None, >>>>>> None, None, '0', None, None, None, '0', None, None, None, '0', None, >>>>>> None, None, '0', None, None, None, '0', None, None, None, None, None, >>>>>> None, None, None, None, None, None, None, None, None, None, None, None, >>>>>> None], 'obvis': [None, None, None, None, None, None, None, None, None, >>>>>> None, None, 'PF', 'PF', 'PF', 'PF', None, None, None, None, 'PF', 'PF', >>>>>> 'PF', None, None, None, None, None, None, None, None, None, None, None, >>>>>> None, None, None, None, None, None, None], 'tempMin': [None, None, None, >>>>>> None, None, '61', None, None, None, None, None, None, None, '62', None, >>>>>> None, None, None, None, None, None, '58', None, None, None, '58', None, >>>>>> None, None, '59', None, None, None, '60', None, None, None, '61', None, >>>>>> None], 'tempMax': [None, None, None, None, None, None, None, None, None, >>>>>> '72', None, None, None, None, None, None, None, '74', None, None, None, >>>>>> None, None, '75', None, None, None, '75', None, None, None, '75', None, >>>>>> None, None, '76', None, None, None, '75'], 'windChar': [None, None, >>>>>> None, None, None, None, None, None, None, None, None, None, None, None, >>>>>> None, None, None, None, None, None, None, None, None, 'LT', None, 'LT', >>>>>> None, 'GN', None, 'LT', None, 'LT', None, 'LT', None, 'LT', None, 'LT', >>>>>> None, 'LT']} >>>>>> 2023-09-22 02:45:16 weewx[820] ERROR user.forecast: NWSThread: NWS: >>>>>> forecast failure: not enough arguments for format string, dbm_dict: >>>>>> {'manager': 'weewx.manager.Manager', 'schema': [('method', 'VARCHAR(10) >>>>>> NOT NULL'), ('usUnits', 'INTEGER NOT NULL'), ('dateTime', 'INTEGER NOT >>>>>> NULL'), ('issued_ts', 'INTEGER NOT NULL'), ('event_ts', 'INTEGER NOT >>>>>> NULL'), ('duration', 'INTEGER'), ('location', 'VARCHAR(64)'), ('desc', >>>>>> 'VARCHAR(256)'), ('zcode', 'CHAR(1)'), ('hour', 'INTEGER'), ('tempMin', >>>>>> 'REAL'), ('tempMax', 'REAL'), ('temp', 'REAL'), ('dewpoint', 'REAL'), >>>>>> ('humidity', 'REAL'), ('windDir', 'VARCHAR(3)'), ('windSpeed', 'REAL'), >>>>>> ('windGust', 'REAL'), ('windChar', 'VARCHAR(2)'), ('clouds', >>>>>> 'VARCHAR(2)'), ('pop', 'REAL'), ('qpf', 'VARCHAR(8)'), ('qsf', >>>>>> 'VARCHAR(5)'), ('rain', 'VARCHAR(2)'), ('rainshwrs', 'VARCHAR(2)'), >>>>>> ('tstms', 'VARCHAR(2)'), ('drizzle', 'VARCHAR(2)'), ('snow', >>>>>> 'VARCHAR(2)'), ('snowshwrs', 'VARCHAR(2)'), ('flurries', 'VARCHAR(2)'), >>>>>> ('sleet', 'VARCHAR(2)'), ('frzngrain', 'VARCHAR(2)'), ('frzngdrzl', >>>>>> 'VARCHAR(2)'), ('hail', 'VARCHAR(2)'), ('obvis', 'VARCHAR(3)'), >>>>>> ('windChill', 'REAL'), ('heatIndex', 'REAL'), ('uvIndex', 'INTEGER'), >>>>>> ('airQuality', 'INTEGER'), ('hilo', 'CHAR(1)'), ('offset', 'REAL'), >>>>>> ('waveheight', 'REAL'), ('waveperiod', 'REAL')], 'table_name': >>>>>> 'archive', 'database_dict': {'database_name': 'forecast.sdb', 'driver': >>>>>> 'weedb.sqlite', 'SQLITE_ROOT': '/Users/Shared/weewx/archive'}} >>>>>> 2023-09-22 02:45:16 weewx[820] DEBUG user.forecast: NWSThread: NWS: >>>>>> terminating thread >>>>>> >>>>>> >>>>>> Even if the voices are not real >>>>>> they have some pretty good ideas >>>>>> >>>>>> 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/85A9F534-48B5-450F-A8F8-E7B0290597AF%40kdbarto.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/220CFF2C-7028-44F0-81D4-9C311AF54FEB%40johnkline.com. >>>> >>>> For every complex problem there is an answer that is clear, simple, and >>>> wrong. >>>> --H L Mencken >>>> 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 >>>> <mailto:weewx-user+unsubscr...@googlegroups.com>. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/weewx-user/EF88C6F2-33C8-4107-A874-5D87D21F53E8%40kdbarto.org >>>> >>>> <https://groups.google.com/d/msgid/weewx-user/EF88C6F2-33C8-4107-A874-5D87D21F53E8%40kdbarto.org?utm_medium=email&utm_source=footer>. >>> >>> >>> -- >>> You received this message because you are subscribed to the Google Groups >>> "weewx-user" group. >>> To unsubscribe from this group and stop receiving emails from it, send an >>> email to weewx-user+unsubscr...@googlegroups.com >>> <mailto:weewx-user+unsubscr...@googlegroups.com>. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/weewx-user/7CA7BB93-04F2-4DE0-BD77-AF17865B7945%40johnkline.com >>> >>> <https://groups.google.com/d/msgid/weewx-user/7CA7BB93-04F2-4DE0-BD77-AF17865B7945%40johnkline.com?utm_medium=email&utm_source=footer>. >> >> Two things are infinite: the universe and human stupidity; and I'm not sure >> about the universe. >> --Albert Einstein >> 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 >> <mailto:weewx-user+unsubscr...@googlegroups.com>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/weewx-user/68723233-423F-4FD6-82D1-AFBAFE435453%40kdbarto.org >> >> <https://groups.google.com/d/msgid/weewx-user/68723233-423F-4FD6-82D1-AFBAFE435453%40kdbarto.org?utm_medium=email&utm_source=footer>. > > > -- > You received this message because you are subscribed to the Google Groups > "weewx-user" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to weewx-user+unsubscr...@googlegroups.com > <mailto:weewx-user+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/BF18D447-DD85-4672-AD99-FD1F5DCAF3F9%40johnkline.com > > <https://groups.google.com/d/msgid/weewx-user/BF18D447-DD85-4672-AD99-FD1F5DCAF3F9%40johnkline.com?utm_medium=email&utm_source=footer>. The pessimist complains about the wind; the optimist expects it to change; the realist adjusts the sails. --William Arthur Ward 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/F7543B0B-68BA-4592-B382-04B3CC70FA30%40kdbarto.org.