[weewx-user] Re: Custom Search Min/Max/Avg during daylight hours

2021-03-28 Thread Russell van vlack
I merely used uv index as an example. It could be any observation 
(temperature, wind speed, humidity, dewpoint, etc.) So the definition of 
minimum is the lowest value of whatever observation it is looking at.  Yes, 
UV or solar radiation may be 0 by default (unless you're in Alaska during 
the period where the sun never sets) but for temperature or dewpoint or 
wind speed it may not be zero.

What I'm basically wanting to do is be able to write something like 
$daylightHours.outTemp.avg or $daylightHours.UV.avg (similar to 
$day.outTemp.avg or $day.UV.avg except would only calculate the average 
using values for the observation when it is daylight.)

I have written a couple of other custom search "extensions" for weewx like 
last7days and last24hours which gather values for the last week or last 24 
hours but wondering if something like daylightHours as above is even 
possible and/or how it could be done.

And you're example of clouds enters into it. We get a lot of clouds in MI. 
And being able to get the average UV index or solar radiation but not 
factor in all the zero values that were either before dawn or after sundown 
is roughly what I'm looking for.

On Sunday, March 28, 2021 at 2:26:56 AM UTC-4 kk44...@gmail.com wrote:

> Then sun starts the day deep east with very low radiation, almost zero. 
> During the morning the radiation increases, and during afternoon decreases. 
> In the evening it is almost zero again. So, what exactly is your definition 
> of "min" regarding sun radiation?
>
> The UV index is always zero during morning hours and evening hours. Values 
> above zero start in the late morning, and they occur until late afternoon. 
> In early morning and early evening the sun is too low to get an UV index. 
> So, again, what exactly is your definition of "min" regarding UV index?
>
> You can look at the observation type "maxSolarRad". It is a calculated 
> value, and it shows the maximum solar radiation possible at that time. Be 
> aware, if clouds are involved, the real value can be more than the 
> theoretical value for a short time.
>
> rvanv...@gmail.com schrieb am Samstag, 27. März 2021 um 23:59:58 UTC+1:
>
>> I want to be able to find the min/max/avg value for various weather 
>> observations (uv index for example) but only during the time when the sun 
>> is up. I am struggling to write a custom search item for that and wonder 
>> who could get it started for me or lead me in a good direction.
>>
>> If it is before sunrise for the day, the min/max/avg would all be null or 
>> undefined or none... something like that.
>> If it is after sunrise but before sunset, the min/max/avg would be 
>> calculated from sunrise to current time.
>> If it is after both sunrise and sunset, the min/max/avg would be 
>> calculated for times between the sunrise and sunset times only.
>>
>> Is it possible?
>>
>> Any thoughts or help would be appreciated. I'm not a real adept Python 
>> programmer.
>>
>>
>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/7faf872c-e94c-4a7f-a118-5e493dbe042an%40googlegroups.com.


[weewx-user] Custom Search Min/Max/Avg during daylight hours

2021-03-27 Thread Russell van vlack
I want to be able to find the min/max/avg value for various weather 
observations (uv index for example) but only during the time when the sun 
is up. I am struggling to write a custom search item for that and wonder 
who could get it started for me or lead me in a good direction.

If it is before sunrise for the day, the min/max/avg would all be null or 
undefined or none... something like that.
If it is after sunrise but before sunset, the min/max/avg would be 
calculated from sunrise to current time.
If it is after both sunrise and sunset, the min/max/avg would be calculated 
for times between the sunrise and sunset times only.

Is it possible?

Any thoughts or help would be appreciated. I'm not a real adept Python 
programmer.


-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/3686b446-573e-4170-ae10-2160a0471234n%40googlegroups.com.


[weewx-user] Re: Weatherlink IP Discontinued... What are folks using now?

2020-06-27 Thread Russell van vlack
Jeff,

Cool!  I hadn't pieced together how this would work.  I have a couple of 
Pi's from the previous deployments sitting around.  Cheap because they've 
been sitting in a box.  Ha ha.  I'll have to try it.  This would keep us 
wired as we have preferred to do.  I did get a WifiLogger2 coming as well 
to see how they work.

