[weewx-user] Re: Weewx crashing

2017-11-18 Thread Thomas Carlin
Well, so much for that theory.   About 7:35p it crashed again.  But 
unplugging the device that generates that data has allowed it to run 
normally again.  However, based on your response the last record in this 
output would be the culprit then correct?  If my count is correct, both sum 
and wsum would be considered None when the accumulator is initialized.  Any 
idea what could cause this behavior?


sqlite> select * from archive_day_extraTemp3 where datetime >= 151064;
dateTime|min|mintime|max|maxtime|sum|count|wsum|sumtime
1510642800|70.52|1510728900|78.26|1510721100|2935.64|40|880692.0|12000
1510729200|65.48|1510746000|78.08|1510779600|16512.56|232|4953768.0|69600
1510815600|67.28|1510842900|71.06|1510842000|2934.08|43|880224.0|12900
1510902000|0.0|0|0.0|0
1510988400|74.48|1511058300|83.12|1511039400||45||13500
sqlite>




sqlite> select dateTime, inTemp, extraTemp3 from archive where datetime >= 
1511057400;
dateTime|inTemp|extraTemp3
1511057400|70.60002|75.02
1511057700|70.39998|74.66
1511058000|70.39998|74.66
1511058300|70.2767123287672|74.48
1511058600|70.2|
1511069400|69.8092307692308|



A f thought:  

In my driver if the correct data is not supplied, None is sent to 
event.record, is this correct, or should it simply not be called in that 
circumstance?
Snippit from my current driver:
for sensor in self.sensors:
if sensor != 'mac':
#print "DB Entry: " + self.sensors[sensor]
try:
value = esp_records[sensor]
except KeyError:
value = None

#print "Value: " + str(value)
event.record[self.sensors[sensor]] = value





I never modify the database without going through weewx, unless I am 
purging old data, so it shouldn't be an issue, but you never know.

Thanks Gary

On Saturday, November 18, 2017 at 8:39:03 PM UTC-7, gjr80 wrote:
>
> Yep, that could explain the symptoms. The accumulator for a given day and 
> for a given observation is at times initialised from that particular day 
> from that particular observation's daily summary table. If the sum field of 
> the day and daily summary concerned was None instead of a numeric then the 
> sum field of that accumulator would be initialised with None instead of 0.0 
> and you would see the symptoms you experienced. Rebuilding the daily 
> summaries would fix such a problem. It will be interesting to see if the 
> same issue comes back, certainly if you were making changes to the database 
> schema there is potential for a hiccup to occur, if you are relying on 
> weeWX to handle all database interraction then such a hiccup should never 
> occur.
>
> Gary
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: wview migration: serial server compatibility?

2017-11-18 Thread Chris Alemany
After a little bit of battling with Python (which I'll post a description 
of in a different thread once I'm all up and running) to get prereqs 
installed, it appears WeeWX is speaking to my serial server connected 
Vantage Pro 2 just fine.

Thanks all for the help!

Now for the fun part...

Chris

On Friday, November 17, 2017 at 8:23:03 AM UTC-8, Chris Alemany wrote:
>
> Hi all,
>
> I am thinking of finally making the switch from wview to weewx but one 
> fundamental difference that seems to remain is support for a serial server 
> connection.  
>
> I am using the GW21E Serial Server to take the serial output from my 
> wireless VP2 Plus.
>
> I don't see much talk about it on the forums. Have others found a way to 
> make this work or found alternatives?
>
> Thanks very much for your help,
> Cheers,
> Chris
> www.alberniweather.ca
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Weewx crashing

2017-11-18 Thread gjr80
Yep, that could explain the symptoms. The accumulator for a given day and 
for a given observation is at times initialised from that particular day 
from that particular observation's daily summary table. If the sum field of 
the day and daily summary concerned was None instead of a numeric then the 
sum field of that accumulator would be initialised with None instead of 0.0 
and you would see the symptoms you experienced. Rebuilding the daily 
summaries would fix such a problem. It will be interesting to see if the 
same issue comes back, certainly if you were making changes to the database 
schema there is potential for a hiccup to occur, if you are relying on 
weeWX to handle all database interraction then such a hiccup should never 
occur.

Gary

On Sunday, 19 November 2017 11:23:03 UTC+10, Thomas Carlin wrote:
>
> I did a little more playing with this today, and determined that the 
> problem is with extraTemp3, which I just started using, but is built into 
> the system.  That being the case, I decided to drop and re-build the daily 
> summaries, just for fun.  My theory being that was done right before the 
> issue started occurring to add a battery voltage field, and there could 
> have been an issue there somehow.  It hasn't been running for too long yet, 
> but so far it seems to be working.  I'll keep an eye on it over the next 
> few days, and see how it does, and update the thread.
>
> Thanks,
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Weewx crashing

2017-11-18 Thread Thomas Carlin
I did a little more playing with this today, and determined that the 
problem is with extraTemp3, which I just started using, but is built into 
the system.  That being the case, I decided to drop and re-build the daily 
summaries, just for fun.  My theory being that was done right before the 
issue started occurring to add a battery voltage field, and there could 
have been an issue there somehow.  It hasn't been running for too long yet, 
but so far it seems to be working.  I'll keep an eye on it over the next 
few days, and see how it does, and update the thread.

Thanks,

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] wview migration: serial server compatibility?

2017-11-18 Thread Christopher Joseph Alemany
Thank you all for the suggestions! I had not noticed the IP Address option. Now 
the only thing left to do is find enough time to try it out! When I do I will 
report back!

Thanks again weewx community. :)

