[weewx-user] Re: can we run rtl_sdr on rasberry pi and weewx on debian server

2019-11-09 Thread Andrew B
I've had a Pi3 baking in the sun in an outdoor enclosure all summer long (over 
100F a few days) with zero issues. It has an RTC addon and no case.

So if you're running a Pi4, I'd see if you could get away with a Pi3 as they 
seem to be pretty darn tolerate to heat.

-- 
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/f4dd5328-b8db-4675-8f8f-af71e82bd82b%40googlegroups.com.


[weewx-user] Re: can we run rtl_sdr on rasberry pi and weewx on debian server

2019-11-09 Thread Andrew Milner
what model pi are you using??  My rpi3 has not needed a heatsink to be 
added - even though it is in a case and ambient room temperatures here are 
30C+ throughout the summer months.  I do believe however that the model 4 
does possibly require cooling.



On Sunday, 10 November 2019 03:36:17 UTC+2, Luc Theoret wrote:
>
> Hi Gary,
>
> You are probably right. The only issue I have with the pi is, without 
> thinking I bought a RTC that covers the cooling hole in the back, I will by 
> a smaller one as it melted the heatsink off the CPU.
>
> Regards,
> LTheoret
>

-- 
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/75abf326-51e7-474a-9c3b-cf8420147185%40googlegroups.com.


[weewx-user] Re: can we run rtl_sdr on rasberry pi and weewx on debian server

2019-11-09 Thread Luc Theoret
Hi Gary,

You are probably right. The only issue I have with the pi is, without 
thinking I bought a RTC that covers the cooling hole in the back, I will by 
a smaller one as it melted the heatsink off the CPU.

Regards,
LTheoret

-- 
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/f7947c76-b1e0-4b47-9b63-1c96f18cd207%40googlegroups.com.


[weewx-user] Re: can we run rtl_sdr on rasberry pi and weewx on debian server

2019-11-09 Thread gjr80
Hi,

I know you said you want rtl_sdr on the RPi and run WeeWX on the debian 
server but have you considered looking into why the RPi is not working with 
the WeeWX reports? A RPi is more than capable of doing both unless you have 
a particularly complex setup. Whilst there are certainly ways to push your 
rtl_sdr data to WeeWX on another machine I think you will find it much 
easier and less complex to do it all on the one WeeWX machine and if 
necessary push the generated reports to another machine.

Gary

On Sunday, 10 November 2019 01:47:07 UTC+10, Luc Theoret wrote:
>
> Hi,
>
> I have raspberry pi running rtl_sdr  and it works great. The weewx 
> reporting part not so much.
> I have a debian server that I installed weewx on and seams to work but 
> there is no input as the input is from the raspberry pi
> could I aquire on the raspberry pi and send the data to weewx on the 
> server or could I acquire directly on the debian server?
>
> I am using an acurite 5-in-1 and 2 external sensors. the rtl_sdr seams to 
> work great. the weewx report does not.
> The data is in the mysql database.
> I would like to use the pi as a sdr sensor and not run weewx on the pi.
>
> Thanks,
> LTheoret
>

-- 
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/ab35cb5a-b2f6-4efb-ba42-9424a2967ea9%40googlegroups.com.


Re: [weewx-user] New forecasting service using NDFD

2019-11-09 Thread T Reid
No luck.  The Databases section has a single entry for all forecast data.  
So nothing to add there.

On Saturday, November 9, 2019 at 3:58:18 PM UTC-8, T Reid wrote:
>
> I did add it to the Forecast section in weewx.conf, and to the Services 
> list, but haven't tried the Databases section.  I will try that and report 
> back.
>
> On Saturday, November 9, 2019 at 3:07:10 PM UTC-8, p q wrote:
>>
>>
>> Configuration
>>
>>To enable forecasting, add a [Forecast] section to weewx.conf, add a
>>section to [Databases] to indicate where forecast data should be 
>> stored,
>>then append user.forecast.XXXForecast to the service list for each
>>forecasting method that should be enabled.
>>
>> Have you tried this?
>>
>>
>>>

