I would love to see a larger write up on how you got this going. I am now trying to get my new weather station up and running. I now have an Acurite station after my ambient 2080 failed to communicate from the remote station.
I have the station set in mode 4
Jan 17 12:20:00 raspberrypi weewx[29770]: engine: Starting main packet loop.Jan 17 12:22:06 raspberrypi weewx[29770]: acurite: Failed attempt 1 of 10 to get LOOP data: could not detach kernel driver from interface 0: No data availableJan 17 12:22:34 raspberrypi weewx[29770]: acurite: Failed attempt 1 of 10 to get LOOP data: could not detach kernel driver from interface 0: No data availableJan 17 12:23:03 raspberrypi weewx[29770]: acurite: Failed attempt 1 of 10 to get LOOP data: could not detach kernel driver from interface 0: No data availableJan 17 12:23:13 raspberrypi weewx[29770]: acurite: Failed attempt 2 of 10 to get LOOP data: could not detach kernel driver from interface 0: No data availableJan 17 12:23:41 raspberrypi weewx[29770]: acurite: Failed attempt 1 of 10 to get LOOP data: could not detach kernel driver from interface 0: No data available
I am running two instances of weewx on a raspberry pi. A 28xx LaCrosse and 2032c AcuRite. Happened to notice the AcuRite instance had crashed. Restarted and is working fine. Here is a bit of syslog before the 18:30 crash
The acurite db file is growing much faster than the ws28xx file.root@raspberry-pi:~# ls -l /var/lib/weewxtotal 83844-rw-r--r-- 1 root root 82972672 Jan 19 07:05 acurite-weewx.sdb-rw-r--r-- 1 root root 2876416 Jan 19 07:05 ws28xx-weewx.sdb
andy,the timestamps in your acurite database do not look right. you've got valus of 300 and 600 - much too small for a valid timestamp (unless you started collecting data in january 1970).
are you running anything else that might be writing to the acurite database?
check the log file to see what is going on. Logs show db writes every five minutes:
run weewx directly to verify the data in LOOP and REC coming from the station.
Not sure if I should start a new topic for this, but since it appears to be an issue with the acurite driver or my setup.
Jan 20 18:04:01 DiskStation weewx[22763]: acurite: unknown R1 flavor ff
Jan 20 18:04:01 DiskStation weewx[22763]: acurite: 01 ff ff ff ff ff ff ff ff 00
Jan 20 18:11:53 DiskStation weewx[22763]: acurite: unknown R1 flavor ff
Jan 20 18:11:53 DiskStation weewx[22763]: acurite: 01 ff ff ff ff ff ff ff ff 00
Jan 20 18:14:54 DiskStation weewx[22763]: acurite: unknown R1 flavor ff
Jan 20 18:14:54 DiskStation weewx[22763]: acurite: 01 ff ff ff ff ff ff ff ff 00
Jan 21 05:22:59 DiskStation weewx[22763]: acurite: unknown R1 flavor ff
Jan 21 05:22:59 DiskStation weewx[22763]: acurite: 01 ff ff ff ff ff ff ff ff 00
Perhaps related - sometimes it matches the time of the error, sometimes not - I get a "surprise" amount of rain recorded. The first instance of rain below is from the time of the first error (18:04:01). The other errors listed above do not trigger a recorded rain event (see graph below). Additionally, there is no error recorded for the second rain event - the weather was clear without a cloud in the sky. Perhaps an animal (bird?) landed on the weather station for the second event.
Finally, I'm a complete novice at this and I appreciate all the work that you have done for the Acurite driver.
Cheers!
Bryan
OddityI get the following error in /var/log/messages 2-3 times per day:Jan 20 18:04:01 DiskStation weewx[22763]: acurite: unknown R1 flavor ff
Jan 20 18:04:01 DiskStation weewx[22763]: acurite: 01 ff ff ff ff ff ff ff ff 00
Jan 20 18:11:53 DiskStation weewx[22763]: acurite: unknown R1 flavor ff
Jan 20 18:11:53 DiskStation weewx[22763]: acurite: 01 ff ff ff ff ff ff ff ff 00
Jan 20 18:14:54 DiskStation weewx[22763]: acurite: unknown R1 flavor ff
Jan 20 18:14:54 DiskStation weewx[22763]: acurite: 01 ff ff ff ff ff ff ff ff 00
Jan 21 05:22:59 DiskStation weewx[22763]: acurite: unknown R1 flavor ff
Jan 21 05:22:59 DiskStation weewx[22763]: acurite: 01 ff ff ff ff ff ff ff ff 00
Perhaps related - sometimes it matches the time of the error, sometimes not - I get a "surprise" amount of rain recorded.
non-standard values in rxCheckPercent (!=1) and outTempBatteryStatus (!=0)andmisrepresented rain recordings.
First of all thank you and great work on this (I followed you over from desert-home). So sorry if this is a newb question but I am trying to get this to running on my mac mini and when it runs nothing happens. I go and look at the logs and it has the following error:weewx[1845]: acurite: Unable to claim USB interface 0: [Errno 13] Access denied (insufficient permissions)weewx[1845]: acurite: Failed attempt 1 of 10 to get LOOP data: [Errno 13] Access denied (insufficient permissions)I am running it under Sudo and at a lost. Any ideas?
First of all thank you and great work on this (I followed you over from desert-home). So sorry if this is a newb question but I am trying to get this to running on my mac mini and when it runs nothing happens. I go and look at the logs and it has the following error:weewx[1845]: acurite: Unable to claim USB interface 0: [Errno 13] Access denied (insufficient permissions)weewx[1845]: acurite: Failed attempt 1 of 10 to get LOOP data: [Errno 13] Access denied (insufficient permissions)I am running it under Sudo and at a lost. Any ideas?
What am I doing wrong? I'd like to get you some valid info to solve the Protocol error.
1) Now, accurite.py driver is provided with the last version of weewx (thank you). I would like to test it but I am not sure about the minimum requirement for this driver :
which minimum version of libusb does it need ?
Dave used libusb-1.0.19 with some new functions (missing in the first versions of libusb-1.0) that he uses to communicate with the Accurite station. So this point is not clear for me.
2) My home server does not handle udev features but it is not needed for a connection with a USB device (at least, Dave's program is able to identify my weather station throught libusb-1.0.8). Then, I have no communication port created in /dev. Should I leave the port parameter blank in weewx.conf ? Will it work ?
Fantastic work Matt!!! I have a question though...
I was previously using Dave's C code and dumping it to both the screen and a python script that was sending it to weather underground.
I'm running into some troubles with data sent to wunderground via rapidupdate and I'd like to troubleshoot to validate data being sent without running wireshark to view the gets.
Is there a way to pipe the data that is destined to wunderground to a log file someplace to troubleshoot? Not sure if it's part of the driver here or in the restx.py in weewx.
Thank you for the reply,
I install Python 2.7.9 to install Weewx 3.1.0. I selected the Accurite driver.
My system includes both libusb 0.1 and 1.0. I connect my station in mode 3.
I see pyusb 1.0.0b2 listed for Python 2.7.9
1) Why is libusb-1.0 called instead of libusb-0.1 ?
Now weewxd starts without error but nothing is displayed on the screen (even with debug=1) and weewx.sdb is created but is not growing ...
Perhaps something wrong in the installation. Plugged or unplugged Accurite station result in same behavior of Weewx : nothing on the screen and in /var/log. But when I interrupt the program by Ctrl+C in the two cases :
This link is not working for me. Is there another source for the driver?
Can someone confirm that the Acurite 5-in-1 with remote monitoring that is sold by Costco works with weewx?
Can someone confirm that the Acurite 5-in-1 with remote monitoring that is sold by Costco works with weewx?Thanks,Alex
I am running an 01035 and testing with the latest acurite.py. (v 0.17) I have to comment out the configuration section to get it to load. I have libusb 1.0 and 0.1 installed and connect directly via usb.I receive "acurite: R2: unknown calibration constants: 02 00 00 45 cb 0e 84 01 01 02 63 7c 6b 17 64 09 c4 07 1b 60 07 7e 2a a6 f3" message in the log and there are no pressure readings.Thanks for any help....
Jun 21 08:41:27 saga weewx[11518]: acurite: R1: bogus signal strength (ff): 01 0b fa 71 00 08 15 23 ff 00
Jun 21 13:51:24 saga weewx[11518]: acurite: R1: ignoring stale data: 01 0b fa 71 00 75 15 42 00 00
Jun 21 16:31:28 saga weewx[11518]: acurite: R1: ignoring stale data: 01 0b fa 78 01 09 05 52 00 00
Jun 21 16:58:35 saga weewx[11518]: acurite: R1: bogus signal strength (ff): 01 0b fa 78 00 79 ff ff ff 00
Jun 21 17:00:05 saga weewx[11518]: acurite: R1: bogus signal strength (ff): 01 0b fa 78 00 69 1d 4d ff 00
Jun 21 17:10:56 saga weewx[11518]: acurite: R1: no sensors found: 01 ff ff ff ff ff ff ff ff 00
Jun 21 17:10:56 saga weewx[11518]: acurite: R2: unknown calibration constants: 02 00 00 41 ac 0d 1c 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
Jun 21 17:11:57 saga weewx[11518]: acurite: R2: constants changed: old: [02 00 00 41 ac 0d 1c 00 ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff] new: [02 00 00 41 ac 0d 1c 00 d0 02 16 8f e8 15 e7 09 c4 07 16 06 07 90 fd a9 fc]
Jun 21 17:21:47 saga weewx[11518]: acurite: R1: ignoring stale data: 01 0b fa 71 00 50 15 42 00 00
Jun 21 17:26:36 saga weewx[11518]: acurite: R1: ignoring stale data: 01 0b fa 71 00 50 15 42 00 00
Jun 21 22:33:43 saga weewx[11518]: acurite: R1: no sensors found: 01 ff ff ff ff ff ff ff ac 00
Jun 21 23:56:22 saga weewx[11518]: acurite: R1: bogus message flavor (ff): 01 0b fa ff ff ff ff ff ff 00
Jun 21 23:56:22 saga weewx[11518]: acurite: R1: bogus signal strength (ff): 01 0b fa ff ff ff ff ff ff 00
OK Looks like there's something with the station that just isn't working correctly. I've reset the usb as you suggested (both methods) and neither changed the value of byte-19. The station works fine in Windows under WeatherDisplay so I'll stick with that until I can upgrade to a davis vue....thanks for the help.
Made the change and that got it going. Temperature reading currently looks good. Baro looks reasonable. Here's a link to my WU if that's helpful at all. The first data from weewx was at 10:15 pm.
--
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/ErAUDBQEsDU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Thanks for the updated driver. I had a problem with it running originally, here is the trace I received:
--
sudo tail --lines 1000 /var/log/syslog
for the relevant part from before to through the failure at about 9:30. It looks to me that the connection between the Raspberry PI and the acurite is failing. I have unplugged and replugged cables multiple times using different ports on the raspberry pi,....
The acurite display IS showing data from the outdoor weather station throughout. cpu temp is OK at about 37C. Wifi signal strength to wunderground and the outside world is good at 85/100 with no noise.
Any bright ideas as to what I should do?
Thanks,Ralph Peters
Jan 31 09:25:39 raspberrypi weewx[883]: acurite: Found station at bus=001 device=005 Jan 31 09:25:39 raspberrypi weewx[883]: acurite: next read in 18 seconds Jan 31 09:25:57 raspberrypi weewx[883]: acurite: Found station at bus=001 device=005 Jan 31 09:25:57 raspberrypi weewx[883]: acurite: next read in 18 seconds Jan 31 09:26:15 raspberrypi weewx[883]: acurite: Found station at bus=001 device=005 Jan 31 09:26:15 raspberrypi weewx[883]: acurite: next read in 6 seconds Jan 31 09:26:21 raspberrypi weewx[883]: acurite: Found station at bus=001 device=005 Jan 31 09:26:22 raspberrypi weewx[883]: acurite: Failed attempt 1 of 10 to get LOOP data: error sending control message: Connection timed out Jan 31 09:26:22 raspberrypi kernel: [41437.718664] usb 1-1.5: usbfs: USBDEVFS_CONTROL failed cmd python rqt 161 rq 1 len 25 ret -110 Jan 31 09:26:52 raspberrypi weewx[883]: acurite: Found station at bus=001 device=005 Jan 31 09:26:52 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 09:28:22 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 09:35:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 09:36:31 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 09:35:01 raspberrypi CRON[2430]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Jan 31 09:45:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 09:46:31 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 09:45:01 raspberrypi CRON[2447]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Jan 31 09:55:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 09:56:31 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 09:55:01 raspberrypi CRON[2464]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Jan 31 10:03:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 10:04:31 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 10:03:01 raspberrypi CRON[2481]: (pi) CMD (/home/pi/Dropbox-Uploader/dropbox_uploader.sh upload /var/www/weewx .) Jan 31 10:05:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 10:06:31 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 10:05:01 raspberrypi CRON[4820]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Jan 31 10:06:21 raspberrypi CRON[2474]: (CRON) info (No MTA installed, discarding output) Jan 31 10:15:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 10:16:31 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 10:15:01 raspberrypi CRON[4846]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Jan 31 10:17:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 10:18:31 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 10:17:01 raspberrypi CRON[4861]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Jan 31 10:25:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 10:26:31 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 10:25:01 raspberrypi CRON[4885]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Jan 31 10:35:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 10:36:31 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 10:35:01 raspberrypi CRON[4902]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Jan 31 10:45:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 10:46:31 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 10:45:01 raspberrypi CRON[4919]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Jan 31 10:55:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 10:56:31 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 10:55:01 raspberrypi CRON[4935]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Jan 31 11:03:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 11:04:31 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 11:03:01 raspberrypi CRON[4952]: (pi) CMD (/home/pi/Dropbox-Uploader/dropbox_uploader.sh upload /var/www/weewx .) Jan 31 11:05:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 11:06:31 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 11:05:01 raspberrypi CRON[6428]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Jan 31 11:05:53 raspberrypi CRON[4945]: (CRON) info (No MTA installed, discarding output) Jan 31 11:15:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 11:16:31 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 11:15:01 raspberrypi CRON[6454]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Jan 31 11:17:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 11:18:31 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 11:17:01 raspberrypi CRON[6469]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly) Jan 31 11:25:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 11:26:31 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 11:25:01 raspberrypi CRON[6493]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Jan 31 11:35:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 11:36:31 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 11:35:01 raspberrypi CRON[6510]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Jan 31 11:45:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 11:46:31 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 11:45:01 raspberrypi CRON[6528]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1) Jan 31 11:55:01 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 11:56:31 2016 [try http://www.rsyslog.com/e/2007 ] Jan 31 11:55:01 raspberrypi CRON[6545]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
raspberry rsyslogd-2007: action 'action 17' suspended, next retry is Wed Oct 7 02:03:42 2015 [try http://www.rsyslog.com/e/2007 ]
#daemon.*;mail.*;\
# news.err;\
# *.=debug;*.=info;\
# *.=notice;*.=warn |/dev/xconsole
--
Thanks for the reply! I found the same solution late yesterday and have made this "fix". We'll see if it works.
Jan 31 09:26:22 raspberrypi weewx[883]: acurite: Failed attempt 1 of 10 to get LOOP data: error sending control message: Connection timed out
Jan 31 09:26:22 raspberrypi kernel: [41437.718664] usb 1-1.5: usbfs: USBDEVFS_CONTROL failed cmd python rqt 161 rq 1 len 25 ret -110
Jan 31 09:26:52 raspberrypi rsyslogd-2007: action 'action 17' suspended, next retry is Sun Jan 31 09:28:22 2016 [try http://www.rsyslog.com/e/2007 ]
--
Jan 31 09:26:22 raspberrypi weewx[883]: acurite: Failed attempt 1 of 10 to get LOOP data: error sending control message: Connection timed out
it indicates that weewx cannot obtain data via usb. weewx will retry up to 10 times. if it fails after 10 attempts, then the driver will be reloaded.
--
To be clear the driver does NOT report inTemp at all ?
On Friday, January 9, 2015 at 8:55:37 PM UTC-8, mwall wrote:folks,
here is a driver for acurite 5in1 weather stations. it should work with any of the stations that have a usb port, including models 01025, 01035, 01036, 02032, 01057.
https://svn.code.sf.net/p/weewx/code/trunk/bin/weewx/drivers/acurite.py
many, many thanks to dave at 'desert home' for publishing his work
http://www.desert-home.com/
v0.1 will report outside sensor data: outTemp, outHumidity, rain, windSpeed, windDir
it will *not* report inTemp, inHumidity, or pressure