Chris

Chris Alemany
3854 6th Ave
Port Alberni, BC
V9Y4M2
h:250-723-0889
w: 250-753-3245 x2106
m: 250-731-7930
e: chris...@gmail.com
w: www.chrisalemany.ca
w: www.alberniweather.ca
w: www.vifreightbyrail.ca

> On Nov 18, 2017, at 10:43, Thomas Carlin  wrote:
> 
> This should work just fine.  I have my Vantage Pro2 hooked up via IP using a 
> home brewed ESP8266 for a WiFi connection.  Essentially, it takes the Serial 
> stream, and converts it directly to IP, and the reverse for sent commands.  
> Just make sure your IP and port are correct in your configuration, and you 
> should be good to go.  
> -- 
> 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/DJoHbGpcLEI/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to 
> weewx-user+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] wview migration: serial server compatibility?

2017-11-18 Thread Devonian
Another alternative is with an RF link to/from your console and computer.

I use Belfryboy's XRF PCB's, but with an xbee 2.4Ghz module(s) configured 
for serial data, Tx & Rx.
https://oshpark.com/profiles/belfryboy
https://learn.sparkfun.com/tutorials/exploring-xbees-and-xctu

My VP2 console is on a wall in my dining room with a Belfryboy 'XRF to 
Console' RF data logger module plugged into the original logger port (and 
totally concealed).
My Linux box (with weewx) is across the room in my utility room with a USB 
connected Belfryboy 'XRF2FTDI' module (and connected by a wired LAN cable 
to my Router in the same room).

I bought the modules from Belfryboy when he was developing them with XRF 
2.4GHz modules.
They never seemed popular and I used xbee modules as at the same time the 
XRF disappeared from the market (pin for pin compatible).
I don't think Belfryboy offers them right now, but might be worth 
contacting him if you don't fancy 'hacking' for yourself.
http://belfryboyweatherbits.blogspot.co.uk/p/the-belfryboy-clone-usb-logger.html

Another RF possibility is with a pair of 433MHz serial modules available on 
eBay, lots more hacking, but do-able.

Nigel

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] wview migration: serial server compatibility?

2017-11-18 Thread Thomas Carlin

On Saturday, November 18, 2017 at 1:41:41 PM UTC-7, vince wrote:
>
> I'd be very interested in writeups of these kinds of setups that enable 
> the VP2 console to be situated far away in the house from the actual 
> computer running weewx.
>

It's not really a write up but:

My setup is very simple.  I took the work that Dekay did here:
 
http://madscientistlabs.blogspot.com/2011/10/build-your-own-davis-console-datalogger.html
 
,
 
and addapted it to an ESP8266 module: 
https://www.sparkfun.com/products/13678.  Both systems run 3.3 volt logic, 
so no shifting is necessary.  Simply connect GND to GND RX to TX, and TX to 
RX, and power the module.  I added a 3.3v regulator to the board, and then 
tied off the 5v brick provided for the Vantage to avoid extra wall warts.

Flash the ESP8266 with JeeLabs esp-link, https://github.com/jeelabs/esp-link, 
and configure it for your network. Finally, set the IP and Port in 
weewx.conf, and that's all she wrote!

Obviously, you need good wifi signal, and this comes with all the downsides 
of most other homebrew connections, no local storage, so if Weewx stops 
running, that data is lost, requires software archiving, etc.  But it comes 
with the benefit of no unsightly cables.  It will also only work with the 
consoles that were released before they started baking in the DRM, (green 
dot consoles as they have been referred to)  I'm sure that both of these 
can be addressed with the rest of the work that DeKay has done, but I 
haven't taken the time to do so for my module.


The OP's solution is even easier, although more expensive, but also much 
more robust.  Take the Vantage Serial module from Davis, plug it into a 
Serial Server: https://www.ebay.com/i/292322627039?rt=nc 
, plug in a network cable, and 
get it on the network, again configuring Weewx for IP, with the correct 
address and port.  This *shouldn't* have any of the same limitations that 
my solution does.  Since you are using the 'proper' module, DRM isn't an 
issue, and the storage is there, ready to be accessed.  

A third option is to purchase Davis's Weatherlink IP: 
https://www.davisnet.com/product/weatherlinkip-for-vantage-stations/  which 
does the same as the OP's solution, without any adational hardware.  
Depending on your needs and pocket book, this may be the 'best' solution, 
as there are less peices to fail, and Davis has presumably spent many hours 
and $$ engeniering the solution.

PS. Sorry for the hijack!

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] wview migration: serial server compatibility?

2017-11-18 Thread vince
On Saturday, November 18, 2017 at 10:43:21 AM UTC-8, Thomas Carlin wrote:
>
> This should work just fine.  I have my Vantage Pro2 hooked up via IP using 
> a home brewed ESP8266 for a WiFi connection.  Essentially, it takes the 
> Serial stream, and converts it directly to IP, and the reverse for sent 
> commands.  Just make sure your IP and port are correct in your 
> configuration, and you should be good to go. 
>

I'd be very interested in writeups of these kinds of setups that enable the 
VP2 console to be situated far away in the house from the actual computer 
running weewx.

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [weewx-user] wview migration: serial server compatibility?

2017-11-18 Thread Thomas Carlin
This should work just fine.  I have my Vantage Pro2 hooked up via IP using 
a home brewed ESP8266 for a WiFi connection.  Essentially, it takes the 
Serial stream, and converts it directly to IP, and the reverse for sent 
commands.  Just make sure your IP and port are correct in your 
configuration, and you should be good to go.  

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.