-- 
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/2ebf8d2f-1d59-4183-a120-004a26d6147f%40googlegroups.com.


Re: [weewx-user] New forecasting service using NDFD

2019-11-09 Thread T Reid
I did add it to the Forecast section in weewx.conf, and to the Services 
list, but haven't tried the Databases section.  I will try that and report 
back.

On Saturday, November 9, 2019 at 3:07:10 PM UTC-8, p q wrote:
>
>
> Configuration
>
>To enable forecasting, add a [Forecast] section to weewx.conf, add a
>section to [Databases] to indicate where forecast data should be stored,
>then append user.forecast.XXXForecast to the service list for each
>forecasting method that should be enabled.
>
> Have you tried this?
>
>
>>

-- 
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/19707692-ff95-4725-b445-e0f4c0c5c4ce%40googlegroups.com.


Re: [weewx-user] New forecasting service using NDFD

2019-11-09 Thread p q
Oh, and did you notice this line:

[Engine]
[[Services]]
# append only the forecasting service(s) that you need
archive_services = ... , user.forecast.XTideForecast,
user.forecast.ZambrettiForecast, user.forecast.NWSForecast,
user.forecast.WUForecast, user.forecast.OWMForecast,
user.forecast.UKMOForecast, user.forecast.AerisForecast,
user.forecast.WWOForecast, user.forecast.DSForecast

You might add user.forecast.NDFDforecast to it



On Sat, Nov 9, 2019 at 3:06 PM p q  wrote:

