at risk of hijacking this thread, there is only one copy of user/extensions.py, used in all instances of weewx (if you are running multiple instances off same code base). is there an easy way to distinguish instances from within user/extensions.py? ⊣ Graham Eddy ⊢
> On 14 Feb 2022, at 11:58 am, gjr80 <gjroder...@gmail.com> wrote: > > Making changes to units.py is a poor approach to dealing with problems and > should be avoided, at best your changes will not survive a WeeWX upgrade; at > worst your changes could unknowingly cause problems elsewhere with WeeWX. > > If you wish to assign an observation type to a unit group this is best done > through the user/extensions.py file. user/extensions.py is intended for users > to add code that is to be run during the WeeWX startup and allows user > changes to the WeeWX environment to be made in a safe manner. Files in the > user directory are protected during a WeeWX upgrade and will not be > overwritten. I suggest you revert your changes to units.py and try adding the > following to user/extensions.py (untested): > > import weewx.units > weewx.units.obs_group_dict['signal1'] = 'group_energy' > > Save extensions.py and restart WeeWX. Does that fix your problem? > > Gary > On Monday, 14 February 2022 at 01:14:14 UTC+10 udo.kl...@gmail.com wrote: > Hello all, > > I have updated this weekend to WeeWX version 4.6.2. Actually everything works > as usual, but in my photovoltaic data no units are displayed anymore. I have > changed the assignment in the units.py as follows "signal1" : "group_energy", > but without success. > > Who knows advice? > > -- > 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/d826d917-602e-48cb-ab18-9a59d8d655a5n%40googlegroups.com > > <https://groups.google.com/d/msgid/weewx-user/d826d917-602e-48cb-ab18-9a59d8d655a5n%40googlegroups.com?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. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/076CF5FA-33A8-473C-9208-F4991C26912A%40gmail.com.