[weewx-user] Re: Datenbank zusammen legen.

2020-04-15 Thread gjr80
Hallo Günther,

I have this morning used your csv.conf and datad.csv with wee_import under 
WeeWX v3.9.2 and the import works fine, though your barometer (Absoluter 
Luftdruck) source data is in hPa/mbar not inHg so need to change the 
barometer field map under [[FieldMap]] in your csv.conf as follows:

barometer   = Absoluter Luftdruck, hPa

As for the errors in your syslog. The error:

Apr 15 20:19:22 raspberrypi weewx[15205]:   ValueError: accum: 
ScalarStats.addHiLo expected float or int, got type '' ('')

looks like somehow you have ended up with a unicode null string in your 
archive. That could have happened with some failed imports. Running 
wee_database 
 
with --check-strings 
 
followed by --fix-strings may fix the issue.

I gather you then reverted to a previous database backup that now gives the 
following error:

Apr 15 20:25:46 raspberrypi weewx[15651]:   TypeError: 
unsupported operand type(s) for -: 'list' and 'float'

I am a bit stumped with this, the trace seems to imply val_t[0] is not a 
list but then the error states it is a list. Perhaps Tom can help with this 
one.

Gary

On Thursday, 16 April 2020 04:49:44 UTC+10, Günther Wrana wrote:
>
> Hello
>
> Maybe you can do more with that than with the log file.
>
> Thanks Günther
>
> daham@hp-pc:~$ ssh p...@192.168.1.104 
> p...@192.168.1.104 's password: 
> Linux raspberrypi 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l
>
> The programs included with the Debian GNU/Linux system are free software;
> the exact distribution terms for each program are described in the
> individual files in /usr/share/doc/*/copyright.
>
> Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
> permitted by applicable law.
> Last login: Wed Apr 15 17:21:47 2020 from 192.168.1.103
> pi@raspberrypi:~ $ cd /home/weewx/archive
> pi@raspberrypi:/home/weewx/archive $ dir
> weewx.sdb
> pi@raspberrypi:/home/weewx/archive $ sudo /etc/init.d/weewx stop
> [ ok ] Stopping weewx (via systemctl): weewx.service.
> pi@raspberrypi:/home/weewx/archive $ sudo cp weewx.sdb /var/tmp
> pi@raspberrypi:/home/weewx/archive $ sudo /home/weewx/bin/wee_import 
> --import-config=/var/tmp/csv.conf --dry-run
> Starting wee_import...
> A CSV import from source file '/var/tmp/datad.csv' has been requested.
> Using database binding 'wx_binding', which is bound to database 'weewx.sdb'
> Destination table 'archive' unit system is '0x01' (US).
> Missing derived observations will be calculated.
> This is a dry run, imported data will not be saved to archive.
> Starting dry run import ...
> 288 records identified for import.
> Records processed: 250; Unique records: 250; Last timestamp: 2019-05-01 
> 20:47:00Records processed: 288; Unique records: 288; Last timestamp: 
> 2019-05-01 23:57:00 CEST (1556747820)
> Finished dry run import. 288 records were processed and 288 unique records 
> would have been imported.
> pi@raspberrypi:/home/weewx/archive $ sudo /home/weewx/bin/wee_import 
> --import-config=/var/tmp/csv.conf
> Starting wee_import...
> A CSV import from source file '/var/tmp/datad.csv' has been requested.
> Using database binding 'wx_binding', which is bound to database 'weewx.sdb'
> Destination table 'archive' unit system is '0x01' (US).
> Missing derived observations will be calculated.
> Starting import ...
> 288 records identified for import.
> Proceeding will save all imported records in the WeeWX archive.
> Are you sure you want to proceed (y/n)? y
> Records processed: 288; Unique records: 288; Last timestamp: 2019-05-01 
> 23:57:00 CEST (1556747820)
> Finished import. 288 raw records resulted in 288 unique records being 
> processed in 10.23 seconds.
> Those records with a timestamp already in the archive will not have been
> imported. Confirm successful import in the WeeWX log file.
> pi@raspberrypi:/home/weewx/archive $ sudo /etc/init.d/weewx start
> [ ok ] Starting weewx (via systemctl): weewx.service.
> pi@raspberrypi:/home/weewx/archive $ sudo tail -f /var/log/syslog
> Apr 15 20:14:35 raspberrypi weewx[14619]: wh23xx: Found device on USB bus= 
> device=
> Apr 15 20:14:35 raspberrypi kernel: [10925.373718] usb 1-1.5: reset 
> full-speed USB device number 4 using dwc_otg
> Apr 15 20:14:35 raspberrypi weewx[14619]: engine: StdConvert target unit 
> is 0x1
> Apr 15 20:14:35 raspberrypi weewx[14619]: wxcalculate: The following 
> values will be calculated: barometer=prefer_hardware, 
> windchill=prefer_hardware, dewpoint=prefer_hardware, 
> appTemp=prefer_hardware, rainRate=prefer_hardware, windrun=prefer_hardware, 
> heatindex=prefer_hardware, maxSolarRad=prefer_hardware, 
> humidex=prefer_hardware, pressure=prefer_hardware, 
> inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, 
> cloudbase=prefer_hardware
> Apr 15 20:14:35 raspberrypi weewx[14619]: wxcalculate: The 

[weewx-user] Re: Too chatty Weather365 uploader

2020-04-15 Thread Jarmo Seppänen
Thanks Gary! I have now contacted them. 

-- 
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/b5bbe865-78dd-4436-babb-d8382b5fe1d9%40googlegroups.com.


Re: [weewx-user] Re: "Formatting options with [un]expected results" -- using leafTemp1 for non-temperature measurement so trying to remove "°F"

2020-04-15 Thread Messy Potamia
Okay thanks, I'll try that. 


On Wednesday, April 15, 2020 at 10:07:44 PM UTC+2, gjr80 wrote:
>
> Ah, OK, I have some notes for how to make similar changes to Seasons that 
> could serve as a simple checklist. Standard should not be too hard, in a 
> nutshell you just need to:
>
> 1. Create a yesterday.html.tmpl. I would base this off week.html.tmpl
> 2. Change $week to $yesterday in yesterday.html.tmpl
> 3. Change a couple of heading from Week to Yesterday
> 4. In skin.conf add yesterday plots
> 5. Change yesterday.html.tmpl to use your yesterday plots
> 6. You might want to remove the 'This Month' panel, just remove the 
> applicable div in its entirety (starts around line 201 in the template)
> 6. Add some navigation by adding a 'yesterday' button to each of the other 
> .html.tmpl templates in the skin (look at the navbar div in the template)
> 7. Add yesterday.html.tmpl to skin.conf so it is generated
>
> Maybe one or two others but they will show up once you get the basic page 
> going. If you work through the template looking for week specific things 
> and changing them to yesterday you should be 90% there.
>
> Just remember backup what works.
>
> Gary
>
> On Thursday, 16 April 2020 05:30:30 UTC+10, Messy Potamia wrote:
>>
>> Standard. I saw it on someone's Seasons page and thought I'd like it but 
>> on my Std page here. My other system although it has Seasons will stay 
>> without it for now as it's across the ocean.
>>
>> PH
>>
>> On Wed, Apr 15, 2020, 12:54 gjr80  wrote:
>>
>>> Which skin, Seasons or Standard?
>>>
>>> Gary
>>>
>>> -- 
>>> 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/QoUlovvIZoI/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to 
>>> weewx...@googlegroups.com.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/weewx-user/03c147d6-3ffc-466a-805f-7457c07ead37%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/dce410d9-1b70-46fc-88d4-6228ec8b1cb2%40googlegroups.com.


[weewx-user] Re: Importing WLK files from Davis Instruments WeatherLink software

2020-04-15 Thread Steve Preston
Gary,

Your response has addressed my questions.  During my past imports I have 
avoided running wee_import while WeeWx is adding new data to the database 
(during the typical 5 minute intervals in my case).  I will add a comment 
to the ReadMe instructions on the GitHub page for wlkReader - suggesting 
that others do the same.

Thanks
Steve


On Tuesday, April 14, 2020 at 3:24:16 PM UTC-7, Steve Preston wrote:
>
> This is just a FYI for the group.  After using WeatherLink for 15+ years, 
> I have finally switched to WeeWx!
>
> I wrote a basic Windows app for converting the WLK files into CSV format 
> for importing the data into WeeWx.  This app is pretty basic - no real data 
> checks and no attempt to adjust for differences in the archive interval (my 
> station was already logging at 5 minute intervals).  And it is setup to 
> import one month at a time: reads one *.wlk file and writes one *.csv 
> file.  But I've moved over a few years of data to WeeWx without any 
> problems (so far).  The app is written in C# with visual studio and I'm 
> happy to share code and/or executables.
>
> Steve
>
>

-- 
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/8f408f30-82d9-4584-926a-547a83ac9c34%40googlegroups.com.


Re: [weewx-user] Re: "Formatting options with [un]expected results" -- using leafTemp1 for non-temperature measurement so trying to remove "°F"

2020-04-15 Thread gjr80
Ah, OK, I have some notes for how to make similar changes to Seasons that 
could serve as a simple checklist. Standard should not be too hard, in a 
nutshell you just need to:

1. Create a yesterday.html.tmpl. I would base this off week.html.tmpl
2. Change $week to $yesterday in yesterday.html.tmpl
3. Change a couple of heading from Week to Yesterday
4. In skin.conf add yesterday plots
5. Change yesterday.html.tmpl to use your yesterday plots
6. You might want to remove the 'This Month' panel, just remove the 
applicable div in its entirety (starts around line 201 in the template)
6. Add some navigation by adding a 'yesterday' button to each of the other 
.html.tmpl templates in the skin (look at the navbar div in the template)
7. Add yesterday.html.tmpl to skin.conf so it is generated

Maybe one or two others but they will show up once you get the basic page 
going. If you work through the template looking for week specific things 
and changing them to yesterday you should be 90% there.

Just remember backup what works.

Gary

On Thursday, 16 April 2020 05:30:30 UTC+10, Messy Potamia wrote:
>
> Standard. I saw it on someone's Seasons page and thought I'd like it but 
> on my Std page here. My other system although it has Seasons will stay 
> without it for now as it's across the ocean.
>
> PH
>
> On Wed, Apr 15, 2020, 12:54 gjr80 > 
> wrote:
>
>> Which skin, Seasons or Standard?
>>
>> Gary
>>
>> -- 
>> 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/QoUlovvIZoI/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> weewx...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/weewx-user/03c147d6-3ffc-466a-805f-7457c07ead37%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/a4016b06-4dee-402a-8d2a-057bfc74f639%40googlegroups.com.


Re: [weewx-user] WeeWx to Acurite Mobile app? (android)

2020-04-15 Thread simplegreen
Yeah certainly an option. And agree the accurite software is janky, the app 
has a decent experience though for getting quick data back at home that 
didn't make me tunnel an IP. I'll leave this up for some hope that someone 
has gotten it to work. Otherwise i'll do the same

On Tuesday, April 14, 2020 at 3:09:43 PM UTC-5, p q wrote:
>
> I gave up on the Accurite PC software, their web service, and apps. I plug 
> the display straight into a Raspi2B which runs Weewx. I do open a port that 
> allows me to get at the web site from outside the house. I have a 
> semi-static IP address and don't use one of the dynamic DNS services. I say 
> semi-static IP. It's a dynamic IP address that hasn't actually changed in 
> several years, so it makes it easy for me to bookmark the IP address on my 
> phone browser.
>
> On Tue, Apr 14, 2020 at 10:59 AM simplegreen  > wrote:
>
>> I used a pi zero W. My only hang up is that AcuRite has an app that runs 
>> on PC. That app calls for the 12 digit device ID (basically a mac address) 
>> thats on the back of the indoor unit.
>>
>> When you setup a profile on the "MyAcurite.com " 
>> site, you enter the same device ID as your device. This all in turns maps 
>> your device, to your location and log files (similar to what you're doing 
>> in this very project).
>>
>> What is lost in all this is now because you're not running the PC app, 
>> you cant run the actual android app on your phone. This app is looking for 
>> that DeviceID, no where in the instructions of this instructable do you 
>> enter that ID, thus, you device shows as "offline" in that app environment 
>> and limits you from getting direct real time feedback via the app (which 
>> IMO is better than the apache site because you can get real time log review 
>> of the past say 24 hour period for example).
>>
>> So my bigger question is... has anyone done this project, got it working 
>> AND got the mobile myacurite app to work on their phone? Or am i destine to 
>> open port access in my router to map to the local apache IP address to get 
>> real data?
>>
>> -- 
>> 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/f5ca8bac-ada0-4e15-b424-056bd0313bbb%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/3b703fc5-5cc1-41a9-b241-230fdd46d543%40googlegroups.com.


[weewx-user] Re: Importing WLK files from Davis Instruments WeatherLink software

2020-04-15 Thread gjr80
Steve,

Answers below.

Gary

On Thursday, 16 April 2020 02:55:42 UTC+10, Steve Preston wrote:
>
> 1. Is it OK to run the wee_import process during an archive interval 
> "update"?
>

Not exactly sure what you mean here. Do you mean is it OK to run wee_import 
in between WeeWX adding records to the database during normal operation. If 
so there is not technical reason why wee_import can not be run while WeeWX 
is running though I guess you run the risk of contention, WeeWX (wee_import 
uses the WeeWX API to access the database) and the DBMS in use should 
handle this but I guess the risk remains that data to be imported may not 
be imported fully.

If I have missed your question please clarify.

2. How does wee_import handle changes in the archive interval.  All of the 
> data I have imported to this point has been from wlk files that had a five 
> minute interval.  I may eventually find some earlier wlk files with a 
> shorter, 1 min, interval.  Will this be a problem for wee_import?
>

For a CSV import wee_import can import the interval value directly from the 
imported data if (1) there is a field in the imported data containing the 
interval data and (2) there is a suitable entry in the import config file 
field map (refer [[FieldMap]] 
 in the wee_import 
section of the Utilities Guide). Otherwise wee_import determines the 
interval value in one of three ways. wee_import can derive the interval 
value from the timestamps of subsequent records, this works well if the 
data being imported in consistent and has not missing records. If the data 
to be imported is inconsistent and has missing records you can get some odd 
interval values which may or may not significantly skew the resulting 
imported data, really depends in the actual interval value and the number 
of missing records. Secondly, wee_import can use a fixed interval value as 
specified in the import config file. Finally, wee_import can use the 
archive_interval value specified under [StdArchive] in weewx.conf.

You will find basic guidance on the interval field for CSV imports here 
 in the wee_import section 
 of the Utilities 
Guide. Similar guidance is also provided for WU 
 and Cumulus 
 imports.

So back to your question, wee_import should handle changes to the interval 
just fine (from a data display viewpoint WeeWX has been able to handle a 
changing interval value since v3.7.0). Mind you I don't recall specifically 
testing changes to the interval value when developing wee_import so it is 
possible there may be an issue or two. I guess we will see when you come to 
import that data :)   

-- 
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/ab71c343-b243-4eff-8559-b113eb80e68e%40googlegroups.com.


Re: [weewx-user] Re: "Formatting options with [un]expected results" -- using leafTemp1 for non-temperature measurement so trying to remove "°F"

2020-04-15 Thread Messy Potamia
Standard. I saw it on someone's Seasons page and thought I'd like it but on
my Std page here. My other system although it has Seasons will stay without
it for now as it's across the ocean.

PH

On Wed, Apr 15, 2020, 12:54 gjr80  wrote:

> Which skin, Seasons or Standard?
>
> Gary
>
> --
> 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/QoUlovvIZoI/unsubscribe.
> To unsubscribe from this group and all its topics, 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/03c147d6-3ffc-466a-805f-7457c07ead37%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/CAB7-S77NrsBFQY5xbmES-S6dh7rkXmUGOBtLwYRtMBo50sKZaw%40mail.gmail.com.


[weewx-user] Re: Importing WLK files from Davis Instruments WeatherLink software

2020-04-15 Thread gjr80
Steve,

The wiki is editable by anyone. I would just create an entry under Data 
management  and add 
the basic what, where and how.

Gary

On Thursday, 16 April 2020 02:31:22 UTC+10, Steve Preston wrote:
>
> I have put the app on GitHub. And the readme has a fair amount of info:
> https://github.com/stevepr/wlkReader
>
> I'm happy to include a note on the wiki as well.  But I'm not sure of the 
> proper method for adding info to the wiki. If someone can tell me how I 
> will give it a try.
>
> Steve
>
>
> On Tuesday, April 14, 2020 at 3:24:16 PM UTC-7, Steve Preston wrote:
>>
>> This is just a FYI for the group.  After using WeatherLink for 15+ years, 
>> I have finally switched to WeeWx!
>>
>> I wrote a basic Windows app for converting the WLK files into CSV format 
>> for importing the data into WeeWx.  This app is pretty basic - no real data 
>> checks and no attempt to adjust for differences in the archive interval (my 
>> station was already logging at 5 minute intervals).  And it is setup to 
>> import one month at a time: reads one *.wlk file and writes one *.csv 
>> file.  But I've moved over a few years of data to WeeWx without any 
>> problems (so far).  The app is written in C# with visual studio and I'm 
>> happy to share code and/or executables.
>>
>> Steve
>>
>>

-- 
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/8fa30e58-d2f7-4a9c-9b00-fb4abce34ef7%40googlegroups.com.


[weewx-user] Re: Too chatty Weather365 uploader

2020-04-15 Thread gjr80
Hi,

As you found log_success has no effect on the 'Data uploaded' line, this is 
clearly debug type info and should be controlled by the debug config option 
in weewx.conf. Unfortunately, this is not how the uploader has been coded 
so debug will have no effect either. I see looking at the wiki and the 
Weather365 uploader that the uploader was in fact provided by Weather365. 
The correct approach would be that you contact the author (Weather365) for 
support.

In the interim you can quieten the uploader by locating the following code 
in weather365.py (it will be in /home/weewx/bin/user or usr/share/weewx/user
):

def process_record(self, record, dbm):
r = self.get_record(record, dbm)
data = self.get_data(r)
url = urllib.urlencode(data)
if self.skip_upload:
loginf("skipping upload")
return
req = urllib2.Request(self.server_url, url)
loginf("Data uploaded to %s is: (%s)" % (self.server_url, url))
req.get_method = lambda: 'POST'
req.add_header("User-Agent", "weewx/%s" % weewx.__version__)
self.post_with_retries(req)
 
and changing it to (change highlighted):

def process_record(self, record, dbm):
r = self.get_record(record, dbm)
data = self.get_data(r)
url = urllib.urlencode(data)
if self.skip_upload:
loginf("skipping upload")
return
req = urllib2.Request(self.server_url, url)
logdbg("Data uploaded to %s is: (%s)" % (self.server_url, url))
req.get_method = lambda: 'POST'
req.add_header("User-Agent", "weewx/%s" % weewx.__version__)
self.post_with_retries(req)

Save and restart WeeWX. The 'Data uploaded' line can now be controlled by 
the debug config option in weewx.conf (0 will hide it, 1 will show it). To 
be consistent with the other RestFUL uploaders the 'Data uploaded' line 
should only be shown when debug >= 2, but that involves more substantial 
changes to the code and I thought it best to keep it simple. If you do 
contact Weather365 do suggest the 'Data uploaded' line should only appear 
when debug >= 2.

Gary


On Thursday, 16 April 2020 02:19:41 UTC+10, Jarmo Seppänen wrote:
>
> I feel my Weather365 is too chatty outputting as below to weewx.log: 
> Apr 15 19:05:16 raspi3b weewx[10087]: restx: Weather365: Data uploaded to 
> https://channel1.weather365.net/stations/index.php is: 
> (dew2m=3.3=202004151905=5.9=0.0=31.0_time=60=0.0=167.0=5.9=24.984=0.00=100=0.1=1586966700=5.9=0=22=0.4=1.3=998.206=83=60.396=4.2=5.9=XX=3.80=0.00=383.2)
>  
>
>
> I have configured only failures to be logged but this uploader does not 
> seem to behave. 
> log_success = False 
> log_failure = True 
>
> My python isn’t good enough to understand if there’s something I could do 
> in weather365.py to silence the uploader. 
>
> Any hints I could try?

-- 
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/1fd37d97-aa2d-4b0b-ab07-48053c78d219%40googlegroups.com.


[weewx-user] Re: Datenbank zusammen legen.

2020-04-15 Thread Günther Wrana
Hello

Maybe you can do more with that than with the log file.

Thanks Günther

daham@hp-pc:~$ ssh pi@192.168.1.104
pi@192.168.1.104's password: 
Linux raspberrypi 4.19.97-v7+ #1294 SMP Thu Jan 30 13:15:58 GMT 2020 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Apr 15 17:21:47 2020 from 192.168.1.103
pi@raspberrypi:~ $ cd /home/weewx/archive
pi@raspberrypi:/home/weewx/archive $ dir
weewx.sdb
pi@raspberrypi:/home/weewx/archive $ sudo /etc/init.d/weewx stop
[ ok ] Stopping weewx (via systemctl): weewx.service.
pi@raspberrypi:/home/weewx/archive $ sudo cp weewx.sdb /var/tmp
pi@raspberrypi:/home/weewx/archive $ sudo /home/weewx/bin/wee_import 
--import-config=/var/tmp/csv.conf --dry-run
Starting wee_import...
A CSV import from source file '/var/tmp/datad.csv' has been requested.
Using database binding 'wx_binding', which is bound to database 'weewx.sdb'
Destination table 'archive' unit system is '0x01' (US).
Missing derived observations will be calculated.
This is a dry run, imported data will not be saved to archive.
Starting dry run import ...
288 records identified for import.
Records processed: 250; Unique records: 250; Last timestamp: 2019-05-01 
20:47:00Records processed: 288; Unique records: 288; Last timestamp: 
2019-05-01 23:57:00 CEST (1556747820)
Finished dry run import. 288 records were processed and 288 unique records 
would have been imported.
pi@raspberrypi:/home/weewx/archive $ sudo /home/weewx/bin/wee_import 
--import-config=/var/tmp/csv.conf
Starting wee_import...
A CSV import from source file '/var/tmp/datad.csv' has been requested.
Using database binding 'wx_binding', which is bound to database 'weewx.sdb'
Destination table 'archive' unit system is '0x01' (US).
Missing derived observations will be calculated.
Starting import ...
288 records identified for import.
Proceeding will save all imported records in the WeeWX archive.
Are you sure you want to proceed (y/n)? y
Records processed: 288; Unique records: 288; Last timestamp: 2019-05-01 
23:57:00 CEST (1556747820)
Finished import. 288 raw records resulted in 288 unique records being 
processed in 10.23 seconds.
Those records with a timestamp already in the archive will not have been
imported. Confirm successful import in the WeeWX log file.
pi@raspberrypi:/home/weewx/archive $ sudo /etc/init.d/weewx start
[ ok ] Starting weewx (via systemctl): weewx.service.
pi@raspberrypi:/home/weewx/archive $ sudo tail -f /var/log/syslog
Apr 15 20:14:35 raspberrypi weewx[14619]: wh23xx: Found device on USB bus= 
device=
Apr 15 20:14:35 raspberrypi kernel: [10925.373718] usb 1-1.5: reset 
full-speed USB device number 4 using dwc_otg
Apr 15 20:14:35 raspberrypi weewx[14619]: engine: StdConvert target unit is 
0x1
Apr 15 20:14:35 raspberrypi weewx[14619]: wxcalculate: The following values 
will be calculated: barometer=prefer_hardware, windchill=prefer_hardware, 
dewpoint=prefer_hardware, appTemp=prefer_hardware, 
rainRate=prefer_hardware, windrun=prefer_hardware, 
heatindex=prefer_hardware, maxSolarRad=prefer_hardware, 
humidex=prefer_hardware, pressure=prefer_hardware, 
inDewpoint=prefer_hardware, ET=prefer_hardware, altimeter=prefer_hardware, 
cloudbase=prefer_hardware
Apr 15 20:14:35 raspberrypi weewx[14619]: wxcalculate: The following 
algorithms will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Apr 15 20:14:35 raspberrypi weewx[14619]: engine: Archive will use data 
binding wx_binding
Apr 15 20:14:35 raspberrypi weewx[14619]: engine: Record generation will be 
attempted in 'hardware'
Apr 15 20:14:35 raspberrypi weewx[14619]: engine: Using archive interval of 
300 seconds (specified in weewx configuration)
Apr 15 20:14:35 raspberrypi weewx[14619]: engine: Using binding 
'wx_binding' to database 'weewx.sdb'
Apr 15 20:14:35 raspberrypi weewx[14619]: manager: Starting backfill of 
daily summaries
Apr 15 20:15:57 raspberrypi weewx[14619]: engine: Caught unrecoverable 
exception in engine:
Apr 15 20:15:57 raspberrypi weewx[14619]:   accum: 
ScalarStats.addHiLo expected float or int, got type '' ('')
Apr 15 20:15:57 raspberrypi weewx[14619]:   Traceback (most recent 
call last):
Apr 15 20:15:57 raspberrypi weewx[14619]: File 
"/home/weewx/bin/weewx/engine.py", line 888, in main
Apr 15 20:15:57 raspberrypi weewx[14619]:   engine = 
engine_class(config_dict)
Apr 15 20:15:57 raspberrypi weewx[14619]: File 
"/home/weewx/bin/weewx/engine.py", line 78, in __init__
Apr 15 20:15:57 raspberrypi weewx[14619]:   
self.loadServices(config_dict)
Apr 15 20:15:57 raspberrypi weewx[14619]: File 
"/home/weewx/bin/weewx/engine.py", line 142, in loadServices
Apr 15 20:15:57 raspberrypi weewx[14619]:   

[weewx-user] Re: Datenbank zusammen legen.

2020-04-15 Thread Meteo Oberwallis
Hallo.

Ich mache mittlerweile Jahres Daten und lade das so hoch. Dies klappt, 
dauert aber rund 3-4 Stunden pro Jahr. Die csv hat dann bei mir rund 24 MB. 
Leider muss man eine neue Spalte "timestamp" machen, da es sonst nicht 
klappt.

Gruss Stefan

Am Mittwoch, 15. April 2020 13:18:55 UTC+2 schrieb Günther Wrana:
>
> Hallo
>
> hast du die ganze 2MB csv auf einmal in die Datenbank gespielt?
> Mit all den Daten und in der Konfiguration?
>
> Grüße Günther
>
> Am Mittwoch, 15. April 2020 07:02:07 UTC+2 schrieb Meteo Oberwallis:
>>
>> Hello.
>>
>> I was now able to retroactively import my data into weewx. It worked 
>> wonderfully. Now I have another question. 
>> After I have written the data into the database, I have to execute another 
>> command so that it is also on the homepage, so. e.g. in Belchertown under 
>> "Reports"? So far nothing is there, not even after midnight.
>>
>> Thanks
>>
>>
>>
>> Am Dienstag, 14. April 2020 20:44:55 UTC+2 schrieb William Burton:
>>>
>>> Hallo Günther,
>>>
>>> Gary and many others have much more experience with this than myself but 
>>> since I saw a few issues, thought I would reply before it becomes too late 
>>> for you.
>>>
>>> It looks like you changed the CSV file to use the Meteo export file 
>>> instead of the raw data file which is a good idea. I tried to find where it 
>>> was documented but was not successful.
>>>
>>>
>>>

-- 
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/c8757003-b504-489a-8107-b72ac22ac536%40googlegroups.com.


[weewx-user] Re: Importing WLK files from Davis Instruments WeatherLink software

2020-04-15 Thread Steve Preston
Actually... I have two questions about the importing process with 
wee_import.

1. Is it OK to run the wee_import process during an archive interval 
"update"?
2. How does wee_import handle changes in the archive interval.  All of the 
data I have imported to this point has been from wlk files that had a five 
minute interval.  I may eventually find some earlier wlk files with a 
shorter, 1 min, interval.  Will this be a problem for wee_import?

Thanks
Steve

On Tuesday, April 14, 2020 at 3:24:16 PM UTC-7, Steve Preston wrote:
>
> This is just a FYI for the group.  After using WeatherLink for 15+ years, 
> I have finally switched to WeeWx!
>
> I wrote a basic Windows app for converting the WLK files into CSV format 
> for importing the data into WeeWx.  This app is pretty basic - no real data 
> checks and no attempt to adjust for differences in the archive interval (my 
> station was already logging at 5 minute intervals).  And it is setup to 
> import one month at a time: reads one *.wlk file and writes one *.csv 
> file.  But I've moved over a few years of data to WeeWx without any 
> problems (so far).  The app is written in C# with visual studio and I'm 
> happy to share code and/or executables.
>
> Steve
>
>

-- 
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/0d626c25-da03-4b49-90ee-e5a39cba9419%40googlegroups.com.


[weewx-user] Re: Importing WLK files from Davis Instruments WeatherLink software

2020-04-15 Thread Steve Preston
I have put the app on GitHub. And the readme has a fair amount of info:
https://github.com/stevepr/wlkReader

I'm happy to include a note on the wiki as well.  But I'm not sure of the 
proper method for adding info to the wiki. If someone can tell me how I 
will give it a try.

Steve


On Tuesday, April 14, 2020 at 3:24:16 PM UTC-7, Steve Preston wrote:
>
> This is just a FYI for the group.  After using WeatherLink for 15+ years, 
> I have finally switched to WeeWx!
>
> I wrote a basic Windows app for converting the WLK files into CSV format 
> for importing the data into WeeWx.  This app is pretty basic - no real data 
> checks and no attempt to adjust for differences in the archive interval (my 
> station was already logging at 5 minute intervals).  And it is setup to 
> import one month at a time: reads one *.wlk file and writes one *.csv 
> file.  But I've moved over a few years of data to WeeWx without any 
> problems (so far).  The app is written in C# with visual studio and I'm 
> happy to share code and/or executables.
>
> Steve
>
>

-- 
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/fdeca8d4-a4d3-4890-a42d-b264368abd02%40googlegroups.com.


[weewx-user] Too chatty Weather365 uploader

2020-04-15 Thread Jarmo Seppänen
I feel my Weather365 is too chatty outputting as below to weewx.log:
Apr 15 19:05:16 raspi3b weewx[10087]: restx: Weather365: Data uploaded to 
https://channel1.weather365.net/stations/index.php is: 
(dew2m=3.3=202004151905=5.9=0.0=31.0_time=60=0.0=167.0=5.9=24.984=0.00=100=0.1=1586966700=5.9=0=22=0.4=1.3=998.206=83=60.396=4.2=5.9=XX=3.80=0.00=383.2)

I have configured only failures to be logged but this uploader does not seem to 
behave. 
log_success = False 
log_failure = True

My python isn’t good enough to understand if there’s something I could do in 
weather365.py to silence the uploader.

Any hints I could try?

-- 
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/b95e34ca-4a6e-4a5c-8202-373255c5002e%40googlegroups.com.


Re: [weewx-user] Re: No Rain Data in WeeWx

2020-04-15 Thread Thomas Keffer
Glad to hear it!

On Wed, Apr 15, 2020 at 8:14 AM  wrote:

> Resetting totals cleared the issue. I reset. Put some water through the
> gauge, rain amounts on the device and weewx now agree.
>
> Thank you, very much.
>
> Scott
>
> Sent from my iPhone
>
> On Apr 15, 2020, at 6:52 AM, Thomas Keffer  wrote:
>
> 
> The field "rain" is the total amount of rain that fell during an archive
> interval. It is calculated as the difference in total rain between the
> beginning and end of the interval. So, if total_rain does not change, then
> the "rain" field will show zero.
>
> Is there a way to "reset" your station? It's possible the total rain
> counter has simply overflowed and, instead of wrapping around, it just
> stays at 0x.
>
> -tk
>
> On Tue, Apr 14, 2020 at 10:29 PM  wrote:
>
>> If I may ask one more question.
>>
>> Rain is showing 0.0 in the direct run but field 11 is today's rain total.
>> The value for that field in the serial debug is 30 30 44 41 or 0x00da or
>> 218 decimal (2.18) inches, yet WeeWx is reporting 0.0
>>
>>
>> Sent from my iPhone
>>
>> > On Apr 13, 2020, at 6:41 PM, Thomas Keffer  wrote:
>> >
>> > 46 46 46 46
>>
>> --
>> 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/88BCE192-3DF6-46B1-ADEA-2E0CD5BDAF8F%40gmail.com
>> .
>>
> --
> 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/cKVU1Ot8Tz0/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAPq0zEB4z%3DEf%3D735ZTQTdnKawPJ7SzzCc1PV3XC-tCtvyqNuLg%40mail.gmail.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/28709EE1-9731-4D45-88DC-45AD8AA5AFDB%40gmail.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/CAPq0zEAtTguqz-Qom4vsOM4PESJg6b__Mfs-%2B79fFcv%2BfY1DFA%40mail.gmail.com.


Re: [weewx-user] Re: No Rain Data in WeeWx

2020-04-15 Thread sfgsar
Resetting totals cleared the issue. I reset. Put some water through the gauge, 
rain amounts on the device and weewx now agree.

Thank you, very much.

Scott

Sent from my iPhone

> On Apr 15, 2020, at 6:52 AM, Thomas Keffer  wrote:
> 
> 
> The field "rain" is the total amount of rain that fell during an archive 
> interval. It is calculated as the difference in total rain between the 
> beginning and end of the interval. So, if total_rain does not change, then 
> the "rain" field will show zero. 
> 
> Is there a way to "reset" your station? It's possible the total rain counter 
> has simply overflowed and, instead of wrapping around, it just stays at 
> 0x.
> 
> -tk
> 
>> On Tue, Apr 14, 2020 at 10:29 PM  wrote:
>> If I may ask one more question.
>> 
>> Rain is showing 0.0 in the direct run but field 11 is today's rain total. 
>> The value for that field in the serial debug is 30 30 44 41 or 0x00da or 218 
>> decimal (2.18) inches, yet WeeWx is reporting 0.0
>> 
>> 
>> Sent from my iPhone
>> 
>> > On Apr 13, 2020, at 6:41 PM, Thomas Keffer  wrote:
>> > 
>> > 46 46 46 46
>> 
>> -- 
>> 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/88BCE192-3DF6-46B1-ADEA-2E0CD5BDAF8F%40gmail.com.
> 
> -- 
> 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/cKVU1Ot8Tz0/unsubscribe.
> To unsubscribe from this group and all its topics, 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/CAPq0zEB4z%3DEf%3D735ZTQTdnKawPJ7SzzCc1PV3XC-tCtvyqNuLg%40mail.gmail.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/28709EE1-9731-4D45-88DC-45AD8AA5AFDB%40gmail.com.


Re: [weewx-user] Re: FTP Error uploading to website

2020-04-15 Thread Thomas Keffer
The RPi generally does not come with a copy of the client "ftp". However,
you can install it

sudo apt install ftp

-tk

On Wed, Apr 15, 2020 at 12:43 AM chris op  wrote:

> Can I edit my posts here?
>
> Thanks, Greg!
>
> I was able to connect to the ftp server and to place the correct
> index.html there. However, I connected from my linux ubuntu terminal. And
> after installing ftp on the raspberry I was also able to the same from
> there. The upload from weewx does still not work, unfortunaltey.
>
> Can you or anyone comment on the type of FTP errors I receive?
>
> Should I also be able to connect to the raspberry pi with shh and
> connect to the ftp server from there? Because when I try this I get the
> error message that the ftp command is unknown.
>
>
>
> Am Mittwoch, 15. April 2020 01:39:02 UTC+2 schrieb Greg from Oz:
>>
>> See if ftp works manually.
>>
>> from a terminal:
>>
>> ftp  sxyz.xyzserver.host
>>
>> when name prompt comes back enter in your user web83
>> then type in the password
>>
>> assuming this works type pwd to see what folder you are in
>>
>> change to /home/www/xyz.de by typing cd /home/www/xyz.de
>>
>> you can put a local file into /home/www/xyz.de by typing put > of a local file>
>>
>> or you can get files from /home/www/xyz.de by typing get > remote file>
>>
>> If all of that works then the weex in theory should work.
>> On Wednesday, 15 April 2020 02:06:06 UTC+10, chris op wrote:
>>>
>>> Hi!
>>>
>>> All was working fine with uploading the weewx weather data to my
>>> website. However, this suddenly stopped a couple of weeks ago. I was
>>> realizing one day, that the website was not updated anymore.
>>>
>>> Looking into the syslog what happens and I found the following errors:
>>> Apr 14 17:46:03 raspberrypi weewx[27105]: ftpupload: Attempt #1. Failed
>>> uploading /home/www/xyz.de/daywind.png to sxyz.xyzserver.host. Reason:
>>> 425 Unable to build data connection: Operation not permitted
>>> This changes during to process into:
>>> Apr 14 17:46:13 raspberrypi weewx[27105]: ftpupload: Attempt #3. Failed
>>> uploading /home/www/xyz.de/neowx/daywind.png to sxyz.xyzserver.host.
>>> Reason: 200 Type set to I
>>> or
>>> Apr 14 17:51:20 raspberrypi weewx[27105]: ftpupload: Attempt #1. Failed
>>> uploading /home/www/xyz.de/belchertown/graphs/index.html to
>>> sxyz.xyzserver.host. Reason: 550 /home/www/xyz.de/belchertown/graphs:
>>> File exists
>>>
>>> I have tried to play around in the file weewx.conf and changed the
>>> parameters there but this only led to other error messages like 550 or 500.
>>>
>>> My configuration looks as follows:
>>> >
>>> # FTP'ing the results to a webserver is treated as just another report,
>>> # albeit one with an unusual report generator!
>>> skin = Ftp
>>>
>>> # If you wish to use FTP, uncomment and fill out the next four
>>> lines.
>>> # Use quotes around passwords to guard against parsing errors.
>>> user = web83
>>>
>>> password = 'xyz'
>>> server = sxyz.xyzserver.host
>>> path = /home/www/xyz.de/
>>>
>>> # Set to True for an FTP over TLS (FTPS) connection. Not all
>>> servers
>>> # support this.
>>>  secure_ftp = True
>>>
>>> # To upload files from something other than what HTML_ROOT is set
>>> # to above, specify a different HTML_ROOT here.
>>> # HTML_ROOT = /var/www/html/weewx
>>>
>>> # Most FTP servers use port 21
>>> port = 21
>>>
>>> # Set to 1 to use passive mode, zero for active mode
>>> passive = 1
>>> >>
>>>
>>> Can anyone help? I am a rooky but trying hard to become better with
>>> linux and this kind of software and programming.
>>>
>>> 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/a3397bc8-224a-41be-b85a-f0aa55aa73f0%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/CAPq0zEDPP6tneRsDgSAVKzKesdmhUU7z369cY%3DOSVZ_3UBSdsg%40mail.gmail.com.


Re: [weewx-user] Re: No Rain Data in WeeWx

2020-04-15 Thread Thomas Keffer
The field "rain" is the total amount of rain that fell during an archive
interval. It is calculated as the difference in total rain between the
beginning and end of the interval. So, if total_rain does not change, then
the "rain" field will show zero.

Is there a way to "reset" your station? It's possible the total rain
counter has simply overflowed and, instead of wrapping around, it just
stays at 0x.

-tk

On Tue, Apr 14, 2020 at 10:29 PM  wrote:

> If I may ask one more question.
>
> Rain is showing 0.0 in the direct run but field 11 is today's rain total.
> The value for that field in the serial debug is 30 30 44 41 or 0x00da or
> 218 decimal (2.18) inches, yet WeeWx is reporting 0.0
>
>
> Sent from my iPhone
>
> > On Apr 13, 2020, at 6:41 PM, Thomas Keffer  wrote:
> >
> > 46 46 46 46
>
> --
> 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/88BCE192-3DF6-46B1-ADEA-2E0CD5BDAF8F%40gmail.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/CAPq0zEB4z%3DEf%3D735ZTQTdnKawPJ7SzzCc1PV3XC-tCtvyqNuLg%40mail.gmail.com.


[weewx-user] Re: Datenbank zusammen legen.

2020-04-15 Thread Günther Wrana
Hallo

hast du die ganze 2MB csv auf einmal in die Datenbank gespielt?
Mit all den Daten und in der Konfiguration?

Grüße Günther

Am Mittwoch, 15. April 2020 07:02:07 UTC+2 schrieb Meteo Oberwallis:
>
> Hello.
>
> I was now able to retroactively import my data into weewx. It worked 
> wonderfully. Now I have another question. 
> After I have written the data into the database, I have to execute another 
> command so that it is also on the homepage, so. e.g. in Belchertown under 
> "Reports"? So far nothing is there, not even after midnight.
>
> Thanks
>
>
>
> Am Dienstag, 14. April 2020 20:44:55 UTC+2 schrieb William Burton:
>>
>> Hallo Günther,
>>
>> Gary and many others have much more experience with this than myself but 
>> since I saw a few issues, thought I would reply before it becomes too late 
>> for you.
>>
>> It looks like you changed the CSV file to use the Meteo export file 
>> instead of the raw data file which is a good idea. I tried to find where it 
>> was documented but was not successful.
>>
>>
>>

-- 
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/d629c3e6-c011-45e1-b33f-692f90d10175%40googlegroups.com.


[weewx-user] Re: "Formatting options with [un]expected results" -- using leafTemp1 for non-temperature measurement so trying to remove "°F"

2020-04-15 Thread gjr80
Which skin, Seasons or Standard?

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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/03c147d6-3ffc-466a-805f-7457c07ead37%40googlegroups.com.


[weewx-user] Re: "Formatting options with [un]expected results" -- using leafTemp1 for non-temperature measurement so trying to remove "°F"

2020-04-15 Thread Messy Potamia
Okay, upgrade to 3.9.2, (with Standard skins), went without a hitch. Made a 
few edits to skin.conf and the .tmpls. Yes now the format options work. 
Still trying to find where all the right places are to make the changes to 
formats I need. 

Going to try to add a "yesterday" tab between "current", "week", ...   if 
you have an abbreviated short list of steps, I'd be grateful.

Thanks,
Phil

===
On Tuesday, April 14, 2020 at 1:42:55 AM UTC+2, gjr80 wrote:
>
> Hi,
>
> The 'problem' is that you are using WeeWX v3.6.2 but reading the 
> Customization Guide for the current WeeWX release which is v3.9.2 - and 
> things have changed. What label formatting options you want will determine 
> what tag you should use, $current.leafTemp1.formatted will use the 
> skin.conf defined format but no label, 
> $current.leafWet1.no_label(string_format, 
> NONE_string) will use no label but requires a user specified string 
> format and None string in the tag.
>
> You will find the guides for your WeeWX version on your WeeWX machine in 
> /usr/share/doc/weewx or /home/weewx/docs depending on your install type. 
> Unless you have special glasses for reading HTML you will need to view them 
> in your browser. Alternatively, you can view the Formatting options section 
> of the 3.6.2 Customization Guide here 
> 
>  
> - bear in mind though that most links won't work. And or of course you 
> could upgrade to v3.9.2 :)
>
> Gary
>
> On Tuesday, 14 April 2020 07:33:23 UTC+10, Messy Potamia wrote:
>>
>> Trying to change the default format in reports for leafTemp1 from "degF"  
>>> to nothing, or just 2.2f, so followed the guide, 
>>> http://www.weewx.com/docs/customizing.htm#formatting_options,  to 
>>> current.leafTemp1.format(add_label=False) 
>>>
>> and I'm getting all kinds of errors. Just changed to .format(), since doc 
>> says it's an option, now I "only" get these errors:
>> Apr 13 23:20:17 RPI3 weewx[25402]: cheetahgenerator: Generate failed with 
>> exception ''
>> Apr 13 23:20:17 RPI3 weewx[25402]: cheetahgenerator:  Ignoring 
>> template /home/weewx/skins/Standard/week.html.tmpl
>> Apr 13 23:20:17 RPI3 weewx[25402]: cheetahgenerator:  Reason: format
>> () takes at least 2 arguments (1 given)
>> Apr 13 23:20:17 RPI3 weewx[25402]:   Traceback (most recent call last
>> ):
>> Apr 13 23:20:17 RPI3 weewx[25402]: File 
>> "/home/weewx/bin/weewx/cheetahgenerator.py", line 315, in generate
>> Apr 13 23:20:17 RPI3 weewx[25402]:   print >> _file, text
>> Apr 13 23:20:17 RPI3 weewx[25402]: File 
>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
>> __str__
>> Apr 13 23:20:17 RPI3 weewx[25402]:   rc = getattr(self, 
>> mainMethName)()
>> Apr 13 23:20:17 RPI3 weewx[25402]: File 
>> "_home_weewx_skins_Standard_week_html_tmpl.py", line 1095, in respond
>> Apr 13 23:20:17 RPI3 weewx[25402]: File 
>> "_home_weewx_skins_Standard_week_html_tmpl.py", line 322, in 
>> __errorCatcher37
>> Apr 13 23:20:17 RPI3 weewx[25402]: File "", line 1, in 
>> 
>> Apr 13 23:20:17 RPI3 weewx[25402]:   TypeError: format() takes at 
>> least 2 arguments (1 given)
>> Apr 13 23:20:19 RPI3 weewx[25402]: cheetahgenerator: Generate failed with 
>> exception ''
>> Apr 13 23:20:19 RPI3 weewx[25402]: cheetahgenerator:  Ignoring 
>> template /home/weewx/skins/Standard/index.html.tmpl
>> Apr 13 23:20:19 RPI3 weewx[25402]: cheetahgenerator:  Reason: format
>> () takes at least 2 arguments (1 given)
>> Apr 13 23:20:19 RPI3 weewx[25402]:   Traceback (most recent call last
>> ):
>> Apr 13 23:20:19 RPI3 weewx[25402]: File 
>> "/home/weewx/bin/weewx/cheetahgenerator.py", line 315, in generate
>> Apr 13 23:20:19 RPI3 weewx[25402]:   print >> _file, text
>> Apr 13 23:20:19 RPI3 weewx[25402]: File 
>> "/usr/lib/python2.7/dist-packages/Cheetah/Template.py", line 1005, in 
>> __str__
>> Apr 13 23:20:19 RPI3 weewx[25402]:   rc = getattr(self, 
>> mainMethName)()
>> Apr 13 23:20:19 RPI3 weewx[25402]: File 
>> "_home_weewx_skins_Standard_index_html_tmpl.py", line 1037, in respond
>> Apr 13 23:20:19 RPI3 weewx[25402]: File 
>> "_home_weewx_skins_Standard_index_html_tmpl.py", line 182, in 
>> __errorCatcher17
>> Apr 13 23:20:19 RPI3 weewx[25402]: File "", line 1, in 
>> 
>> Apr 13 23:20:19 RPI3 weewx[25402]:   TypeError: format() takes at 
>> least 2 arguments (1 given)
>> Apr 13 23:20:19 RPI3 weewx[25402]: cheetahgenerator: Generated 12 files 
>> for report StandardReport in 4.00 seconds
>> Apr 13 23:20:20 RPI3 weewx[25402]: genimages: Generated 12 images for 
>> StandardReport in 0.77 seconds
>> Apr 13 23:20:20 RPI3 weewx[25402]: reportengine: copied 14 files to /home
>> /weewx/public_html
>> Apr 13 23:20:40 RPI3 weewx[25402]: reportengine: ftp'd 38 files in 19.90 
>> seconds

[weewx-user] Re: FTP Error uploading to website

2020-04-15 Thread Greg from Oz
This shows python ftp. 
http://makble.com/upload-new-files-to-ftp-server-with-python
It also says about 550 errors.

weewx is using /usr/share/weewx/weeutil/ftpupload.py

So hopefully someone who knows python might help you...I don't know python.

Good luck


On Wednesday, 15 April 2020 02:06:06 UTC+10, chris op wrote:
>
> Hi! 
>
> All was working fine with uploading the weewx weather data to my website. 
> However, this suddenly stopped a couple of weeks ago. I was realizing one 
> day, that the website was not updated anymore.
>
> Looking into the syslog what happens and I found the following errors:
> Apr 14 17:46:03 raspberrypi weewx[27105]: ftpupload: Attempt #1. Failed 
> uploading /home/www/xyz.de/daywind.png to sxyz.xyzserver.host. Reason: 
> 425 Unable to build data connection: Operation not permitted
> This changes during to process into:
> Apr 14 17:46:13 raspberrypi weewx[27105]: ftpupload: Attempt #3. Failed 
> uploading /home/www/xyz.de/neowx/daywind.png to sxyz.xyzserver.host. 
> Reason: 200 Type set to I
> or
> Apr 14 17:51:20 raspberrypi weewx[27105]: ftpupload: Attempt #1. Failed 
> uploading /home/www/xyz.de/belchertown/graphs/index.html to 
> sxyz.xyzserver.host. Reason: 550 /home/www/xyz.de/belchertown/graphs: 
> File exists
>
> I have tried to play around in the file weewx.conf and changed the 
> parameters there but this only led to other error messages like 550 or 500.
>
> My configuration looks as follows:
> >
> # FTP'ing the results to a webserver is treated as just another report,
> # albeit one with an unusual report generator!
> skin = Ftp
> 
> # If you wish to use FTP, uncomment and fill out the next four 
> lines.
> # Use quotes around passwords to guard against parsing errors.
> user = web83
>
> password = 'xyz'
> server = sxyz.xyzserver.host
> path = /home/www/xyz.de/
> 
> # Set to True for an FTP over TLS (FTPS) connection. Not all 
> servers
> # support this.
>  secure_ftp = True 
> 
> # To upload files from something other than what HTML_ROOT is set
> # to above, specify a different HTML_ROOT here.
> # HTML_ROOT = /var/www/html/weewx
> 
> # Most FTP servers use port 21
> port = 21
> 
> # Set to 1 to use passive mode, zero for active mode
> passive = 1
> >>
>
> Can anyone help? I am a rooky but trying hard to become better with linux 
> and this kind of software and programming.
>
> 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/4b1a7bed-66c1-4504-85c3-bc9fc7474667%40googlegroups.com.


[weewx-user] Re: FTP Error uploading to website

2020-04-15 Thread Greg from Oz
https://en.wikipedia.org/wiki/List_of_FTP_server_return_codes


On Wednesday, 15 April 2020 17:43:35 UTC+10, chris op wrote:
>
> Can I edit my posts here?
>
> Thanks, Greg!
>
> I was able to connect to the ftp server and to place the correct 
> index.html there. However, I connected from my linux ubuntu terminal. And 
> after installing ftp on the raspberry I was also able to the same from 
> there. The upload from weewx does still not work, unfortunaltey.
>
> Can you or anyone comment on the type of FTP errors I receive?
>
> Should I also be able to connect to the raspberry pi with shh and 
> connect to the ftp server from there? Because when I try this I get the 
> error message that the ftp command is unknown.
>
>
>
> Am Mittwoch, 15. April 2020 01:39:02 UTC+2 schrieb Greg from Oz:
>>
>> See if ftp works manually.
>>
>> from a terminal:
>>
>> ftp  sxyz.xyzserver.host
>>
>> when name prompt comes back enter in your user web83
>> then type in the password
>>
>> assuming this works type pwd to see what folder you are in 
>>
>> change to /home/www/xyz.de by typing cd /home/www/xyz.de
>>
>> you can put a local file into /home/www/xyz.de by typing put > of a local file>
>>
>> or you can get files from /home/www/xyz.de by typing get > remote file>
>>
>> If all of that works then the weex in theory should work.
>> On Wednesday, 15 April 2020 02:06:06 UTC+10, chris op wrote:
>>>
>>> Hi! 
>>>
>>> All was working fine with uploading the weewx weather data to my 
>>> website. However, this suddenly stopped a couple of weeks ago. I was 
>>> realizing one day, that the website was not updated anymore.
>>>
>>> Looking into the syslog what happens and I found the following errors:
>>> Apr 14 17:46:03 raspberrypi weewx[27105]: ftpupload: Attempt #1. Failed 
>>> uploading /home/www/xyz.de/daywind.png to sxyz.xyzserver.host. Reason: 
>>> 425 Unable to build data connection: Operation not permitted
>>> This changes during to process into:
>>> Apr 14 17:46:13 raspberrypi weewx[27105]: ftpupload: Attempt #3. Failed 
>>> uploading /home/www/xyz.de/neowx/daywind.png to sxyz.xyzserver.host. 
>>> Reason: 200 Type set to I
>>> or
>>> Apr 14 17:51:20 raspberrypi weewx[27105]: ftpupload: Attempt #1. Failed 
>>> uploading /home/www/xyz.de/belchertown/graphs/index.html to 
>>> sxyz.xyzserver.host. Reason: 550 /home/www/xyz.de/belchertown/graphs: 
>>> File exists
>>>
>>> I have tried to play around in the file weewx.conf and changed the 
>>> parameters there but this only led to other error messages like 550 or 500.
>>>
>>> My configuration looks as follows:
>>> >
>>> # FTP'ing the results to a webserver is treated as just another report,
>>> # albeit one with an unusual report generator!
>>> skin = Ftp
>>> 
>>> # If you wish to use FTP, uncomment and fill out the next four 
>>> lines.
>>> # Use quotes around passwords to guard against parsing errors.
>>> user = web83
>>>
>>> password = 'xyz'
>>> server = sxyz.xyzserver.host
>>> path = /home/www/xyz.de/
>>> 
>>> # Set to True for an FTP over TLS (FTPS) connection. Not all 
>>> servers
>>> # support this.
>>>  secure_ftp = True 
>>> 
>>> # To upload files from something other than what HTML_ROOT is set
>>> # to above, specify a different HTML_ROOT here.
>>> # HTML_ROOT = /var/www/html/weewx
>>> 
>>> # Most FTP servers use port 21
>>> port = 21
>>> 
>>> # Set to 1 to use passive mode, zero for active mode
>>> passive = 1
>>> >>
>>>
>>> Can anyone help? I am a rooky but trying hard to become better with 
>>> linux and this kind of software and programming.
>>>
>>> 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/74761aa9-96b6-4c98-8275-32e0940bf9c0%40googlegroups.com.


[weewx-user] Re: FTP Error uploading to website

2020-04-15 Thread chris op
Can I edit my posts here?

Thanks, Greg!

I was able to connect to the ftp server and to place the correct index.html 
there. However, I connected from my linux ubuntu terminal. And after 
installing ftp on the raspberry I was also able to the same from there. The 
upload from weewx does still not work, unfortunaltey.

Can you or anyone comment on the type of FTP errors I receive?

Should I also be able to connect to the raspberry pi with shh and 
connect to the ftp server from there? Because when I try this I get the 
error message that the ftp command is unknown.



Am Mittwoch, 15. April 2020 01:39:02 UTC+2 schrieb Greg from Oz:
>
> See if ftp works manually.
>
> from a terminal:
>
> ftp  sxyz.xyzserver.host
>
> when name prompt comes back enter in your user web83
> then type in the password
>
> assuming this works type pwd to see what folder you are in 
>
> change to /home/www/xyz.de by typing cd /home/www/xyz.de
>
> you can put a local file into /home/www/xyz.de by typing put  a local file>
>
> or you can get files from /home/www/xyz.de by typing get  remote file>
>
> If all of that works then the weex in theory should work.
> On Wednesday, 15 April 2020 02:06:06 UTC+10, chris op wrote:
>>
>> Hi! 
>>
>> All was working fine with uploading the weewx weather data to my website. 
>> However, this suddenly stopped a couple of weeks ago. I was realizing one 
>> day, that the website was not updated anymore.
>>
>> Looking into the syslog what happens and I found the following errors:
>> Apr 14 17:46:03 raspberrypi weewx[27105]: ftpupload: Attempt #1. Failed 
>> uploading /home/www/xyz.de/daywind.png to sxyz.xyzserver.host. Reason: 
>> 425 Unable to build data connection: Operation not permitted
>> This changes during to process into:
>> Apr 14 17:46:13 raspberrypi weewx[27105]: ftpupload: Attempt #3. Failed 
>> uploading /home/www/xyz.de/neowx/daywind.png to sxyz.xyzserver.host. 
>> Reason: 200 Type set to I
>> or
>> Apr 14 17:51:20 raspberrypi weewx[27105]: ftpupload: Attempt #1. Failed 
>> uploading /home/www/xyz.de/belchertown/graphs/index.html to 
>> sxyz.xyzserver.host. Reason: 550 /home/www/xyz.de/belchertown/graphs: 
>> File exists
>>
>> I have tried to play around in the file weewx.conf and changed the 
>> parameters there but this only led to other error messages like 550 or 500.
>>
>> My configuration looks as follows:
>> >
>> # FTP'ing the results to a webserver is treated as just another report,
>> # albeit one with an unusual report generator!
>> skin = Ftp
>> 
>> # If you wish to use FTP, uncomment and fill out the next four 
>> lines.
>> # Use quotes around passwords to guard against parsing errors.
>> user = web83
>>
>> password = 'xyz'
>> server = sxyz.xyzserver.host
>> path = /home/www/xyz.de/
>> 
>> # Set to True for an FTP over TLS (FTPS) connection. Not all 
>> servers
>> # support this.
>>  secure_ftp = True 
>> 
>> # To upload files from something other than what HTML_ROOT is set
>> # to above, specify a different HTML_ROOT here.
>> # HTML_ROOT = /var/www/html/weewx
>> 
>> # Most FTP servers use port 21
>> port = 21
>> 
>> # Set to 1 to use passive mode, zero for active mode
>> passive = 1
>> >>
>>
>> Can anyone help? I am a rooky but trying hard to become better with linux 
>> and this kind of software and programming.
>>
>> 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/a3397bc8-224a-41be-b85a-f0aa55aa73f0%40googlegroups.com.


[weewx-user] Re: FTP Error uploading to website

2020-04-15 Thread chris op
Thanks! 

I was able to connect to the ftp server and to place the correct index.html 
there. However, I connected from my linux ubuntu terminal. 

Should I also be able to connect to the raspberry pi with shh and connect 
to the ftp server from there? Because when I try this I get the error 
message that the ftp command is unknown.


Am Mittwoch, 15. April 2020 01:39:02 UTC+2 schrieb Greg from Oz:
>
> See if ftp works manually.
>
> from a terminal:
>
> ftp  sxyz.xyzserver.host
>
> when name prompt comes back enter in your user web83
> then type in the password
>
> assuming this works type pwd to see what folder you are in 
>
> change to /home/www/xyz.de by typing cd /home/www/xyz.de
>
> you can put a local file into /home/www/xyz.de by typing put  a local file>
>
> or you can get files from /home/www/xyz.de by typing get  remote file>
>
> If all of that works then the weex in theory should work.
> On Wednesday, 15 April 2020 02:06:06 UTC+10, chris op wrote:
>>
>> Hi! 
>>
>> All was working fine with uploading the weewx weather data to my website. 
>> However, this suddenly stopped a couple of weeks ago. I was realizing one 
>> day, that the website was not updated anymore.
>>
>> Looking into the syslog what happens and I found the following errors:
>> Apr 14 17:46:03 raspberrypi weewx[27105]: ftpupload: Attempt #1. Failed 
>> uploading /home/www/xyz.de/daywind.png to sxyz.xyzserver.host. Reason: 
>> 425 Unable to build data connection: Operation not permitted
>> This changes during to process into:
>> Apr 14 17:46:13 raspberrypi weewx[27105]: ftpupload: Attempt #3. Failed 
>> uploading /home/www/xyz.de/neowx/daywind.png to sxyz.xyzserver.host. 
>> Reason: 200 Type set to I
>> or
>> Apr 14 17:51:20 raspberrypi weewx[27105]: ftpupload: Attempt #1. Failed 
>> uploading /home/www/xyz.de/belchertown/graphs/index.html to 
>> sxyz.xyzserver.host. Reason: 550 /home/www/xyz.de/belchertown/graphs: 
>> File exists
>>
>> I have tried to play around in the file weewx.conf and changed the 
>> parameters there but this only led to other error messages like 550 or 500.
>>
>> My configuration looks as follows:
>> >
>> # FTP'ing the results to a webserver is treated as just another report,
>> # albeit one with an unusual report generator!
>> skin = Ftp
>> 
>> # If you wish to use FTP, uncomment and fill out the next four 
>> lines.
>> # Use quotes around passwords to guard against parsing errors.
>> user = web83
>>
>> password = 'xyz'
>> server = sxyz.xyzserver.host
>> path = /home/www/xyz.de/
>> 
>> # Set to True for an FTP over TLS (FTPS) connection. Not all 
>> servers
>> # support this.
>>  secure_ftp = True 
>> 
>> # To upload files from something other than what HTML_ROOT is set
>> # to above, specify a different HTML_ROOT here.
>> # HTML_ROOT = /var/www/html/weewx
>> 
>> # Most FTP servers use port 21
>> port = 21
>> 
>> # Set to 1 to use passive mode, zero for active mode
>> passive = 1
>> >>
>>
>> Can anyone help? I am a rooky but trying hard to become better with linux 
>> and this kind of software and programming.
>>
>> 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/47094520-ed37-4330-ac11-e20ce825f259%40googlegroups.com.


[weewx-user] Re: meteostick and WU

2020-04-15 Thread kreso_zg
Thank you for detailed explanation.
You were right. if i disable rapid fire everything works.

best regards
Krešimir


Dana ponedjeljak, 13. travnja 2020. u 22:28:58 UTC+2, korisnik kreso_zg 
napisao je:
>
> Dear weewx colleagues,
>
> i am using meteostick on one location and i am not able to upload dewpoint 
> or barometar and wind gust to Wunderground.
>
> same setting work well with Davis Vantage console USB or Ethernet but 
> using meteostick it doesnt work.
>
> do we need to change something in rest.py or meteostick.py for purpose of 
> Wunderground upload?
>
> When using meteostick everything looks ok in FTP skin. it has dewpoint, 
> barometar and wind gust.
>
> Best regards
> Krešimir
>

-- 
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/c83a65ee-95f5-4b92-b37f-3ef0fbbf1168%40googlegroups.com.