Thanks for the ideas folks.

On Friday, June 19, 2020 at 8:24:11 AM UTC-4, Jeff Rabin wrote:
>
>
> Get the cheapest Pi you can. There is a Unix package called ser2net 
> that converts the Serial/USB connection to ethernet. (sudo apt install 
> ser2net).I’ve got it running on 2 so basically emulates the Davis 
> Ethernet dongle.
>
> No real maintenance as the remote Pi is doing nothing related to weewx.   
>  It’s just converting serial to IP.
>
>
> On Thursday, June 18, 2020 at 2:26:36 PM UTC-4, Russell van vlack wrote:
>>
>> I operate several Davis Vantage Pro weather stations (cabled versions) 
>> for our local skywarn spotter network.  These stations are often located at 
>> remote sites and then we've got Weewx running on a server that goes out and 
>> polls all of the stations.  The stations are linked to the internet via a 
>> Weatherlink IP behind a router and it works beautifully (once we tweaked a 
>> few of the network settings in weewx, btw.)
>>
>> With the Davis Weatherlink IP being discontinued, what are folks using to 
>> connect their cabled stations to the internet?  I see a couple of 
>> recommendations a while ago for something like this: 
>> https://www.gridconnect.com/products/net232-serial-to-ethernet-intelligent-cable-adapter
>>  .  
>> Is this a good option?  How about something that does usb via ip instead?  
>> We had RaspPi's running at all the sites sending data back to the central 
>> server for a long time, but we really like the elegance of the solution we 
>> have currently.
>>
>> I'd appreciate any comments.  Kinda bummed that Davis moved to the 
>> weatherlink live idea.  I'd been able to get some of the IP loggers on ebay 
>> for a while but they're dwindling.
>>
>> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/29ab1b99-056a-42a1-8c87-0c0500e16da3o%40googlegroups.com.


[weewx-user] Re: Weatherlink IP Discontinued... What are folks using now?

2020-06-27 Thread Russell van vlack
galfert,

The only problem with that, as far as I can tell, is that it requires a 
wireless conosole, correct?  Mine are all cabled.

Thanks.

On Saturday, June 20, 2020 at 9:42:54 AM UTC-4, galfert wrote:
>
> You could also ge the Davis WeatherLink Live and use that with WeeWX. 
> You need the WLL driver:
> https://github.com/jonotaegi/weewx-wll
>
> One nice thing about the WLL is that you can then also run other software 
> simultaneously on the same or different system as WeeWX. In case you also 
> wanted to check out Weather-Display or Cumulus MX for example. 
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/eb0c0e1b-64f2-4415-84be-7e4dad4cf9b7o%40googlegroups.com.


[weewx-user] Re: Weatherlink IP Discontinued... What are folks using now?

2020-06-27 Thread Russell van vlack
Cool. I've got a couple of Pi's still sitting around.  I'll have to try 
it.  Appreciate it.

On Friday, June 19, 2020 at 8:28:09 AM UTC-4, Jeff Rabin wrote:
>
> Easy to config.Add this to /etc/ser2net.conf
>
> 2:raw:0:/dev/ttyUSB0:19200 8DATABITS NONE 1STOPBIT -XONXOFF -RTSCTS
>
> On Friday, June 19, 2020 at 8:24:11 AM UTC-4, Jeff Rabin wrote:
>>
>>
>> Get the cheapest Pi you can. There is a Unix package called ser2net 
>> that converts the Serial/USB connection to ethernet. (sudo apt install 
>> ser2net).I’ve got it running on 2 so basically emulates the Davis 
>> Ethernet dongle.
>>
>> No real maintenance as the remote Pi is doing nothing related to weewx.   
>>  It’s just converting serial to IP.
>>
>>
>> On Thursday, June 18, 2020 at 2:26:36 PM UTC-4, Russell van vlack wrote:
>>>
>>> I operate several Davis Vantage Pro weather stations (cabled versions) 
>>> for our local skywarn spotter network.  These stations are often located at 
>>> remote sites and then we've got Weewx running on a server that goes out and 
>>> polls all of the stations.  The stations are linked to the internet via a 
>>> Weatherlink IP behind a router and it works beautifully (once we tweaked a 
>>> few of the network settings in weewx, btw.)
>>>
>>> With the Davis Weatherlink IP being discontinued, what are folks using 
>>> to connect their cabled stations to the internet?  I see a couple of 
>>> recommendations a while ago for something like this: 
>>> https://www.gridconnect.com/products/net232-serial-to-ethernet-intelligent-cable-adapter
>>>  .  
>>> Is this a good option?  How about something that does usb via ip instead?  
>>> We had RaspPi's running at all the sites sending data back to the central 
>>> server for a long time, but we really like the elegance of the solution we 
>>> have currently.
>>>
>>> I'd appreciate any comments.  Kinda bummed that Davis moved to the 
>>> weatherlink live idea.  I'd been able to get some of the IP loggers on ebay 
>>> for a while but they're dwindling.
>>>
>>> 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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/805398e3-6a23-45ad-8e87-382153e9cfbao%40googlegroups.com.


