A new version of the driver is now in the GitHib repository (https://github.com/AussieSusan/HP1000).
Ths version has been used with V4.10 of WeeWx but is intended for use with V5. As mentioned above, there was a 'bug' in the previous version that only came to light recently (in my case since the start of 2024) when restarting the driver. Normally the driver checks for historical records from the console but for 2024 the number of historical records was given as 0. This was not a situation I anticipated and therefore handled - it resulted in a call being made to read records from the console that never came. Hence WeeWx hung and appeared to be unresponsive. This has not been fixed in that all reads now timeout if necessary and also if 0 historical records are reported then an estimate is made based on the 'current' day of the year plus handing cases where an invalid historical record is requested. Please let me know if you run into any issues with the new version of the driver. Susan On Monday 22 January 2024 at 1:04:05 pm UTC+11 Susan Mackay wrote: > I'm not sure what happened but I did reply to this topic a few days ago > with an explanation of what was happening. So here I go again.... > > Firstly - please DON'T delete the historical records from the console. > While that does get WeeWx to again read the current data, it is not > necessary given the faults I've found. As long as the console is powered on > and working, it will be storing the historical records that can be > retrieved by the fixed driver. True, you won't get the data into WeeWx > right now but you will soon. > > The issue seems to stem from the HP1000 console firmware showing 0 > historical records for 2024 - there are valid record counts for previous > years (at least on my console back to 2017). > > Of course these are only used when WeeWx tries to 'catch up' any > historical records it has missed since the last time it was connected to > the console. (Normal, on-going data is not affected.) > > When the driver saw the '0' record count, it was not expecting this and > mishandled the requests for historical record. Basically it sent a request > that was never responded to the console but it also never timed out while > waiting for that response. The historical are actually there but just not > reported by the console when asked for the year-by-year historical record > count. > > I now detect when that situation arises and use the current date to > 'guess' at the number of records. I also allow for a timeout if there is > not response from the console. All this seems to work OK (at least for me). > > I'm now looking at the code changes needed to make the driver V5 > compatible and I'm hoping the new driver will be available in the next few > days. > > Susan > > On Wednesday 17 January 2024 at 8:32:59 am UTC+11 Susan Mackay wrote: > >> A problem has recently been found with the HP1000 (WS1001, XC0422) driver. >> While the driver will continue to work correctly, if it is restarted then >> it will hand trying to retrieve the 'historical' records from the console.. >> (A 'solution' has been mentioned by some that involves deleting the >> historical records form the console and relying on the data held in the >> WeeWx database. I don't recommend this approach.) >> I am looking into the issue and I will post an updated version of the >> driver as soon as I can. >> I also will bring the driver into compliance with the WeeWx V5 driver >> requirements. I've heard that it does work under V5 but that it is missing >> something for a new installation. >> Susan >> > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/8f91b513-27e6-48f3-9677-787ada56c37dn%40googlegroups.com.