> Hi,
>
> I've implemented the NWS and WU forecasts for my site, but otherwise
> haven't really looked into the guts of the forecast module. With WU being
> no longer useful, I'm interested in getting this to work. I'll install it
> on my dev VM and see what I can figure out. It will be a day or two before
> I can get to it.
>
> In the meantime, I've just been reading the comments in forecast.py -
>
> Configuration
>
>To enable forecasting, add a [Forecast] section to weewx.conf, add a
>section to [Databases] to indicate where forecast data should be stored,
>then append user.forecast.XXXForecast to the service list for each
>forecasting method that should be enabled.
>
> Have you tried this?
>
> On Sat, Nov 9, 2019 at 2:36 PM T Reid  wrote:
>
>> I need help implementing a new forecasting service on weewx using the
>> NWS National Digital Forecast Database (
>> https://graphical.weather.gov/xml/).  This should allow for much more
>> precise local forecasting than the existing NWS forecast module in weewx.
>> I wrote the attached class and pasted it into forecast.py.  But cannot
>> figure out how to get forecast.py to actually run forecasts using this
>> class.  Any suggestions?  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/c924906c-9acd-4e0a-a49c-767a9c514e1b%40googlegroups.com
>> 
>> .
>>
>
>
> --
> Peter Quinn
> (415)794-2264
>


-- 
Peter Quinn
(415)794-2264

-- 
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/CAA1SM22mz1HJPRf9ebCfxnrho-R0x7LdYMAruvDOCmQvaP2jog%40mail.gmail.com.


Re: [weewx-user] New forecasting service using NDFD

2019-11-09 Thread p q
Hi,

I've implemented the NWS and WU forecasts for my site, but otherwise
haven't really looked into the guts of the forecast module. With WU being
no longer useful, I'm interested in getting this to work. I'll install it
on my dev VM and see what I can figure out. It will be a day or two before
I can get to it.

In the meantime, I've just been reading the comments in forecast.py -

Configuration

   To enable forecasting, add a [Forecast] section to weewx.conf, add a
   section to [Databases] to indicate where forecast data should be stored,
   then append user.forecast.XXXForecast to the service list for each
   forecasting method that should be enabled.

Have you tried this?

On Sat, Nov 9, 2019 at 2:36 PM T Reid  wrote:

> I need help implementing a new forecasting service on weewx using the
> NWS National Digital Forecast Database (https://graphical.weather.gov/xml/).
> This should allow for much more precise local forecasting than the existing
> NWS forecast module in weewx.  I wrote the attached class and pasted it
> into forecast.py.  But cannot figure out how to get forecast.py to actually
> run forecasts using this class.  Any suggestions?  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/c924906c-9acd-4e0a-a49c-767a9c514e1b%40googlegroups.com
> 
> .
>


-- 
Peter Quinn
(415)794-2264

-- 
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/CAA1SM21UGBA2u8XH7vZqagXZxsufLLh7x4ZO%2B-UpAUYdBDSqLA%40mail.gmail.com.


[weewx-user] New forecasting service using NDFD

2019-11-09 Thread T Reid
I need help implementing a new forecasting service on weewx using the 
NWS National Digital Forecast Database 
(https://graphical.weather.gov/xml/).  This should allow for much more 
precise local forecasting than the existing NWS forecast module in weewx.  
I wrote the attached class and pasted it into forecast.py.  But cannot 
figure out how to get forecast.py to actually run forecasts using this 
class.  Any suggestions?  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/c924906c-9acd-4e0a-a49c-767a9c514e1b%40googlegroups.com.
import xml.etree.ElementTree as ET

# -
# National Digital Forecast Database
#
# Forecasts from the National Digital Forecast Database. Returns xml data.
#
# For documentation, see:
#   https://graphical.weather.gov/xml/
#
# 12-hour:
# pop12 - likelihood of measurable precipitation (1/100 inch)
# maxt - temperature in degrees F
# mint - temperature in degrees F
#
# 6-hour:
# qpf - quantitative precipitation forecast; amount or range in inches
# wgust - only displayed if gusts exceed windspd by 10 mph
#
# 3-hour:
# temp - degrees F
# dew - degrees F
# rh - relative humidity %
# wdir - 8 compass points
# wspd - miles per hour
# sky - sky coverage
# icons - url for weather condition icon
# -

NDFD_KEY = 'NDFD'
NDFD_DEFAULT_URL = 'https://graphical.weather.gov/xml/SOAP_server/ndfdXMLclient.php?whichClient='

class NDFDForecast(Forecast):

def __init__(self, engine, config_dict):
super(NDFDForecast, self).__init__(engine, config_dict, NDFD_KEY, interval=10800)
d = config_dict.get('Forecast', {}).get(NDFD_KEY, {})
self.url = d.get('url', NDFD_DEFAULT_URL)
self.max_tries = int(d.get('max_tries', 3))
self.location = d.get('location', None)
self.units = d.get('units', 'e')

errmsg = []
if self.location is None:
errmsg.append('location is not specified')
if errmsg:
for e in errmsg:
logerr("%s: %s" % (NDFD_KEY, e))
logerr('%s: forecast will not be run' % NDFD_KEY)
return

loginf('%s: interval=%s max_age=%s location=%s' % (NDFD_KEY, self.interval, self.max_age, self.location))
self._bind()

def get_forecast(self, dummy_event):
"""Return a parsed forecast."""

text = self.download(location=self.location, url=self.url, units=self.units, max_tries=self.max_tries)
if text is None:
logerr('%s: no forecast data for %s from %s' % (NDFD_KEY, self.location, self.url))
return None
if self.save_raw:
self.save_raw_forecast(text, basename='ndfd-raw')
records, msgs = self.parse(text, location=self.location)
if self.save_failed and len(msgs) > 0:
self.save_failed_forecast(text, basename='ndfd-fail', msgs=msgs)
loginf('%s: got %d forecast records' % (NDFD_KEY, len(records)))
return records

@staticmethod
def download(location, url=NDFD_DEFAULT_URL, units='e', max_tries=3):
"""Download a forecast from the National Digital Forecast Database 

location - location for which the forecast is required, either as
   a five-digit zipcode or in the format lat,lon.

url - URL to the forecast service.  if anything other than the
  default is specified, that entire URL is used.  if the default
  is specified, it is used as the base and other items are added
  to it.

units - units to be used in the forecast, either 'e' for US or 'm' for metric.

max_tries - how many times to try before giving up
"""

if url == NDFD_DEFAULT_URL:
begDate = datetime.datetime.utcnow()
begStr = begDate.strftime("%Y-%m-%dT00%%3A00%%3A00")
endDate = begDate.replace(year=begDate.year+1)
endStr = endDate.strftime("%Y-%m-%dT00%%3A00%%3A00")
optString = '=time-series=' + begStr + '=' endStr + '=' + units +'=maxt=mint=temp=qpf=pop12=dew=wspd=wdir=sky=icons=rh=wgust=Submit'
locPoint = None
locZip = re.match(r'^\d{5}$', location.strip())
if locZip is not None:
u = url + 'LatLonListZipCode=' + str(locZip) + '=Submit'
request = urllib2.Request(u)
loginf("%s: downloading latitude and longitude for zipcode %s" % (NDFD_KEY, locZip))
for count in range(max_tries):
try:
response = urllib2.urlopen(request)
tree = ET.parse(response)
 

[weewx-user] Re: Belchertown skin 1.0 released!

2019-11-09 Thread Kike .Asekas
Hi Pat. I can't think of anything. The bands are put on belchertown.py and 
the change of theme is in a js. The color of the plotbands should be 
changed in the javascript when the button is pressed.

El sábado, 2 de noviembre de 2019, 22:03:55 (UTC+1), Pat escribió:
>
> Kike, so far so good with my testing in the 1.1 beta release. I have not 
> committed it to my development GitHub branch yet because I still need to 
> work out how to get the dark mode to show the gradients. 
>
> On Friday, October 25, 2019 at 8:18:29 AM UTC-4, Kike .Asekas wrote:
>>
>> You're right. I had not taken into account the light and dark mode. You 
>> have to change the color, at least for the dark mode. As is the 
>> transition is not seen. I put the colors at the beginning of the 
>> run(self) method and in weewx.conf I created 2 new variables, plotDayNight 
>> to enable or disable it and daynight_gradient for the number of bands of 
>> the gradient.
>>
>> El miércoles, 23 de octubre de 2019, 16:05:08 (UTC+2), Pat escribió:
>>>
>>> Looking at it now and it looks great. Quite a bit of work to figure this 
>>> out. 
>>>
>>> I may change the config to be in graphs.conf so there is granular 
>>> control on the plot bands- will think about this. 
>>>
>>> Will the color bands change based on light/dark mode? Or is the selected 
>>> color ok for both site modes?
>>>
>>>
>>> On Wednesday, October 23, 2019 at 8:35:11 AM UTC-4, Kike .Asekas wrote:

 I send you the files here. The configuration has two parameters.
 plotDayNight and daynight_gradient. The first is to activate or 
 deactivate it and the second is the number of gradient bands that by 
 default is 20 as in plotgen.py.
 The changes are basically from line 1237 at belchertown.js.tmpl and 
 line 1247 from belchertown.py, although there are other lines.

 El martes, 22 de octubre de 2019, 14:58:12 (UTC+2), Pat escribió:
>
> Great thanks. You can try the GitHub but if that confuses you then you 
> can just attach the files here and I can try to figure it out when I have 
> some time. 
>
> On Tuesday, October 22, 2019 at 8:52:37 AM UTC-4, Kike .Asekas wrote:
>>
>> What I did was adapt the renderDayNight function of genplot.py to get 
>> the timestamps of dawn and dusk and with those timestamps write 
>> plotBands 
>> (HighCharts function) in xAxis in the json.
>> The code already has the possibility to activate them or not. It 
>> takes about a second on the daily chart in a rpi 2b + to paint them.
>> I am watching the github desktop program so I can send it to you. I 
>> guess you will have to make some changes, I don't dominate much python 
>> or 
>> js.
>>
>> El sábado, 19 de octubre de 2019, 22:26:17 (UTC+2), Pat escribió:
>>>
>>> Hi Kike, this looks very interesting! Perhaps I can add it as a skin 
>>> option to enable/disable it. How did you do it?
>>>
>>> On Saturday, October 19, 2019 at 4:07:41 PM UTC-4, Kike .Asekas 
>>> wrote:

 Hi, Pat. I wanted to make a contribution to such an impressive 
 skin, but I don't know very well how to do it. If you are 
 interested tell me how.
 They are the transitions between night and day in the graphics.

 [image: Screenshot_2019-10-19 Areal, Padron Weather 
 Conditions(1).png]

 [image: Screenshot_2019-10-19 Areal, Padron Weather 
 Conditions(2).png]

 [image: Screenshot_2019-10-19 Areal, Padron Weather Conditions.png]




-- 
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/bfb276d6-a845-44b9-a726-ef90a8cbb432%40googlegroups.com.


Re: [weewx-user] Strange error message with weewx on WS2812

2019-11-09 Thread Carl Muellner
Thomas -

 That makes sense.  Thanks for the quick reply!!

   -  Carl

On Friday, November 8, 2019 at 5:50:49 PM UTC-6, Thomas Keffer wrote:
>
> Some weather stations have an on board clock that can be read by WeeWX for 
> synchronization purposes. Yours does not, hence the message.
>
> Nothing to worry about.
>
> -tk
>
> On Fri, Nov 8, 2019 at 3:28 PM Carl Muellner  > wrote:
>
>> Running weewx v 3.9.2 on a LaCrosse WS2812.  Upon weewx engine restart 
>> and every four hours thereafter there is a message in the log file:
>>
>> Nov  8 13:40:38 dell-laptop weewx[30148]: engine: Station does not 
>> support reading the time
>>
>> And I find nothing about it here in weewx forum.  Otherwise everything 
>> appears to be running fine, time stamps are correct and posting data to 
>> both Wunderground and WonderCloud with no issues.  Any thoughts?
>>
>>  Thanks
>>
>>-  Carl
>>
>>
>> -- 
>> 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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/4d3887e1-02dd-456a-bfbd-3166d24f9f26%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
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/ea91b94a-dd16-4ee6-a4dd-a269b659ef4a%40googlegroups.com.


Re: [weewx-user] FTP not working since last system update

2019-11-09 Thread James Muirhead
Thanks for that, the #FTP.last file had got horrifically corrupted. In fact 
it thought the local copy was a directory!!!

It also brought to light that I made a typo in the script I use to stop 
WeeWX, backup, update and reboot the Pi. Meant the data files doubled in 
size every Sunday morning. Sorted now. Also has dramatically reduced the 
size of the buffer.

-- 
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/de830412-9937-47b1-adc1-40384e4a7c4e%40googlegroups.com.


[weewx-user] Re: Belchertown skin 1.0 released!

2019-11-09 Thread ChemaMB
Hi, 

I have a question related to the graph of temperatures and rainfall.
I want the intervals to respect the code in such a way that the column of 
precipitation always increases twice as much as that of temperatures.
I attach two images (one with the code and the other with the result)
Why it does not work?

-- 
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/db0f4d55-5a8c-4109-9877-aa3683438714%40googlegroups.com.


[weewx-user] can we run rtl_sdr on rasberry pi and weewx on debian server

2019-11-09 Thread Luc Theoret
Hi,

I have raspberry pi running rtl_sdr  and it works great. The weewx 
reporting part not so much.
I have a debian server that I installed weewx on and seams to work but 
there is no input as the input is from the raspberry pi
could I aquire on the raspberry pi and send the data to weewx on the server 
or could I acquire directly on the debian server?

I am using an acurite 5-in-1 and 2 external sensors. the rtl_sdr seams to 
work great. the weewx report does not.
The data is in the mysql database.
I would like to use the pi as a sdr sensor and not run weewx on the pi.

Thanks,
LTheoret

-- 
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/ed200ff7-34e7-4c30-b9c7-0ceda861b98c%40googlegroups.com.