[weewx-user] Re: Weatherlink IP Discontinued... What are folks using now?

2020-06-19 Thread Russell van vlack
Thanks, Pat.

The ProData WiFi Logger seems like maybe the best option at this point.  It 
looks like it has worked well for folks based on what I see in the forum.  
Because these are remote sites, we have appreciated the robustness (is that 
a word?) of having everything cabled from the weather station right through 
to the internet, but we may have to break away from that.

And it's not so much a worry about the weatherlink ip turning off as it is 
just finding them out there to buy when we expand the network like we're 
doing now.

Thanks.  

On Thursday, June 18, 2020 at 7:15:27 PM UTC-4, Pat wrote:
>
> I don't think the weatherlink ip will turn off anytime soon. So it should 
> continue to work for a long time. If you're having a hard time buying a new 
> one, I see people are using a clone 
> <https://groups.google.com/forum/#!topic/weewx-user/5s2Mp9Uh8g8>. 
>
> On Thursday, June 18, 2020 at 4:52:53 PM UTC-4, vince wrote:
>>
>> On Thursday, June 18, 2020 at 11:26:36 AM UTC-7, Russell van vlack wrote:
>>>
>>> With the Davis Weatherlink IP being discontinued, what are folks using 
>>> to connect their cabled stations to the internet?  I see a couple of 
>>> recommendations a while ago for something like this: 
>>> https://www.gridconnect.com/products/net232-serial-to-ethernet-intelligent-cable-adapter
>>>  .  
>>> Is this a good option?  How about something that does usb via ip instead?  
>>> We had RaspPi's running at all the sites sending data back to the central 
>>> server for a long time, but we really like the elegance of the solution we 
>>> have currently. 
>>>
>>
>>
>> You could do a pi4 running in ramdisk (to protect the SD card) for less 
>> than the half of cost of your serial-to-ethernet adaptor.
>>
>>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/aa44e964-0420-4a02-aeda-49ef1fe8840bo%40googlegroups.com.


[weewx-user] Weatherlink IP Discontinued... What are folks using now?

2020-06-18 Thread Russell van vlack
I operate several Davis Vantage Pro weather stations (cabled versions) for 
our local skywarn spotter network.  These stations are often located at 
remote sites and then we've got Weewx running on a server that goes out and 
polls all of the stations.  The stations are linked to the internet via a 
Weatherlink IP behind a router and it works beautifully (once we tweaked a 
few of the network settings in weewx, btw.)

With the Davis Weatherlink IP being discontinued, what are folks using to 
connect their cabled stations to the internet?  I see a couple of 
recommendations a while ago for something like this: 
https://www.gridconnect.com/products/net232-serial-to-ethernet-intelligent-cable-adapter
 .  
Is this a good option?  How about something that does usb via ip instead?  
We had RaspPi's running at all the sites sending data back to the central 
server for a long time, but we really like the elegance of the solution we 
have currently.

