Hi,

I tried those two lines didn't work and have thrown thias up:-

Nov 27 18:05:35 localhost weewx[27915]: engine: Initializing weewx version 3.6.2
Nov 27 18:05:35 localhost weewx[27915]: engine: Using Python 2.7.6 (default, 
Jun 22 2015, 17:58:13) #012[GCC 4.8.2]
Nov 27 18:05:35 localhost weewx[27915]: engine: Platform 
Linux-3.13.0-88-generic-x86_64-with-Ubuntu-14.04-trusty
Nov 27 18:05:35 localhost weewx[27915]: engine: Using configuration file 
/etc/weewx/weewx.conf
Nov 27 18:05:35 localhost weewx[27915]: engine: Loading station type OWFS 
(user.owfs)
Nov 27 18:05:38 localhost weewx[27915]: owfs: driver version is 0.18
Nov 27 18:05:38 localhost weewx[27915]: owfs: interface is localhost:4304
Nov 27 18:05:38 localhost weewx[27915]: owfs: sensor map is {'Temp': 
'/uncached/28.05AF5B010000/temperature12', 'windDir': 
'/uncached/1F.CB6C05000000/main/20.BA8400000000', 'windSpeed': 
'/uncached/1F.CB6C05000000/main/1D.604A01000000', 'extraTemp1': 
'/uncached/1F.CB6C05000000/aux/26.D1FA80000000/temperature', 'rain': 
'/uncached/1F.056505000000/main/1D.FEC40D000000', 'barometer': 
'/uncached/1F.056505000000/aux/EF.307520150000/barometer', 'Temp2': 
'/uncached/1F.056505000000/aux/EF.307520150000/barometer/temperature', 
'outTemp': '/uncached/1F.1B5D05000000/main/26.DA158F010000/temperature', 
'outHumidity': '/uncached/1F.1B5D05000000/main/26.DA158F010000/humidity'}
Nov 27 18:05:38 localhost weewx[27915]: owfs: sensor type map is {'windDir': 
'aag_windvane', 'windSpeed': 'aag_windspeed', 'rain': 'rainwise_bucket'}
Nov 27 18:05:38 localhost weewx[27915]: owfs: polling interval is 10
Nov 27 18:05:38 localhost weewx[27915]: owfs: sensor unit system is metric
Nov 27 18:05:38 localhost weewx[27915]: engine: StdConvert target unit is 0x11
Nov 27 18:05:38 localhost weewx[27915]: 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
Nov 27 18:05:38 localhost weewx[27915]: wxcalculate: The following algorithms 
will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Nov 27 18:05:38 localhost weewx[27915]: engine: Archive will use data binding 
wx_binding
Nov 27 18:05:38 localhost weewx[27915]: engine: Record generation will be 
attempted in 'software'
Nov 27 18:05:38 localhost weewx[27915]: engine: Using archive interval of 300 
seconds (specified in weewx configuration)
Nov 27 18:05:38 localhost weewx[27915]: engine: Using binding 'wx_binding' to 
database 'weewx'
Nov 27 18:05:38 localhost weewx[27915]: manager: Starting backfill of daily 
summaries
Nov 27 18:05:38 localhost weewx[27915]: manager: Daily summaries up to date
Nov 27 18:05:38 localhost weewx[27915]: restx: StationRegistry: Station will be 
registered.
Nov 27 18:05:38 localhost weewx[27915]: restx: Wunderground-PWS: Data for 
station INORTHAM16 will be posted
Nov 27 18:05:38 localhost weewx[27915]: restx: PWSweather: Posting not enabled.
Nov 27 18:05:38 localhost weewx[27915]: restx: CWOP: Posting not enabled.
Nov 27 18:05:38 localhost weewx[27915]: restx: WOW: Posting not enabled.
Nov 27 18:05:38 localhost weewx[27915]: restx: AWEKAS: Posting not enabled.
Nov 27 18:05:38 localhost weewx[27915]: engine: Starting up weewx version 3.6.2
Nov 27 18:05:38 localhost weewx[27915]: engine: Starting main packet loop.
Nov 27 18:05:40 localhost weewx[27915]: engine: Caught unrecoverable exception 
in engine:
Nov 27 18:05:40 localhost weewx[27915]:     ****  could not convert string to 
float:
Nov 27 18:05:40 localhost weewx[27915]:     ****  Traceback (most recent call 
last):
Nov 27 18:05:40 localhost weewx[27915]:     ****    File 
"/usr/share/weewx/weewx/engine.py", line 847, in main
Nov 27 18:05:40 localhost weewx[27915]:     **** engine.run()
Nov 27 18:05:40 localhost weewx[27915]:     ****    File 
"/usr/share/weewx/weewx/engine.py", line 186, in run
Nov 27 18:05:40 localhost weewx[27915]:     ****      for packet in 
self.console.genLoopPackets():
Nov 27 18:05:40 localhost weewx[27915]:     ****    File 
"/usr/share/weewx/user/owfs.py", line 441, in genLoopPackets
Nov 27 18:05:40 localhost weewx[27915]:     ****      last_data, p['dateTime'])
Nov 27 18:05:40 localhost weewx[27915]:     ****    File 
"/usr/share/weewx/user/owfs.py", line 194, in gauge
Nov 27 18:05:40 localhost weewx[27915]:     ****      return get_float(path)
Nov 27 18:05:40 localhost weewx[27915]:     ****    File 
"/usr/share/weewx/user/owfs.py", line 190, in get_float
Nov 27 18:05:40 localhost weewx[27915]:     ****      v = float(sv)
Nov 27 18:05:40 localhost weewx[27915]:     ****  ValueError: could not convert 
string to float:
Nov 27 18:05:40 localhost weewx[27915]:     ****  Exiting.


David





On 27/11/2016 18:04, mwall wrote:
On Sunday, November 27, 2016 at 12:41:38 PM UTC-5, David Johns wrote:

    With regards to the rest, I don't understand where to put LD_LIBRARY_PATH 
and also the weewxd


first try these two lines at the command prompt:

export LD_LIBRARY_PATH=/opt/owfs/lib
weewxd /etc/weewx/weewx.conf

the LD_LIBRARY_PATH tells weewxd where to find shared libraries.  most of the 
time you don't have to set LD_LIBRARY_PATH, because libraries live in locations 
that are already known, e.g., /lib or /usr/lib.  /opt/owfs is a standard way to 
install owfs, but /opt/owfs/lib is not in the list of known library locations.

    Weewx is being run as a service. ie sudo service weewx start

    There is no RC script as far as I am aware.


/etc/init.d/weewx is the RC script.  it is invoked when you do 'sudo service 
weewx start'

if setting the LD_LIBRARY_PATH worked in the experiment above, then you need to 
set it when weewxd is run via the rc script.

one way to do that is to put this near the top of the rc script:

LD_LIBRARY_PATH=/opt/owfs

a safer way to do that is to put it in the defaults file for weewx:

echo "LD_LIBRARY_PATH=/opt/owfs" | sudo tee /etc/defaults/weewx

that way you won't have to modify /etc/init.d/weewx every time up upgrade weewx.

m
--
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/mbldmY3J7o4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to 
[email protected] 
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

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

Reply via email to