No need to apologise, you are a legend for the amount of support you give. And bingo, it worked :-D The strange thing is that I thought that I had tried that permutation although I was going round and round in circles by the end.
Thanks once again, Ian On Sun, Nov 24, 2019 at 6:23 PM Thomas Keffer <[email protected]> wrote: > Oh. I misunderstood. I thought we were talking about weewx.conf, not the > syntax for install.py. My apologies. > > I've never tried installing multiple services in a single engine group, > but it probably should be a list. After all, it has to be valid Python. So, > try: > > process_services = ['user.program1.Program1Test', > 'user.program2.Program2Test'] > > > -tk > > On Sun, Nov 24, 2019 at 9:12 AM steeple ian <[email protected]> wrote: > >> Thanks Thomas, >> >> Yes that was a typo on my part, I am using the correct convention in the >> real thing. >> >> Your first example gave the following syntax error >> >> Traceback (most recent call last): >> File "./wee_extension", line 82, in <module> >> main() >> File "./wee_extension", line 74, in main >> ext.install_extension(options.install) >> File "/home/weewx/bin/weecfg/extension.py", line 123, in install_extension >> self.install_from_dir(extension_path) >> File "/home/weewx/bin/weecfg/extension.py", line 138, in install_from_dir >> extension_dir) >> File "/home/weewx/bin/weecfg/__init__.py", line 1599, in >> get_extension_installer >> __import__('install') >> File "weewx-Weather34/install.py", line 21 >> config={ >> >> The second example gave this error >> >> >> Traceback (most recent call last): >> File "./wee_extension", line 82, in <module> >> main() >> File "./wee_extension", line 74, in main >> ext.install_extension(options.install) >> File "/home/weewx/bin/weecfg/extension.py", line 123, in install_extension >> self.install_from_dir(extension_path) >> File "/home/weewx/bin/weecfg/extension.py", line 138, in install_from_dir >> extension_dir) >> File "/home/weewx/bin/weecfg/__init__.py", line 1599, in >> get_extension_installer >> __import__('install') >> File "weewx-Weather34/install.py", line 19 >> process_services='user.program1.Program1Test', >> 'user.program2.Program2.Test', >> SyntaxError: non-keyword arg after keyword arg >> >> Thanks, >> Ian >> >> >> >> On Sun, Nov 24, 2019 at 4:57 PM Thomas Keffer <[email protected]> wrote: >> >>> I should think you'd want >>> >>> process_service = user.program1.Program1Test, user.program2.Program2.Test >>> >>> >>> Or, if you want to use quotes, >>> >>> process_service = 'user.program1.Program1Test', >>> 'user.program2.Program2.Test' >>> >>> >>> Or, am I missing something? >>> >>> Incidentally, the two services are using different naming conventions. >>> One says "Program1Test", the other "Program2.Test". Note the period in the >>> second. Don't know if that's a typo, or what you're intending. >>> >>> -tk >>> >>> On Sun, Nov 24, 2019 at 8:26 AM steeple ian <[email protected]> >>> wrote: >>> >>>> Ok, for example >>>> >>>> Using this in install.py for a single service: - >>>> >>>> process_services='user.program1.Program1Test', >>>> >>>> Gave as expected in weewx.conf: - >>>> >>>> process_services = user.program1.Program1Test >>>> >>>> Adding a second service like so: - >>>> >>>> process_services='user.program1.Program1Test, >>>> user.program2.Program2.Test', >>>> >>>> Gave: - process_services="user.program1.Program1Test, >>>> user.program2.Program2.Test" >>>> >>>> This: >>>> - >>>> process_services='user.program1.Program1Test'',''user.program2.Program2.Test', >>>> >>>> Gave: - process_services= >>>> "user.program1.Program1Test,user.program2.Program2.Test" >>>> >>>> Various other combinations either all resulted in similar results with >>>> double quote marks or a syntax error when running the install process with >>>> wee_extension --install >>>> >>>> Thanks, >>>> Ian >>>> >>>> >>>> On Sun, Nov 24, 2019 at 1:53 PM Thomas Keffer <[email protected]> >>>> wrote: >>>> >>>>> It would help if you included the error. I don't know what you mean by >>>>> "...try to add a second double quotes appear around the result..." >>>>> >>>>> On Sun, Nov 24, 2019 at 3:52 AM steeple ian <[email protected]> >>>>> wrote: >>>>> >>>>>> Is it possible to to insert multiple services of the same type using >>>>>> install.py? >>>>>> >>>>>> Inserting one service into process_services works fine, but when I >>>>>> try to add a second double quotes appear around the result in weewx.conf >>>>>> and subsequently causes WeeWX to exit with an error. >>>>>> >>>>>> I have tried every permutation of syntax that I can think of without >>>>>> success. Am I not seeing the wood for the trees or is it just not >>>>>> possible? >>>>>> >>>>>> Thanks >>>>>> Ian >>>>>> >>>>>> -- >>>>>> 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/07de6ced-7bfd-47e7-b790-cd23f336fc93%40googlegroups.com >>>>>> . >>>>>> >>>>> -- >>>>> 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/CAPq0zEAkf-P-dRkQnuYTV2QZbGCi6N_s7H88mc%3DGpE_jNJO2DQ%40mail.gmail.com >>>>> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEAkf-P-dRkQnuYTV2QZbGCi6N_s7H88mc%3DGpE_jNJO2DQ%40mail.gmail.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 [email protected]. >>>> To view this discussion on the web visit >>>> https://groups.google.com/d/msgid/weewx-user/CADASSaQ2YpO6APyT8v_uAQokDc_-RMpfhyPLiMhuXS_EeG04jw%40mail.gmail.com >>>> <https://groups.google.com/d/msgid/weewx-user/CADASSaQ2YpO6APyT8v_uAQokDc_-RMpfhyPLiMhuXS_EeG04jw%40mail.gmail.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 [email protected]. >>> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/weewx-user/CAPq0zEDkV3q0zbQ1iMSCZtW2KF3y%2BHsLXCHd%2BRwFeeJ2WG-kYQ%40mail.gmail.com >>> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEDkV3q0zbQ1iMSCZtW2KF3y%2BHsLXCHd%2BRwFeeJ2WG-kYQ%40mail.gmail.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 [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/weewx-user/CADASSaSCE0TU9BX4sWf0t_A4N12s3BmhKc4wEwZnB5sCw9Bb3w%40mail.gmail.com >> <https://groups.google.com/d/msgid/weewx-user/CADASSaSCE0TU9BX4sWf0t_A4N12s3BmhKc4wEwZnB5sCw9Bb3w%40mail.gmail.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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/CAPq0zEBqOS_y6stmgQJLbJ_Pe4FAxdp3tEca0mvSf0PSxZWNsg%40mail.gmail.com > <https://groups.google.com/d/msgid/weewx-user/CAPq0zEBqOS_y6stmgQJLbJ_Pe4FAxdp3tEca0mvSf0PSxZWNsg%40mail.gmail.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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CADASSaS%2B0mkbOvas4PawNyeAfSy85%2BqHg%3DV5EaeOXfPa%3DFj63g%40mail.gmail.com.
