Re: [weewx-user] wee_config not working

2020-04-20 Thread Thomas Keffer
1. The files in Skins/Standard are the *templates*, not the final HTML
files. The HTML files will appear in /home/weewx/public_html. If they did
not, then you need to send the log. See Help! Posting to weewx-user
 for how
to get a useful log.

2. Unless you are a Python programmer, do not alter the file wee_config.
The string you posted is used internally in wee_config to show the "usage"
hints if you ask for help.

*wee_config --help*


3. See the Wiki article *Understanding paths
*. It may help you
understand why your command did not run.

On Mon, Apr 20, 2020 at 4:51 PM Ellastonepaul 
wrote:

> Hi,
>
> I am setting up Weewx on a Raspberry-pi. Followed Download (3.9.2) and
> Install instructions using *setup-py.* and started with *Simulator* as
> Station. Eventually got it to run in the Browser (Despite no *public_html* 
> file..I
> finally tracked it to *skins/Standard !) *
>
>  I would now like to "Reconfigure" it for my Bresser station.  Following
> instructions I should be able to use *wee_config --reconfigure* but all I
> get is "command not found". I have checked Permissions and all are OK.
>
> Looking at the file *wee_config *I now see line
>
> 14 *usage = """Usage: wee_config --help*
> *15 etc*
> *16 etc*
> *17 wee_config --reconfigure  etc etc*
>
> and line 51 & 52
>
> 51   --altitude --location
> 52   """
>
> In other words this section has been commented out!  Why?  I have removed
> the " marks but it still is not recognised
>
> Have I missed somethingor...?
>
> Also I believe (hope!) that the Bresser 6-in-1 Art No 7002570 will run
> under the FineOffetUSB driver.  I see there have been some discussions on
> this unit but is there anything definitive?
>
>
>
>
>
>
> --
> 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/18a4f784-5863-437f-af05-722931d7360e%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/CAPq0zEAA9pxiqjGMYuWVsDn7p-8TzjLkhZXPmW5bOy-W8XCZOw%40mail.gmail.com.


Re: [weewx-user] wee_config not working

2020-04-20 Thread p q
See if  *./wee_config* works better.

On Mon, Apr 20, 2020 at 4:51 PM Ellastonepaul 
wrote:

> Hi,
>
> I am setting up Weewx on a Raspberry-pi. Followed Download (3.9.2) and
> Install instructions using *setup-py.* and started with *Simulator* as
> Station. Eventually got it to run in the Browser (Despite no *public_html* 
> file..I
> finally tracked it to *skins/Standard !) *
>
>  I would now like to "Reconfigure" it for my Bresser station.  Following
> instructions I should be able to use *wee_config --reconfigure* but all I
> get is "command not found". I have checked Permissions and all are OK.
>
> Looking at the file *wee_config *I now see line
>
> 14 *usage = """Usage: wee_config --help*
> *15 etc*
> *16 etc*
> *17 wee_config --reconfigure  etc etc*
>
> and line 51 & 52
>
> 51   --altitude --location
> 52   """
>
> In other words this section has been commented out!  Why?  I have removed
> the " marks but it still is not recognised
>
> Have I missed somethingor...?
>
> Also I believe (hope!) that the Bresser 6-in-1 Art No 7002570 will run
> under the FineOffetUSB driver.  I see there have been some discussions on
> this unit but is there anything definitive?
>
>
>
>
>
>
> --
> 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/18a4f784-5863-437f-af05-722931d7360e%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/CAA1SM22z0R7cP6gj3o9b6Pv82nPdDsdBgbvzhBv0mvMaW5ZD0w%40mail.gmail.com.


[weewx-user] wee_config not working

2020-04-20 Thread Ellastonepaul
Hi,

