Re: [weewx-user] Re: raspberry pi 3 and weewx fail at first hurdle

2018-04-28 Thread 'Stuart Smith' via weewx-user

check ifconfig -all and see if you actually have an IP address

ifconfig -agives me: 

eth0: flags=4099  mtu 1500
ether b8:27:eb:ce:73:d8  txqueuelen 1000  (Ethernet)
RX packets 0  bytes 0 (0.0 B)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 0  bytes 0 (0.0 B)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73  mtu 65536
inet 127.0.0.1  netmask 255.0.0.0
inet6 ::1  prefixlen 128  scopeid 0x10
loop  txqueuelen 1000  (Local Loopback)
RX packets 2  bytes 100 (100.0 B)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 2  bytes 100 (100.0 B)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163  mtu 1500
inet 10.169.194.6  netmask 255.252.0.0  broadcast 255.255.255.255
inet6 fe80::9da1:d2dd:450f:c678  prefixlen 64  scopeid 0x20
ether b8:27:eb:9b:26:8d  txqueuelen 1000  (Ethernet)
RX packets 2292  bytes 801120 (782.3 KiB)
RX errors 0  dropped 0  overruns 0  frame 0
TX packets 1423  bytes 204514 (199.7 KiB)
TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0


next do 

ps -ef|grep weewx, gives me:

pi2593  1840  0 12:46 pts/100:00:00 grep --color=auto weewx


if you are using 
sudo vi /etc/weewx/weewx.conf and cannot open the file to write something more 
fundamental with your pi is going on try doing 

using the command above i can open the config file but not make any changes to 
it

ls -la /etc/weewx and see what the perms are, but sudo should allow you to open 
the file AND write it as you are root

the above command gives me:

total 88
drwxr-xr-x   9 root root  4096 Apr 28 12:40 .
drwxr-xr-x 113 root root  4096 Apr 27 16:37 ..
drwxr-xr-x   3 root root  4096 Apr  7 12:54 apache
drwxr-xr-x   2 root root  4096 Apr  9 11:53 import
drwxr-xr-x   2 root root  4096 Apr  9 11:53 logrotate.d
drwxr-xr-x   4 root root  4096 Apr  7 12:54 logwatch
drwxr-xr-x   2 root root  4096 Apr  9 11:53 rsyslog.d
drwxr-xr-x   5 root root  4096 Apr  7 12:54 skins
drwxr-xr-x   3 root root  4096 Apr  7 12:54 udev
-rw-r--r--   1 root root 14795 Apr  9 11:53 weewx.conf
-rw-r--r--   1 root root 13722 Nov 22 14:36 weewx.conf.dist
-rw-r--r--   1 root root 20480 Apr 28 12:37 .weewx.conf.swp


-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: raspberry pi 3 and weewx fail at first hurdle

