Re: [weewx-user] Re: Module Error

2020-08-14 Thread Mauro De Lauretis
It’s ok! 

-- 
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/dbf208cb-68e9-4139-8541-37a4b4b18c77o%40googlegroups.com.


Re: [weewx-user] Re: Module Error

2020-08-14 Thread steeple ian
Mauro,
If it’s ok by you, we will work through it step by step offline. We will
then post the outcomes in this thread so other users can benefit if they
encounter the same issue.

On Fri, 14 Aug 2020 at 08:18, Mauro De Lauretis 
wrote:

> Nobody that can help me?
>
> --
> 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/114e30d0-2e6c-4dda-a0b9-012ede541a49o%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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CADASSaTjCRTzcGPQ8GFacRxyYZED4KMkXyWTbSfVpG8pyqotDw%40mail.gmail.com.


Re: [weewx-user] Re: Module Error

2020-08-14 Thread Mauro De Lauretis
Nobody that can help me?

-- 
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/114e30d0-2e6c-4dda-a0b9-012ede541a49o%40googlegroups.com.


RE: [weewx-user] Re: Module Error

2020-08-12 Thread steepleian
Ok carry on with the other troubleshooting stages. Sent from Mail for Windows 10 From: Mauro De LauretisSent: 12 August 2020 16:03To: weewx-userSubject: Re: [weewx-user] Re: Module Error Changed into this: [StdReport]     # Where the skins reside, relative to WEEWX_ROOT    SKIN_ROOT = skins     # Where the generated reports should go, relative to WEEWX_ROOT    HTML_ROOT = /var/www/html/weewx     # The database binding indicates which data should be used in reports.    data_binding = wx_binding  No changes, still the same problem:root@raspberrypi:/var/www/html/weewx/weather34/w34highcharts# sudo python3 wee_reports_w34Traceback (most recent call last):  File "wee_reports_w34", line 8, in     import weewxModuleNotFoundError: No module named 'weewx'   Il giorno mercoledì 12 agosto 2020 alle 16:46:18 UTC+2 steep...@gmail.com ha scritto:Hi Mauro, You need to change HTML_ROOT in StdReport stanza to HTML_ROOT = /var/www/html/weewx  and restart WeeWX Wait for the next report cycle and I think things will improve. Ian On Wed, 12 Aug 2020 at 15:32, Mauro De Lauretis  wrote:Using verbosity=1, displaying most info wee_debug output will be sent to stdout(console) Using configuration file /home/weewx/weewx.confUsing database binding 'wx_binding', which is bound to database 'archive_sqlite' System info  Platform:       Linux-5.4.51+-armv6l-with-debian-10.4  Python Version: 3.7.3 Load Information  1 minute load average:  0.46  5 minute load average:  0.46  15 minute load average: 0.45 General Weewx info  Weewx version 4.1.1 detected. Station info  Station type: Vantage  Driver:       weewx.drivers.vantage Driver info[Vantage]    # This section is for the Davis Vantage series of weather stations.        # Connection type: serial or ethernet     #  serial (the classic VantagePro)    #  ethernet (the WeatherLinkIP or Serial-Ethernet bridge)    type = serial        # If the connection type is serial, a port must be specified:    #   Debian, Ubuntu, Redhat, Fedora, and SuSE:    #     /dev/ttyUSB0 is a common USB port name    #     /dev/ttyS0   is a common serial port name    #   BSD:    #     /dev/cuaU0   is a common serial port name    port = /dev/ttyUSB0        # If the connection type is ethernet, an IP Address/hostname is required:    host = 1.2.3.4        ##    # The rest of this section rarely needs any attention.     # You can safely leave it "as is."    ##        # Serial baud rate (usually 19200)    baudrate = 19200        # TCP port (when using the WeatherLinkIP)    tcp_port = 2        # TCP send delay (when using the WeatherLinkIP):    tcp_send_delay = 0.5        # The type of LOOP packet to request: 1 = LOOP1; 2 = LOOP2; 3 = both    loop_request = 1        # The id of your ISS station (usually 1). If you use a wind meter connected    # to a anemometer transmitter kit, use its id    iss_id = 1        # How long to wait for a response from the station before giving up (in    # seconds; must be greater than 2)    timeout = 4        # How long to wait before trying again (in seconds)    wait_before_retry = 1.2        # How many times to try before giving up:    max_tries = 4        # Vantage model Type: 1 = Vantage Pro; 2 = Vantage Pro2    model_type = 2        # The driver to use:    driver = weewx.drivers.vantage Currently installed extensionsNo extensions installed Archive info  Database name:        weewx.sdb  Table name:           archive  Version               2.0  Unit system:          16 (METRIC)  First good timestamp: 2020-08-03 14:10:00 CEST (1596456600)  Last good timestamp:  2020-08-12 16:25:00 CEST (1597242300)  Number of records:    2613  weewx (weewx.conf) is set to use an archive interval of 300 seconds.  The station hardware was not interrogated in determining archive interval. Databases configured in weewx.conf  Database name:        weewx.sdb  Database driver:      weedb.sqlite   Database name:        weewx  Database driver:      weedb.mysql  Database host:        localhost  Parsed and obfuscated weewx.conf# WEEWX CONFIGURATION FILE## Copyright (c) 2009-2019 Tom Keffer # See the file LICENSE.txt for your rights. ## # This section is for general configuration information. # Set to 1 for extra debug info, otherwise comment it out or set to zerodebug = 1 # Root directory of the weewx data file hierarchy for this stationWEEWX_ROOT = /home/weewx # Whether to log successful operationslog_success = True # Whether to log unsuccessful operationslog_failure = True # How long to wait before timing out a socket (FTP, HTTP) connectionsocket_timeout = 20 # Do not modify this. It is used when installing and updating weewx.version = 4.1.1 ## #   This section is for information about the station. [Sta

