weewx stop reporting few times per day and probably crash because nothing appear in the syslog file after the last report (check below for extract of my syslog file during the last crash and my weewx conf file).To restart the weewx i do a reboot of the raspberry or stop and start of the service.what can i do to monitor if the weewx service crash and diagnose the cause of the crash ????
wget -O weewx-wh23xx.zip https://github.com/matthewwall/weewx-wh23xx/archive/master.zip
Hihow do i know which version of the wh23xx driver i'm running? it's should be in user.wh23xx but i can't find the location.
to reinstall the driver is it enough to do :wget -O weewx-wh23xx.zip https://github.com/matthewwall/weewx-wh23xx/archive/master.zipwee_extension --install weewx-wh23xx.zipand restart weewx ????
sudo apt-get update
wget -O weewx-wh23xx.zip https://github.com/matthewwall/weewx-wh23xx/archive/master.zipwee_extension --install weewx-wh23xx.zip
Gary
So let's be clear about this. You are running
a) A new raspberry pi YESb) A new install of weewx YESc) A new weather station which is a WH2310 clone YESHas the rpi run weewx under simulator for any period? NOHas the weather station run on another system for a period? NOHas standard weewx, without forecasting and maybe without ftp/rsync run for any period?? NO
What model rpi are you using, which operating system and what kind of power supply and SD card?
Try and connect a screen and keyboard to the rpi and see if you can get any sense from the rpi when weewx appears to freeze - I would be most surprised if your problems are caused by weewx itself - far more likely to be power, sdcard, os, rpi related .....
m
Seems like you have to choose between running in 'live' mode with the system 'crashing' multiple times per day or running in 'test' mode whilst trying to find out why it is 'crashing'. If the station hasd a logger, which I believe the 2310 has, then you should be able to retrieve lost data by resetting the database back in time and restarting weewx.
if i disable the forecast search list extension am i going to loose the WU and Zambtretti forecast?
Matthew - thanks for the correction. I was hoping that you would eventually join this thread - especially since we have now established it is a totally new installation with no previous 'working' history. I still think this is reminiscent of my rpi2 B+ that just started freezing for no apparent reason, and no reason I could ever establish.; Since I swapped o rpi3 and Jessie I have not had a glitch - and for 3 years on the rpi2 I never had a problem .... until it started just 'freezing'. I still, to this day, have not resolved what causes the failures. The difference ijn my setup is that I was running wheezy and when it froze I could notget in via ssh either.
top - 09:27:47 up 2:20, 2 users, load average: 0.07, 0.07, 0.07Tasks: 143 total, 1 running, 142 sleeping, 0 stopped, 0 zombie%Cpu(s): 0.8 us, 0.1 sy, 0.0 ni, 99.1 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 stKiB Mem: 947732 total, 358672 used, 589060 free, 42040 buffersKiB Swap: 102396 total, 0 used, 102396 free. 182152 cached Mem
ps aux | grep weewxroot 608 6.1 3.4 86252 32480 ? Sl 07:08 8:41 python /usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid /etc/weewx/weewx.confpi 1425 0.0 0.1 4280 1852 pts/0 S+ 09:30 0:00 grep --color=auto weewx
hiit's rpi2 B+ so it should be 1G and the rpi is dedicated for weewx, i just enable ssh and vncserver.for the memory i have a lot of it according to 'top' commandtop - 09:27:47 up 2:20, 2 users, load average: 0.07, 0.07, 0.07Tasks: 143 total, 1 running, 142 sleeping, 0 stopped, 0 zombie%Cpu(s): 0.8 us, 0.1 sy, 0.0 ni, 99.1 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 stKiB Mem: 947732 total, 358672 used, 589060 free, 42040 buffersKiB Swap: 102396 total, 0 used, 102396 free. 182152 cached Membelow the output of ps aux | grep weewxps aux | grep weewxroot 608 6.1 3.4 86252 32480 ? Sl 07:08 8:41 python /usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid /etc/weewx/weewx.confpi 1425 0.0 0.1 4280 1852 pts/0 S+ 09:30 0:00 grep --color=auto weewxi'll get back to strd skin but i had already this crash when i was setting up and learning weewx so i doubt the skin is in cause.
--
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.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+...@googlegroups.com.
You could always just use a local SQLite or even MySQL database to at least see if the rpi still crashes!!
One of the problems is that your setup is not standard, is not simple, but does not work either!! IMHO it is necessary to go as simple and stand\rd as possible and add in complexity – rather than doing what we are currently doing – which is simplifying things in each test.
Have you actually tried weewx with a local database and the standard skin – without forecasting or bootstrap or remote database or any other additions?? If so, did it still crash??
this morning crash syslog (see attachfile)edthe weewx has stop working from 8:37 to 1:30 until i reboot the rpi.maybe i have a network issue...i'll try to use a fix ip instead of static address delivered by my dhcp ...which going to be the same nbut form my ddwrt routr i prefer to use the dhcp/dnsmasq to atribute even the fix ip.
Dec 26 07:12:32 weatherstation weewx[602]: wh23xx: read_record: cmdbuf: 02 02 04 04 (len=4)
hii though i got it last night after having removed the ip v6 part of the rpi and hardcoding the ip address of the mysql server, the weewx did not crash for 12 hours. but this morning at 07:12 the weewx had crashed again the last line of the syslog regarding weather station is :Dec 26 07:12:32 weatherstation weewx[602]: wh23xx: read_record: cmdbuf: 02 02 04 04 (len=4)would it suggest a wh23xx driver going in loop ?
i have no idea how to make the weewx startup script depend on the network and ntp. please could you help me on this one....
The log is not stopped is just that nothing else happen on the machine. this rpi is dedicated only to weewx it's a headless machine connected to the lan via ethernet. the only service loaded in top of weewx is tightvnc server. it's like weewx goes in loop somewhere and stop doing anything. this morning i just restart the weewx service and everything went back on normal.
FYI my wh2310 weather station is a Misol clone of TP2700WC
pi@weatherstation:~ $ sudo tail -f /var/log/syslog
Dec 26 19:37:10 weatherstation weewx[600]: wh23xx: rain_totals: {'value': 626.1} (0x14 0x14)
Dec 26 19:37:10 weatherstation weewx[600]: wh23xx: light: {'value': 228.3} (0x15 0x15)
Dec 26 19:37:10 weatherstation weewx[600]: wh23xx: uv: {'value': 0.0} (0x16 0x16)
Dec 26 19:37:10 weatherstation weewx[600]: wh23xx: uvi: {'value': 0} (0x17 0x17)
Dec 26 19:37:10 weatherstation weewx[600]: wh23xx: decoded data: {'wind_speed': {'value': 1.3}, 'gust_speed': {'value': 2.0}, 'rain_totals': {'value': 626.1}, 'in_temp': {'value': 27.5}, 'dewpoint': {'value': 22.299999999999997}, 'rain_month': {'value': 406.8}, 'out_humidity': {'value': 73}, 'light': {'value': 228.3}, 'rain_rate': {'value': 0.0}, 'heatindex': {'value': 30.200000000000003}, 'in_humidity': {'value': 65}, 'rain_day': {'value': 0.0}, 'out_temp': {'value': 27.599999999999994}, 'rel_baro': {'value': 1010.6}, 'uv': {'value': 0.0}, 'uvi': {'value': 0}, 'rain_year': {'value': 626.1}, 'rain_week': {'value': 0.0}, 'abs_baro': {'value': 1010.6}, 'wind_dir': {'value': 270}, 'windchill': {'value': 27.599999999999994}}
Dec 26 19:37:10 weatherstation weewx[600]: wh23xx: packet: {'pressure': 1010.6, 'outHumidity': 73, 'light': 228.3, 'UV': 0, 'radiation': 0.0, 'rain': 0.0, 'dateTime': 1482755831, 'windDir': 270, 'outTemp': 27.599999999999994, 'windSpeed': 1.3, 'inHumidity': 65, 'inTemp': 27.5, 'windGust': 2.0, 'usUnits': 17}
Dec 26 19:37:25 weatherstation weewx[600]: wh23xx: read_record: cmdbuf: 02 02 04 04 (len=4)
Dec 26 20:17:01 weatherstation CRON[1191]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
Dec 26 21:07:11 weatherstation systemd[1]: Starting Session c5 of user pi.
Dec 26 21:07:11 weatherstation systemd[1]: Started Session c5 of user pi.
pi@weatherstation:~ $ ps -aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.4 22892 4048 ? Ss 18:09 0:05 /sbin/init splash
root 2 0.0 0.0 0 0 ? S 18:09 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S 18:09 0:00 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< 18:09 0:00 [kworker/0:0H]
root 7 0.0 0.0 0 0 ? S 18:09 0:09 [rcu_sched]
root 8 0.0 0.0 0 0 ? S 18:09 0:00 [rcu_bh]
root 9 0.0 0.0 0 0 ? S 18:09 0:00 [migration/0]
root 10 0.0 0.0 0 0 ? S 18:09 0:00 [migration/1]
root 11 0.0 0.0 0 0 ? S 18:09 0:00 [ksoftirqd/1]
root 13 0.0 0.0 0 0 ? S< 18:09 0:00 [kworker/1:0H]
root 14 0.0 0.0 0 0 ? S 18:09 0:00 [migration/2]
root 15 0.0 0.0 0 0 ? S 18:09 0:00 [ksoftirqd/2]
root 17 0.0 0.0 0 0 ? S< 18:09 0:00 [kworker/2:0H]
root 18 0.0 0.0 0 0 ? S 18:09 0:00 [migration/3]
root 19 0.0 0.0 0 0 ? S 18:09 0:00 [ksoftirqd/3]
root 21 0.0 0.0 0 0 ? S< 18:09 0:00 [kworker/3:0H]
root 22 0.0 0.0 0 0 ? S 18:09 0:00 [kdevtmpfs]
root 23 0.0 0.0 0 0 ? S< 18:09 0:00 [netns]
root 24 0.0 0.0 0 0 ? S< 18:09 0:00 [perf]
root 25 0.0 0.0 0 0 ? S 18:09 0:00 [khungtaskd]
root 26 0.0 0.0 0 0 ? S< 18:09 0:00 [writeback]
root 27 0.0 0.0 0 0 ? S< 18:09 0:00 [crypto]
root 28 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 29 0.0 0.0 0 0 ? S< 18:09 0:00 [kblockd]
root 31 0.0 0.0 0 0 ? S< 18:09 0:00 [rpciod]
root 32 0.0 0.0 0 0 ? S 18:09 0:00 [kswapd0]
root 33 0.0 0.0 0 0 ? S< 18:09 0:00 [vmstat]
root 34 0.0 0.0 0 0 ? S 18:09 0:00 [fsnotify_mark]
root 35 0.0 0.0 0 0 ? S< 18:09 0:00 [nfsiod]
root 44 0.0 0.0 0 0 ? S< 18:09 0:00 [kthrotld]
root 45 0.0 0.0 0 0 ? S 18:09 0:00 [kworker/1:1]
root 48 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 49 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 50 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 51 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 52 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 53 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 54 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 55 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 56 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 57 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 58 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 59 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 60 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 61 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 62 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 63 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 64 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 65 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 66 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 67 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 68 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 69 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 70 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 71 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 72 0.0 0.0 0 0 ? S< 18:09 0:00 [VCHIQ-0]
root 73 0.0 0.0 0 0 ? S< 18:09 0:00 [VCHIQr-0]
root 74 0.0 0.0 0 0 ? S< 18:09 0:00 [VCHIQs-0]
root 75 0.0 0.0 0 0 ? S< 18:09 0:00 [iscsi_eh]
root 76 0.0 0.0 0 0 ? S< 18:09 0:00 [dwc_otg]
root 77 0.0 0.0 0 0 ? S< 18:09 0:00 [DWC Notificatio]
root 79 0.0 0.0 0 0 ? S 18:09 0:00 [VCHIQka-0]
root 80 0.0 0.0 0 0 ? S< 18:09 0:00 [SMIO]
root 81 0.0 0.0 0 0 ? S< 18:09 0:00 [deferwq]
root 82 0.0 0.0 0 0 ? S 18:09 0:00 [kworker/u8:2]
root 83 0.0 0.0 0 0 ? S< 18:09 0:00 [bioset]
root 84 0.0 0.0 0 0 ? S 18:09 0:01 [mmcqd/0]
root 86 0.0 0.0 0 0 ? S 18:09 0:00 [jbd2/mmcblk0p7-]
root 87 0.0 0.0 0 0 ? S< 18:09 0:00 [ext4-rsv-conver]
root 88 0.0 0.0 0 0 ? S< 18:09 0:00 [ipv6_addrconf]
root 110 0.0 0.0 0 0 ? S< 18:09 0:00 [kworker/2:1H]
root 132 0.0 0.3 11928 3000 ? Ss 18:09 0:00 /lib/systemd/systemd-udevd
root 136 0.2 0.6 10324 6444 ? Ss 18:09 0:24 /lib/systemd/systemd-journald
root 389 0.0 0.2 5072 2412 ? Ss 18:09 0:00 /usr/sbin/cron -f
root 390 0.0 0.2 3852 2476 ? Ss 18:09 0:00 /lib/systemd/systemd-logind
avahi 401 0.0 0.2 3876 2488 ? Ss 18:09 0:00 avahi-daemon: running [weatherstation.local]
message+ 404 0.0 0.3 5720 3204 ? Ss 18:09 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
root 421 0.0 0.0 0 0 ? S< 18:09 0:00 [cfg80211]
nobody 423 0.0 0.1 2292 1468 ? Ss 18:09 0:00 /usr/sbin/thd --daemon --triggers /etc/triggerhappy/triggers.d/ --socket /var/run/thd.socket --pidfile /var/run/thd.pid -root 424 0.0 0.1 2564 1808 ? Ss 18:09 0:00 /sbin/dhcpcd -q -b
avahi 432 0.0 0.0 3876 240 ? S 18:09 0:00 avahi-daemon: chroot helper
root 494 0.0 0.2 32144 2652 ? Ssl 18:09 0:05 /usr/sbin/rsyslogd -n
root 500 0.0 0.4 7864 4304 ? Ss 18:09 0:00 /usr/sbin/sshd -D
pi 555 0.0 0.3 4976 3252 ? Ss 18:09 0:00 /lib/systemd/systemd --user
ntp 565 0.0 0.3 5688 3684 ? Ss 18:09 0:01 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 107:112
root 567 0.0 0.5 35892 5476 ? Ssl 18:09 0:00 /usr/sbin/lightdm
pi 570 0.0 0.1 6840 1260 ? S 18:09 0:00 (sd-pam)
root 586 0.0 0.2 5668 2768 tty1 Ss 18:09 0:00 /bin/login -f
root 587 0.0 0.2 3872 1924 ? Ss+ 18:09 0:00 /sbin/agetty --keep-baud 115200 38400 9600 ttyAMA0 vt102
root 600 10.4 3.5 96412 33980 ? Sl 18:09 18:32 python /usr/bin/weewxd --daemon --pidfile=/var/run/weewx.pid /etc/weewx/weewx.conf
root 613 0.0 0.4 7216 3796 ? Ss 18:09 0:00 /usr/sbin/apache2 -k start
www-data 616 0.0 0.4 231848 4184 ? Sl 18:09 0:04 /usr/sbin/apache2 -k start
www-data 617 0.0 0.5 235952 4748 ? Sl 18:09 0:04 /usr/sbin/apache2 -k start
root 689 0.8 2.2 31624 21336 tty7 Ss+ 18:09 1:31 /usr/lib/xorg/Xorg :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
root 698 0.0 0.5 27808 5636 ? Sl 18:09 0:00 lightdm --session-child 19 22
lightdm 784 0.0 0.3 4976 3356 ? Ss 18:09 0:00 /lib/systemd/systemd --user
lightdm 787 0.0 0.1 6840 1260 ? S 18:09 0:00 (sd-pam)
lightdm 790 0.6 3.5 60196 33260 ? Ssl 18:09 1:06 /usr/sbin/pi-greeter
pi 800 0.0 0.4 6580 4504 tty1 S+ 18:09 0:00 -bash
root 832 0.0 0.0 0 0 ? S< 18:09 0:00 [kworker/1:1H]
root 839 0.0 0.4 9564 4208 ? S 18:09 0:00 lightdm --session-child 13 22
pi 841 0.0 0.8 11156 8060 ? S 18:10 0:05 Xtightvnc :1 -desktop X -auth /home/pi/.Xauthority -geometry 1368x768 -depth 24 -rfbwait 120000 -rfbauth /home/pi/.vnc/papi 845 0.0 0.0 1912 392 ? S 18:10 0:00 /bin/sh /home/pi/.vnc/xstartup
pi 852 0.0 1.2 50976 11380 ? Sl 18:10 0:00 /usr/bin/lxsession -s LXDE-pi -e LXDE
pi 907 0.0 0.0 3700 220 ? Ss 18:10 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session x-session-manager
pi 910 0.0 0.1 3692 1500 ? S 18:10 0:00 /usr/bin/dbus-launch --exit-with-session x-session-manager
pi 911 0.0 0.2 5608 2124 ? Ss 18:10 0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
pi 917 0.0 0.6 30856 5716 ? Sl 18:10 0:00 /usr/lib/gvfs/gvfsd
pi 921 0.0 0.4 47252 4328 ? Sl 18:10 0:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f -o big_writes
root 927 0.0 0.0 0 0 ? S< 18:10 0:00 [kworker/0:1H]
pi 934 0.0 1.2 20208 11392 ? S 18:10 0:00 openbox --config-file /home/pi/.config/openbox/lxde-pi-rc.xml
pi 937 0.0 0.9 30376 8952 ? Sl 18:10 0:00 lxpolkit
pi 939 0.2 2.5 93324 24328 ? Sl 18:10 0:25 lxpanel --profile LXDE-pi
pi 940 0.0 1.8 74056 17752 ? Sl 18:10 0:00 pcmanfm --desktop --profile LXDE-pi
pi 947 0.0 0.0 3700 220 ? Ss 18:10 0:00 /usr/bin/ssh-agent -s
root 950 0.0 0.6 36792 6104 ? Ssl 18:10 0:00 /usr/lib/policykit-1/polkitd --no-debug
pi 964 0.0 0.7 41852 7296 ? Sl 18:10 0:00 /usr/lib/gvfs/gvfs-udisks2-volume-monitor
root 969 0.0 0.6 54580 6352 ? Ssl 18:10 0:00 /usr/lib/udisks2/udisksd --no-debug
rtkit 973 0.0 0.2 21376 2024 ? SNsl 18:10 0:00 /usr/lib/rtkit/rtkit-daemon
root 988 0.0 0.3 5008 3456 ? Ss 18:10 0:00 /usr/lib/bluetooth/bluetoothd
pi 989 0.0 0.5 30952 5532 ? Sl 18:10 0:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor
pi 996 0.0 0.6 42416 6436 ? Sl 18:10 0:00 /usr/lib/gvfs/gvfs-afc-volume-monitor
pi 1001 0.0 0.0 1912 96 ? S 18:10 0:00 /bin/sh /usr/bin/start-pulseaudio-x11
pi 1002 0.0 0.0 5796 596 ? S 18:10 0:00 /usr/bin/xprop -root -spy
pi 1012 0.0 0.5 29932 5244 ? Sl 18:10 0:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor
pi 1021 0.0 0.5 30036 5428 ? Sl 18:10 0:00 /usr/lib/gvfs/gvfs-goa-volume-monitor
pi 1030 0.0 0.5 28292 4852 ? Ssl 18:10 0:00 /usr/lib/menu-cache/menu-cached /tmp/.menu-cached-:1-pi
pi 1033 0.0 0.6 49888 6220 ? Sl 18:10 0:00 /usr/lib/gvfs/gvfsd-trash --spawner :1.1 /org/gtk/gvfs/exec_spaw/0
root 1077 0.0 0.0 0 0 ? S 18:15 0:02 [kworker/3:0]
root 1102 0.0 0.0 0 0 ? S 18:24 0:00 [kworker/2:2]
root 1124 0.0 0.0 0 0 ? S 18:47 0:02 [kworker/0:1]
root 1147 0.0 0.0 0 0 ? S 19:16 0:00 [kworker/u8:1]
root 1174 0.0 0.0 0 0 ? S 19:27 0:00 [kworker/1:0]
root 1178 0.0 0.0 0 0 ? S 19:33 0:00 [kworker/0:2]
root 1179 0.0 0.0 0 0 ? S 19:33 0:00 [kworker/2:0]
root 1182 0.0 0.0 0 0 ? S 19:36 0:00 [kworker/3:2]
root 1208 2.1 0.5 12076 5256 ? Ss 21:07 0:00 sshd: pi [priv]
pi 1215 0.4 0.4 12076 4048 ? R 21:07 0:00 sshd: pi@pts/0
pi 1217 4.0 0.4 6488 4424 pts/0 Ss 21:07 0:00 -bash
root 1218 0.0 0.0 0 0 ? S 21:07 0:00 [kworker/u8:0]
root 1255 0.0 0.0 0 0 ? S 21:07 0:00 [kworker
19:37 crash
yes i can see some cron task on the syslog
And yes weewx still appear in ps -aux
See below.
REC: 2016-12-27 09:40:00 WIB (1482806400) altimeter: 1010.98914931, appTemp: 33.8497907262, barometer: 1011.2593677, cloudbase: 1077.32333783, dateTime: 1482806400.0, dewpoint: 21.3580215713, ET: 0.00405905271933, heatindex: 32.7730155621, humidex: 38.6958833164, inDewpoint: 67.5524896328, inHumidity: 65.0, inTemp: 26.9, interval: 5, light: 90633.1842105, maxSolarRad: 729.192357985, outHumidity: 60.1052631579, outTemp: 29.9578947368, pressure: 1010.68947368, radiation: 510.923157895, rain: 0.0, rainRate: 0.0, usUnits: 16, UV: 4.78947368421, windchill: 29.9578947368, windDir: 150.362157876, windGust: 3.60001789556, windGustDir: None, windrun: 2.26457874991, windSpeed: 2.44422267646LOOP: 2016-12-27 09:40:17 WIB (1482806417) altimeter: 1011.09972874, appTemp: 34.1705907237, barometer: 1011.36968913, cloudbase: 1116.13758088, dateTime: 1482806417, dewpoint: 21.1888423968, heatindex: 32.82163605, humidex: 38.6869812418, inDewpoint: 67.5524896328, inHumidity: 65, inTemp: 26.9, light: 100947.1, maxSolarRad: 738.862324385, outHumidity: 59, outTemp: 30.1, pressure: 1010.8, radiation: 538.156, rain: 0.0, rainRate: 0.0, usUnits: 16, UV: 5, windchill: 30.1, windDir: 180, windGust: 3.60000894777, windSpeed: 1.08000268433LOOP: 2016-12-27 09:40:45 WIB (1482806445) altimeter: 1010.99968069, appTemp: 34.1792613821, barometer: 1011.26944494, cloudbase: 1082.67646608, dateTime: 1482806445, dewpoint: 21.5571955446, heatindex: 33.2175572368, humidex: 39.1161062185, inDewpoint: 67.5524896328, inHumidity: 65, inTemp: 26.9, light: 100947.1, maxSolarRad: 740.481841364, outHumidity: 60, outTemp: 30.2, pressure: 1010.7, radiation: 538.156, rain: 0.0, rainRate: 0.0, usUnits: 16, UV: 5, windchill: 30.2, windDir: 135, windGust: 3.60000894777, windSpeed: 2.52000626344
^CTraceback (most recent call last):File "/usr/bin/weewxd", line 64, in <module>weewx.engine.main(options, args)File "/usr/share/weewx/weewx/engine.py", line 847, in mainengine.run()File "/usr/share/weewx/weewx/engine.py", line 186, in runfor packet in self.console.genLoopPackets():File "/usr/share/weewx/user/wh23xx.py", line 338, in genLoopPacketsraw = self._get_current()File "/usr/share/weewx/user/wh23xx.py", line 365, in _get_currenttime.sleep(self.retry_wait)KeyboardInterrupt
Hifind below the last console print after weewx stop reporting and the console print after Ctrl Ci can't restart weewx by sudo weewxd /etc/weewx/weewx.confstay stuck onFile "/usr/share/weewx/user/wh23xx.py", line 365, in _get_currenttime.sleep(self.retry_wait)
wget -O weewx-wh23xx.zip https://github.com/matthewwall/weewx-wh23xx/archive/master.zipsudo wee_extension --install weewx-wh23xx.zip
dateTime: 1482851803, dewpoint: 22.7833668614, heatindex: 25.9, humidex: 35.9614413056, inDewpoint: 69.7932247353, inHumidity: 74, inTemp: 26.0, light: 206.6, maxSolarRad: 0.0, outHumidity: 83, outTemp: 25.9, pressure: 1011.3, radiation: 0.0, rain: 0.0, rainRate: 0.0, usUnits: 16, UV: 0, windchill: 25.9, windDir: 270, windGust: 3.60000894777, windSpeed: 2.52000626344LOOP: 2016-12-27 22:16:59 WIB (1482851819) altimeter: 1011.599969, appTemp: 30.5346411764, barometer: 1011.87797817, cloudbase: 393.614853462, dateTime: 1482851819, dewpoint: 22.7833668614, heatindex: 25.9, humidex: 35.9614413056, inDewpoint: 69.7932247353, inHumidity: 74, inTemp: 26.0, light: 206.6, maxSolarRad: 0.0, outHumidity: 83, outTemp: 25.9, pressure: 1011.3, radiation: 0.0, rain: 0.0, rainRate: 0.0, usUnits: 16, UV: 0, windchill: 25.9, windDir: 270, windGust: 3.60000894777, windSpeed: 2.52000626344LOOP: 2016-12-27 22:17:16 WIB (1482851836) altimeter: 1011.599969, appTemp: 30.5346411764, barometer: 1011.87797817, cloudbase: 393.614853462, dateTime: 1482851836, dewpoint: 22.7833668614, heatindex: 25.9, humidex: 35.9614413056, inDewpoint: 69.7932247353, inHumidity: 74, inTemp: 26.0, light: 206.6, maxSolarRad: 0.0, outHumidity: 83, outTemp: 25.9, pressure: 1011.3, radiation: 0.0, rain: 0.0, rainRate: 0.0, usUnits: 16, UV: 0, windchill: 25.9, windDir: 270, windGust: 3.60000894777, windSpeed: 2.52000626344LOOP: 2016-12-27 22:17:32 WIB (1482851852) altimeter: 1011.49992095, appTemp: 30.5346411764, barometer: 1011.77792101, cloudbase: 393.614853462, dateTime: 1482851852, dewpoint: 22.7833668614, heatindex: 25.9, humidex: 35.9614413056, inDewpoint: 69.7932247353, inHumidity: 74, inTemp: 26.0, light: 206.6, maxSolarRad: 0.0, outHumidity: 83, outTemp: 25.9, pressure: 1011.2, radiation: 0.0, rain: 0.0, rainRate: 0.0, usUnits: 16, UV: 0, windchill: 25.9, windDir: 270, windGust: 3.60000894777, windSpeed: 2.52000626344LOOP: 2016-12-27 22:17:48 WIB (1482851868) altimeter: 1011.49992095, appTemp: 30.5346411764, barometer: 1011.77792101, cloudbase: 393.614853462, dateTime: 1482851868, dewpoint: 22.7833668614, heatindex: 25.9, humidex: 35.9614413056, inDewpoint: 69.7932247353, inHumidity: 74, inTemp: 26.0, light: 206.6, maxSolarRad: 0.0, outHumidity: 83, outTemp: 25.9, pressure: 1011.2, radiation: 0.0, rain: 0.0, rainRate: 0.0, usUnits: 16, UV: 0, windchill: 25.9, windDir: 270, windGust: 3.60000894777, windSpeed: 2.52000626344LOOP: 2016-12-27 22:18:05 WIB (1482851885) altimeter: 1011.49992095, appTemp: 30.5346411764, barometer: 1011.77792101, cloudbase: 393.614853462, dateTime: 1482851885, dewpoint: 22.7833668614, heatindex: 25.9, humidex: 35.9614413056, inDewpoint: 69.7932247353, inHumidity: 74, inTemp: 26.0, light: 206.6, maxSolarRad: 0.0, outHumidity: 83, outTemp: 25.9, pressure: 1011.2, radiation: 0.0, rain: 0.0, rainRate: 0.0, usUnits: 16, UV: 0, windchill: 25.9, windDir: 270, windGust: 3.60000894777, windSpeed: 2.52000626344
^CTraceback (most recent call last):File "/usr/bin/weewxd", line 64, in <module>weewx.engine.main(options, args)File "/usr/share/weewx/weewx/engine.py", line 847, in mainengine.run()File "/usr/share/weewx/weewx/engine.py", line 186, in runfor packet in self.console.genLoopPackets():
File "/usr/share/weewx/user/wh23xx.py", line 353, in genLoopPacketsraw = self._get_current()File "/usr/share/weewx/user/wh23xx.py", line 372, in _get_currentreturn self._station.get_current()KeyboardInterrupt
22:18 weewx stop reportingstill present in memory with ps -auxmonitor was showing at 00:02
...
This time manage to start it with sudo weewxd /etc/weewx/weewx.confno need to reboot
Dec 27 22:17:48 weatherstation weewx[1176]: wh23xx: decoded data: {'wind_speed': {'value': 0.7}, 'gust_speed': {'value': 1.0}, 'rain_totals': {'value': 626.1}, 'in_temp': {'value': 26.0}, 'dewpoint': {'value': 22.799999999999997}, 'rain_month': {'value': 406.8}, 'out_humidity': {'value': 83}, 'light': {'value': 206.6}, 'rain_rate': {'value': 0.0}, 'heatindex': {'value': 25.900000000000006}, 'in_humidity': {'value': 74}, 'rain_day': {'value': 0.0}, 'out_temp': {'value': 25.900000000000006}, 'rel_baro': {'value': 1011.2}, 'uv': {'value': 0.0}, 'uvi': {'value': 0}, 'rain_year': {'value': 626.1}, 'rain_week': {'value': 0.0}, 'abs_baro': {'value': 1011.2}, 'wind_dir': {'value': 270}, 'windchill': {'value': 25.900000000000006}}Dec 27 22:17:48 weatherstation weewx[1176]: wh23xx: packet: {'pressure': 1011.2, 'outHumidity': 83, 'light': 206.6, 'UV': 0, 'radiation': 0.0, 'rain': 0.0, 'dateTime': 1482851868, 'windDir': 270, 'outTemp': 25.900000000000006, 'windSpeed': 0.7, 'inHumidity': 74, 'inTemp': 26.0, 'windGust': 1.0, 'usUnits': 17}Dec 27 22:18:03 weatherstation weewx[1176]: wh23xx: read_record: cmdbuf: 02 02 04 04 (len=4)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: read_record: buf: 01 3b 04 4a 01 02 94 02 02 93 03 02 74 04 02 93 05 02 93 06 4a 07 53 08 27 80 09 27 80 0a 01 0e 0b 00 07 0c 00 0a 0e 00 00 00 00 10 00 00 00 00 11 00 00 00 00 12 00 00 0f e4 13 00 00 (len=61)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: record_size: 74Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: read_record: buf: 01 12 18 75 14 00 00 18 75 15 00 00 08 12 16 00 00 17 00 43 4a 07 53 08 27 80 09 27 80 0a 01 0e 0b 00 07 0c 00 0a 0e 00 00 00 00 10 00 00 00 00 11 00 00 00 00 12 00 00 0f e4 13 00 00 (len=61)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: read_record: rbuf: 01 02 94 02 02 93 03 02 74 04 02 93 05 02 93 06 4a 07 53 08 27 80 09 27 80 0a 01 0e 0b 00 07 0c 00 0a 0e 00 00 00 00 10 00 00 00 00 11 00 00 00 00 12 00 00 0f e4 13 00 00 18 75 14 00 00 18 75 15 00 00 08 12 16 00 00 17 00 (len=74) chksum=0x43Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: raw data: [1, 2, 148, 2, 2, 147, 3, 2, 116, 4, 2, 147, 5, 2, 147, 6, 74, 7, 83, 8, 39, 128, 9, 39, 128, 10, 1, 14, 11, 0, 7, 12, 0, 10, 14, 0, 0, 0, 0, 16, 0, 0, 0, 0, 17, 0, 0, 0, 0, 18, 0, 0, 15, 228, 19, 0, 0, 24, 117, 20, 0, 0, 24, 117, 21, 0, 0, 8, 18, 22, 0, 0, 23, 0]Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: in_temp: {'value': 26.0} (0x01 0x01)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: out_temp: {'value': 25.900000000000006} (0x02 0x02)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: dewpoint: {'value': 22.799999999999997} (0x03 0x03)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: windchill: {'value': 25.900000000000006} (0x04 0x04)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: heatindex: {'value': 25.900000000000006} (0x05 0x05)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: in_humidity: {'value': 74} (0x06 0x06)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: out_humidity: {'value': 83} (0x07 0x07)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: abs_baro: {'value': 1011.2} (0x08 0x08)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: rel_baro: {'value': 1011.2} (0x09 0x09)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: wind_dir: {'value': 270} (0x0a 0x0a)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: wind_speed: {'value': 0.7} (0x0b 0x0b)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: gust_speed: {'value': 1.0} (0x0c 0x0c)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: rain_rate: {'value': 0.0} (0x0e 0x0e)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: rain_day: {'value': 0.0} (0x10 0x10)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: rain_week: {'value': 0.0} (0x11 0x11)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: rain_month: {'value': 406.8} (0x12 0x12)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: rain_year: {'value': 626.1} (0x13 0x13)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: rain_totals: {'value': 626.1} (0x14 0x14)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: light: {'value': 206.6} (0x15 0x15)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: uv: {'value': 0.0} (0x16 0x16)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: uvi: {'value': 0} (0x17 0x17)Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: decoded data: {'wind_speed': {'value': 0.7}, 'gust_speed': {'value': 1.0}, 'rain_totals': {'value': 626.1}, 'in_temp': {'value': 26.0}, 'dewpoint': {'value': 22.799999999999997}, 'rain_month': {'value': 406.8}, 'out_humidity': {'value': 83}, 'light': {'value': 206.6}, 'rain_rate': {'value': 0.0}, 'heatindex': {'value': 25.900000000000006}, 'in_humidity': {'value': 74}, 'rain_day': {'value': 0.0}, 'out_temp': {'value': 25.900000000000006}, 'rel_baro': {'value': 1011.2}, 'uv': {'value': 0.0}, 'uvi': {'value': 0}, 'rain_year': {'value': 626.1}, 'rain_week': {'value': 0.0}, 'abs_baro': {'value': 1011.2}, 'wind_dir': {'value': 270}, 'windchill': {'value': 25.900000000000006}}Dec 27 22:18:04 weatherstation weewx[1176]: wh23xx: packet: {'pressure': 1011.2, 'outHumidity': 83, 'light': 206.6, 'UV': 0, 'radiation': 0.0, 'rain': 0.0, 'dateTime': 1482851885, 'windDir': 270, 'outTemp': 25.900000000000006, 'windSpeed': 0.7, 'inHumidity': 74, 'inTemp': 26.0, 'windGust': 1.0, 'usUnits': 17}Dec 27 22:18:19 weatherstation weewx[1176]: wh23xx: read_record: cmdbuf: 02 02 04 04 (len=4)Dec 27 23:17:01 weatherstation CRON[1560]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)Dec 28 00:01:53 weatherstation systemd[1]: Starting Session c7 of user pi.Dec 28 00:01:53 weatherstation systemd[1]: Started Session c7 of user pi.Dec 28 00:03:21 weatherstation weewx[1176]: engine: Main loop exiting. Shutting engine down.Dec 28 00:03:21 weatherstation weewx[1176]: engine: Shutting down StdReport threadDec 28 00:03:21 weatherstation weewx[1176]: engine: StdReport thread has been terminatedDec 28 00:03:21 weatherstation weewx[1176]: restx: Shut down PWSWeather thread.Dec 28 00:03:21 weatherstation weewx[1176]: restx: Shut down Wunderground-PWS thread.Dec 28 00:03:21 weatherstation weewx[1176]: restx: Shut down StationRegistry thread.Dec 28 00:03:21 weatherstation weewx[1176]: engine: Keyboard interrupt.Dec 28 00:05:00 weatherstation weewx[1647]: engine: Initializing weewx version 3.6.2Dec 28 00:05:00 weatherstation weewx[1647]: engine: Using Python 2.7.9 (default, Sep 17 2016, 20:26:04) #012[GCC 4.9.2]Dec 28 00:05:00 weatherstation weewx[1647]: engine: Platform Linux-4.4.38-v7+-armv7l-with-debian-8.0Dec 28 00:05:00 weatherstation weewx[1647]: engine: Using configuration file /etc/weewx/weewx.confDec 28 00:05:00 weatherstation weewx[1647]: engine: Initializing engineDec 28 00:05:00 weatherstation weewx[1647]: engine: Loading station type WH23xx (user.wh23xx)Dec 28 00:05:00 weatherstation weewx[1647]: wh23xx: driver version is 0.8Dec 28 00:05:00 weatherstation weewx[1647]: wh23xx: usb info: pyusb_version=0.4.xDec 28 00:05:00 weatherstation weewx[1647]: wh23xx: poll interval is 15Dec 28 00:05:00 weatherstation weewx[1647]: wh23xx: Found device on USB bus=001 device=004Dec 28 00:05:01 weatherstation kernel: [21308.341146] usb 1-1.2: reset full-speed USB device number 4 using dwc_otgDec 28 00:05:01 weatherstation weewx[1647]: engine: Loading service weewx.engine.StdTimeSynchDec 28 00:05:01 weatherstation weewx[1647]: engine: Finished loading service weewx.engine.StdTimeSynchDec 28 00:05:01 weatherstation weewx[1647]: engine: Loading service weewx.engine.StdConvertDec 28 00:05:01 weatherstation weewx[1647]: engine: StdConvert target unit is 0x10Dec 28 00:05:01 weatherstation weewx[1647]: engine: Finished loading service weewx.engine.StdConvertDec 28 00:05:01 weatherstation weewx[1647]: engine: Loading service weewx.engine.StdCalibrateDec 28 00:05:01 weatherstation weewx[1647]: engine: Finished loading service weewx.engine.StdCalibrateDec 28 00:05:01 weatherstation weewx[1647]: engine: Loading service weewx.engine.StdQCDec 28 00:05:01 weatherstation weewx[1647]: engine: Finished loading service weewx.engine.StdQCDec 28 00:05:01 weatherstation weewx[1647]: engine: Loading service weewx.wxservices.StdWXCalculateDec 28 00:05:01 weatherstation weewx[1647]: wxcalculate: The following values will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, dewpoint=prefer_hardware, appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, heatindex=prefer_hardware, maxSolarRad=prefer_hardware, humidex=prefer_hardware, pressure=prefer_hardware, inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, cloudbase=prefer_hardwareDec 28 00:05:01 weatherstation weewx[1647]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RSDec 28 00:05:01 weatherstation weewx[1647]: engine: Finished loading service weewx.wxservices.StdWXCalculateDec 28 00:05:01 weatherstation weewx[1647]: engine: Loading service weewx.engine.StdArchiveDec 28 00:05:01 weatherstation weewx[1647]: engine: Archive will use data binding wx_bindingDec 28 00:05:01 weatherstation weewx[1647]: engine: Record generation will be attempted in 'hardware'Dec 28 00:05:01 weatherstation weewx[1647]: engine: Using archive interval of 300 seconds (specified in weewx configuration)Dec 28 00:05:01 weatherstation weewx[1647]: engine: Use LOOP data in hi/low calculations: 1Dec 28 00:05:01 weatherstation weewx[1647]: engine: Using binding 'wx_binding' to database 'weewx'Dec 28 00:05:01 weatherstation weewx[1647]: manager: Starting backfill of daily summariesDec 28 00:05:01 weatherstation weewx[1647]: manager: Daily summaries up to dateDec 28 00:05:01 weatherstation weewx[1647]: engine: Finished loading service weewx.engine.StdArchiveDec 28 00:05:01 weatherstation weewx[1647]: engine: Loading service user.forecast.ZambrettiForecastDec 28 00:05:01 weatherstation weewx[1647]: forecast: MainThread: Zambretti: forecast version 3.2.6Dec 28 00:05:01 weatherstation weewx[1647]: forecast: MainThread: Zambretti: last forecast issued 2016-12-27 18:15:00 WIB (1482837300), requested 2016-12-27 18:15:00 WIB (1482837300)Dec 28 00:05:01 weatherstation weewx[1647]: forecast: MainThread: Zambretti: interval=600 max_age=604800 winddir_period=1800 pressure_period=10800 hemisphere=south lower_pressure=950.0 upper_pressure=1050.0Dec 28 00:05:01 weatherstation weewx[1647]: engine: Finished loading service user.forecast.ZambrettiForecastDec 28 00:05:01 weatherstation weewx[1647]: engine: Loading service user.forecast.WUForecastDec 28 00:05:01 weatherstation weewx[1647]: forecast: MainThread: WU: forecast version 3.2.6Dec 28 00:05:01 weatherstation weewx[1647]: forecast: MainThread: WU: last forecast issued 2016-12-27 19:30:32 WIB (1482841832), requested 2016-12-27 19:30:32 WIB (1482841832)Dec 28 00:05:01 weatherstation weewx[1647]: forecast: MainThread: WU: interval=10800 max_age=604800 api_key=XXXXXXXXXXXXec50 location=-1.217,100.400 fc=hourly10dayDec 28 00:05:01 weatherstation weewx[1647]: engine: Finished loading service user.forecast.WUForecastDec 28 00:05:01 weatherstation weewx[1647]: engine: Loading service user.forecast.NWSForecastDec 28 00:05:01 weatherstation weewx[1647]: forecast: MainThread: NWS: forecast version 3.2.6Dec 28 00:05:01 weatherstation weewx[1647]: forecast: MainThread: NWS: location ID (lid) is not specifiedDec 28 00:05:01 weatherstation weewx[1647]: forecast: MainThread: NWS: forecast office ID (foid) is not specifiedDec 28 00:05:01 weatherstation weewx[1647]: forecast: MainThread: NWS: forecast will not be runDec 28 00:05:01 weatherstation weewx[1647]: engine: Finished loading service user.forecast.NWSForecastDec 28 00:05:01 weatherstation weewx[1647]: engine: Loading service user.forecast.OWMForecastDec 28 00:05:01 weatherstation weewx[1647]: forecast: MainThread: OWM: forecast version 3.2.6Dec 28 00:05:01 weatherstation weewx[1647]: forecast: MainThread: OWM: API key (api_key) is not specifiedDec 28 00:05:01 weatherstation weewx[1647]: forecast: MainThread: OWM: forecast will not be runDec 28 00:05:01 weatherstation weewx[1647]: engine: Finished loading service user.forecast.OWMForecastDec 28 00:05:01 weatherstation weewx[1647]: engine: Loading service user.forecast.UKMOForecastDec 28 00:05:01 weatherstation weewx[1647]: forecast: MainThread: UKMO: forecast version 3.2.6Dec 28 00:05:02 weatherstation weewx[1647]: forecast: MainThread: UKMO: API key (api_key) is not specifiedDec 28 00:05:02 weatherstation weewx[1647]: forecast: MainThread: UKMO: forecast will not be runDec 28 00:05:02 weatherstation weewx[1647]: engine: Finished loading service user.forecast.UKMOForecastDec 28 00:05:02 weatherstation weewx[1647]: engine: Loading service user.forecast.AerisForecastDec 28 00:05:02 weatherstation weewx[1647]: forecast: MainThread: Aeris: forecast version 3.2.6Dec 28 00:05:02 weatherstation weewx[1647]: forecast: MainThread: Aeris: client identifier (client_id) is not specifiedDec 28 00:05:02 weatherstation weewx[1647]: forecast: MainThread: Aeris: client secret (client_secret) is not specifiedDec 28 00:05:02 weatherstation weewx[1647]: forecast: MainThread: Aeris: forecast will not be runDec 28 00:05:02 weatherstation weewx[1647]: engine: Finished loading service user.forecast.AerisForecastDec 28 00:05:02 weatherstation weewx[1647]: engine: Loading service user.forecast.WWOForecastDec 28 00:05:02 weatherstation weewx[1647]: forecast: MainThread: WWO: forecast version 3.2.6Dec 28 00:05:02 weatherstation weewx[1647]: forecast: MainThread: WWO: API key (api_key) is not specifiedDec 28 00:05:02 weatherstation weewx[1647]: forecast: MainThread: WWO: forecast will not be runDec 28 00:05:02 weatherstation weewx[1647]: engine: Finished loading service user.forecast.WWOForecastDec 28 00:05:02 weatherstation weewx[1647]: engine: Loading service user.forecast.XTideForecastDec 28 00:05:02 weatherstation weewx[1647]: forecast: MainThread: XTide: forecast version 3.2.6Dec 28 00:05:02 weatherstation weewx[1647]: forecast: MainThread: XTide: location (location) has not been specifiedDec 28 00:05:02 weatherstation weewx[1647]: forecast: MainThread: XTide: forecast will not be runDec 28 00:05:02 weatherstation weewx[1647]: engine: Finished loading service user.forecast.XTideForecastDec 28 00:05:02 weatherstation weewx[1647]: engine: Loading service weewx.restx.StdStationRegistryDec 28 00:05:02 weatherstation weewx[1647]: restx: StationRegistry: Station will be registered.Dec 28 00:05:02 weatherstation weewx[1647]: engine: Finished loading service weewx.restx.StdStationRegistryDec 28 00:05:02 weatherstation weewx[1647]: engine: Loading service weewx.restx.StdWundergroundDec 28 00:05:02 weatherstation weewx[1647]: restx: Wunderground-PWS: Data for station IWESTSUM3 will be postedDec 28 00:05:02 weatherstation weewx[1647]: engine: Finished loading service weewx.restx.StdWundergroundDec 28 00:05:02 weatherstation weewx[1647]: engine: Loading service weewx.restx.StdPWSweatherDec 28 00:05:02 weatherstation weewx[1647]: restx: PWSWeather: Data for station CUBADAK will be postedDec 28 00:05:02 weatherstation weewx[1647]: engine: Finished loading service weewx.restx.StdPWSweatherDec 28 00:05:02 weatherstation weewx[1647]: engine: Loading service weewx.restx.StdCWOPDec 28 00:05:02 weatherstation weewx[1647]: restx: CWOP: Posting not enabled.Dec 28 00:05:02 weatherstation weewx[1647]: engine: Finished loading service weewx.restx.StdCWOPDec 28 00:05:02 weatherstation weewx[1647]: engine: Loading service weewx.restx.StdWOWDec 28 00:05:02 weatherstation weewx[1647]: restx: WOW: Posting not enabled.Dec 28 00:05:02 weatherstation weewx[1647]: engine: Finished loading service weewx.restx.StdWOWDec 28 00:05:02 weatherstation weewx[1647]: engine: Loading service weewx.restx.StdAWEKASDec 28 00:05:02 weatherstation weewx[1647]: restx: AWEKAS: Posting not enabled.Dec 28 00:05:02 weatherstation weewx[1647]: engine: Finished loading service weewx.restx.StdAWEKASDec 28 00:05:02 weatherstation weewx[1647]: engine: Loading service weewx.engine.StdPrintDec 28 00:05:02 weatherstation weewx[1647]: engine: Finished loading service weewx.engine.StdPrintDec 28 00:05:02 weatherstation weewx[1647]: engine: Loading service weewx.engine.StdReportDec 28 00:05:02 weatherstation weewx[1647]: engine: Finished loading service weewx.engine.StdReportDec 28 00:05:02 weatherstation weewx[1647]: engine: Starting up weewx version 3.6.2Dec 28 00:05:02 weatherstation weewx[1647]: engine: Station does not support reading the timeDec 28 00:05:02 weatherstation weewx[1647]: engine: Starting main packet loop.Dec 28 00:05:02 weatherstation weewx[1647]: wh23xx: read_record: cmdbuf: 02 02 04 04 (len=4)Dec 28 00:05:02 weatherstation weewx[1647]: wh23xx: read_record: buf: 01 3b 04 4a 01 02 8e 02 02 93 03 02 6a 04 02 93 05 02 93 06 48 07 4e 08 27 7d 09 27 7d 0a 01 0e 0b 00 0a 0c 00 0d 0e 00 00 00 00 10 00 00 00 00 11 00 00 00 00 12 00 00 0f e4 13 00 00 (len=61)Dec 28 00:05:02 weatherstation weewx[1647]: wh23xx: record_size: 74Dec 28 00:05:02 weatherstation weewx[1647]: wh23xx: read_record: buf: 01 12 18 75 14 00 00 18 75 15 00 00 08 12 16 00 00 17 00 2c 48 07 4e 08 27 7d 09 27 7d 0a 01 0e 0b 00 0a 0c 00 0d 0e 00 00 00 00 10 00 00 00 00 11 00 00 00 00 12 00 00 0f e4 13 00 00 (len=61)Dec 28 00:05:02 weatherstation weewx[1647]: wh23xx: read_record: rbuf: 01 02 8e 02 02 93 03 02 6a 04 02 93 05 02 93 06 48 07 4e 08 27 7d 09 27 7d 0a 01 0e 0b 00 0a 0c 00 0d 0e 00 00 00 00 10 00 00 00 00 11 00 00 00 00 12 00 00 0f e4 13 00 00 18 75 14 00 00 18 75 15 00 00 08 12 16 00 00 17 00 (len=74) chksum=0x2cDec 28 00:05:02 weatherstation weewx[1647]: wh23xx: raw data: [1, 2, 142, 2, 2, 147, 3, 2, 106, 4, 2, 147, 5, 2, 147, 6, 72, 7, 78, 8, 39, 125, 9, 39, 125, 10, 1, 14, 11, 0, 10, 12, 0, 13, 14, 0, 0, 0, 0, 16, 0, 0, 0, 0, 17, 0, 0, 0, 0, 18, 0, 0, 15, 228, 19, 0, 0, 24, 117, 20, 0, 0, 24, 117, 21, 0, 0, 8, 18, 22, 0, 0, 23, 0]Dec 28 00:05:02 weatherstation weewx[1647]: wh23xx: in_temp: {'value': 25.400000000000006} (0x01 0x01)Dec 28 00:05:02 weatherstation weewx[1647]: wh23xx: out_temp: {'value': 25.900000000000006} (0x02 0x02)Dec 28 00:05:02 weatherstation weewx[1647]: wh23xx: dewpoint: {'value': 21.799999999999997} (0x03 0x03)Dec 28 00:05:02 weatherstation weewx[1647]: wh23xx: windchill: {'value': 25.900000000000006} (0x04 0x04)Dec 28 00:05:02 weatherstation weewx[1647]: wh23xx: heatindex: {'value': 25.900000000000006} (0x05 0x05)Dec 28 00:05:02 weatherstation weewx[1647]: wh23xx: in_humidity: {'value': 72} (0x06 0x06)Dec 28 00:05:02 weatherstation weewx[1647]: wh23xx: out_humidity: {'value': 78} (0x07 0x07)Dec 28 00:05:02 weatherstation weewx[1647]: wh23xx: abs_baro: {'value': 1010.9} (0x08 0x08)Dec 28 00:05:02 weatherstation weewx[1647]: wh23xx: rel_baro: {'value': 1010.9} (0x09 0x09)Dec 28 00:05:02 weatherstation weewx[1647]: wh23xx: wind_dir: {'value': 270} (0x0a 0x0a)Dec 28 00:05:02 weatherstation weewx[1647]: wh23xx: wind_speed: {'value': 1.0} (0x0b 0x0b)Dec 28 00:05:02 weatherstation weewx[1647]: wh23xx: gust_speed: {'value': 1.3} (0x0c 0x0c)Dec 28 00:05:02 weatherstation weewx[1647]: wh23xx: rain_rate: {'value': 0.0} (0x0e 0x0e)
--
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.
jessie 8 krnl 4.4.34-v7+weewx 3.6.2sofaskin1.1forecast 3.2.9
Weather station simulator driverexternal mysql archive and forecast databaseexternal ftp server with ftp skin
Per,Weewx should not crash. If it does, that's a bug, and we would very much like to hear about it. Post the logs!Most installations run nonstop for months without any problems.-tk
On Sun, Jan 1, 2017 at 12:11 PM, Per Edström <peredst...@gmail.com> wrote:
My Weewx tend to stop for various reasons so I restart Weewx every hour by a cronjob:
# m h dom mon dow command
59 * * * * /etc/init.d/weewx stop
0 * * * * /etc/init.d/weewx start
--
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.
weewx 3.6.2simulatorforecast 3.2.9sofaskin
mysql LAN deported database
Bus 001 Device 004: ID 10c4:8468 Cygnal Integrated Products, Inc.Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet AdapterBus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 10c4:8468 Cygnal Integrated Products, Inc.Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet AdapterBus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
#daemon.*;mail.*;\
# news.err;\
# *.=debug;*.=info;\
# *.=notice;*.=warn |/dev/xconsoleDo i have to add the following "port = /dev/mydevice" in the weewx.conf file?
HiThe weewx has just stop reporting and i did a lsusb command and it look the same then before it stop reporting.so it is not a problem of usb port changing name or order.
Jan 16 22:40:27 weatherstation weewx[645]: forecast: OWMThread: OWM: forecast failure: global name 'periods' is not definedJan 16 22:40:27 weatherstation weewx[645]: File "/home/weewx/bin/user/forecas .py", line 1173, in do_forecast
Hi andreware your referring to this forecast error?Jan 16 22:40:27 weatherstation weewx[645]: forecast: OWMThread: OWM: forecast failure: global name 'periods' is not definedJan 16 22:40:27 weatherstation weewx[645]: File "/home/weewx/bin/user/forecas .py", line 1173, in do_forecastI do not know where it' is coming from...
maybe i'm wrong here but i suspect a WH23XX driver problem in between weewx and my weather station.Please find attached syslog file, weewx_debug file, skin.conf file.
weatherstation weewx[1508]: wh23xx: get_current: could not detach kernel driver from interface 0: No data available
4630124, dewpoint: 18.1644912704, heatindex: 31.7465325172, humidex: 36.9270806694, inDewpoint: 61.3511118401, inHumidity: 44, inTemp: 29.9, luminosity: 163463.4, maxSolarRad: 1049.29595861, outHumidity: 47, outTemp: 30.8, pressure: 1010.7, radiation: 1291.36086, rain: 0.0, rainRate: 0.0, usUnits: 16, UV: 11, uv_raw: 4707, windchill: 30.8, windDir: 180, windGust: 2.52000626344, windSpeed: 1.08000268433REC: 2017-01-17 12:15:00 WIB (1484630100) altimeter: 1011.05970952, appTemp: 32.2804131054, barometer: 1011.32893478, cloudbase: 1566.52849627, dateTime: 1484630100.0, dewpoint: 17.9667744592, ET: 0.00931318400731, heatindex: 31.3295548186, humidex: 36.4708326323, inDewpoint: 62.1629006698, inHumidity: 45.1, inTemp: 29.97, interval: 5, luminosity: 157830.85, maxSolarRad: 1048.23640656, outHumidity: 47.25, outTemp: 30.49, pressure: 1010.76, radiation: 1246.863715, rain: 0.0, rainRate: 0.0, usUnits: 16, UV: 11.0, uv_raw: 4707.0, windchill: 30.49, windDir: 185.798196225, windGust: 12.960064424, windGustDir: None, windrun: 15.3518033795, windSpeed: 5.09402532221LOOP: 2017-01-17 12:15:24 WIB (1484630124) altimeter: 1010.99968069, appTemp: 33.4553572395, barometer: 1011.26832054, cloudbase: 1580.52915436, dateTime: 1484630124, dewpoint: 18.1644912704, heatindex: 31.7465325172, humidex: 36.9270806694, inDewpoint: 61.3511118401, inHumidity: 44, inTemp: 29.9, luminosity: 163463.4, maxSolarRad: 1049.29595861, outHumidity: 47, outTemp: 30.8, pressure: 1010.7, radiation: 1291.36086, rain: 0.0, rainRate: 0.0, usUnits: 16, UV: 11, uv_raw: 4707, windchill: 30.8, windDir: 180, windGust: 2.52000626344, windSpeed: 1.08000268433
Some updates about my problem.I have try all the options mentioned above- UPS-Powered USB Hub- change the power supply of the RPI and the weather stationbut the problem was not solved and the the weewx was still randomly reporting.I suspect a problem link to the weather station itselv and the USB communication with the RPI and weewx.I gave up the diagnostic and i have now CRON scheduled a hourly reboot to hide the problem.
Hii'm running weewx 3.6.2-1 on a raspberry pi 2 connected to the lan via cable and a deported mysql database server hosted on ubuntu linux computer.weewx report on local webserver hosted on the same rapberry as the weewx server and on a ftp server at the following: http://web.cubadak-paradisovillage.com/weatherweewx stop reporting few times per day and probably crash because nothing appear in the syslog file after the last report (check below for extract of my syslog file during the last crash and my weewx conf file).To restart the weewx i do a reboot of the raspberry or stop and start of the service.what can i do to monitor if the weewx service crash and diagnose the cause of the crash ????thanks in advance for your help.syslog:Dec 15 21:05:31 weatherstation weewx[600]: genimages: Generated 12 images for StandardReport in 2.36 secondsDec 15 21:05:31 weatherstation weewx[600]: reportengine: copied 0 files to /var/www/html/weewxDec 15 21:05:35 weatherstation weewx[600]: cheetahgenerator: Generated 1 files for report forecast in 3.96 secondsDec 15 21:05:35 weatherstation weewx[600]: reportengine: copied 0 files to /var/www/html/weewx/forecastDec 15 21:10:15 weatherstation weewx[600]: manager: added record 2016-12-15 21:10:00 WIB (1481811000) to database 'weewx'Dec 15 21:10:16 weatherstation weewx[600]: manager: added record 2016-12-15 21:10:00 WIB (1481811000) to daily summary in 'weewx'Dec 15 21:10:16 weatherstation weewx[600]: forecast: WUThread: WU: downloading forecast from 'http://api.wunderground.com/api/XXXXXXXXXXXXec50/hourly10day/q/-1.217,100.400.json'Dec 15 21:10:17 weatherstation weewx[600]: restx: PWSWeather: Published record 2016-12-15 21:10:00 WIB (1481811000)Dec 15 21:10:17 weatherstation weewx[600]: restx: Wunderground-PWS: Published record 2016-12-15 21:10:00 WIB (1481811000)Dec 15 21:10:20 weatherstation weewx[600]: forecast: WUThread: WU: got 240 forecast recordsDec 15 21:10:20 weatherstation weewx[600]: forecast: WUThread: WU: saved 240 forecast recordsDec 15 21:10:20 weatherstation weewx[600]: forecast: WUThread: WU: deleted forecasts prior to 1481206220Dec 15 21:10:27 weatherstation weewx[600]: cheetahgenerator: Generated 7 files for report StandardReport in 11.10 secondsDec 15 21:10:34 weatherstation weewx[600]: genimages: Generated 12 images for StandardReport in 7.39 secondsDec 15 21:10:34 weatherstation weewx[600]: reportengine: copied 0 files to /var/www/html/weewxDec 15 21:10:38 weatherstation weewx[600]: cheetahgenerator: Generated 1 files for report forecast in 3.93 secondsDec 15 21:10:38 weatherstation weewx[600]: reportengine: copied 0 files to /var/www/html/weewx/forecastDec 15 21:17:01 weatherstation CRON[1378]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)Dec 15 22:17:01 weatherstation CRON[1403]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)weewx conf file:# WEEWX CONFIGURATION FILE## Copyright (c) 2009-2015 Tom Keffer <tke...@gmail.com># 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 = 0# Root directory of the weewx data file hierarchy for this stationWEEWX_ROOT = /# 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 = 3.6.2############################################################################### This section is for information about the station.[Station]# Description of the station locationlocation = "Cubadak Island, West Sumatra"# Latitude and longitude in decimal degreeslatitude = -1.217longitude = 100.400# Altitude of the station, with unit it is in. This is downloaded from# from the station if the hardware supports it.altitude = 5, meter# 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 = WH23xx# If you have a website, you may specify an URLstation_url = http://web.cubadak-paradisovillage.com/weather# The start of the rain year (1=January; 10=October, etc.). This is# downloaded from the station if the hardware supports it.rain_year_start = 1# Start of week (0=Monday, 6=Sunday)week_start = 6###############################################################################[WH23XX]# This section is for the weewx weather station simulator# The time (in seconds) between LOOP packets.#loop_interval = 2.5# The simulator mode can be either 'simulator' or 'generator'.# Real-time simulator. Sleep between each LOOP packet.#mode = simulator# Generator. Emit LOOP packets as fast as possible (useful for testing).#mode = generator# The start time. If not specified, the default is to use the present time.#start = 2011-01-01 00:00# The driver to use:#driver = user.wh23xx############################################################################### This section is for uploading data to Internet sites[StdRESTful][[StationRegistry]]# To register this weather station with weewx, set this to trueregister_this_station = true[[AWEKAS]]# This section is for configuring posts to AWEKAS.# If you wish to do this, set the option 'enable' to true,# and specify a username and password.enable = falseusername = replace_mepassword = replace_me[[CWOP]]# This section is for configuring posts to CWOP.# If you wish to do this, set the option 'enable' to true,# and specify the station ID (e.g., CW1234).enable = falsestation = replace_me# If this is an APRS (radio amateur) station, uncomment# the following and replace with a passcode (e.g., 12345).#passcode = replace_me (APRS stations only)[[PWSweather]]# This section is for configuring posts to PWSweather.com.# If you wish to do this, set the option 'enable' to true,# and specify a station and password.enable = truestation = CUBADAKpassword =xxxxxxxxxxxxxxx[[WOW]]# This section is for configuring posts to WOW.# If you wish to do this, set the option 'enable' to true,# and specify a station and password.enable = falsestation = replace_mepassword = replace_me[[Wunderground]]# This section is for configuring posts to the Weather Underground.# If you wish to do this, set the option 'enable' to true,# and specify a station (e.g., 'KORHOODR3') and password.enable = truestation = IWESTSUM3password = xxxxxxxxxxxx# Set the following to True to have weewx use the WU "Rapidfire"# protocol. Not all hardware can support it. See the User's Guide.rapidfire = False############################################################################### This section specifies what reports, using which skins, to generate.[StdReport]# Where the skins reside, relative to WEEWX_ROOTSKIN_ROOT = /etc/weewx/skins#SKIN_ROOT = ~/weewx/skins# Where the generated reports should go, relative to WEEWX_ROOTHTML_ROOT = /var/www/html/weewx# The database binding indicates which data should be used in reports.data_binding = wx_binding# Each of the following subsections defines a report that will be run.[[StandardReport]]# See the customizing guide to change the units, plot types and line# colors, modify the fonts, display additional sensor data, and other# customizations. Many of those changes can be made here by overriding# parameters, or by modifying templates within the skin itself.# The StandardReport uses the 'Standard' skin, which contains the# images, templates and plots for the report.skin = sofaskin[[[Units]]][[[[Groups]]]]group_altitude = metergroup_speed2 = knotgroup_pressure = mbargroup_rain = mmgroup_rainrate = mm_per_hourgroup_temperature = degree_Cgroup_degree_day = degree_C_daygroup_speed = knot[[forecast]]HTML_ROOT = /var/www/html/weewx/forecastskin = forecast[[FTP]]# FTP'ing the results to a webserver is treated as just another report,# albeit one with an unusual report generator!skin = Ftp# If you wish to use FTP, uncomment and fill out the next four lines.password = marcoindserver = web.cubadak-paradisovillage.compath = /docs/weather# Set to True for an FTP over TLS (FTPS) connection. Not all servers# support this.secure_ftp = False# To upload files from something other than what HTML_ROOT is set# to above, specify a different HTML_ROOT here.#HTML_ROOT = /var/www/html/weewx# Most FTP servers use port 21port = 21# Set to 1 to use passive mode, zero for active modepassive = 1report_timing = */15 * * * *[[RSYNC]]# rsync'ing to a webserver is treated as just another reportskin = Rsync# If you wish to use rsync, you must configure passwordless ssh using# public/private key authentication from the user account that weewx# runs as to the user account on the remote machine where the files# will be copied.## The following three lines determine where files will be sent.#server = replace with the rsync server name, e.g, www.threefools.org#path = replace with the rsync destination directory (e.g., /weather)#user = replace with the rsync username# Rsync can be configured to remove files from the remote server if# they don't exist under HTML_ROOT locally. USE WITH CAUTION: if you# make a mistake in the remote path, you could could unintentionally# cause unrelated files to be deleted. Set to 1 to enable remote file# deletion, zero to allow files to accumulate remotely.delete = 0############################################################################### This service acts as a filter, converting the unit system coming from# the hardware to a unit system in the database.[StdConvert]# The target_unit affects only the unit system in the database. Once# chosen it cannot be changed without converting the entire database.# Modification of target_unit after starting weewx will result in# corrupt data - the database will contain a mix of US and METRIC data.## The value of target_unit does not affect the unit system for# reporting - reports can display US, Metric, or any combination of units.## In most cases, target_unit should be left as the default: US## In particular, those migrating from a standard wview installation# should use US since that is what the wview database contains.# DO NOT MODIFY THIS VALUE UNLESS YOU KNOW WHAT YOU ARE DOING!target_unit = METRIC # Options are 'US', 'METRICWX', or 'METRIC'############################################################################### This section can adjust data using calibration expressions.[StdCalibrate][[Corrections]]# For each type, an arbitrary calibration expression can be given.# It should be in the units defined in the StdConvert section.# Example:foo = foo + 0.2radiation = radiation * 292############################################################################### This section is for quality control checks. If units are not specified,# values must be in the units defined in the StdConvert section.[StdQC][[MinMax]]barometer = 900, 1100outTemp = 10, 60inTemp = 10, 60outHumidity = 0, 100inHumidity = 0, 100windSpeed = 0, 90pressure = 900, 1100rain=0, 300############################################################################### This section controls the origin of derived values.[StdWXCalculate][[Calculations]]# Derived quantities are calculated by this service. Possible values are:# hardware - use the value provided by hardware# software - use the value calculated by weewx# prefer_hardware - use value provide by hardware if available,# otherwise use value calculated by weewxpressure = prefer_hardwarebarometer = prefer_hardwarealtimeter = prefer_hardwarewindchill = prefer_hardwareheatindex = prefer_hardwaredewpoint = prefer_hardwareinDewpoint = prefer_hardwarerainRate = prefer_hardwareradiation = hardware############################################################################### For hardware that supports it, this section controls how often the# onboard clock gets updated.[StdTimeSynch]# How often to check the weather station clock for drift (in seconds)clock_check = 14400# How much it can drift before we will correct it (in seconds)max_drift = 5############################################################################### This section is for configuring the archive service.[StdArchive]# If the station hardware supports data logging then the archive interval# will be downloaded from the station. Otherwise, specify it (in seconds).archive_interval = 300# If possible, new archive records are downloaded from the station# hardware. If the hardware does not support this, then new archive# records will be generated in software.# Set the following to "software" to force software record generation.record_generation = hardware# Whether to include LOOP data in hi/low statisticsloop_hilo = True# The data binding used to save archive recordsdata_binding = wx_binding############################################################################### This section binds a data store to a database.[DataBindings][[wx_binding]]# The database must match one of the sections in [Databases].# This is likely to be the only option you would want to change.database = archive_mysql# The name of the table within the databasetable_name = archive# The manager handles aggregation of data for historical summariesmanager = weewx.wxmanager.WXDaySummaryManager# The schema defines the structure of the database.# It is *only* used when the database is created.schema = schemas.wview.schema[[forecast_binding]]database = forecast_sqlite############################################################################### This section defines various databases.[Databases]# A SQLite database is simply a single file[[archive_sqlite]]database_type = SQLitedatabase_name = weewx.sdb# MySQL[[archive_mysql]]database_type = MySQLdatabase_name = weewx[[forecast_sqlite]]database_name = forecast.sdbdatabase_type = SQLite############################################################################### This section defines defaults for the different types of databases.[DatabaseTypes]# Defaults for SQLite databases[[SQLite]]driver = weedb.sqlite# Directory in which the database files are locatedSQLITE_ROOT = /var/lib/weewx# Defaults for MySQL databases[[MySQL]]driver = weedb.mysql# The host where the database is locatedhost = minux.cubadak# The user name for logging in to the hostuser =xxxxx# The password for the user namepassword =xxxxxxx############################################################################### This section configures the internal weewx engine.[Engine][[Services]]# This section specifies the services that should be run. They are# grouped by type, and the order of services within each group# determines the order in which the services will be run.prep_services = weewx.engine.StdTimeSynchdata_services = ,process_services = weewx.engine.StdConvert, weewx.engine.StdCalibrate, weewx.engine.StdQC, weewx.wxservices.StdWXCalculatearchive_services = weewx.engine.StdArchive, user.forecast.ZambrettiForecast, user.forecast.WUForecastrestful_services = weewx.restx.StdStationRegistry, weewx.restx.StdWunderground, weewx.restx.StdPWSweather, weewx.restx.StdCWOP, weewx.restx.StdWOW, weewx.restx.StdAWEKASreport_services = weewx.engine.StdPrint, weewx.engine.StdReport##############################################################################
[WH23xx]# This section is for Fine Offset WH23xx stations# The model name such as Tycon, or TP2700
model = MiSol WH2310
# The driver to usedriver = user.wh23xx
############################################################################### Options for extension 'forecast'[Forecast]data_binding = forecast_binding# [[XTide]]# location = "INSERT_LOCATION_HERE (e.g., Boston)"[[Zambretti]]hemisphere = south[[WU]]api_key = b89d63b44524ec50# [[NWS]]# lid = "INSERT_LOCATION_ID_HERE (e.g., MAZ014)"# foid = "INSERT_FORECAST_OFFICE_ID_HERE (e.g., BOX)"