Rainwise IP-100 Data Inconsistency

97 views
Skip to first unread message

tim lambert

unread,
Jan 4, 2021, 9:33:02 PM1/4/21
to weewx-user
I recently stood up a Raspberry Pi 4 running weewx  4.2.0 with the IP-100 v0.5 extension.  It appears the IP-100 Console data does not match the data presented via weewx (using the out-of-box index.html, which is using the SeasonsSkin) -- particularly, the Rain and Rain Rate.   I've shared screen shots of both the IP-100 Console and the weewx html

Based on some investigation, the log file (attached) indicates the data which is showing on the IP-100 Console is being captured correctly,   However, looking at the archive table (attached) in the weewx.sdb, it does not appear the data elements are being posted to the archive table correctly - specifically day_rain_total (log) vs rain (archive table) and rain (log) vs rainRate (archive table).

Additionally, the station_volts (log file) are not being posted to the archive table.

I'm new to this world, but do have some technical bones -- any guidance on what actions need to be taken to address the discrepancy would be appreciated.

Thanks in advance!




John Kline

unread,
Jan 4, 2021, 10:06:51 PM1/4/21
to weewx...@googlegroups.com
Station volts is not in the default map.  It wouldn’t be hard to add.

I did the IP100 port to WeeWX 4 and fixed bugs in the driver (and bumped the version to 0.5 in my fork).  I’m presuming you are running it.

Although I’m not currently running the driver, I did run it for almost two years and rain values ALWAYS agreed with my WeeWX instances running the CC3000 driver and talking to the same RainWise weather station.

day_rain_total is used to calculate rain.  It is not, in itself saved to the database.

I have not downloaded your files.  You’ll have to tell me if the ip100 console does not agree with the console for today’s rain and, if not, what two values you are seeing.  Please list them.

If you do have a discrepancy for today’s rain, please state if you restarted weewx today (or if it restarted on its own today).  That would be a way to lose rainfall.


On Jan 4, 2021, at 6:33 PM, tim lambert <timsl...@comcast.net> wrote:


--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/c7fd8f73-fbdc-4a52-a3fc-c04e6df83889n%40googlegroups.com.

tim lambert

unread,
Jan 4, 2021, 10:26:58 PM1/4/21
to weewx-user
Thanks for the quick response John!

I am running your version of the IP100 for weewx 4 - version 0.5

I did restart the weewx today -- had some network issues, compliments of Comcast.   However, I've witnessed discrepancies between the IP100 Console and weewx for several days -- just finally had a chance to get some data captures.   I may need to capture data again tomorrow (knowing it will be raining buckets again).

At this point in time:

                                              IP100                            weewx
Rainfall                                  0.06                               0.15
Rain Rate                              0.00                               0.00

Can I truncate (delete all records) from the weewx.sdb (after backing up of course) to start fresh, so that we have a solid baseline to evaluate?

John Kline

unread,
Jan 4, 2021, 10:34:48 PM1/4/21
to weewx...@googlegroups.com
You don’t to delete records.  There isn’t really much to the rain calculation.  For all rain that occurred while WeeWX is up and running, the day_rain_total will increment, the driver will calculate the delta and add it to the loop record as ‘rain’.  For the discrepancy to occur, 0.09 inches would have had to happen while WeeWX wasn’t running.

Let’s try a day where WeeWX has been running, uninterrupted, since midnight.

On Jan 4, 2021, at 7:27 PM, tim lambert <timsl...@comcast.net> wrote:



tim lambert

unread,
Jan 4, 2021, 10:40:51 PM1/4/21
to weewx-user
Thanks for the guidance John!   I was anticipating to simply have a day with a clean run, starting at midnight.  I should have this info tomorrow.

I assume the loop will recognize my local timezone to reset to zero at midnight, recognizing the db is being recorded on GMT?

Once I sort this possible discrepancy, I'd like to pick your brain on adding the Station Volts.

Regards,

John Kline

unread,
Jan 4, 2021, 10:44:39 PM1/4/21
to weewx...@googlegroups.com
The IP100 resets the day’s rain total at midnight (according to it’s clock).  It doesn’t really matter to the driver when that happens.  The driver is simply looking for a positive increment in day_rain_total.  On a negative increment (e.g., reset), the driver just saves the last value and reports 0.0 for rain.

