Silly me for ever doubting you!! OK - have deleted entry in [StationRegistry] so that [Station] entry will be used.
Thanks for the heads-up on this. On Thursday, 15 November 2018 15:29:09 UTC+2, gjr80 wrote: > > I meant exactly what I said. > > The station registry uploader will attempt to get station_url from > [StationRegistry] in the first instance. If station_url does indeed exist > under [StationRegistry] then that is what is uploaded to the station > registry. In this case the station_url setting under [Station] is > irrelevant. > > If there is no station_url setting under [StationRegistry] then the > uploader will fallback to the station_url setting under [Station] and > that is what will be uploaded to the station registry. > > You can delete whatever you want as long as at least one exists (if > neither exist then the station registry uploader will not upload). Of > course if you delete station_url under [Station] then anywhere else in > weeWX/your reports etc that use station_url to get/process/display your > station URL will likely fail. In short, station_url under > [StationRegistry] is only used by the the station registry uploader; > station_url under [Station] may be used by the station registry uploader > and it may be used elsewhere. For these reasons if it were me I would drop > the station_url from [StationRegistry] and retain it under [Station]. > This is what has been done in the current (since 2.6.0) weewx.conf. > > The only reason I can think for keeping both is if for some unfathomable > reason you want the two to be different, ie one URL to go to the station > registry and a different URL to be used elsewhere in reports etc. I suppose > you might also want to keep both if you are a hoarder :) > > Gary > > > On Thursday, 15 November 2018 23:12:52 UTC+10, Andrew Milner wrote: >> >> Gary >> I take it that you meant to say I could safely remove the entry under >> [station] - or did you really mean the entry under [stationregistry] as you >> said?? Your answer was very very ambiguous and confusing. Where is it* >> supposed* to be?? As StationRegistry is the first one checked I am >> assuming that is indeed the* correct* place with [station] just being >> used in a fall back position. >> >> >> >> On Thursday, 15 November 2018 14:21:18 UTC+2, gjr80 wrote: >>> >>> Andrew, >>> >>> When the station registry was first implemented in v2.5.0 station_url >>> was included in both. As far as I can see somewhere between 2.6.0a6 and >>> 2.6.0b2 the entry under [StationRegistry] was removed. Perhaps somehow >>> your upgrades to 2.6.0 and beyond did not remove the [StationRegistry] >>> entry and it has propagated through ever since. >>> >>> You can safely delete the entry under [StationRegistry] as since 2.6.0 >>> the code will attempt to get station_url from [StationRegistry] but >>> falls back to [Station] if there is no station_url in [StationRegistry]. >>> Of course you can leave it there if you want, but in that case the >>> [StationRegistry] entry will be used when publishing to the station >>> registry. >>> >>> Gary >>> >>> On Thursday, 15 November 2018 21:47:12 UTC+10, Andrew Milner wrote: >>>> >>>> Why is station url in two places in weewx.conf - once in the [station] >>>> section, and again in [StdRESTFul][[StationRegistry]] section?? >>>> >>>> Which one is used for what purpose?? >>>> >>>> >>>> -- 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]. For more options, visit https://groups.google.com/d/optout.
