--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/NpeOl7xJ0BQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
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+unsubscribe@googlegroups.com.
On Thu, Jan 19, 2017 at 5:58 AM, Thomas Keffer<tke...@gmail.com> wrote:
How do I run it normally and not as a daemon?Kevin
Sent from Yahoo Mail on Android
On Thu, Jan 19, 2017 at 4:40 AM, Thomas Keffer<tke...@gmail.com> wrote:
Things to try:Does /dev/ttyS0 actually exist?It looks like you are running weewxd as a daemon, which is usually run as root, so adding yourself to the dialout group will not make any difference. In any case, try running from the command line, and try running as root (by using a 'sudo' prefix). This may give you clues.Try running the driver directly. It can give you more clues about what's happening. The command
PYTHONPATH=/usr/share/weewx python /usr/share/weewx/weewx/ drivers/ws23xx.py --help
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@ googlegroups.com.
For more options, visit https://groups.google.com/d/ optout.
--
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+unsubscribe@ googlegroups.com.
For more options, visit https://groups.google.com/d/ optout.
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/NpeOl7xJ0BQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
What is fcntl/select?
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.
--
It is a old dell laptop. Latitude D600. Serial port and ttyS0 exists. Do I need to install a different library?
Here is what I got.
Traceback (most recent call last):
File "weewx/drivers/ws23xx.py", line 2117, in <module>
with WS23xx(port) as s:
File "weewx/drivers/ws23xx.py", line 648, in __init__
self.serial_port = LinuxSerialPort(port)
File "weewx/drivers/ws23xx.py", line 908, in __init__
self.orig_settings = tty.tcgetattr(self.serial_port)
termios.error: (5, 'Input/output error')
ok... So my serial port got changed in BIOS. So I tried this.
setserial -g /dev/ttyS[0123456789]
/dev/ttyS0, UART: 16550A, Port: 0x03f8, IRQ: 4
/dev/ttyS1, UART: unknown, Port: 0x02f8, IRQ: 3
/dev/ttyS2: No such device
/dev/ttyS3, UART: unknown, Port: 0x02e8, IRQ: 3
/dev/ttyS4, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS5, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS6, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS7, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS8, UART: unknown, Port: 0x0000, IRQ: 0
/dev/ttyS9, UART: unknown, Port: 0x0000, IRQ: 0
Now I know it is on COM1 or TTYS0. I then ran the command you gave me with the following.
sudo PYTHONPATH=. python weewx/drivers/ws23xx.py --port /dev/ttyS0 --readings
{'rt': 556.0, 'wc': -2.4, 'cn': 15, 'oh': 85.0, 'it': 22.8, 'ih': 42.0, 'pa': 837.4, 'dp': -4.6, 'ot': -2.4, 'rh': 0.0, 'wind': (0.0, 225.0, 0, 0)}
So I guess it is working. But nothing in the WWW Directory. When I use "sudo /etc/init.d/weewx start" I get ,
* Starting weewx weather system weewx [ OK ]
So now what I guess is my next question. :)
Thanks, Kevin
--
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscribe@googlegroups.com.