Re: [weewx-user] Re: Module Error

2020-08-12 Thread Tom Keffer
I see. So, it's being used as a CGI script?

Incidentally, I'm not seeing anything that could not be handled using the
regular weewx installer. I could be missing something subtle, but I don't
believe you need a custom installer. All of the items that need to go in
/var/www/html/weewx can be copied there by the CopyGenerator. Everything
else is in standard locations.

-tk

On Wed, Aug 12, 2020 at 1:06 AM  wrote:

> Tom and Gary,
>
>
>
> The only way in which I have been able to get the custom installer to fail
> is making a false step by making the wrong selection when prompted on how
> WeeWX was originally installed.
>
>
>
> Mauro has previously successfully installed this current version of
> Weather34 onto my test server with a clean install of WeeWX 4.1.1 /
> Python3, so the issue is ‘what is happening on his own setup’. I have asked
> Mauro to go back and start afresh on his own RaspberryPi with a clean
> install of WeeWX 4.1.1 and Python3, making sure all is working well with
> Simulator, install Weather34 and then follow the extensive troubleshooting
> guide that JD has devised and post the results here.
>
>
>
> The question regarding whether wee_reports_34 is running in the correct
> place. Yes it is rather unusual, but if you have a look at my website
> https://claydonsweather.org.uk and click on one of the pop-up chart links
> at the foot of the individual sensor modules you will see why. Choose a
> weekly chart for say barometer, hover and click on a chart data point and
> see what happens. Click again and a different scenario. It is this click
> which runs wee_reports_34.
>
>
>
> So back to the task in hand, hopefully we can get to the bottom of Mauro’s
> problems 😊
>
>
>
> Thanks for your continued support,
>
>
>
> Ian
>
>
>
> Sent from Mail <https://go.microsoft.com/fwlink/?LinkId=550986> for
> Windows 10
>
>
>
> *From: *Tom Keffer 
> *Sent: *12 August 2020 02:27
> *To: *weewx-user 
> *Subject: *Re: [weewx-user] Re: Module Error
>
>
>
> 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  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 
>
> 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+unsubscr...@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/CAPq0zECtu0d8VYDWbm%3DUAEvU86JTU_Kf1rRKreuUNwO1xLf7pw%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CAPq0zECtu0d8VYDWbm%3DUAEvU86JTU_Kf1rRKreuUNwO1xLf7pw%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 weewx-user+unsubscr

Re: [weewx-user] Re: Module Error

2020-08-12 Thread Mauro De Lauretis


Using verbosity=1, displaying most info


wee_debug output will be sent to stdout(console)


Using configuration file /home/weewx/weewx.conf

Using database binding 'wx_binding', which is bound to database 
'archive_sqlite'


System info

  Platform:   Linux-5.4.51+-armv6l-with-debian-10.4

  Python Version: 3.7.3


Load Information

  1 minute load average:  0.46

  5 minute load average:  0.46

  15 minute load average: 0.45


General Weewx info

  Weewx version 4.1.1 detected.


Station info

  Station type: Vantage

  Driver:   weewx.drivers.vantage


Driver info

[Vantage]

# This section is for the Davis Vantage series of weather stations.



# Connection type: serial or ethernet 

#  serial (the classic VantagePro)

