****
root@raspberrypi:/var/www/html/weewx/weather34/w34highcharts/scripts# cat plots_config.js var pathjsonfiles = "json/"; //Location weewx report output json files from home location of weewx. DO NOT CHANGE UNLESS YOU CHANGE SKIN DIRECTORY. var pathjsondayfiles = "json_day/"; //Location day report output json files from home location of where wee_report_34 run. DO NOT CHANGE UNLESS YOU CHANGE SKIN DIRECTORY. var weereportcmd = "./wee_reports_w34"; //Command to run wee_report_34. DO NOT CHANGE. var realtimefilename = "w34realtime.txt"; //File name must match what is in the weewx config for realtime var autoupdateinterval = 60; //This is seconds var realtimeinterval = 10; //This is seconds var hide_zero_wind_barb = false; //Hide/display Zero Barb var disable_day_plots = false; //Disable day plots //[0] array offset(s) to wanted real-time data(s)(can be empty),[1] array offset(s) to data's real-time units(can be empty),[2] array of unit convert function(s)(can be empty), [3] plot type, [4] plot X resolution, [5] delta value // The (can be empty) entries then must have a plot_type that is another plot type entry with fill in values this is how to display a different plot_type when using real-time data. var realtimeplot = { temperatureplot:[[2,4],[14,14],['convert_temp','convert_temp'],['temperatureplot'],[150]], tempallplot:[[2,4,3],[14,14,-1],['convert_temp','convert_temp',null],['tempallplot'], [150]], winddirplot:[[7],[13],['convert_wind'],['winddirplot'], [150]], windplot:[[6],[13],['convert_wind'],['windplot'],[150]], windallplot:[[5,40,46],[13,13,-1],['convert_wind','convert_wind',null],['windallplot'],[150]], barometerplot:[[10],[15],['convert_pressure'],['barometerplot'],[150]], rainplot:[[47,8],[16,16],['convert_rain','convert_rain'],['rainplot'],[50],[]], windroseplot:[[6,11],[13,-1],['convert_wind', null],['windroseplot'],[150]], windrosegustplot:[[63,46],[13,-1],['convert_wind', null],['windrosegustplot'],[150]] }; **** Il giorno mercoledì 12 agosto 2020 alle 10:13:47 UTC+2 Mauro De Lauretis ha scritto: > The location of the executable is there because it is installed liked that > to run on the local server. > > If I try to do sudo PYTHONPATH=/home/weewx/bin python3 > /var/www/html/weewx/weather34/w34highcharts/wee_reports_w34 I get this: > > *pi@raspberrypi*:*~ $* sudo su > > root@raspberrypi:/home/pi# sudo PYTHONPATH=/home/weewx/bin python3 > /var/www/html/weewx/weather34/w34highcharts/wee_reports_w34 > > Using configuration file /home/weewx/weewx.conf > > Generating for all time > > Traceback (most recent call last): > > File "/var/www/html/weewx/weather34/w34highcharts/wee_reports_w34", line > 99, in <module> > > main() > > File "/var/www/html/weewx/weather34/w34highcharts/wee_reports_w34", line > 68, in main > > config_dict['StdReport']['w34Highcharts']['CheetahGenerator'] = > {'search_list_extensions': 'user.w34highchartsSearchX.w34highcharts_' + > args[1].split('/')[-1].split('.')[0], 'encoding': 'strict_ascii', 'ToDate': > {'DayJSON': {'template': args[1],'HTML_ROOT': args[2]}}} > > IndexError: list index out of range > > > Il giorno mercoledì 12 agosto 2020 alle 03:27:38 UTC+2 tke...@gmail.com > ha scritto: > >> You're probably right. I suspect the custom weather34 installer went a >> little ... off track. >> >> On Tue, Aug 11, 2020 at 6:02 PM J D <balloon...@gmail.com> wrote: >> >>> This is not a weewx issue or a python path issue. The file is in the >>> correct location, but the troubleshooting guide must be done to find out >>> why there is an error. >>> >> >>> >>> On Tuesday, August 11, 2020 at 3:27:16 PM UTC-7, Mauro De Lauretis wrote: >>>> >>>> Hi all! >>>> I'm running the last version of weewx with python3 on my Raspberry Pi. >>>> As skin I use the weather34 weewx version ( >>>> https://github.com/steepleian/weewx-Weather34) >>>> >>>> There are also incorporated highcharts that are created live from the >>>> database when selecting on the website. >>>> However, a part of them won't work with my setup and this Is the >>>> message I get: >>>> >>>> >>>> root@raspberrypi:~# sudo python3 >>>> /var/www/html/weewx/weather34/w34highcharts/wee_reports_w34 >>>> >>>> Traceback (most recent call last): >>>> >>>> File "/var/www/html/weewx/weather34/w34highcharts/wee_reports_w34", >>>> line 8, in <module> >>>> >>>> import weewx >>>> >>>> ModuleNotFoundError: No module named 'weewx' >>>> >>>> >>>> >>>> >>>> Do you have any ideas what the issue could be? >>>> >>>> >>>> Thanks >>>> >>>> >>>> Mauro >>>> >>> -- >>> >> 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+...@googlegroups.com. >>> >> To view this discussion on the web visit >>> https://groups.google.com/d/msgid/weewx-user/ca782342-2160-4630-aee3-438d53a85c50o%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/weewx-user/ca782342-2160-4630-aee3-438d53a85c50o%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/c54d929e-7881-4fb6-9d59-ce6d026c250an%40googlegroups.com.