[weewx-user] Re: Barometer to use with OWFS station

2017-01-07 Thread Ralph Underwood
I missed that little detail, the wiki shows separate lines, I just was so 
happy I managed to get the sensor data into a file 

I now have a two line txt file and both readings are picked up by the 
fileparse driver.

Thanks.
 

On Friday, January 6, 2017 at 9:51:13 PM UTC-8, Andrew Milner wrote:
>
> shouldn't each reading be on a separate line - so it should be
> soilTemp1=60.64
> pressure=29.54
>
> rather than
>
> soilTemp1=60.64 pressure=29.54
>
>
> On Saturday, 7 January 2017 07:23:27 UTC+2, Ralph Underwood wrote:
>
>> I made a change so that only the pressure value shows up in my txt file 
>> and it works!  Maybe tomorrow I can figure out what is wrong with the 
>> temperature.
>>
>>
>>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Barometer to use with OWFS station

2017-01-06 Thread Andrew Milner
shouldn't each reading be on a separate line - so it should be
soilTemp1=60.64
pressure=29.54

rather than

soilTemp1=60.64 pressure=29.54


On Saturday, 7 January 2017 07:23:27 UTC+2, Ralph Underwood wrote:

> I made a change so that only the pressure value shows up in my txt file 
> and it works!  Maybe tomorrow I can figure out what is wrong with the 
> temperature.
>
>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Barometer to use with OWFS station

2017-01-06 Thread Ralph Underwood
I made a change so that only the pressure value shows up in my txt file and 
it works!  Maybe tomorrow I can figure out what is wrong with the 
temperature.


-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Barometer to use with OWFS station

2017-01-06 Thread Ralph Underwood
Here is the log after starting Weewx:

Jan  6 20:52:01 ruWX CRON[2310]: (pi) CMD (sudo python 
/usr/share/weewx/user/ru-work.py # JOB_ID_2)
Jan  6 20:52:05 ruWX systemd[1]: Starting LSB: weewx weather system...
Jan  6 20:52:05 ruWX weewx[2347]: engine: Initializing weewx version 3.6.2
Jan  6 20:52:05 ruWX weewx[2347]: engine: Using Python 2.7.9 (default, Sep 
17 2016, 20:26:04) #012[GCC 4.9.2]
Jan  6 20:52:05 ruWX weewx[2347]: engine: Platform 
Linux-4.4.34-v7+-armv7l-with-debian-8.0
Jan  6 20:52:05 ruWX weewx[2347]: engine: pid file is /var/run/weewx.pid
Jan  6 20:52:05 ruWX weewx[2351]: engine: Using configuration file 
/etc/weewx/weewx.conf
Jan  6 20:52:05 ruWX weewx[2351]: engine: Initializing engine
Jan  6 20:52:05 ruWX weewx[2351]: engine: Loading station type FileParse 
(user.fileparse)
Jan  6 20:52:05 ruWX weewx[2351]: fileparse: data file is 
/var/tmp/wxdata/BMP085.txt
Jan  6 20:52:05 ruWX weewx[2351]: fileparse: polling interval is 2.0
Jan  6 20:52:05 ruWX weewx[2351]: fileparse: label map is {'temperature': 
'extraTemp', 'pressure': 'barometer'}
Jan  6 20:52:05 ruWX weewx[2351]: engine: Loading service 
weewx.engine.StdTimeSynch
Jan  6 20:52:05 ruWX weewx[2351]: engine: Finished loading service 
weewx.engine.StdTimeSynch
Jan  6 20:52:05 ruWX weewx[2351]: engine: Loading service 
weewx.engine.StdConvert
Jan  6 20:52:05 ruWX weewx[2351]: engine: StdConvert target unit is 0x1
Jan  6 20:52:05 ruWX weewx[2351]: engine: Finished loading service 
weewx.engine.StdConvert
Jan  6 20:52:05 ruWX weewx[2351]: engine: Loading service 
weewx.engine.StdCalibrate
Jan  6 20:52:05 ruWX weewx[2351]: engine: Finished loading service 
weewx.engine.StdCalibrate
Jan  6 20:52:05 ruWX weewx[2351]: engine: Loading service weewx.engine.StdQC
Jan  6 20:52:05 ruWX weewx[2351]: engine: Finished loading service 
weewx.engine.StdQC
Jan  6 20:52:05 ruWX weewx[2351]: engine: Loading service 
weewx.wxservices.StdWXCalculate
Jan  6 20:52:05 ruWX weewx[2351]: 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
Jan  6 20:52:05 ruWX weewx[2351]: wxcalculate: The following algorithms 
will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Jan  6 20:52:05 ruWX weewx[2351]: engine: Finished loading service 
weewx.wxservices.StdWXCalculate
Jan  6 20:52:05 ruWX weewx[2351]: engine: Loading service 
weewx.engine.StdArchive
Jan  6 20:52:05 ruWX weewx[2351]: engine: Archive will use data binding 
wx_binding
Jan  6 20:52:05 ruWX weewx[2351]: engine: Record generation will be 
attempted in 'hardware'
Jan  6 20:52:05 ruWX weewx[2351]: engine: Using archive interval of 300 
seconds (specified in weewx configuration)
Jan  6 20:52:05 ruWX weewx[2351]: engine: Use LOOP data in hi/low 
calculations: 1
Jan  6 20:52:05 ruWX systemd[1]: Started LSB: weewx weather system.
Jan  6 20:52:05 ruWX weewx[2336]: Starting weewx weather system: weewx.
Jan  6 20:52:05 ruWX weewx[2351]: engine: Using binding 'wx_binding' to 
database 'weewx.sdb'
Jan  6 20:52:05 ruWX weewx[2351]: manager: Starting backfill of daily 
summaries
Jan  6 20:52:05 ruWX weewx[2351]: manager: Daily summaries up to date
Jan  6 20:52:05 ruWX weewx[2351]: engine: Finished loading service 
weewx.engine.StdArchive
Jan  6 20:52:05 ruWX weewx[2351]: engine: Loading service 
weewx.restx.StdStationRegistry
Jan  6 20:52:05 ruWX weewx[2351]: restx: StationRegistry: Registration not 
requested.
Jan  6 20:52:05 ruWX weewx[2351]: engine: Finished loading service 
weewx.restx.StdStationRegistry
Jan  6 20:52:05 ruWX weewx[2351]: engine: Loading service 
weewx.restx.StdWunderground
Jan  6 20:52:05 ruWX weewx[2351]: restx: Wunderground: Posting not enabled.
Jan  6 20:52:05 ruWX weewx[2351]: engine: Finished loading service 
weewx.restx.StdWunderground
Jan  6 20:52:05 ruWX weewx[2351]: engine: Loading service 
weewx.restx.StdPWSweather
Jan  6 20:52:05 ruWX weewx[2351]: restx: PWSweather: Posting not enabled.
Jan  6 20:52:05 ruWX weewx[2351]: engine: Finished loading service 
weewx.restx.StdPWSweather
Jan  6 20:52:05 ruWX weewx[2351]: engine: Loading service 
weewx.restx.StdCWOP
Jan  6 20:52:05 ruWX weewx[2351]: restx: CWOP: Posting not enabled.
Jan  6 20:52:05 ruWX weewx[2351]: engine: Finished loading service 
weewx.restx.StdCWOP
Jan  6 20:52:05 ruWX weewx[2351]: engine: Loading service weewx.restx.StdWOW
Jan  6 20:52:05 ruWX weewx[2351]: restx: WOW: Posting not enabled.
Jan  6 20:52:05 ruWX weewx[2351]: engine: Finished loading service 
weewx.restx.StdWOW
Jan  6 20:52:05 ruWX weewx[2351]: engine: Loading service 
weewx.restx.StdAWEKAS
Jan  6 20:52:05 ruWX weewx[2351]: restx: AWEKAS: Posting not enabled.
Jan  6 20:52:05 ruWX weewx[23

[weewx-user] Re: Barometer to use with OWFS station

2017-01-06 Thread Ralph Underwood
I used wee_extension to install fileparse.py and now I am stumped with this 
error: fileparse: cannot read value for '61.34,29.534': invalid literal for 
float(): 61.34,29.534

Appears that I might have to do some more studying about floats and such.

-- 
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.
For more options, visit https://groups.google.com/d/optout.


[weewx-user] Re: Barometer to use with OWFS station

2017-01-06 Thread Ralph Underwood
I decided to try the barometer sensor on the RPi i2c bus. 

I have managed to get data from the sensor and write out a text file in 
/var/tmp/wxdata.  I have a cron job overwrite the file every minute (for 
now) with fresh readings. 

Attempting to follow the directions in FileParse.py gets me this:
Jan  6 13:26:56 ruWX systemd[1]: Starting LSB: weewx weather system...
Jan  6 13:26:57 ruWX weewx[3511]: engine: Initializing weewx version 3.6.2
Jan  6 13:26:57 ruWX weewx[3511]: engine: Using Python 2.7.9 (default, Sep 
17 2016, 20:26:04) #012[GCC 4.9.2]
Jan  6 13:26:57 ruWX weewx[3511]: engine: Platform 
Linux-4.4.34-v7+-armv7l-with-debian-8.0
Jan  6 13:26:57 ruWX weewx[3511]: engine: pid file is /var/run/weewx.pid
Jan  6 13:26:57 ruWX weewx[3515]: engine: Using configuration file 
/etc/weewx/weewx.conf
Jan  6 13:26:57 ruWX weewx[3515]: engine: Initializing engine
Jan  6 13:26:57 ruWX weewx[3515]: engine: Loading station type FileParse 
(user.FileParse)
Jan  6 13:26:57 ruWX weewx[3515]: engine: Caught unrecoverable exception in 
engine:
Jan  6 13:26:57 ruWX weewx[3515]:   No module named FileParse
Jan  6 13:26:57 ruWX weewx[3515]:   Traceback (most recent call 
last):
Jan  6 13:26:57 ruWX weewx[3515]: File 
"/usr/share/weewx/weewx/engine.py", line 841, in main
Jan  6 13:26:57 ruWX weewx[3515]:   engine = 
engine_class(config_dict)
Jan  6 13:26:57 ruWX weewx[3515]: File 
"/usr/share/weewx/weewx/engine.py", line 70, in __init__
Jan  6 13:26:57 ruWX weewx[3515]:  
 self.setupStation(config_dict)
Jan  6 13:26:57 ruWX weewx[3515]: File 
"/usr/share/weewx/weewx/engine.py", line 94, in setupStation
Jan  6 13:26:57 ruWX weewx[3515]:   __import__(driver)
Jan  6 13:26:57 ruWX weewx[3515]:   ImportError: No module named 
FileParse
Jan  6 13:26:57 ruWX weewx[3515]:   Exiting.


I have the FileParse.py in /user/share/weewx.

This all running on a RPi3 with an apt-get installation of WeeWx. I started 
with Simulator and them tried to put FileParse as the station type.

Should I be running the FileParse as a service?

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.