I am setting up Weewx on a Raspberry-pi. Followed Download (3.9.2) and 
Install instructions using *setup-py.* and started with *Simulator* as 
Station. Eventually got it to run in the Browser (Despite no *public_html* 
file..I 
finally tracked it to *skins/Standard !) *

 I would now like to "Reconfigure" it for my Bresser station.  Following 
instructions I should be able to use *wee_config --reconfigure* but all I 
get is "command not found". I have checked Permissions and all are OK. 

Looking at the file *wee_config *I now see line

14 *usage = """Usage: wee_config --help*
*15 etc*
*16 etc*
*17 wee_config --reconfigure  etc etc*

and line 51 & 52

51   --altitude --location
52   """

In other words this section has been commented out!  Why?  I have removed 
the " marks but it still is not recognised

Have I missed somethingor...?

Also I believe (hope!) that the Bresser 6-in-1 Art No 7002570 will run 
under the FineOffetUSB driver.  I see there have been some discussions on 
this unit but is there anything definitive? 

   




-- 
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/18a4f784-5863-437f-af05-722931d7360e%40googlegroups.com.


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

2020-04-20 Thread Xant

Pat

Suggestion to you, or someone with development skills.

What about a small "widget" to place in personal or starter homepage. Think 
just the Temperature cell of Belchertown webpage would be interesting.

Xant

-- 
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/43a185f5-8679-4593-8fd4-f63096b05ffa%40googlegroups.com.


Re: [weewx-user] Re: fileparse polling interval

2020-04-20 Thread Thomas Keffer
In V3.x, the option archive_interval must divide evenly into an hour.
Version 4.X will remove that restriction. See Issue #469
.

-tk

On Mon, Apr 20, 2020 at 6:58 AM jf42  wrote:

> Addition:
>
> I found my mistake: archive_interval was 60 in weewx.conf ... But:
>
> Values below 60 sec cause a crash of the software.
>
> Any ideas for that?
>
> --
> 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/6c8e638d-7aa5-4ae9-9a82-bcad43dcd6e7%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/CAPq0zEAbvqteK2nHOb85w7nZmKQhdpJPonDKJDurmt7Dvfz%2BMA%40mail.gmail.com.


[weewx-user] Re: fileparse polling interval

2020-04-20 Thread Andrew Milner
If you have set archive interval too small there is probably too little 
time to 
a) store archive record
b) generate HTML pages
c) generate NOAA reports
d) do any uploads

etc etc

Normally the loop data (obtained at small time intervals) is NOT written to 
the dstabase, or used to trigger reports etc - the loop data is just 
accumulated until the archive interval and then the archive record is 
written to the database.

So as to what are you doing wrong, my response would be to suggest you are 
attempting to do something with weewx which it is not designed to do ,



On Monday, 20 April 2020 16:58:02 UTC+3, jf42 wrote:
>
> Addition:
>
> I found my mistake: archive_interval was 60 in weewx.conf ... But:
>
> Values below 60 sec cause a crash of the software.
>
> Any ideas for that?
>
>

-- 
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/024faf8e-8de1-458e-973e-af5f9e71fa8f%40googlegroups.com.


[weewx-user] Re: fileparse polling interval

2020-04-20 Thread jf42
Addition:

I found my mistake: archive_interval was 60 in weewx.conf ... But:

Values below 60 sec cause a crash of the software.

Any ideas for that?

-- 
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/6c8e638d-7aa5-4ae9-9a82-bcad43dcd6e7%40googlegroups.com.

