If you leave HTML_ROOT as "belchertown", weewx will do the rest to put it 
into a sub directory of the StdReport's HTML_ROOT. 

Earthquake and Forecasts use these settings:
earthquake_file = self.generator.skin_dict['HTML_ROOT'] + "
/json/earthquake.json"

forecast_file = self.generator.skin_dict['HTML_ROOT'] + "
/json/darksky_forecast.json"


John, I'm wondering if within weewx.conf, what do you have under 
[[Belchertown]] for HTML_ROOT = public_html?


On Saturday, August 25, 2018 at 7:55:37 AM UTC-4, Andrew Milner wrote:
>
> tx Gary - yea I missed the relative bit - so Pat needs to either be 
> relative to WEEWX_ROOT (or change the path if he is relative to HTML_ROOT) 
> I guess.
>
>
>
> On Saturday, 25 August 2018 14:49:31 UTC+3, gjr80 wrote:
>>
>> The issue has nothing to do with permissions, if you look at the error 
>> message carefully you will see that the file being written includes a 
>> relative path, but relative to what? Just as you were confused about what 
>> it was referring to so to is python confused. What ever python is using as 
>> the current directory does not have a public_html/json directory so the 
>> error is thrown. Pat will need to look at his code, I suspect he needs to 
>> make sure his path is relative to WEEWX_ROOT.
>>
>> As an aside, a default weeWX install sees the weeWX daemon run as root so 
>> in such cases permissions are rarely an issue. Running weeWX directly may 
>> cause permission issues unless sudo or other privileged access is used.
>>
>> Gary
>>
>>

-- 
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.

Reply via email to