On Jan 4, 2021, at 7:40 PM, tim lambert <timsl...@comcast.net> wrote:



John Kline

unread,
Jan 5, 2021, 12:58:26 AM1/5/21
to weewx...@googlegroups.com
Once I sort this possible discrepancy, I'd like to pick your brain on adding the Station Volts.

I added it at head.  Station volts will now show up as supplyVoltage.

On Jan 4, 2021, at 7:44 PM, John Kline <jo...@johnkline.com> wrote:



tim lambert

unread,
Jan 6, 2021, 11:54:07 AM1/6/21
to weewx-user
Hi John,

After leaving the server run uninterrupted, all of the data being displayed on weewx is ticking to the ip-100 console.  

Apologies for my ignorance, where can I exactly find the inclusion of the station volts you noted in your last comm (btw Thanks for addressing).

John Kline

unread,
Jan 6, 2021, 2:20:58 PM1/6/21
to weewx...@googlegroups.com
where can I exactly find the inclusion of the station volts

Download this file:

Then:

sudo wee_extension --install master.zip


On Jan 6, 2021, at 8:54 AM, tim lambert <timsl...@comcast.net> wrote:



tim lambert

unread,
Jan 6, 2021, 2:57:14 PM1/6/21
to weewx-user
Thanks John!

Unfortunately, I'm getting an error when executing the install:

python  wee_extension --install /home/pi/FTP/weewx-ip100-master.zip
  File "wee_extension", line 6
    WEEWX_BINDIR=/home/weewx/bin
                 ^
SyntaxError: invalid syntax


Any ideas?

John Kline

unread,
Jan 6, 2021, 3:28:29 PM1/6/21
to weewx...@googlegroups.com
How did you install the 0.5 version?

On Jan 6, 2021, at 11:57 AM, tim lambert <timsl...@comcast.net> wrote:



tim lambert

unread,
Jan 6, 2021, 3:33:49 PM1/6/21
to weewx-user
Using the directions outlined in the readme with 0.5 version

John Kline

unread,
Jan 6, 2021, 3:37:51 PM1/6/21
to weewx...@googlegroups.com
The directions say:

sudo wee_extension --install weewx-ip100-0.5.zip

I just replaced the name of the zip.

It looks like you typed python, rather than sudo.
Please try again to install the 0.5 version, and tell me how that goes and the exact command line you used to install 0.5.  Then, we can go from there.

On Jan 6, 2021, at 12:33 PM, tim lambert <timsl...@comcast.net> wrote:



tim lambert

unread,
Jan 6, 2021, 3:59:13 PM1/6/21
to weewx-user
Thanks John!

I first needed to get to the proper location to execute the wee_installer -- that being /home/weewx/bin

Then I executed the command, but with a sudo python3 ...

This loaded the weewx-ip-100-master.zip I downloaded from github

I assume I'll need to restart weewx?

John Kline

unread,
Jan 6, 2021, 4:18:42 PM1/6/21
to weewx...@googlegroups.com
Yeah, I pieced together how you got that error message.  You were asking the python interpreter to execute a shell script.

jkline@judy:~/software/weewx $ python  util/scripts/wee_extension 
  File "util/scripts/wee_extension", line 6
    WEEWX_BINDIR=/home/weewx/bin

On Jan 6, 2021, at 12:59 PM, tim lambert <timsl...@comcast.net> wrote:



tim lambert

unread,
Jan 6, 2021, 4:24:28 PM1/6/21
to weewx-user
Yep! A rookie mistake, which after some reflection I realized the error in my ways -- thus the reason why I'm an ERP Implementation Program/Project Manager, that is very very dependent on the Technical Team (they've simply taught me how to translate techie to customer execs and now I'm trying to be hands-on in the tech world).

I'll restart weewx at midnight, so as to not foul the daily data capture/reporting.

Again, many thanks for your assistance and patience.

Regards!

John Kline

unread,
Jan 6, 2021, 4:26:45 PM1/6/21
to weewx...@googlegroups.com
> I'll restart weewx at midnight, so as to not foul the daily data capture/reporting.

You don’t need to wait until midnight.  If it’s raining when you do it, you have the danger of missing a tip; but otherwise, there is no issue with restarting it.

On Jan 6, 2021, at 1:24 PM, tim lambert <timsl...@comcast.net> wrote:


Reply all
Reply to author
Forward
0 new messages