Apr 20 13:49:43 rmr-srv weewx[27136]: engine: Initializing weewx version 3.9.2
Apr 20 13:49:43 rmr-srv weewx[27136]: engine: Using Python 2.7.17 (default, Oct 
24 2019, 12:43:41) [GCC]
Apr 20 13:49:43 rmr-srv weewx[27136]: engine: Platform 
Linux-5.3.8-1-default-x86_64-with-glibc2.2.5
Apr 20 13:49:43 rmr-srv weewx[27136]: engine: Locale is 'en_US.UTF-8'
Apr 20 13:49:43 rmr-srv weewx[27136]: engine: Using configuration file 
/home/weewx/weewx.conf
Apr 20 13:49:43 rmr-srv weewx[27136]: engine: Loading station type FileParse 
(user.fileparse)
Apr 20 13:49:43 rmr-srv weewx[27136]: fileparse: data file is 
/var/tmp/weewx-input.dat
Apr 20 13:49:43 rmr-srv weewx[27136]: fileparse: polling interval is 5.0
Apr 20 13:49:43 rmr-srv weewx[27136]: fileparse: label map is {}
Apr 20 13:49:43 rmr-srv weewx[27136]: engine: StdConvert target unit is 0x1
Apr 20 13:49:43 rmr-srv weewx[27136]: 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 20 13:49:43 rmr-srv weewx[27136]: wxcalculate: The following algorithms 
will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Apr 20 13:49:43 rmr-srv weewx[27136]: engine: Archive will use data binding 
wx_binding
Apr 20 13:49:43 rmr-srv weewx[27136]: engine: Record generation will be 
attempted in 'software'
Apr 20 13:49:43 rmr-srv weewx[27136]: engine: Using archive interval of 59 
seconds (software record generation)
Apr 20 13:49:43 rmr-srv weewx[27136]: engine: Using binding 'wx_binding' to 
database 'weewx.sdb'
Apr 20 13:49:43 rmr-srv weewx[27136]: manager: Starting backfill of daily 
summaries
Apr 20 13:49:43 rmr-srv weewx[27136]: restx: StationRegistry: Registration not 
requested.
Apr 20 13:49:43 rmr-srv weewx[27136]: restx: Wunderground: Posting not enabled.
Apr 20 13:49:43 rmr-srv weewx[27136]: restx: PWSweather: Posting not enabled.
Apr 20 13:49:43 rmr-srv weewx[27136]: restx: CWOP: Posting not enabled.
Apr 20 13:49:43 rmr-srv weewx[27136]: restx: WOW: Posting not enabled.
Apr 20 13:49:43 rmr-srv weewx[27136]: restx: AWEKAS: Posting not enabled.
Apr 20 13:49:43 rmr-srv weewx[27136]: engine: Starting up weewx version 3.9.2
Apr 20 13:49:43 rmr-srv weewx[27136]: engine: Starting main packet loop.
Apr 20 13:49:43 rmr-srv weewx[27136]: engine: Main loop exiting. Shutting 
engine down.
Apr 20 13:49:43 rmr-srv weewx[27136]: engine: Caught unrecoverable exception in 
engine:
Apr 20 13:49:43 rmr-srv weewx[27136]:   integer division or modulo by 
zero
Apr 20 13:49:43 rmr-srv weewx[27136]:   Traceback (most recent call 
last):
Apr 20 13:49:43 rmr-srv weewx[27136]: File 
"/home/weewx/bin/weewx/engine.py", line 894, in main
Apr 20 13:49:43 rmr-srv weewx[27136]:   engine.run()
Apr 20 13:49:43 rmr-srv weewx[27136]: File 
"/home/weewx/bin/weewx/engine.py", line 191, in run
Apr 20 13:49:43 rmr-srv weewx[27136]:   
self.dispatchEvent(weewx.Event(weewx.NEW_LOOP_PACKET, packet=packet))
Apr 20 13:49:43 rmr-srv weewx[27136]: File 
"/home/weewx/bin/weewx/engine.py", line 224, in dispatchEvent
Apr 20 13:49:43 rmr-srv weewx[27136]:   callback(event)
Apr 20 13:49:43 rmr-srv weewx[27136]: File 
"/home/weewx/bin/weewx/engine.py", line 540, in new_loop_packet
Apr 20 13:49:43 rmr-srv weewx[27136]:   self.accumulator = 
self._new_accumulator(event.packet['dateTime'])
Apr 20 13:49:43 rmr-srv weewx[27136]: File 
"/home/weewx/bin/weewx/engine.py", line 650, in _new_accumulator
Apr 20 13:49:43 rmr-srv weewx[27136]:   self.archive_interval)
Apr 20 13:49:43 rmr-srv weewx[27136]: File 
"/home/weewx/bin/weeutil/weeutil.py", line 197, in startOfInterval
Apr 20 13:49:43 rmr-srv weewx[27136]:   m = int(time_tt.tm_min // 
interval_m * interval_m)
Apr 20 13:49:43 rmr-srv weewx[27136]:   ZeroDivisionError: integer 
division or modulo by zero
Apr 20 13:49:43 rmr-srv weewx[27136]:   Exiting.