#  ethernet (the WeatherLinkIP or Serial-Ethernet bridge)

type = serial



# If the connection type is serial, a port must be specified:

#   Debian, Ubuntu, Redhat, Fedora, and SuSE:

# /dev/ttyUSB0 is a common USB port name

# /dev/ttyS0   is a common serial port name

#   BSD:

# /dev/cuaU0   is a common serial port name

port = /dev/ttyUSB0



# If the connection type is ethernet, an IP Address/hostname is 
required:

host = 1.2.3.4



##

# The rest of this section rarely needs any attention. 

# You can safely leave it "as is."

##



# Serial baud rate (usually 19200)

baudrate = 19200



# TCP port (when using the WeatherLinkIP)

tcp_port = 2



# TCP send delay (when using the WeatherLinkIP):

tcp_send_delay = 0.5



# The type of LOOP packet to request: 1 = LOOP1; 2 = LOOP2; 3 = both

loop_request = 1



# The id of your ISS station (usually 1). If you use a wind meter 
connected

# to a anemometer transmitter kit, use its id

iss_id = 1



# How long to wait for a response from the station before giving up (in

# seconds; must be greater than 2)

timeout = 4



# How long to wait before trying again (in seconds)

wait_before_retry = 1.2



# How many times to try before giving up:

max_tries = 4



# Vantage model Type: 1 = Vantage Pro; 2 = Vantage Pro2

model_type = 2



# The driver to use:

driver = weewx.drivers.vantage


Currently installed extensions

No extensions installed


Archive info

  Database name:weewx.sdb

  Table name:   archive

  Version   2.0

  Unit system:  16 (METRIC)

  First good timestamp: 2020-08-03 14:10:00 CEST (1596456600)

  Last good timestamp:  2020-08-12 16:25:00 CEST (1597242300)

  Number of records:2613

  weewx (weewx.conf) is set to use an archive interval of 300 seconds.

  The station hardware was not interrogated in determining archive interval.


Databases configured in weewx.conf

  Database name:weewx.sdb

  Database driver:  weedb.sqlite


  Database name:weewx

  Database driver:  weedb.mysql

  Database host:localhost



Parsed and obfuscated weewx.conf

# WEEWX CONFIGURATION FILE

#

# Copyright (c) 2009-2019 Tom Keffer 

# See the file LICENSE.txt for your rights.


##


# This section is for general configuration information.


# Set to 1 for extra debug info, otherwise comment it out or set to zero

debug = 1


# Root directory of the weewx data file hierarchy for this station

WEEWX_ROOT = /home/weewx


# Whether to log successful operations

log_success = True


# Whether to log unsuccessful operations

log_failure = True


# How long to wait before timing out a socket (FTP, HTTP) connection

socket_timeout = 20


# Do not modify this. It is used when installing and updating weewx.

version = 4.1.1


##


#   This section is for information about the station.


[Station]



# Description of the station location

location = "Pineto, Teramo"



# Latitude in decimal degrees. Negative for southern hemisphere

latitude = 42.634585

# Longitude in decimal degrees. Negative for western hemisphere.

longitude = 14.040554



# Altitude of the station, with unit it is in. This is downloaded from

# from the station if the hardware supports it.

altitude = 40, meter# Choose 'foot' or 'meter' for unit



# Set to type of station hardware. There must be a corresponding stanza

# in this file with a 'driver' parameter indicating the driver to be 
used.

station_type = Vantage



# If you have a website, you may specify an URL

station_url = XXX obfuscated by wee_debug XXX



# The start of the rain year (1=January; 10=October, etc.). This is

# downloaded from the station if the hardwa

Re: [weewx-user] Re: Module Error

2020-08-12 Thread Mauro De Lauretis
This the syslog:

Aug 12 16:19:33 raspberrypi systemd[1]: Starting LSB: weewx weather 
system...

Aug 12 16:19:36 raspberrypi weewx[14231] INFO __main__: Initializing weewx 
version 4.1.1

Aug 12 16:19:36 raspberrypi weewx[14231] INFO __main__: Using Python 3.7.3 
(default, Dec 20 2019, 18:57:59) #012[GCC 8.3.0]

Aug 12 16:19:36 raspberrypi weewx[14231] INFO __main__: Platform 
Linux-5.4.51+-armv6l-with-debian-10.4

Aug 12 16:19:36 raspberrypi weewx[14231] INFO __main__: Locale is 
'it_IT.UTF-8'

Aug 12 16:19:36 raspberrypi weewx[14231] INFO __main__: PID file is 
/var/run/weewx.pid