2018-04-28 Thread 'Stuart Smith' via weewx-user
On Saturday, 28 April 2018 01:52:19 UTC+2, JHoke  wrote:
> Ok, 
> 
> 
> a couple things ... your syslog is chucking a bunch of DHCP messages
> 
> 
> check ifconfig -all and see if you actually have an IP address
> 
> 
> next do 
> 
> 
> ps -ef|grep weewx 
> 
> 
> see if you are running weewx at all
> 
> 
> if you are using 
> sudo vi /etc/weewx/weewx.conf and cannot open the file to write something 
> more fundamental with your pi is going on try doing 
> 
> 
> ls -la /etc/weewx and see what the perms are, but sudo should allow you to 
> open the file AND write it as you are root
> 
> 
> On Fri, Apr 27, 2018 at 11:56 AM, Andrew Milner  wrote:
> 
> 
> a silly question - how do you know it is actually running?? how did you start 
> it??
> 
> 
> there should be at least weewx startup log messages
> 
> 
> are you sure the messages are not being diverted to weewx.log??
> 
> 
> what command did you use to view the log??
> 
> 
> 
> 
> 
> 
> On Friday, 27 April 2018 18:47:36 UTC+3, Stuart Smith  wrote:On Friday, 27 
> April 2018 17:19:42 UTC+2, vince  wrote:
> 
> > On Friday, April 27, 2018 at 8:15:55 AM UTC-7, Stuart Smith wrote:
> 
> > bought a raspberry pi 3, came with noobs on the sd card, installed raspbian 
> > from here.
> 
> > followed the instructions on installing weewx at 
> > www.weewx.com/docs/debian.htm
> 
> > configured apt, no problem
> 
> > installed weewx, no problem
> 
> > step 3 is to check the syslog for message from weewx, there are none 
> > whatsoever...the only activity in the log is pasted below.
> 
> > can anyone pleeaase help? I've looked through the wiki and searched 
> > this group but found nothing of help, feel like a complete idiot!
> 
> > P.S. cannot edit the weewx.conf either, I can open it, tweek it but cannot 
> > save it, tells me it cannot open the file to overwrite it.
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > 
> 
> > You're on a pi, so you are likely running as user 'pi' which has no 
> > permissions to write to root-owned files.
> 
> > Try using "sudo" ala "sudo your_command_here"
> 
> > 
> 
> > 
> 
> > If you're a new Linux user completely, definitely get yourself some online 
> > Linux training for the basics.
> 
> >  
> 
> 
> 
> Yup, been using the sudo command...but why is weewx not reporting? Surely my 
> root permission has no bearing on this?
> 
> 
> 
> P.s. thanks for the reply
> 
> 
> 
> 
> 
> 
> -- 
> 
> 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.
> 
> For more options, visit https://groups.google.com/d/optout.
> 
> 
> 
> 
> 
> -- 
> 
> 
> 
> 
> 
> 
> John P. Hoke
> jo...@hoke.org
> https://hoke.org/john/
> Random Non-Sequiturs & Photography 

Wow, thanks John!

Will look this lot over as soon as can find another spare hour this weekend and 
get back to you, thanks for the reply!

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] Re: raspberry pi 3 and weewx fail at first hurdle

2018-04-27 Thread John Patrick Hoke
Ok,

a couple things ... your syslog is chucking a bunch of DHCP messages

check ifconfig -all and see if you actually have an IP address

next do

ps -ef|grep weewx

see if you are running weewx at all

if you are using
sudo vi /etc/weewx/weewx.conf and cannot open the file to write something
more fundamental with your pi is going on try doing

ls -la /etc/weewx and see what the perms are, but sudo should allow you to
open the file AND write it as you are root

On Fri, Apr 27, 2018 at 11:56 AM, Andrew Milner  wrote:

> a silly question - how do you know it is actually running?? how did you
> start it??
>
> there should be at least weewx startup log messages
>
> are you sure the messages are not being diverted to weewx.log??
>
> what command did you use to view the log??
>
>
>
> On Friday, 27 April 2018 18:47:36 UTC+3, Stuart Smith wrote:
>
>> On Friday, 27 April 2018 17:19:42 UTC+2, vince  wrote:
>> > On Friday, April 27, 2018 at 8:15:55 AM UTC-7, Stuart Smith wrote:
>> > bought a raspberry pi 3, came with noobs on the sd card, installed
>> raspbian from here.
>> > followed the instructions on installing weewx at
>> www.weewx.com/docs/debian.htm
>> > configured apt, no problem
>> > installed weewx, no problem
>> > step 3 is to check the syslog for message from weewx, there are none
>> whatsoever...the only activity in the log is pasted below.
>> > can anyone pleeaase help? I've looked through the wiki and searched
>> this group but found nothing of help, feel like a complete idiot!
>> > P.S. cannot edit the weewx.conf either, I can open it, tweek it but
>> cannot save it, tells me it cannot open the file to overwrite it.
>> >
>> >
>> >
>> >
>> >
>> >
>> > You're on a pi, so you are likely running as user 'pi' which has no
>> permissions to write to root-owned files.
>> > Try using "sudo" ala "sudo your_command_here"
>> >
>> >
>> > If you're a new Linux user completely, definitely get yourself some
>> online Linux training for the basics.
>> >
>>
>> Yup, been using the sudo command...but why is weewx not reporting? Surely
>> my root permission has no bearing on this?
>>
>> P.s. thanks for the reply
>
> --
> 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.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
John P. Hoke
j...@hoke.org
https://hoke.org/john /
Random Non-Sequiturs & Photography

-- 
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.
For more options, visit https://groups.google.com/d/optout.