[weewx-user] Re: Peet Bros Ultimeter 2100 - Humidity Pad

2020-04-20 Thread Ralph Underwood
Did you enter a local barometer reading to the 2100? I don't have my manual 
handy, but seem to remember that in order for the 2100 to output the 
barometer reading you first have to calibrate it by entering a local value 
once. I don't upload to weather sites with my systems but both of my 
Ultimeter 2100s output  a barometer reading for WeeWx. 



On Sunday, April 19, 2020 at 5:51:36 AM UTC-7, Burt Wizeman wrote:
>
> Thanks for all the info in this group!  It has helped me with my weekend 
> spent trying to debug some of the issues I ran into.   One of those issues 
> was that no barometer was showing up at CWOP.  I have now learned that is 
> due to the calc needing the humidity which I lack. I notice that Weather 
> Display software in Windows provides CWOP with barometer so I assume that 
> is pulling humidity from some source.  Is there a way to add a pad to the 
> Ultimeter driver so it could be configured to grab humidity from another 
> source so that the altimeter calc could be accomplished?  Any ideas?  
> Trying to save the 110.00 for the meter.
>
> Burt
> K4SRQ
>

-- 
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/5407c57e-e98f-4945-bf26-0aca44057135%40googlegroups.com.


[weewx-user] fileparse polling interval

2020-04-20 Thread jf42
Hi All,

I have weewx running with the fileparse driver. In weewx.conf the polling 
interval ist set to 5 secs,
however, the records are added to the database with 1 min updates. I want 
it to have as fast 
as possible. What I'm doing wrong?

Hints are welcome.

-- 
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/8c65a74b-2414-4f90-bc6f-34d956cc3a6b%40googlegroups.com.


[weewx-user] Re: CSV import having trouble with units

2020-04-20 Thread Rick M0LEP
On Mon 20 Apr gjr80 wrote:
> Yep, you are telling wee_import that WeeWX field altimeter (a 
> pressure) has source (import) data in metres. If your altimeter data 
> is in fact a pressure then it needs to be in a pressure unit supported 
> by WeeWX (hPa, inHg etc ). If it is fact an altitude (or something 
> measured in metres) then don=E2= =80=99t map it to WeeWX field 
> altimeter.

Cheers. It is in fact an altitude, so I'll just leave it out.

-- 
73, Rick, M0LEP

-- 
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/173.5e9d86c4.892a1%40hewett.org.


[weewx-user] CSV import having trouble with units

2020-04-20 Thread gjr80
Yep, you are telling wee_import that WeeWX field altimeter (a pressure) has 
source (import) data in metres. If your altimeter data is in fact a pressure 
then it needs to be in a pressure unit supported by WeeWX (hPa, inHg etc). If 
it is fact an altitude (or something measured in metres) then don’t map it to 
WeeWX field altimeter.

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/13f76f74-23d4-4f2e-b25b-d5d7c7a434d9%40googlegroups.com.


[weewx-user] CSV import having trouble with units

2020-04-20 Thread Rick M0LEP
I'm trying to use wee_import (in weewx 3.9.2) to fill in a gap in my 
records using data extracted from an external source.

I've created a CSV with the following header line:

timestamp,outTemp,outHumidity,barometer,altimeter,windSpeed,windDir,gustSpeed,gustDir,rainRate,rain

The first data row looks like this:

1584821700,40.71,58,1010,129.00,3.2,135,7.6,45,0.00,0.00

I have the following fields defined in the csv-import.conf

[[FieldMap]]
dateTime= timestamp, unix_epoch
barometer   = barometer, mbar
altimeter   = altimeter, meter
outTemp = outTemp, degree_F
outHumidity = outHumidity, percent
windSpeed   = windSpeed, mile_per_hour
windDir = windDir, degree_compass
windGust= gustSpeed, mile_per_hour
windGustDir = gustDir, degree_compass
rainRate= rainRate, inch_per_hour
rain= rain, inch

The import is complaining about a unit conversion issue:

wee_import --import-config=csv-import.conf --dry-run --log=csv-import.log 
--verbose
Starting wee_import...
A CSV import from source file 'bloomsky_hillside_combined.csv' has been 
requested.
The following options will be used:
 config=/etc/weewx/weewx.conf, import-config=csv-import.conf
 source=bloomsky_hillside_combined.csv, from=None, to=None
 dry-run=True, calc_missing=True, ignore_invalid_data=True
 tranche=250, interval=5, date/time_string_format=%Y-%m-%d %H:%M:%S
 rain=cumulative, wind_direction=[-360.0, 360.0]
 UV=False, radiation=False
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.
All WeeWX UV fields will be set to None.
All WeeWX radiation fields will be set to None.
This is a dry run, imported data will not be saved to archive.
Obtaining raw import data for period 1...
The following imported field-to-WeeWX field map will be used:
 source field 'barometer' in units 'mbar' --> WeeWX field 'barometer'
 source field 'outHumidity' in units 'percent' --> WeeWX field 'outHumidity'
 source field 'rainRate' in units 'inch_per_hour' --> WeeWX field 'rainRate'
 source field 'rain' in units 'inch' --> WeeWX field 'rain'
 source field 'timestamp' in units 'unix_epoch' --> WeeWX field 'dateTime'
 source field 'windDir' in units 'degree_compass' --> WeeWX field 'windDir'
 source field 'outTemp' in units 'degree_F' --> WeeWX field 'outTemp'
 source field 'windSpeed' in units 'mile_per_hour' --> WeeWX field 
'windSpeed'
 source field 'gustSpeed' in units 'mile_per_hour' --> WeeWX field 
'windGust'
 source field 'altimeter' in units 'meter' --> WeeWX field 'altimeter'
 source field 'gustDir' in units 'degree_compass' --> WeeWX field 
'windGustDir'
Raw import data read successfully for period 1.
Mapping raw import data for period 1...
Traceback (most recent call last):
  File "/usr/bin/wee_import", line 834, in 
main()
  File "/usr/bin/wee_import", line 784, in main
source_obj.run()
  File "/usr/share/weewx/weeimport/weeimport.py", line 350, in run
_mapped_data = self.mapRawData(_raw_data, self.archive_unit_sys)
  File "/usr/share/weewx/weeimport/weeimport.py", line 723, in mapRawData
_conv_vt = convertStd(_temp_vt, unit_sys)
  File "/usr/share/weewx/weewx/units.py", line 1161, in convertStd
return StdUnitConverters[target_std_unit_system].convert(val_t)
  File "/usr/share/weewx/weewx/units.py", line 784, in convert
new_val_t = convert(val_t, new_unit_type)
  File "/usr/share/weewx/weewx/units.py", line 1128, in convert
conversion_func = conversionDict[val_t[1]][target_unit_type]
KeyError: 'inHg'

I've burrowed down various rabbit holes, but not come up with anything. 
Any ideas what I've got wrong?

-- 
73, Rick, M0LEP

-- 
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/7eb8.5e9d8274.e9d55%40hewett.org.