I'd appreciate any comments.  Kinda bummed that Davis moved to the 
weatherlink live idea.  I'd been able to get some of the IP loggers on ebay 
for a while but they're dwindling.

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/126363ce-d679-46ef-a427-b94895cce67ao%40googlegroups.com.


[weewx-user] Re: Error since upgrade from 3.9.2 to 4.0.0

2020-05-13 Thread Russell van vlack
Is it a line like this that's causing the issue?  Not necessarily that line 
in particular, but as an example. Just thinking from my small programming 
background and seeing the comment on "float".

$day.rain.sum.nolabel("%.2f",0.0)

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/89e2f17f-e7aa-4fc0-a7cb-ba923400b293%40googlegroups.com.


[weewx-user] Re: Error since upgrade from 3.9.2 to 4.0.0

2020-05-13 Thread Russell van vlack
Looks like I ran up against a line limit.  Attached as plain text.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/c8288dfb-5933-462f-b1f9-d10f1e009269%40googlegroups.com.
{
  "detail": {
"timestamp": "$current.dateTime.format("%m/%d/%Y %H:%M")",
"station": "$station.location",
"lat": "$station.latitude[0] $station.latitude[1]' 
$station.latitude[2]",
"lon": "$station.longitude[0] $station.longitude[1]' 
$station.longitude[2]",
"el": "$station.altitude",
"hw": "$station.hardware",
"weev": "v$station.version",
"weeup": "$station.uptime",
"osup": "$station.os_uptime"
  },
  "almanac": {
#if $almanac.hasExtras
  #set $sun_altitude = $almanac.sun.alt
  #if $sun_altitude < 0
#set $sun_None="(Always down)"
  #else
#set $sun_None="(Always up)"
  #end if
  "hasextended": 1,
  "twilight": {
"start": "$almanac(horizon=-6).sun(use_center=1).rise",
"end": "$almanac(horizon=-6).sun(use_center=1).set"
  },
  "sun": {
"rise": "$almanac.sun.rise.string($sun_None)",
"transit": "$almanac.sun.transit",
"set": "$almanac.sun.set.string($sun_None)"
  },
  "moon": {
"rise": "$almanac.moon.rise",
"transit": "$almanac.moon.transit",
"set": "$almanac.moon.set",
"phase": "$almanac.moon_phase",
"full": "$almanac.moon_fullness",
"nextEvents": {
  "nextNew": "$almanac.next_new_moon.format("%m/%d/%Y %H:%M")",
  "nextFull": "$almanac.next_full_moon.format("%m/%d/%Y %H:%M")"
}
  },
  "other": {
"solstice": "$almanac.next_solstice.format("%m/%d/%Y %H:%M")",
"equinox": "$almanac.next_equinox.format("%m/%d/%Y %H:%M")",
"sun_alt": "$almanac.sun.alt",
"sun_az": "$almanac.sun.az",
"sun_size": "$almanac.sun.size",
"moon_alt": "$almanac.moon.alt",
"moon_az": "$almanac.moon.az",
"moon_size": "$almanac.moon.size",
"sun_moon_separation": "$almanac.separation(($almanac.sun.az, 
$almanac.sun.alt), ($almanac.moon.az, $almanac.moon.alt))"

  }
#else
  "hasextended": 0,
  "sun": {
"rise": "$almanac.sunrise",
"set": "$almanac.sunset"
  },
  "moon": {
"phase": "$almanac.moon_phase ($almanac.moon_fullness% full)"
  }