Aug 12 16:19:36 raspberrypi weewx[14220]: Starting weewx weather system: 
weewx.

Aug 12 16:19:36 raspberrypi systemd[1]: Started LSB: weewx weather system.

Aug 12 16:19:37 raspberrypi weewx[14240] INFO __main__: Using configuration 
file /home/weewx/weewx.conf

Aug 12 16:19:37 raspberrypi weewx[14240] INFO __main__: Debug is 1

Aug 12 16:19:37 raspberrypi weewx[14240] DEBUG __main__: Initializing engine

Aug 12 16:19:37 raspberrypi weewx[14240] INFO weewx.engine: Loading station 
type Vantage (weewx.drivers.vantage)

Aug 12 16:19:37 raspberrypi weewx[14240] DEBUG weewx.drivers.vantage: 
Driver version is 3.2.1

Aug 12 16:19:37 raspberrypi weewx[14240] DEBUG weewx.drivers.vantage: 
Opened up serial port /dev/ttyUSB0; baud 19200; timeout 4.00

Aug 12 16:19:37 raspberrypi weewx[14240] DEBUG weewx.drivers.vantage: 
Gentle wake up of console successful

Aug 12 16:19:37 raspberrypi weewx[14240] DEBUG weewx.drivers.vantage: 
Hardware type is 16

Aug 12 16:19:38 raspberrypi weewx[14240] DEBUG weewx.drivers.vantage: ISS 
ID is 1

Aug 12 16:19:38 raspberrypi weewx[14240] DEBUG weewx.drivers.vantage: 
Hardware name: Vantage Pro2

Aug 12 16:19:38 raspberrypi weewx[14240] DEBUG weewx.engine: Loading 
service weewx.engine.StdTimeSynch

Aug 12 16:19:38 raspberrypi weewx[14240] DEBUG weewx.engine: Finished 
loading service weewx.engine.StdTimeSynch

Aug 12 16:19:38 raspberrypi weewx[14240] DEBUG weewx.engine: Loading 
service weewx.engine.StdConvert

Aug 12 16:19:38 raspberrypi weewx[14240] INFO weewx.engine: StdConvert 
target unit is 0x10

Aug 12 16:19:38 raspberrypi weewx[14240] DEBUG weewx.engine: Finished 
loading service weewx.engine.StdConvert

Aug 12 16:19:38 raspberrypi weewx[14240] DEBUG weewx.engine: Loading 
service weewx.engine.StdCalibrate

Aug 12 16:19:38 raspberrypi weewx[14240] DEBUG weewx.engine: Finished 
loading service weewx.engine.StdCalibrate

Aug 12 16:19:38 raspberrypi weewx[14240] DEBUG weewx.engine: Loading 
service weewx.engine.StdQC

Aug 12 16:19:38 raspberrypi weewx[14240] DEBUG weewx.engine: Finished 
loading service weewx.engine.StdQC

Aug 12 16:19:38 raspberrypi weewx[14240] DEBUG weewx.engine: Loading 
service weewx.wxservices.StdWXCalculate

Aug 12 16:19:38 raspberrypi weewx[14240] DEBUG weewx.manager: Daily summary 
version is 2.0

Aug 12 16:19:38 raspberrypi weewx[14240] INFO weewx.wxservices: The 
following values will be calculated: pressure=prefer_hardware, 
altimeter=prefer_hardware, appTemp=prefer_hardware, 
barometer=prefer_hardware, beaufort=prefer_hardware, 
cloudbase=prefer_hardware, dewpoint=prefer_hardware, ET=prefer_hardware, 
heatindex=prefer_hardware, humidex=prefer_hardware, 
inDewpoint=prefer_hardware, maxSolarRad=prefer_hardware, 
rainRate=prefer_hardware, windchill=prefer_hardware, windrun=prefer_hardware

Aug 12 16:19:38 raspberrypi weewx[14240] INFO weewx.wxservices: The 
following algorithms will be used for calculations: altimeter=aaASOS, 
maxSolarRad=RS

Aug 12 16:19:38 raspberrypi weewx[14240] DEBUG weewx.engine: Finished 
loading service weewx.wxservices.StdWXCalculate

Aug 12 16:19:38 raspberrypi weewx[14240] DEBUG weewx.engine: Loading 
service user.weather34.Weather34RealTime

Aug 12 16:19:39 raspberrypi weewx[14240] INFO user.weather34: service 
version is 0.0.5

Aug 12 16:19:39 raspberrypi weewx[14240] INFO user.weather34: output goes 
to /var/www/html/weewx/weather34/w34realtime.txt

