Hi,

Ok. There is no such directory as etc/defaults on this version of ubuntu. So I 
have added the LD_LIBRARY_PATH to the weewx file in /etc/init.d/

It still did not work starting weewx in the usual way (service weewx start) and 
threw up the original errors.

However, I tried the way you said by running weewxd /etc/weewx/weewx.conf and gives the 
following output. However running as a  service still does not work and still complains 
about "libow-3.1.so.4: cannot open shared object file: No such file or 
directory".

Nov 27 18:49:20 localhost weewx[28868]: engine: Initializing weewx version 3.6.2
Nov 27 18:49:20 localhost weewx[28868]: engine: Using Python 2.7.6 (default, 
Jun 22 2015, 17:58:13) #012[GCC 4.8.2]
Nov 27 18:49:20 localhost weewx[28868]: engine: Platform 
Linux-3.13.0-88-generic-x86_64-with-Ubuntu-14.04-trusty
Nov 27 18:49:20 localhost weewx[28868]: engine: Using configuration file 
/etc/weewx/weewx.conf
Nov 27 18:49:20 localhost weewx[28868]: engine: Loading station type OWFS 
(user.owfs)
Nov 27 18:49:22 localhost weewx[28868]: owfs: driver version is 0.19rc1
Nov 27 18:49:22 localhost weewx[28868]: owfs: interface is localhost:4304
Nov 27 18:49:22 localhost weewx[28868]: 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:49:22 localhost weewx[28868]: owfs: sensor type map is {'windDir': 
'aag_windvane', 'windSpeed': 'aag_windspeed', 'rain': 'rainwise_bucket'}
Nov 27 18:49:22 localhost weewx[28868]: owfs: polling interval is 10
Nov 27 18:49:22 localhost weewx[28868]: owfs: sensor unit system is metric
Nov 27 18:49:22 localhost weewx[28868]: engine: StdConvert target unit is 0x11
Nov 27 18:49:22 localhost weewx[28868]: 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:49:22 localhost weewx[28868]: wxcalculate: The following algorithms 
will be used for calculations: altimeter=aaNOAA, maxSolarRad=RS
Nov 27 18:49:22 localhost weewx[28868]: engine: Archive will use data binding 
wx_binding
Nov 27 18:49:22 localhost weewx[28868]: engine: Record generation will be 
attempted in 'software'
Nov 27 18:49:22 localhost weewx[28868]: engine: Using archive interval of 300 
seconds (specified in weewx configuration)
Nov 27 18:49:22 localhost weewx[28868]: engine: Using binding 'wx_binding' to 
database 'weewx'
Nov 27 18:49:22 localhost weewx[28868]: manager: Starting backfill of daily 
summaries
Nov 27 18:49:22 localhost weewx[28868]: manager: Daily summaries up to date
Nov 27 18:49:22 localhost weewx[28868]: restx: StationRegistry: Station will be 
registered.
Nov 27 18:49:22 localhost weewx[28868]: restx: Wunderground-PWS: Data for 
station INORTHAM16 will be posted
Nov 27 18:49:22 localhost weewx[28868]: restx: PWSweather: Posting not enabled.
Nov 27 18:49:22 localhost weewx[28868]: restx: CWOP: Posting not enabled.
Nov 27 18:49:22 localhost weewx[28868]: restx: WOW: Posting not enabled.
Nov 27 18:49:22 localhost weewx[28868]: restx: AWEKAS: Posting not enabled.
Nov 27 18:49:22 localhost weewx[28868]: engine: Starting up weewx version 3.6.2
Nov 27 18:49:22 localhost weewx[28868]: engine: Starting main packet loop.
Nov 27 18:49:24 localhost weewx[28868]: owfs: Failed to get sensor data for 
barometer (gauge): could not convert string to float:
Nov 27 18:49:37 localhost weewx[28868]: owfs: Failed to get sensor data for 
barometer (gauge): could not convert string to float:
Nov 27 18:49:51 localhost weewx[28868]: owfs: Failed to get sensor data for 
windDir (aag_windvane): 
'/uncached/1F.CB6C05000000/main/20.BA8400000000/volt.ALL'
Nov 27 18:49:52 localhost weewx[28868]: owfs: Failed to get sensor data for 
barometer (gauge): could not convert string to float:


But, I need weewx to run as a service as it did before.


David




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

    Hi,

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


good!  the LD_LIBRARY_PATH works.  be sure to put

LD_LIBRARY_PATH=/opt/owfs/lib

into the file /etc/default/weewx

now you have a problem reading a sensor.

please install owfs 0.19rc1.  it will provide more details about the sensor 
problem.

http://lancet.mit.edu/mwall/projects/weather/releases/weewx-owfs-0.19rc1.tgz

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