Ok, Sorry, misunderstood. No, you will need to go through the process like 
class 
StdReportEngine does in reportengine.py to get the skin name, work out its 
location and then read the config from its skin.conf.

Gary

On Saturday, 8 September 2018 11:54:52 UTC+10, Pat O'Brien wrote:
>
> Hi Gary, I understand that part (hopefully displayed through the bit of 
> code I shared) - what my concern was that if I'm getting the [[[Extras]]] 
> from the config directly, that doesn't account for anything in skin.conf. 
>
> So I was asking if there's a way to get "The Extras" (as merged by both 
> config file's Extras)...
>
>
> On Friday, September 7, 2018 at 9:00:12 PM UTC-4, gjr80 wrote:
>>
>> Pat,
>>
>> Through an SLE you can access anything within the WeeWX universe, you 
>> just need to know where to find it and the (python) code to access it.
>>
>> So what does self.generator.config_dict give you? On a plain vanilla 
>> WeeWX install I can see then entire weewx.conf.
>>
>> Gary
>>
>> On Saturday, 8 September 2018 06:35:20 UTC+10, Pat O'Brien wrote:
>>>
>>> Will do, thanks!
>>>
>>> Another question which is sort of related. Is it possible for Skin A to 
>>> get the [[[Extras]]] settings of Skin B from within an SLE?
>>>
>>> Instead of maintaining 2 sets of Extras for 2 skins, it'd be nice to 
>>> have 1 across both skins. 
>>>
>>> I started to play around with something like this, but it doesn't catch 
>>> any skin.conf settings. So before I got too deep, I figured there's 
>>> probably an easier way?
>>>
>>> self.generator.config_dict["StdReport"]["Belchertown"]["Extras"]
>>>
>>>
>>>
>>>
>>> On Thursday, September 6, 2018 at 5:49:09 PM UTC-4, Tom Keffer wrote:
>>>>
>>>> It's a Wiki! Anyone can edit. Go at it!
>>>>
>>>>
>>>>
>>>> On Thu, Sep 6, 2018 at 10:21 AM Pat O'Brien <[email protected]> 
>>>> wrote:
>>>>
>>>>> hah! 
>>>>>
>>>>> Tom, I see I can edit the weewx wiki on GitHub. Is it OK to edit and 
>>>>> add the link to the Belchertown skin - or would you rather control that 
>>>>> update?
>>>>>
>>>>>
>>>>> On Thursday, September 6, 2018 at 12:22:45 PM UTC-4, Vince Skahan 
>>>>> wrote:
>>>>>>
>>>>>> On Thursday, September 6, 2018 at 5:40:42 AM UTC-7, Tom Keffer wrote:
>>>>>>>
>>>>>>> BTW, Pat, how are you enjoying your new life as a maintainer of open 
>>>>>>> source code? :-)
>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>> ....and Pat was never heard from again... 
>>>>>>
>>>>>

Reply via email to