Aug 12 16:19:39 raspberrypi weewx[14240] INFO user.weather34: 'None' values 
will be displayed as NULL

Aug 12 16:19:39 raspberrypi weewx[14240] INFO user.weather34: units will be 
displayed as METRICWX

Aug 12 16:19:39 raspberrypi weewx[14240] INFO user.weather34: zambretti 
forecast: False

Aug 12 16:19:39 raspberrypi weewx[14240] INFO user.weather34: Web Service: 
ds is installed

Aug 12 16:19:39 raspberrypi weewx[14240] INFO user.weather34: Web Service: 
me is installed

Aug 12 16:19:39 raspberrypi weewx[14240] INFO user.weather34: Web Service: 
eq is installed

Aug 12 16:19:39 raspberrypi weewx[14240] INFO user.weather34: Web Service: 
ki is installed

Aug 12 16:19:39 raspberrypi weewx[14240] INFO user.weather34: Web Service: 
wu is installed

Aug 12 16:19:39 raspberrypi weewx[14240] INFO user.weather34: Web Service: 
aq is installed

Aug 12 16:19:39 raspberrypi weewx[14240] INFO user.weather34: Web Service: 
al is installed

Aug 12 16:19:39 raspberrypi weewx[14240] DEBUG user.weather34: C

Re: [weewx-user] Re: Module Error

2020-08-12 Thread Mauro De Lauretis




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

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

Re: [weewx-user] Re: Module Error

2020-08-12 Thread Mauro De Lauretis
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 

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

-- 
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/b5d05819-d3ff-4d3c-9057-c449e9939bfan%40googlegroups.com.


RE: [weewx-user] Re: Module Error

2020-08-12 Thread steepleian
Tom and Gary, The only way in which I have been able to get the custom installer to fail is making a false step by making the wrong selection when prompted on how WeeWX was originally installed. Mauro has previously successfully installed this current version of Weather34 onto my test server with a clean install of WeeWX 4.1.1 / Python3, so the issue is ‘what is happening on his own setup’. I have asked Mauro to go back and start afresh on his own RaspberryPi with a clean install of WeeWX 4.1.1 and Python3, making sure all is working well with Simulator, install Weather34 and then follow the extensive troubleshooting guide that JD has devised and post the results here. The question regarding whether wee_reports_34 is running in the correct place. Yes it is rather unusual, but if you have a look at my website https://claydonsweather.org.uk and click on one of the pop-up chart links at the foot of the individual sensor modules you will see why. Choose a weekly chart for say barometer, hover and click on a chart data point and see what happens. Click again and a different scenario. It is this click which runs wee_reports_34. So back to the task in hand, hopefully we can get to the bottom of Mauro’s problems 😊 Thanks for your continued support, Ian Sent from Mail for Windows 10 From: Tom KefferSent: 12 August 2020 02:27To: weewx-userSubject: Re: [weewx-user] Re: Module Error 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 <balloonxoom...@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_w34Traceback (most recent call last):  File "/var/www/html/weewx/weather34/w34highcharts/wee_reports_w34", line 8, in     import weewxModuleNotFoundError: 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+unsubscr...@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.-- 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/CAPq0zECtu0d8VYDWbm%3DUAEvU86JTU_Kf1rRKreuUNwO1xLf7pw%40mail.gmail.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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/7A6EA92F-E1F7-4882-8023-11B2142314E2%40hxcore.ol.


Re: [weewx-user] Re: Module Error

2020-08-11 Thread Tom Keffer
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  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 
>>
>> 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+unsubscr...@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
> 
> .
>

-- 
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/CAPq0zECtu0d8VYDWbm%3DUAEvU86JTU_Kf1rRKreuUNwO1xLf7pw%40mail.gmail.com.


[weewx-user] Re: Module Error

2020-08-11 Thread gjr80
Maybe so, but it doesn’t alter the fact this is a PYTHONPATH issue.

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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/1fe52fde-cdac-4e52-a07e-28f63fbf8acbo%40googlegroups.com.


[weewx-user] Re: Module Error

2020-08-11 Thread J D
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 
>
> 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+unsubscr...@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.


[weewx-user] Re: Module Error

2020-08-11 Thread J D
Need a lot more info to figure out what is wrong. The repository for 
weather34 template has a troubleshooting guide.
Collect the required info and open an issue on the repository and post the 
info.

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 
>
> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/bb73aef6-f6ca-4b93-99a2-29ab9d6c9c29o%40googlegroups.com.