[weewx-user] Future Time Preventing Database Updates

2019-12-20 Thread Ken Waters
Hi,

I finally set up a new Linux box (Ubuntu 18.03) to use as a server for 
Weewx.  For several years I ran it fine on an old Ubuntu server that 
finally died.  I use a USB-to-serial interface to connect to my Vantage 
Pro2 console.

What has been happening is each time I start with a new database 
(/var/lib/weewx.sdb) and restart the daemon it sets a final time record in 
the database in the future as seen below in this output from a select 
dateTime command in sqllite3:

2019-12-19 05:04:00
2019-12-19 05:05:00
2019-12-19 05:06:00
*2020-01-01 21:15:00* < erroneous entry in the future

I used to be able to fix this problem over the years by removing the 
database (or temporarily) renaming it and then issuing this command:

$ sudo /usr/share/weewx/wee_config_vantage --clear

however it seems that the current version of Weewx (using 3.9.2) no longer 
has this command.  Instead I found wee_config but that does not seem to 
have an option to clear the settings as it used to do.

Simply deleting the database and restarting the daemon just repeats the 
same error.  I have checked the VP2 console to confirm it is showing 2019 
as the year with correct month and date.

So, I don't know what is causing this incorrect date to be put in the 
database and thus locking the database down.  Can someone help me so I can 
get things going again?  

Thanks much!

Ken Waters
Mesa, AZ


-- 
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/9513ca18-e273-41a2-a4cc-d7f0362a5b7b%40googlegroups.com.


[weewx-user] Re: Belchertown with multiple NWS alerts

2019-12-20 Thread rich T
Wonder if you can place multiple Alerts into an array; cycle through that 
array using an user defined time and just display one at a time. Just 
thinking.

On Friday, December 20, 2019 at 9:01:14 PM UTC-5, vince wrote:
>
> Pat - see attached - I think we get the picture.  It's wet here :-)
>
> Seriously though - if there are lots of NWS alerts, they kinda take the 
> whole screen up eventually.  Wondering if there's a better way to only show 
> the latest, or some alternate presentation during an many alerts period of 
> time.
>
> This is the dev branch/python3/weewx4beta if that matters.
>
> Obviously a low priority, if it needs working at all, but I thought I'd 
> mention it.
>

-- 
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/7c2aa3f6-f461-4cbc-996c-b90d364396d8%40googlegroups.com.


[weewx-user] Belchertown with multiple NWS alerts

2019-12-20 Thread vince
Pat - see attached - I think we get the picture.  It's wet here :-)

Seriously though - if there are lots of NWS alerts, they kinda take the 
whole screen up eventually.  Wondering if there's a better way to only show 
the latest, or some alternate presentation during an many alerts period of 
time.

This is the dev branch/python3/weewx4beta if that matters.

Obviously a low priority, if it needs working at all, but I thought I'd 
mention it.

-- 
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/484fa6b6-38b2-4167-a6d0-d60255fd7d36%40googlegroups.com.


Re: [weewx-user] weatherlink live

2019-12-20 Thread Thomas Keffer
I have been pretty bad about following through. It's still on my list, but
the Python 3 port has taken priority.

There's a wiki article on using the SI1000 receiver with the Davis ISS:
https://github.com/weewx/weewx/wiki/DavisSi1000-radio

On Fri, Dec 20, 2019 at 10:09 AM Jimmy Saldivias 
wrote:

> Is there any news regarding this? If not, is there an alternative to
> collect data from the ISS Integrated Sensor System from Davis Pro2 Plus
> that can work with weewx?
> Thanks
>
> El miércoles, 16 de octubre de 2019, 6:35:15 (UTC-5), Thomas Keffer
> escribió:
>>
>> No, but you are reminding me to call Davis.
>>
>> On Wed, Oct 16, 2019 at 1:20 AM Pierre Chevallier 
>> wrote:
>>
>>> Do you have any date for the release?
>>>
>>> Many thanks for your work.
>>> Regards.
>>>
>>> Le dimanche 30 juin 2019 14:00:22 UTC+2, Thomas Keffer a écrit :

 Unfortunately, no. It will get done, but it may take some time. See
 issue #412 .

 -tk

 On Fri, Jun 28, 2019 at 7:06 PM parallelsys 
 wrote:

> Is there a driver for weatherlink live?
>
> 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...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/375c1afc-0f96-4de0-a4e9-21038aec918d%40googlegroups.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...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/weewx-user/323a5b70-ad40-4fb6-a31e-5a1b26d00431%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/fff1b529-99bd-4d54-b924-0817ec3f91e9%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/CAPq0zEBaPNDXP6cZ9FQQY1yaomUaYQP1S96iseKMJxr94SbTbg%40mail.gmail.com.


[weewx-user] Failing to upload to web server

2019-12-20 Thread Neil S
So it appears that my ISP has done something to the server that now 
requires all connections to be secure (having problems with mail client as 
well). 

However at the same time my Weewx stopped uploading to the server and the 
logs report...

Dec 20 18:35:48 pi-Weather weewx[5982]: ftpupload: Unable to connect or log 
into server : 421-Sorry, cleartext sessions and weak ciph... server.
421 Please reconnect using TLS 
security mechanisms.
Dec 20 18:35:48 pi-Weather weewx[5982]: ftpupload: Unable to connect or log 
into server : 421-Sorry, cleartext sessions and weak ciph... server.
421 Please reconnect using TLS 
security mechanisms.
Dec 20 18:35:48 pi-Weather weewx[5982]: ftpupload: Unable to connect or log 
into server : 421-Sorry, cleartext sessions and weak ciph... server.
421 Please reconnect using TLS 
security mechanisms.
Dec 20 18:35:48 pi-Weather weewx[5982]: ftpupload: Attempted 3 times to 
connect to server ftp..co.uk. Giving up.


having searched the forum I have tried altering adding 

 secure_ftp = True 

and also 
secure_ftp = True
secure_data = False

With suitable weewx restart.

If I do either of the above I get 

Dec 20 18:21:16 pi-Weather weewx[5845]: ftpupload: Unable to connect or log 
into server : [Errno 104] Connection reset by peer
Dec 20 18:21:16 pi-Weather weewx[5845]: ftpupload: Unable to connect or log 
into server : [Errno 104] Connection reset by peer
Dec 20 18:21:16 pi-Weather weewx[5845]: ftpupload: Unable to connect or log 
into server : [Errno 104] Connection reset by peer
Dec 20 18:21:16 pi-Weather weewx[5845]: ftpupload: Attempted 3 times to 
connect to server ftp..co.uk. Giving up.
Dec 20 18:21:16 pi-Weather weewx[5845]: ftpgenerator: ftp'd 0 files in 0.29 
seconds

I have tried connecting to my web server using WinSCP and it failed until I 
alter settings to TLS/SSL Explicit encryption (on port 21) at which point 
it works. 

Any ideas what settings I need to change in the Weewx.conf [[FTP]] section 
to get it to upload again?

TIA

Neil



-- 
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/8166e9b2-7093-4745-a2e2-c501e695e7a3%40googlegroups.com.


Re: [weewx-user] weatherlink live

2019-12-20 Thread rich T
Couple of possibilities:

1. Need a *USB Data Logger* for the Console and the weewx driver for Davis.
2. Need a SDR and weewx-rtldavis driver for receiving ISS Data. 
Additionally would need a BME280 sensor for the Pressure/Indoor Temp 
/Indoor Humidity 

On Friday, December 20, 2019 at 12:09:41 PM UTC-5, Jimmy Saldivias wrote:

> Is there any news regarding this? If not, is there an alternative to 
> collect data from the ISS Integrated Sensor System from Davis Pro2 Plus 
> that can work with weewx?
> Thanks
>
> El miércoles, 16 de octubre de 2019, 6:35:15 (UTC-5), Thomas Keffer 
> escribió:
>>
>> No, but you are reminding me to call Davis.
>>
>> On Wed, Oct 16, 2019 at 1:20 AM Pierre Chevallier  
>> wrote:
>>
>>> Do you have any date for the release?
>>>
>>> Many thanks for your work.
>>> Regards.
>>>
>>> Le dimanche 30 juin 2019 14:00:22 UTC+2, Thomas Keffer a écrit :

 Unfortunately, no. It will get done, but it may take some time. See 
 issue #412 .

 -tk

 On Fri, Jun 28, 2019 at 7:06 PM parallelsys  
 wrote:

> Is there a driver for weatherlink live?
>
> 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...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/375c1afc-0f96-4de0-a4e9-21038aec918d%40googlegroups.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...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/323a5b70-ad40-4fb6-a31e-5a1b26d00431%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/e6ac0020-ef81-41f6-a9f4-6d257db658d9%40googlegroups.com.


Re: [weewx-user] weatherlink live

2019-12-20 Thread Jimmy Saldivias
Is there any news regarding this? If not, is there an alternative to 
collect data from the ISS Integrated Sensor System from Davis Pro2 Plus 
that can work with weewx?
Thanks

El miércoles, 16 de octubre de 2019, 6:35:15 (UTC-5), Thomas Keffer 
escribió:
>
> No, but you are reminding me to call Davis.
>
> On Wed, Oct 16, 2019 at 1:20 AM Pierre Chevallier  > wrote:
>
>> Do you have any date for the release?
>>
>> Many thanks for your work.
>> Regards.
>>
>> Le dimanche 30 juin 2019 14:00:22 UTC+2, Thomas Keffer a écrit :
>>>
>>> Unfortunately, no. It will get done, but it may take some time. See 
>>> issue #412 .
>>>
>>> -tk
>>>
>>> On Fri, Jun 28, 2019 at 7:06 PM parallelsys  wrote:
>>>
 Is there a driver for weatherlink live?

 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...@googlegroups.com.
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/weewx-user/375c1afc-0f96-4de0-a4e9-21038aec918d%40googlegroups.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...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/323a5b70-ad40-4fb6-a31e-5a1b26d00431%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/fff1b529-99bd-4d54-b924-0817ec3f91e9%40googlegroups.com.


Re: [weewx-user] Re: DS18B20 Temp sensor daten in weewx einbinden auf Raspberry ?

2019-12-20 Thread p q
Agreed, writing to a text file is a start. For Weewx you'll want a driver
that brings it in.

You didn't mention if you have a weather station or not. Weewx was designed
to be used with a weather station.

Anyway, you can see how I solved a similar problem here:
https://hackaday.io/project/101680-solar-powered-wifi-temperature-sensor-for-weewx

On Fri, Dec 20, 2019 at 5:23 AM Paul McGeorge  wrote:

> The attached python script will write a file named soiltemp.txt for two
> DS18B20 Sensors.  You will need to edit the sensor numbers and names to fit
> your needs.
>
>
> On Friday, December 20, 2019 at 5:30:47 AM UTC-7, Andreas Weber wrote:
>>
>>  Hi there
>>
>> I have a weewx and Rasperry pi and would like to connect 3 temp sensors
>> DS18B20 and display them on my homepage.
>>
>> Installation of the 3 sensors on Raspberry is no problem, I have 3
>> folders for the 3 sensors and sensor data.
>>
>> Who can show me the way how to go on?
>>
>> There is a script in the weewx manual, but it cannot be used because
>> there is no query from the DS18B20.
>>
>> I am not programming and I have already experimented with different code
>> snippets on the internet, unfortunately without success.
>>
>> The sensor data must be written in a text file and weewx reads out the
>> data.
>>
>> But I have no idea how to do it.
>>
>> I would like to be shown the way how it works.
>>
>>
>> Please help
>>
>>
>> A heartfelt 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/59a28e56-b7b1-4ef9-9e41-058474c2531f%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/CAA1SM20PVYWxEoX63Ln_iyNrJDv%2BOEmg51JeJ-cteW_-cXu7sQ%40mail.gmail.com.


[weewx-user] Re: DS18B20 Temp sensor daten in weewx einbinden auf Raspberry ?

2019-12-20 Thread Paul McGeorge
The attached python script will write a file named soiltemp.txt for two 
DS18B20 Sensors.  You will need to edit the sensor numbers and names to fit 
your needs.


