[weewx-user] Re: Manjaro - help seeing data from Vantage Pro 2

2020-06-13 Thread Henri Emurian
I discovered that using the python install method, which I have to use for 
Manjaro, does not include the python serial module. It was in the 
repository, and once I installed it, weewx downloaded data in terminal. Now 
that I have the data, how do I see graphs and charts. Does that require an 
extension or is there something else I need to install? Thanks. I will 
research this to see if I can figure it out, but any advice is welcome.

On Tuesday, June 9, 2020 at 2:31:29 PM UTC-4, Henri Emurian wrote:
>
> I am new to Linux and recently installed Manjaro. My old operating system 
> is Windows 7. I have a Vantage Pro 2 station which is connected via USB. On 
> Windows 7 I used the WeatherLink software from Davis. That gave me my data 
> by clicking the executable. 
> I read the user guide for Weewx and installed it using the Python utility 
> Setup.py. The install seemed to go well, although I was not sure which port 
> to choose (I chose the default ttyUSB0). No error messages came up.
> To run the program directly, I use cd /home/weewx, then sudo ./bin/weewxd. 
> When I execute this command, nothing happens. The cursor just goes to the 
> command line. There is no indication that data is being downloaded from the 
> station. My question is, how do I know whether data is being downloaded, 
> and how do I see my data, charts, etc? I have read the user manual and 
> found nothing which would help. TIA for any assistance.
>

-- 
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/c750b329-97da-4004-82d9-e667c3284091o%40googlegroups.com.


[weewx-user] Re: Manjaro - help seeing data from Vantage Pro 2

2020-06-12 Thread Henri Emurian
Thanks much for the info. Here is the log data:

Jun 10 09:34:34 mel-pc pkexec[2418]: mel: Executing command [USER=root] 
[TTY=unknown] [CWD=/home] [COMMAND=/usr/bin/thunar /home/weewx]
Jun 10 09:34:34 mel-pc dbus-daemon[2438]: [session uid=0 pid=2436] 
Activating service name='org.xfce.Xfconf' requested by ':1.0' (uid=0 
pid=2418 comm="/usr/bin/thunar /home/weewx " label="unconfined")
Jun 10 09:34:34 mel-pc dbus-daemon[2438]: [session uid=0 pid=2436] 
Activating service name='org.freedesktop.portal.Desktop' requested by 
':1.0' (uid=0 pid=2418 comm="/usr/bin/thunar /home/weewx " 
label="unconfined")
Jun 10 09:34:34 mel-pc dbus-daemon[2438]: [session uid=0 pid=2436] 
Activating service name='org.freedesktop.thumbnails.Thumbnailer1' requested 
by ':1.0' (uid=0 pid=2418 comm="/usr/bin/thunar /home/weewx " 
label="unconfined")
Jun 10 16:17:01 mel-pc sudo[9168]: root : TTY=pts/0 ; PWD=/home/weewx ; 
USER=root ; COMMAND=./bin/weewxd
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] INFO __main__: 
Initializing weewx version 4.1.0
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] INFO __main__: Using 
Python 3.8.2 (default, Apr  8 2020, 14:31:25) 
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] INFO __main__: Platform 
Linux-5.4.40-1-MANJARO-x86_64-with-glibc2.2.5
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] INFO __main__: Locale is 
'LC_CTYPE=en_US.utf8;LC_NUMERIC=en_US.UTF-8;LC_TIME=en_US.UTF-8;LC_COLLATE=en_US.utf8;LC_MONETARY=en_US.UTF-8;LC_MESSAGES=en_US.utf8;LC_PAPER=en_US.UTF-8;LC_NAME=en_US.UTF-8;LC_ADDRESS=en_US.UTF-8;LC_TELEPHONE=en_US.UTF-8;LC_MEASUREMENT=en_US.UTF-8;LC_IDENTIFICATION=en_US.UTF-8'
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] INFO __main__: Using 
configuration file /home/weewx/weewx.conf
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] INFO __main__: Debug is 1
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] DEBUG __main__: 
Initializing engine
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] INFO weewx.engine: Loading 
station type Vantage (weewx.drivers.vantage)
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] DEBUG 
weewx.drivers.vantage: Driver version is 3.2.1
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] ERROR weewx.engine: Import 
of driver failed: No module named 'serial' ()
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] CRITICAL weewx.engine:
   Traceback (most recent call last):
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] CRITICAL weewx.engine:
 File "/home/weewx/bin/weewx/engine.py", line 103, in setupStation
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] CRITICAL weewx.engine:
   self.console = loader_function(config_dict, self)
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] CRITICAL weewx.engine:
 File "/home/weewx/bin/weewx/drivers/vantage.py", line 39, in loader
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] CRITICAL weewx.engine:
   return VantageService(engine, config_dict)
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] CRITICAL weewx.engine:
 File "/home/weewx/bin/weewx/drivers/vantage.py", line 1897, in 
