[weewx-user] Re: raspberry pi 3 and weewx fail at first hurdle
On Saturday, April 28, 2018 at 3:59:09 AM UTC-7, Stuart Smith wrote: > > i've searched the syslog file for any instances of weewx but comes up with > nothing > iàve searched the system and no weewx.log exists > to view thw log i use: sudo tail -f /var/log/syslog > Lets try this: - sudo systemctl status weewx.service When it's running it'll look something like: ● weewx.service - LSB: weewx weather system Loaded: loaded (/etc/init.d/weewx; bad; vendor preset: enabled) Active: active (running) since Sat 2018-04-28 09:33:59 PDT; 4s ago Docs: man:systemd-sysv-generator(8) Process: 5372 ExecStop=/etc/init.d/weewx stop (code=exited, status=0/SUCCESS) Process: 5419 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS) Tasks: 1 Memory: 9.5M CPU: 135ms CGroup: /system.slice/weewx.service └─5436 python /usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf I suspect yours will look shorter/different and refer you to the journalctl command for more details. So try: - sudo journalctl -u weewx.service Which should print out any log entries that came from weewx when systemd tried to start it. Lastly - which raspbian did you install ? Raspbian desktop or light ? -- 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.
[weewx-user] Re: raspberry pi 3 and weewx fail at first hurdle
OK - 1. try and run directly, not as a daemon 2. try and edit weewx.conf using nano rather than vi what happens?? On Saturday, 28 April 2018 13:59:09 UTC+3, Stuart Smith wrote: > hi Andrew, > > i started weewx using: sudo /etc/init.d/weewx start > > i've searched the syslog file for any instances of weewx but comes up with > nothing > iàve searched the system and no weewx.log exists > to view thw log i use: sudo tail -f /var/log/syslog > hope this helps a little -- 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.
[weewx-user] Re: raspberry pi 3 and weewx fail at first hurdle
hi Andrew, i started weewx using: sudo /etc/init.d/weewx start i've searched the syslog file for any instances of weewx but comes up with nothing iàve searched the system and no weewx.log exists to view thw log i use: sudo tail -f /var/log/syslog hope this helps a little -- 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
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.
[weewx-user] WX200 updated driver
Good day to all. I am trying to use Weewx with an old WX200 with wired sensors. I have found some information from old threads here, but an old driver which I could find as "wmr9x8.py" is not working with current version of weewx. Does any one has a working driver which I can use? If so please post it on sv1iwraag.org or through the forum for the benefit of others too. Thank you in advance Manos SV1IW -- 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
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.
[weewx-user] Re: raspberry pi 3 and weewx fail at first hurdle
On Friday, 27 April 2018 17:56:41 UTC+2, 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 Thanks Andrew, will respond in due course to this, time to work on this little project is sparse when running a farm! -- 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.