On Friday, December 20, 2019 at 5:30:47 AM UTC-7, Andreas Weber wrote:
>
>  Hi there
>
> I have a weewx and Rasperry pi and would like to connect 3 temp sensors 
> DS18B20 and display them on my homepage.
>
> Installation of the 3 sensors on Raspberry is no problem, I have 3 folders 
> for the 3 sensors and sensor data.
>
> Who can show me the way how to go on?
>
> There is a script in the weewx manual, but it cannot be used because there 
> is no query from the DS18B20.
>
> I am not programming and I have already experimented with different code 
> snippets on the internet, unfortunately without success.
>
> The sensor data must be written in a text file and weewx reads out the 
> data.
>
> But I have no idea how to do it.
>
> I would like to be shown the way how it works.
>
>
> Please help
>
>
> A heartfelt 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/59a28e56-b7b1-4ef9-9e41-058474c2531f%40googlegroups.com.
import subprocess
import glob
import time
from datetime import datetime


sensor1 = '28-0113170101b8'# you need to add each sensor's address manually to these lines
sensor2 = '28-0113167dbf61'# you need to add each sensor's address manually to these lines
sensor1name = 'Left_temp'
sensor2name = 'Right_temp'

base_dir1 = '/sys/bus/w1/devices/'
device_folder1 = glob.glob(base_dir1 + sensor1)[0]
device_file1 = device_folder1 + '/w1_slave'

def read_temp_raw1():
catdata = subprocess.Popen(['cat',device_file1], stdout = subprocess.PIPE, stderr=subprocess.PIPE)
out,err = catdata.communicate()
out_decode = out.decode('utf-8')
lines = out_decode.split('\n')
return lines

def read_temp1():
lines = read_temp_raw1()
while lines[0].strip()[-3:] != 'YES':
time.sleep(10.0)
lines = read_temp_raw()
equals_pos = lines[1].find('t=')
if equals_pos != -1:
temp_string = lines[1][equals_pos+2:]
temp_c = float(temp_string) / 1000.0
temp_f = temp_c * 9.0 / 5.0 + 32.0
return temp_f

base_dir2 = '/sys/bus/w1/devices/'
device_folder2 = glob.glob(base_dir2 + sensor2)[0] 
device_file2 = device_folder2 + '/w1_slave'

def read_temp_raw2():
catdata = subprocess.Popen(['cat',device_file2], stdout = subprocess.PIPE, stderr=subprocess.PIPE)
out,err = catdata.communicate()
out_decode = out.decode('utf-8')
lines = out_decode.split('\n')
return lines

def read_temp2():
lines = read_temp_raw2()
while lines[0].strip()[-3:] != 'YES':
time.sleep(10.0)
lines = read_temp_raw()
equals_pos = lines[1].find('t=')
if equals_pos != -1:
temp_string = lines[1][equals_pos+2:]
temp_c = float(temp_string) / 1000.0
temp_f = temp_c * 9.0 / 5.0 + 32.0
return temp_f

while True:

date = datetime.today().strftime("%x , %X")
temp1 = str(read_temp1())
temp2 = str(read_temp2())
print (sensor1name+' = '+temp1)
print (sensor2name+' = '+temp2)
fd = open('/home/pi/soiltemp.txt','w')
fd.write(sensor1name+' = '+temp1+'\n')
fd.write(sensor2name+' = '+temp2+'\n')
fd.close()

time.sleep(25.0)


[weewx-user] DS18B20 Temp sensor daten in weewx einbinden auf Raspberry ?

2019-12-20 Thread Andreas Weber
 Hi there

I have a weewx and Rasperry pi and would like to connect 3 temp sensors 
DS18B20 and display them on my homepage.

Installation of the 3 sensors on Raspberry is no problem, I have 3 folders 
for the 3 sensors and sensor data.

Who can show me the way how to go on?

There is a script in the weewx manual, but it cannot be used because there 
is no query from the DS18B20.

I am not programming and I have already experimented with different code 
snippets on the internet, unfortunately without success.

The sensor data must be written in a text file and weewx reads out the data.

But I have no idea how to do it.

I would like to be shown the way how it works.


Please help


A heartfelt 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/214ce8a0-a77e-4607-b9f4-c359292ced36%40googlegroups.com.