__init__
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] CRITICAL weewx.engine:
   Vantage.__init__(self, **config_dict[DRIVER_NAME])
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] CRITICAL weewx.engine:
 File "/home/weewx/bin/weewx/drivers/vantage.py", line 511, in 
__init__
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] CRITICAL weewx.engine:
   self.port.openPort()
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] CRITICAL weewx.engine:
 File "/home/weewx/bin/weewx/drivers/vantage.py", line 305, in 
openPort
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] CRITICAL weewx.engine:
   import serial
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] CRITICAL weewx.engine:
   ModuleNotFoundError: No module named 'serial'
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] CRITICAL __main__: Unable 
to load driver: No module named 'serial'
Jun 10 16:17:02 mel-pc weewxd[9169]: weewx[9169] CRITICAL __main__:
   Exiting...

I see that weewx is unable to load the driver because it cannot find a 
module named 'serial'. My station is connected to my computer via USB, and 
in setup the instructions said to use 'serial' for that connection. I don't 
know what to do next. Is it because I chose ttyusb0 and I should choose a 
different one, and if so, how do I know which one? I appreciate all of the 
help.

On Tuesday, June 9, 2020 at 2:31:29 PM UTC-4, Henri Emurian wrote:
>
> I am new to Linux and recently installed Manjaro. My old operating system 
> is Windows 7. I have a Vantage Pro 2 station which is connected via USB. On 
> Windows 7 I used the WeatherLink software from Davis. That gave me my data 
> by clicking the executable. 
> I read the user guide for Weewx and installed it using the Python utility 
> Setup.py. The install seemed to go well, although I was not sure which port 
> to choose (I chose 

Re: [weewx-user] Re: Manjaro - help seeing data from Vantage Pro 2

2020-06-11 Thread John Kline
Please give the following a try:

journalctl -f _SYSTEMD_UNIT=weewx.service



>> On Jun 11, 2020, at 5:29 PM, Henri Emurian  wrote:
> 
> Hi Vince, I ran the journalctl command but don't know how to pipe it to the 
> grep command you provided. I tried running it in a second terminal but to no 
> avail. I researched the grep command and saw some syntax examples, but none 
> of them seemed to apply. Thank you for your input. 
> 
>> On Tuesday, June 9, 2020 at 2:31:29 PM UTC-4, Henri Emurian wrote:
>> I am new to Linux and recently installed Manjaro. My old operating system is 
>> Windows 7. I have a Vantage Pro 2 station which is connected via USB. On 
>> Windows 7 I used the WeatherLink software from Davis. That gave me my data 
>> by clicking the executable. 
>> I read the user guide for Weewx and installed it using the Python utility 
>> Setup.py. The install seemed to go well, although I was not sure which port 
>> to choose (I chose the default ttyUSB0). No error messages came up.
>> To run the program directly, I use cd /home/weewx, then sudo ./bin/weewxd. 
>> When I execute this command, nothing happens. The cursor just goes to the 
>> command line. There is no indication that data is being downloaded from the 
>> station. My question is, how do I know whether data is being downloaded, and 
>> how do I see my data, charts, etc? I have read the user manual and found 
>> nothing which would help. TIA for any assistance.
> 
> -- 
> 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/2f7bdee3-055f-4539-9f2d-82fc311788c0o%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/5617509D-2C4F-4E9C-AD3E-B07F1F2355A1%40johnkline.com.


[weewx-user] Re: Manjaro - help seeing data from Vantage Pro 2

2020-06-11 Thread mwall


On Thursday, June 11, 2020 at 8:29:43 PM UTC-4, Henri Emurian wrote:
>
> Hi Vince, I ran the journalctl command but don't know how to pipe it to 
> the grep command you provided. I tried running it in a second terminal but 
> to no avail. I researched the grep command and saw some syntax examples, 
> but none of them seemed to apply. Thank you for your input. 
>

henri,

a linux 'pipe' is one way to send the output from one program to another.  
it is indicated using the vertial bar character: |

so to pipe the output from journalctl into grep, you would do this:

journalctl | grep -i weewx

the string 'weewx' is what you are looking for, and the '-i' option says 
"ignore case"

actually, you must do this:

sudo journalctl | grep -i weewx

because systemd forces you to have escalated privileges in order to read 
the systemd version of system logs.

if you install syslog-ng then you will get the standard unix logs, which 
are plain text.

journalctl is the systemd way of logging - it is copying the way windows 
does logging, by cramming everything into a single binary blob that is much 
more difficult to work with and more prone to failure than the standard 
unix approach.  journalctl is another example of how systemd is taking over 
the linux ecosystem, and not in a good way.  (apologies for the 
editorials.  or not.)

m

-- 
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/5754882b-829a-4901-bb58-3add29889caeo%40googlegroups.com.


[weewx-user] Re: Manjaro - help seeing data from Vantage Pro 2

2020-06-11 Thread Henri Emurian
Hi Vince, I ran the journalctl command but don't know how to pipe it to the 
grep command you provided. I tried running it in a second terminal but to 
no avail. I researched the grep command and saw some syntax examples, but 
none of them seemed to apply. Thank you for your input. 

On Tuesday, June 9, 2020 at 2:31:29 PM UTC-4, Henri Emurian wrote:
>
> I am new to Linux and recently installed Manjaro. My old operating system 
> is Windows 7. I have a Vantage Pro 2 station which is connected via USB. On 
> Windows 7 I used the WeatherLink software from Davis. That gave me my data 
> by clicking the executable. 
> I read the user guide for Weewx and installed it using the Python utility 
> Setup.py. The install seemed to go well, although I was not sure which port 
> to choose (I chose the default ttyUSB0). No error messages came up.
> To run the program directly, I use cd /home/weewx, then sudo ./bin/weewxd. 
> When I execute this command, nothing happens. The cursor just goes to the 
> command line. There is no indication that data is being downloaded from the 
> station. My question is, how do I know whether data is being downloaded, 
> and how do I see my data, charts, etc? I have read the user manual and 
> found nothing which would help. TIA for any assistance.
>

-- 
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/2f7bdee3-055f-4539-9f2d-82fc311788c0o%40googlegroups.com.


[weewx-user] Re: Manjaro - help seeing data from Vantage Pro 2

2020-06-11 Thread vince
On Thursday, June 11, 2020 at 4:00:24 PM UTC-7, Henri Emurian wrote:
>
> Thanks for the help mwall. Journalctl does show me log data, but the 
> amount of data is voluminous, and I can't find any logs on weewx. Is there 
> a way to filter the results so that I can see the weewx logs? As for 
> syslog, I tried 'sudo pacman -S syslog-ng',but it didn't return anything. 
> It appeared to be looking for syslog to install, but each attempt gave 
> error 404. 
>
>
>
Run the command and pipe it to "grep -i weewx"
 

-- 
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/7577b80b-0777-4285-8aee-0f505f120109o%40googlegroups.com.


[weewx-user] Re: Manjaro - help seeing data from Vantage Pro 2

2020-06-11 Thread Henri Emurian
Thanks for the help mwall. Journalctl does show me log data, but the amount 
of data is voluminous, and I can't find any logs on weewx. Is there a way 
to filter the results so that I can see the weewx logs? As for syslog, I 
tried 'sudo pacman -S syslog-ng',but it didn't return anything. It appeared 
to be looking for syslog to install, but each attempt gave error 404. 

On Tuesday, June 9, 2020 at 2:31:29 PM UTC-4, Henri Emurian wrote:
>
> I am new to Linux and recently installed Manjaro. My old operating system 
> is Windows 7. I have a Vantage Pro 2 station which is connected via USB. On 
> Windows 7 I used the WeatherLink software from Davis. That gave me my data 
> by clicking the executable. 
> I read the user guide for Weewx and installed it using the Python utility 
> Setup.py. The install seemed to go well, although I was not sure which port 
> to choose (I chose the default ttyUSB0). No error messages came up.
> To run the program directly, I use cd /home/weewx, then sudo ./bin/weewxd. 
> When I execute this command, nothing happens. The cursor just goes to the 
> command line. There is no indication that data is being downloaded from the 
> station. My question is, how do I know whether data is being downloaded, 
> and how do I see my data, charts, etc? I have read the user manual and 
> found nothing which would help. TIA for any assistance.
>

-- 
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/3531ccc3-010c-4fd8-a6ce-33ac33d30d05o%40googlegroups.com.


[weewx-user] Re: Manjaro - help seeing data from Vantage Pro 2

2020-06-11 Thread mwall
On Thursday, June 11, 2020 at 12:20:40 PM UTC-4, Henri Emurian wrote:
>
> In the file structure, I do have var/log/ but no messages or syslog in the 
> file. Any other ideas?
>

you could try 'journalctl' - that is the systemd approach to reading log 
files.  since arch/manjaro have been completely taken over by systemd that 
could be the problem.

but you might have to install/enable syslog-ng

something like

sudo pacman -S syslog-ng
sudo systemctl enable syslog-ng
sudo systemctl start syslog-ng

should do it

m

-- 
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/9bbb4113-d5eb-4a1b-ac8f-372aa6c7a380o%40googlegroups.com.


[weewx-user] Re: Manjaro - help seeing data from Vantage Pro 2

2020-06-11 Thread Henri Emurian
Thanks for your response. I set debut=1 and tried both commands, and both 
give me this: tail: cannot open '/var/log/messages' for reading: No such 
file or directory
tail: no files remaining 
and tail: cannot open '/var/log/syslog' for reading: No such file or 
directory
tail: no files remaining

In the file structure, I do have var/log/ but no messages or syslog in the 
file. Any other ideas?

On Tuesday, June 9, 2020 at 2:31:29 PM UTC-4, Henri Emurian wrote:
>
> I am new to Linux and recently installed Manjaro. My old operating system 
> is Windows 7. I have a Vantage Pro 2 station which is connected via USB. On 
> Windows 7 I used the WeatherLink software from Davis. That gave me my data 
> by clicking the executable. 
> I read the user guide for Weewx and installed it using the Python utility 
> Setup.py. The install seemed to go well, although I was not sure which port 
> to choose (I chose the default ttyUSB0). No error messages came up.
> To run the program directly, I use cd /home/weewx, then sudo ./bin/weewxd. 
> When I execute this command, nothing happens. The cursor just goes to the 
> command line. There is no indication that data is being downloaded from the 
> station. My question is, how do I know whether data is being downloaded, 
> and how do I see my data, charts, etc? I have read the user manual and 
> found nothing which would help. TIA for any assistance.
>

-- 
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/2cc126c9-ce41-48bc-9894-15c916745952o%40googlegroups.com.


[weewx-user] Re: Manjaro - help seeing data from Vantage Pro 2

2020-06-10 Thread mwall
On Tuesday, June 9, 2020 at 2:31:29 PM UTC-4, Henri Emurian wrote:
>
>
> To run the program directly, I use cd /home/weewx, then sudo ./bin/weewxd. 
> When I execute this command, nothing happens. The cursor just goes to the 
> command line. There is no indication that data is being downloaded from the 
> station. My question is, how do I know whether data is being downloaded, 
> and how do I see my data, charts, etc? 
>

try tailing the log file in one shell as you invoke weewx in another:

sudo tail -f /var/log/messages

it might be /var/log/syslog - its been awhile since i used manjaro

if you still do not see any output, the set 'debug=1' in the weewx.conf 
configuration file, then try again

m

-- 
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/f3d651e2-8281-41b4-ab23-24dd19d00fa2o%40googlegroups.com.