Found out that I was creating the issue by running it myself, but the weewx run 
as root so that problem doesn't occurs when it runs by itself…………

So the problem is really specific to only the week graph, every other thing 
work flawlessly other than the week repport.

http://www.gestionlgt.com/Chalet/

Running all the latest version of Weewx for raspberry PI ans belchertown skin

So back to thinking the problem is in the preference of the week graph section….

[week]
    # Chart Timespan Defaults
    title = "This Week"
    show_button = true
    button_text = "Week"
    time_length = 604800 # Last 7 days
    tooltip_date_format = "LLLL"
    aggregate_type = max
    aggregate_interval = 3600 # 1 hour
    gapsize = 3600 # 1 hour in seconds

Or in the belchertown skin





> On 30 Sep 23, at 13:29, vince <[email protected]> wrote:
> 
> The log file pretty clearly says which file it can't write to.  So you need 
> to fix the permissions on that file.  Pretty simple.
> 
> Without any details on your setup it's hard to say more than that, other than 
> if you're doing unusual things like writing across the network to a 
> filesystem mounted on another computer or NAS, the possibilities of what's 
> perhaps wrong grow a lot.
> 
> Do other skins work ok ?
> 
> On Friday, September 29, 2023 at 9:56:22 PM UTC-7 Lorin Tremblay wrote:
>> Well that might be part of my problem
>> 
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine: 
>> Caught unrecoverable exception in generator 
>> 'user.belchertown.HighchartsJsonGenerator'
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>       ****  [Errno 13] Permission denied: 
>> '/var/www/html/weewx/json/week.json'
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>       ****  Traceback (most recent call last):
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>       ****    File "/usr/share/weewx/weewx/reportengine.py", line 197, in run
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>       ****      obj.start()
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>       ****    File "/usr/share/weewx/weewx/reportengine.py", line 385, in 
>> start
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>       ****      self.run()
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>       ****    File "/usr/share/weewx/user/belchertown.py", line 2817, in run
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>       ****      with open(json_filename, mode="w") as jf:
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>       ****  PermissionError: [Errno 13] Permission denied: 
>> '/var/www/html/weewx/json/week.json'
>> Sep 30 00:54:55 WeeWx-APRS270 wee_reports[18415] ERROR weewx.reportengine:   
>>       ****  Generator terminated
>> 
>> 
>> What is the best way to correct this situation….
>> 
>> 
>> 
>>> On 29 Sep 23, at 22:50, vince <[email protected] <>> wrote:
>>> 
>> 
>>> Well, I always suggest the old sysadmin credo of "when in doubt, comment it 
>>> out" in working these kinds of things.  Start slowly and get 'one' chart 
>>> working....and look at your syslogs.  Do yours say anything indicating a 
>>> problem ?
>>> 
>>> You might also save your (not working) graphs.conf file someplace and 
>>> 'copy' the graphs.conf.example file into place as graphs.conf which should 
>>> definitely work.  At a minimum it'll take your edits out of the question at 
>>> least temporarily....
>>> 
>>> I don't remember for Belchertown if you should stop/restart weewx after 
>>> fiddling with graphs.conf but that might be wise in this case just in 
>>> case....
>>> 
>>> 
>> 
>>> -- 
>>> 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/77309976-b444-4ade-9870-28d0690d8c44n%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/weewx-user/77309976-b444-4ade-9870-28d0690d8c44n%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 [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/e7602824-5926-45a7-b734-9eaad403b050n%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/weewx-user/e7602824-5926-45a7-b734-9eaad403b050n%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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/BA88086F-CD3E-450F-9F62-BC82A1F2465A%40gmail.com.

Reply via email to