#end if
  },
  "current": {
"otemp": $current.outTemp.formatted,
"otemptest": $current.outTemp.format(None_string="'N/A'", add_label=False),
"otemptrend": $trend.outTemp.formatted,
"otemptrendtest": $trend.outTemp.format(None_string="'N/A'", 
add_label=False),
"ochill": $current.windchill.formatted,
"ochilltrend": $trend.windchill.formatted,
"oheat": $current.heatindex.formatted,
"oheattrend": $trend.heatindex.formatted,
"odew": $current.dewpoint.formatted,
"odewtrend": $trend.dewpoint.formatted,
"orh": $current.outHumidity.formatted,
"orhtrend": $trend.outHumidity.formatted,
"bar": $current.barometer.formatted,
"bartrend": $trend.barometer.formatted,
"wspeed": $current.windSpeed.formatted,
"wspeedtrend": $trend.windSpeed.formatted,
"wdeg": "$current.windDir.formatted",
"wdir": "$current.windDir.ordinal_compass",
"wgust": $current.windGust.formatted,
"wgusttrend": $trend.windGust.formatted,
"wgustdeg": "$current.windGustDir.formatted",
"wgustdir": "$current.windGustDir.ordinal_compass",
"rainrate": $current.rainRate.formatted,
"rainratetrend": $trend.rainRate.formatted,
#if $day.radiation.has_data
"sr": $current.radiation.formatted,
"srtrend": $trend.radiation.formatted,
#end if
"itemp": $current.inTemp.formatted,
"itemptrend": $trend.inTemp.formatted,
"irh": $current.inHumidity.formatted,
"irhtrend": $trend.inHumidity.formatted
  },
  "summary": {
"h1": {
  "otemp": [
{
  "v": $hour.outTemp.max.formatted,
  "t": "$hour.outTemp.maxtime.format("%H:%M")"
},{
  "v": $hour.outTemp.min.formatted,
  "t": "$hour.outTemp.mintime.format("%H:%M")"
},{
  "v": $hour.outTemp.avg.formatted
}
  ],
  "oheat": [
{
  "v": $hour.heatindex.max.formatted,
  "t": "$hour.heatindex.maxtime.format("%H:%M")"
},{
  "v": $hour.heatindex.min.formatted,
  "t": "$hour.heatindex.mintime.format("%H:%M")"
},{
  "v": $hour.heatindex.avg.formatted
}
  ],
  "ochill": [
{
  "v": $hour.windchill.max.formatted,
  "t": "$hour.windchill.maxtime.format("%H:%M")"
},{
  "v": $hour.windchill.min.formatted,
  "t": "$hour.windchill.mintime.format("%H:%M")"

[weewx-user] Error since upgrade from 3.9.2 to 4.0.0

2020-05-13 Thread Russell van vlack
Good afternoon.

I keep getting the following error after upgrading to 4.0.0 from 3.9.2 a 
little while ago.

May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator: Generate failed with exception ''
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator:  Ignoring template 
/etc/weewx/skins/W8AGT/wxsummary.json.new.tmpl
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator:  Reason: not expecting type ''
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator:   Traceback (most recent call last):
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator: File 
"/usr/share/weewx/weewx/cheetahgenerator.py", line 322, in generate
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator:   unicode_string = 
compiled_template.respond()
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator: File 
"_etc_weewx_skins_W8AGT_wxsummary_json_new_tmpl.py", line 3491, in respond
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator: File "/usr/share/weewx/weewx/units.py", 
line 1088, in nolabel
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator:   return self.toString(addLabel=False, 
useThisFormat=format_string, None_string=None_string)
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator: File "/usr/share/weewx/weewx/units.py", 
line 1051, in toString
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator:   localize=localize)
May 13 15:44:30 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator: File "/usr/share/weewx/weewx/units.py", 
line 782, in toString
May 13 15:44:31 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator:   val_ustr = six.ensure_text(val_str)
May 13 15:44:31 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator: File "/usr/share/weewx/six.py", line 908, 
in ensure_text
May 13 15:44:31 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator:   raise TypeError("not expecting type '%s'" 
% type(s))
May 13 15:44:31 w8agtweather1 weewx-lowell[4322] ERROR 
weewx.cheetahgenerator:   TypeError: not expecting type ''
May 13 15:44:31 w8agtweather1 weewx-lowell[4322] INFO 
weewx.cheetahgenerator: Generated 3 files for report StandardReport in 
13.11 seconds

I see some issues on the forums pointing toward an error in my template but 
nothing has changed with my template since the upgrade was done.

Any constructive help on where to start would be much appreciated.

Thank you.

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/ce004508-ec35-4d75-af1d-3863bb5f8c1c%40googlegroups.com.