Apr 18 11:13:49 xxx weewx[563]: engine: Initializing weewx version 3.5.0
Apr 18 11:13:49 xxx weewx[563]: engine: Using Python 2.7.3 (default, Jun 22 2015, 19:33:41) #012[GCC 4.6.3]
Apr 18 11:13:49 xxx weewx[563]: engine: Platform Linux-3.2.0-84-generic-x86_64-with-Ubuntu-12.04-precise
Apr 18 11:13:49 xxx weewx[563]: engine: pid file is /var/run/weewx.pid
Apr 18 11:13:49 xxx weewx[567]: engine: Using configuration file /etc/weewx/weewx.conf
Apr 18 11:13:49 xxx weewx[567]: engine: Loading station type ObserverIP (user.observerip)
Apr 18 11:13:49 xxx weewx[567]: observerip: version is 0.5mw
Apr 18 11:13:51 xxx weewx[567]: observerip: socket timeout 1 of 5
Apr 18 11:13:55 xxx weewx[567]: observerip: socket timeout 2 of 5
Apr 18 11:13:59 xxx weewx[567]: observerip: socket timeout 3 of 5
Apr 18 11:14:03 xxx weewx[567]: observerip: socket timeout 4 of 5
Apr 18 11:14:07 xxx weewx[567]: observerip: socket timeout 5 of 5
Apr 18 11:14:09 xxx weewx[567]: observerip: probe failed after 5 tries
Apr 18 11:14:09 xxx weewx[567]: engine: Unable to load driver: ObserverIP network probe failed
Apr 18 11:14:09 xxx weewx[567]: **** Exiting...
How can i check what is going wrong?
any idea?
I also tried https://github.com/poblabs/weewx-ObserverIP ; but when i try to start weewx, after i copied the observerip.py and modifying the conf
engine: Unable to load driver: float() argument must be a string or a number
Hi
thx the error is gone;
but i think my station is not sending the data ;(
ObserverIP driver had an error yielding data packet to weewx.
ObserverIP driver couldn't access the livedata.htm webpage.
Apr 18 12:42:29 xxx weewx[3676]: Error caught was: HTTPConnectionPool(host='None', port=80): Max retries exceeded with url: /livedata.htm (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x2c120d0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Apr 18 12:42:29 xxx weewx[3676]: ObserverIP driver had an error yielding data packet to weewx.
Apr 18 12:42:29 xxx weewx[3676]: Error caught was: local variable 'outTemp' referenced before assignment
Apr 18 12:42:44 xxx weewx[3676]: ObserverIP driver couldn't access the livedata.htm webpage.
Apr 18 12:42:44 xxx weewx[3676]: Error caught was: HTTPConnectionPool(host='None', port=80): Max retries exceeded with url: /livedata.htm (Caused by NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection object at 0x2c121d0>: Failed to establish a new connection: [Errno -2] Name or service not known',))
I also tried to access the http://##ip##/livedata.htm but i got no response from the station.
now i am looking for another way ... perhaps i will try the indirect way ...
i can change the server to which the HP1001 should post the data ...
this is what i am currently do with FHEM ...
Will this work, when i use the ObserverIP Version 0.5 in indirect mode with an running apache on the weewx server with the weatherstation/updateweatherstation.php file ...
as i far as i understand this solution - i do not need to redirect anything about WU, because i can enter my lokal server in the HP1001 Unit as resporting server.
when i try to call the webpage manually http://IP/weatherstation/updateweatherstation.php
#!/bin/bash # This script is ment to run on a private network # There has been absolutly no thought give to security !!!!
when i try to start weewx:
Apr 18 13:44:35 xx weewx[6312]: engine: Loading station type Interceptor (user.interceptor)
Apr 18 13:44:35 xx weewx[6312]: interceptor: MainThread: driver version is 0.4
Apr 18 13:44:35 xx weewx[6312]: interceptor: MainThread: server will listen on :8881
Apr 18 13:44:35 xx weewx[6312]: interceptor: MainThread: sensor map: None
Apr 18 13:44:35 xx weewx[6312]: engine: Unable to load driver: an integer is required
Apr 18 13:44:35 xx weewx[6312]: **** Exiting...
as far as i sends the station other variables :o
ans it send in metrics / C instead on us and F ...
ID=xxx&PASSWORD=yyy&intemp=22.8&outtemp=1.4&dewpoint=1.1&windchill=1.4&inhumi=36&outhumi=98&windspeed=0.0&windgust=0.0&winddir=193&absbaro=1009.5&relbaro=1033.4&rainrate=0.0&dailyrain=0.0&weeklyrain=10.5&monthlyrain=10.5&yearlyrain=10.5&light=1724.9&UV=38&dateutc=2016-4-19%204:42:35&softwaretype=HP1001%20V2.2.2&action=updateraw&realtime=1&rtfreq=5
also, what is your altitude? about 393 ft
Apr 19 08:11:23 xx weewx[5441]: **** NameError: global name 'decode_float' is not defined
Apr 19 08:11:23 xx weewx[5441]: **** Exiting.
more things i need to know: what are the units of windspeed, and what are the units of dailyrain/weeklyrain/monthlyrain/yearlyrain?
i have to check the units at home .. currently i am out.
i will post them as soon as i am back home (will be late this evening in about 10 hours)
also, what is your altitude? about 393 ft
Apr 19 08:41:31 xx weewx[6099]: **** KeyError: 'usUnits'
Apr 19 08:41:31 xx weewx[6099]: **** Exiting.
Apr 19 09:54:04 xx weewx[7594]: **** KeyError: 'usUnits'
Apr 19 09:54:04 xx weewx[7594]: **** Exiting.
got another error:
Apr 19 10:24:28 xx weewx[8271]: **** NameError: global name 'LABEL_MAP' is not defined
Apr 19 10:24:28 xx weewx[8271]: **** Exiting.
hi
here the units:
Windspeed is km/h
dailyrain/weeklyrain/monthlyrain/yearlyrain is mm
light is W/m^2
UV is uW/cm^2
the station is about 10ft above ground / ground is about 395ft
i noticed this:
is this correct: unrecognized parameter ?
Apr 20 09:46:55 xx weewx[12468]: interceptor: MainThread: unrecognized parameter weeklyrain=10.5
Apr 20 09:46:55 xx weewx[12468]: interceptor: MainThread: unrecognized parameter monthlyrain=10.5
Apr 20 09:46:55 xx weewx[12468]: interceptor: MainThread: unrecognized parameter realtime=1
Apr 20 09:46:55 xx weewx[12468]: interceptor: MainThread: unrecognized parameter rtfreq=5
Apr 20 09:46:55 xx weewx[12468]: interceptor: MainThread: unrecognized parameter action=updateraw
Apr 20 09:46:55 xx weewx[12468]: interceptor: MainThread: unrecognized parameter dailyrain=0.0
Apr 20 09:46:55 xx weewx[12468]: interceptor: MainThread: unrecognized parameter PASSWORD=xxxxxxx
Apr 20 09:46:55 xx weewx[12468]: interceptor: MainThread: unrecognized parameter ID=yyyyyyy
Apr 20 09:46:55 xx weewx[12468]: interceptor: MainThread: unrecognized parameter dateutc=2016-4-20%207:46:55
Apr 20 09:46:55 xx weewx[12468]: interceptor: MainThread: unrecognized parameter softwaretype=HP1001%20V2.2.2
Apr 20 09:46:55 xx weewx[12468]: interceptor: MainThread: unrecognized parameter relbaro=1039.0
Apr 20 09:46:55 xx weewx[12468]: interceptor: MainThread: raw packet: {'windchill': 9.1, 'dewpoint': 2.2, 'pressure': 1015.1, 'outHumidity': 62.0, 'UV': 857.0, 'radiation': 27612.0, 'rain': 0.0, 'dateTime': 1461138415, 'windDir': 170.0, 'outTemp': 9.1, 'windSpeed': 0.1, 'inHumidity': 35.0, 'inTemp': 22.8, 'windGust': 1.1, 'rainRate': 0.0, 'usUnits': 16}
Apr 20 09:46:55 xx weewx[12468]: interceptor: MainThread: mapped packet: {'windchill': 9.1, 'dewpoint': 2.2, 'pressure': 1015.1, 'outHumidity': 62.0, 'UV': 857.0, 'radiation': 27612.0, 'rain': 0.0, 'dateTime': 1461138415, 'windDir': 170.0, 'outTemp': 9.1, 'windSpeed': 0.1, 'inHumidity': 35.0, 'inTemp': 22.8, 'windGust': 1.1, 'rainRate': 0.0, 'usUnits': 16}
[Interceptor]
# This section is for the network traffic interceptor driver.
# Specify the hardware device to capture. Options include:
# acurite-bridge - acurite internet bridge
# observer - fine offset WH2600/HP1000/HP1003, aka 'observer'
# lw30x - oregon scientific LW301/LW302
# lacross-bridge - lacross GW1000U/C84612 internet bridge
# netatmo - netatmo weather stations
device_type = observer
port = 55
# The driver to use:
driver = user.interceptor
nc -l 55
GET /weatherstation/updateweatherstation.asp?ID=EASTHAGBOURNE&PASSWORD=password&outtemp=6.3&outhumi=80&dewpoint=3.1&windchill=6.3&winddir=197&windspeed=0.0&windgust=0.0&rainrate=0.0&dailyrain=0.0&weeklyrain=0.0&monthlyrain=0.0&yearlyrain=0.0&light=0.00&UV=1&intemp=19.8&inhumi=46&absbaro=1018.30&relbaro=1018.30&lowbatt=0&dateutc=2016-4-30%2021:5:1&softwaretype=Weather%20logger%20V2.1.9&action=updateraw&realtime=1&rtfreq=5 HTTP/1.0
Accept: */*
Host: 192.168.45.100
Connection: Close
Apr 30 21:20:33 supertoni weewx[18837]: interceptor: MainThread: shutting down server thread
Apr 30 21:20:33 supertoni weewx[18837]: engine: Caught unrecoverable exception in engine:
Apr 30 21:20:33 supertoni weewx[18837]: **** 'usUnits'
Apr 30 21:20:33 supertoni weewx[18837]: **** Traceback (most recent call last):
Apr 30 21:20:33 supertoni weewx[18837]: **** File "/home/weewx/bin/weewx/engine.py", line 859, in main
Apr 30 21:20:33 supertoni weewx[18837]: **** engine.run()
Apr 30 21:20:33 supertoni weewx[18837]: **** File "/home/weewx/bin/weewx/engine.py", line 196, in run
Apr 30 21:20:33 supertoni weewx[18837]: **** self.dispatchEvent(weewx.Event(weewx.POST_LOOP))
Apr 30 21:20:33 supertoni weewx[18837]: **** File "/home/weewx/bin/weewx/engine.py", line 218, in dispatchEvent
Apr 30 21:20:33 supertoni weewx[18837]: **** callback(event)
Apr 30 21:20:33 supertoni weewx[18837]: **** File "/home/weewx/bin/weewx/engine.py", line 584, in post_loop
Apr 30 21:20:33 supertoni weewx[18837]: **** self._software_catchup()
Apr 30 21:20:33 supertoni weewx[18837]: **** File "/home/weewx/bin/weewx/engine.py", line 635, in _software_catchup
Apr 30 21:20:33 supertoni weewx[18837]: **** self.engine.dispatchEvent(weewx.Event(weewx.NEW_ARCHIVE_RECORD, record=record, origin='software'))
Apr 30 21:20:33 supertoni weewx[18837]: **** File "/home/weewx/bin/weewx/engine.py", line 218, in dispatchEvent
Apr 30 21:20:33 supertoni weewx[18837]: **** callback(event)
Apr 30 21:20:33 supertoni weewx[18837]: **** File "/home/weewx/bin/user/owfs.py", line 504, in handle_new_archive
Apr 30 21:20:33 supertoni weewx[18837]: **** data = self.getData(event.record)
Apr 30 21:20:33 supertoni weewx[18837]: **** File "/home/weewx/bin/user/owfs.py", line 533, in getData
Apr 30 21:20:33 supertoni weewx[18837]: **** del p['usUnits']
Apr 30 21:20:33 supertoni weewx[18837]: **** KeyError: 'usUnits'
Apr 30 21:20:33 supertoni weewx[18837]: **** Exiting.
Apr 30 21:20:43 supertoni zmc[26606]: INF [Front_Drive: 10996000 - Capturing at 14.93 fps]
Apr 30 21:20:46 supertoni zma[26488]: INF [Front_Door: 9713000 - Analysing at 10.00 fps]
Apr 30 21:20:47 supertoni zmc[15597]: INF [Rear_Drive: 7596000 - Capturing at 15.15 fps]
Apr 30 21:20:33 supertoni weewx[18837]: engine: Caught unrecoverable exception in engine:
Apr 30 21:20:33 supertoni weewx[18837]: **** 'usUnits'
Apr 30 21:20:33 supertoni weewx[18837]: **** Traceback (most recent call last):The only deviation in my weewx.conf is that I'm also using the owfs driver to grab temperature from my greenhouse & garage, theres a RPI in the garage running a one wire server (in RAM to save wear on the SD card) and weewx polls the data adding the values to extratemp1 & extratemp2:
[OWFS]
interface = 192.168.45.251:4304
driver = user.owfs
[[sensor_map]]
extraTemp1 = /28.CCBF4A050000/temperature
extraTemp2 = /28.5A134A050000/temperature
[[sensor_type]]
When WeeWx starts:
Apr 30 21:22:08 supertoni weewx[18911]: interceptor: MainThread: server will listen on :55
Apr 30 21:22:08 supertoni weewx[18911]: interceptor: MainThread: sensor map: None
Apr 30 21:22:08 supertoni weewx[18911]: owfs: service version is 0.16
Apr 30 21:22:08 supertoni weewx[18911]: owfs: binding is archive
Apr 30 21:22:08 supertoni weewx[18911]: owfs: interface is 192.168.45.251:4304
Apr 30 21:22:08 supertoni weewx[18911]: owfs: sensor map is {'extraTemp1': '/28.CCBF4A050000/temperature', 'extraTemp2': '/28.5A134A050000/temperature'}
Apr 30 21:22:08 supertoni weewx[18911]: owfs: sensor type map is {}
Apr 30 21:22:08 supertoni weewx[18911]: owfs: sensor unit system is metric
Apr 30 21:22:08 supertoni weewx[18911]: engine: StdConvert target unit is 0x1
Apr 30 21:22:08 supertoni weewx[18911]: 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 30 21:22:08 supertoni weewx[18911]: wxcalculate: The following algorithms will be used for calculations: altimeter=aaNOAA,maxSolarRad=RS
Apr 30 21:22:08 supertoni weewx[18911]: engine: Archive will use data binding wx_binding
Apr 30 21:22:08 supertoni weewx[18911]: engine: Record generation will be attempted in 'hardware'
Apr 30 21:22:08 supertoni weewx[18911]: engine: Using archive interval of 300 seconds
Apr 30 21:22:08 supertoni weewx[18911]: engine: Using binding 'wx_binding' to database 'weewx.sdb'
Apr 30 21:22:08 supertoni weewx[18911]: manager: Starting backfill of daily summaries
Apr 30 21:22:08 supertoni weewx[18911]: manager: Daily summaries up to date
Apr 30 21:22:08 supertoni weewx[18911]: engine: Starting up weewx version 3.5.0
Apr 30 21:22:08 supertoni weewx[18911]: engine: Starting main packet loop.Let me know if there is anything else needed? I suspect this is yet another version of the WH2600/HP1000/HP1003 bridge with slightly different software.
The firmware itself is the latest available from Aercus: v2.1.9
Ashley
Apr 30 21:20:33 supertoni weewx<span style="color: #660;
I wasn't sure whether to start a new thread or add to this one, please feel free to suggest starting a new one if needed.
sudo nc -l 55
GET /weatherstation/updateweatherstation.php?ID=weather&PASSWORD=password&tempf=53.1&humidity=73&dewptf=44.6&windchillf=53.1&winddir=198&windspeedmph=4.47&windgustmph=9.84&rainin=0.00&dailyrainin=0.00&weeklyrainin=0.00&monthlyrainin=0.00&yearlyrainin=0.00&solarradiation=23.80&UV=0&indoortempf=68.7&indoorhumidity=45&baromin=30.04&lowbatt=0&dateutc=2016-5-1%2018:17:35&softwaretype=Weather%20logger%20V2.1.9&action=updateraw&realtime=1&rtfreq=5 HTTP/1.0
Accept: */*
Host: 192.168.45.100
Connection: CloseJSP:
GET /weatherstation/updateweatherstation.jsp?ID=weather&PASSWORD=password&outtemp=11.7&outhumi=73&dewpoint=7.0&windchill=11.7&winddir=186&windspeed=4.4&windgust=6.7&rainrate=0.0&dailyrain=0.0&weeklyrain=0.0&monthlyrain=0.0&yearlyrain=0.0&light=2965.70&UV=60&intemp=20.4&inhumi=45&absbaro=1017.20&relbaro=1017.20&lowbatt=0&dateutc=2016-5-1%2018:18:39&softwaretype=Weather%20logger%20V2.1.9&action=updateraw&realtime=1&rtfreq=5 HTTP/1.0
Accept: */*
Host: 192.168.45.100
Connection: Close
sudo nc -l 55
GET /weatherstation/updateweatherstation.asp?ID=weather&PASSWORD=password&outtemp=11.7&outhumi=73&dewpoint=7.0&windchill=11.7&winddir=269&windspeed=2.5&windgust=3.3&rainrate=0.0&dailyrain=0.0&weeklyrain=0.0&monthlyrain=0.0&yearlyrain=0.0&light=2968.60&UV=58&intemp=20.4&inhumi=45&absbaro=1017.20&relbaro=1017.20&lowbatt=0&dateutc=2016-5-1%2018:19:59&softwaretype=Weather%20logger%20V2.1.9&action=updateraw&realtime=1&rtfreq=5 HTTP/1.0
Accept: */*
Host: 192.168.45.100Thanks again for your help.
The weather site is at: http://www.achinton.co.uk
Ashley