Eurochron EFWS2900 / Fine Offset WH2900 / Ambient Weather WS-2902A

309 views
Skip to first unread message

miso k

unread,
Mar 4, 2019, 7:11:43 AM3/4/19
to weewx-user
Hello.

I am trying to make the weewx to work with Eurochron EFWS2900, which is practically the same like Fine Offset WH2900 / Ambient Weather WS-2902A. 
I am using intercept driver, but I dont know if I have set it up correctly. The Webpage is not refreshing.

this is beginning of my weewx.conf file:


#   This section is for information about the station.
[Station]
    
    # Description of the station location
    location = "Trencianske Jastrabie, Hlboka ulica, 320mnm"
    
    # Latitude and longitude in decimal degrees
    latitude = 48.801
    longitude = 18.103
    
    # Altitude of the station, with unit it is in. This is downloaded from
    # from the station if the hardware supports it.
    altitude = 320, meter
    
    # Set to type of station hardware. There must be a corresponding stanza
    # in this file with a 'driver' parameter indicating the driver to be used.
    station_type = Interceptor
    
    # If you have a website, you may specify an URL
    #station_url = http://www.example.com
    
    # The start of the rain year (1=January; 10=October, etc.). This is
    # downloaded from the station if the hardware supports it.
    rain_year_start = 1
    
    # Start of week (0=Monday, 6=Sunday)
    week_start = 0
##############################################################################
[Interceptor]
    # This section is for the network traffic interceptor driver.
    
    # The driver to use:
    driver = user.interceptor
    
    # Specify the hardware device to capture.  Options include:
    #   acurite-bridge - acurite internet bridge, smarthub, or access
    #   observer - fine offset WH2600/HP1000/HP1003, ambient WS2902
    #   lw30x - oregon scientific LW301/LW302
    #   lacrosse-bridge - lacrosse GW1000U/C84612 internet bridge
    #   wu-client - any hardware that uses the weather underground protocol
    device_type = observer
    mode = sniff
    iface = wlan0
    pcap_filter = src 192.168.1.151 and dst port 80
#    port = 8080
#    address = 192.168.1.151
##############################################################################
[Simulator]
    # This section is for the weewx weather station simulator
    
    # The time (in seconds) between LOOP packets.
    loop_interval = 2.5
    
    # The simulator mode can be either 'simulator' or 'generator'.
    # Real-time simulator. Sleep between each LOOP packet.
    mode = simulator
    # Generator.  Emit LOOP packets as fast as possible (useful for testing).
    #mode = generator
    
    # The start time. Format is YYYY-mm-ddTHH:MM. If not specified, the default 
    # is to use the present time.
    #start = 2011-01-01T00:00
    
    # The driver to use:
    driver = weewx.drivers.simulator

What do I do wrong there?

Thank you,
Michal


Scott Grayban

unread,
Mar 4, 2019, 2:46:36 PM3/4/19
to weewx-user
Helps if you paste logs and set debug = 1 in the weewx.conf

miso k

unread,
Mar 6, 2019, 4:26:18 AM3/6/19
to weewx-user
thank you Scott,
this is the result:

pi@raspberrypi:/etc/weewx $ sudo tail -f /var/log/syslog
Mar  6 10:22:42 raspberrypi weewx[25014]: engine: Finished loading service weewx.restx.StdAWEKAS
Mar  6 10:22:42 raspberrypi weewx[25014]: engine: Loading service weewx.engine.StdPrint
Mar  6 10:22:42 raspberrypi weewx[25014]: engine: Finished loading service weewx.engine.StdPrint
Mar  6 10:22:42 raspberrypi weewx[25014]: engine: Loading service weewx.engine.StdReport
Mar  6 10:22:42 raspberrypi weewx[25014]: engine: Finished loading service weewx.engine.StdReport
Mar  6 10:22:42 raspberrypi weewx[25014]: engine: Starting up weewx version 3.9.1
Mar  6 10:22:42 raspberrypi weewx[25014]: engine: Station does not support reading the time
Mar  6 10:22:42 raspberrypi weewx[25014]: engine: Starting main packet loop.
Mar  6 10:22:52 raspberrypi weewx[25014]: interceptor: MainThread: empty queue


My station does not have any open port. Is it OK to have it like this?

 device_type = observer
    mode = sniff
    iface = wlan0
    pcap_filter = src 192.168.1.151 and dst port 80


Thanks,
Michal


Dňa pondelok, 4. marca 2019 20:46:36 UTC+1 Scott Grayban napísal(-a):

Scott Grayban

unread,
Mar 6, 2019, 5:26:39 AM3/6/19
to weewx-user
I need to see more of the log. Let it cycle a few times so I can see what it's doing.
Message has been deleted

miso k

unread,
Mar 6, 2019, 9:22:50 AM3/6/19
to weewx-user
so it continues always with the line Mar  6 14:08:13 raspberrypi weewx[25014]: interceptor: MainThread: empty queue


pi@raspberrypi:/etc/weewx $ sudo tail -f /var/log/syslog
Mar  6 14:06:23 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:06:33 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:06:40 raspberrypi vncserver-x11[439,root]: HostedRendezvous: Connection to [mFRmAi-o5XJi-DFfFZP] is from user "<-...@gmail.com>"
Mar  6 14:06:40 raspberrypi vncserver-x11[439,root]: Connections: connected: ---@gmail.com (via hc-2-gb-slg-1.services.vnc.com)
Mar  6 14:06:40 raspberrypi vncserver-x11[439,root]: Connections: authenticated: ---@gmail.com (via hc-2-gb-slg-1.services.vnc.com), as pi (f permissions)
Mar  6 14:06:41 raspberrypi vncserver-x11[439,root]: SPrintConnMgr: Failed to add printer: server-error-service-unavailable
Mar  6 14:06:43 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:06:53 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:07:03 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:07:13 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:07:23 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:07:33 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:07:43 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:07:53 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:08:03 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:08:13 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:08:23 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:08:33 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:08:43 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:08:53 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:09:03 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:09:13 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:09:23 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:09:33 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:09:43 raspberrypi weewx[25014]: interceptor: MainThread: empty queue
Mar  6 14:09:53 raspberrypi weewx[25014]: interceptor: MainThread: empty queue

thank you,
Michal

Dňa streda, 6. marca 2019 11:26:39 UTC+1 Scott Grayban napísal(-a):

Scott Grayban

unread,
Mar 6, 2019, 4:30:57 PM3/6/19
to weewx-user
Looks like nothing is getting sniffed from port 80. Are you sure you setup hostapd correctly and linked your console to that wifi ssdi ?

miso

unread,
Mar 7, 2019, 1:02:29 AM3/7/19
to weewx...@googlegroups.com
I did not setup any hostapd. Did not know about it. https://github.com/weewx/weewx/wiki/hostapd-WiFi-setup-for-Interceptor-driver
So raspberry will be running hostapd and the weatherstation display will be connected to raspberry? 
Sorry for the stupid questions, I am not a programmer, just an ordinary guy trying... 

thanks.. 
miso


st 6. 3. 2019 o 22:31 Scott Grayban <sgra...@gmail.com> napísal(a):
--
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/N3LDNaKZcEQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Andrew Milner

unread,
Mar 7, 2019, 3:46:42 AM3/7/19
to weewx-user
the prerequisites in the wiki link you posted said to install hostapad (under the bit about removing bind9) - and dnsmasq and goes on to tell you how to configure both of those.

Scott Grayban

unread,
Mar 7, 2019, 11:06:46 PM3/7/19
to weewx-user
WS connects to hostapd WiFi which observer sniffs port 80 to pull the data the console is sending which is then saved to the weewx db.

All that creates the webpages for the weather.

miso k

unread,
Mar 8, 2019, 4:16:38 PM3/8/19
to weewx-user
thanks Scott,
i have done everything until this:
interface eth0
static ip_address=192.168.0.4/255.255.255.0 --------Raspberry one, or Weather Station???
static routers=192.168.0.1
static domain_name_servers=8.8.8.8 8.8.4.4

# Defaults from Raspberry Pi configuration
hostname  ---do i need to fill anything?
clientid ---do i need to fill anything?
persistent option rapid_commit option domain_name_servers, domain_name, domain_search, host_name
option classless_static_routes option ntp_servers require dhcp_server_identifier slaac private nohook lookup-hostname # RaspAP-WebGui wireless configuration interface wlan0 static ip_address=10.3.141.1/24
---Raspberry, or WS? static routers=10.3.141.1 ---again routers IP? static domain_name_server=1.1.1.1 8.8.8.8
my OpenWRT router is 192.168.1.1
domain-needed
interface=wlan0
dhcp-range=10.3.141.50,10.3.141.255,255.255.255.0,12h  ---which IPs 192.168.1.5,192.168.1.255?
note - i am running home automation webpage server on port 8080
Thanks again :)
Michal, Slovakia

Dňa piatok, 8. marca 2019 5:06:46 UTC+1 Scott Grayban napísal(-a):

Scott Grayban

unread,
Mar 8, 2019, 4:29:05 PM3/8/19
to weewx-user
Directions are clearly written in the HOWTO

Follow them

Scott Grayban

unread,
Mar 8, 2019, 4:36:29 PM3/8/19
to weewx-user
There are only 2 places you edit -- the PI's IP for eth0
and
The WiFi SSDI name and Password.

Everything else is copy/paste.

miso

unread,
Mar 8, 2019, 5:23:35 PM3/8/19
to weewx...@googlegroups.com
F******CK!!!
That is not true! I have Ruined my whole Domoticz setup. I cant connect to my RPi now at all!!! so much hours wasted!!!!!!!!!!


miso


pi 8. 3. 2019 o 22:36 Scott Grayban <sgra...@gmail.com> napísal(a):
--

Tom Robertson

unread,
Mar 8, 2019, 5:55:35 PM3/8/19
to weewx-user
Temporarily hook your RPI to a monitor and attach a mouse and keyboard.  Make changed to the wifi setup.  Then reboot.  You can also see what IP address was assigned to the RPI.

-----
Tom

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+...@googlegroups.com.

Scott Grayban

unread,
Mar 8, 2019, 6:16:11 PM3/8/19
to weewx-user
There are many things in my life that are my fault.... this is not one of them.

It sounds like you don't understand Linux networking and need to take some classes online.

And for the record my HOWTO has been followed by a few people with no issues... So yes it is TRUE.

miso

unread,
Mar 8, 2019, 6:16:15 PM3/8/19
to weewx...@googlegroups.com
done.
Raspbian running, but not the Domoticz. The weewx is not generating the webpage too...

miso


pi 8. 3. 2019 o 23:55 Tom Robertson <nine...@gmail.com> napísal(a):

miso

unread,
Mar 8, 2019, 6:25:33 PM3/8/19
to weewx...@googlegroups.com
domoticz running again, thanks Tom :)

@Scott: no, I dont understand Linux networking, as I wrote, I am not a PC guy. I will check the link at the end of your man to try to understand it deeper.

miso


so 9. 3. 2019 o 0:16 Scott Grayban <sgra...@gmail.com> napísal(a):

Scott Grayban

unread,
Mar 8, 2019, 6:40:03 PM3/8/19
to weewx-user
It's clearly documented o how to setup hostapd.

There are only 2 places you have to manually edit. The IP/Network that dnsmasq uses and the SSDI ad PASSWORD that you need to connect the WS to the newly created WiFi hotspot.

It can't get any simpler than that.

Scott Grayban

unread,
Mar 8, 2019, 6:54:06 PM3/8/19
to weewx-user
On your PI as ROOT type

ifconfig

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.4  netmask 255.255.255.0  broadcast 192.168.0.255

Second lie tells you what your IP and NETMASK is.

Now take those numbers and put them in the /etc/dhcpcd.conf like this..... and put your routers IP on the 3rd line and leave the domain_name_servers as is.

interface eth0
static ip_address=192.168.0.4/255.255.255.0

static routers=192.168.0.1
static domain_name_servers=8.8.8.8 8.8.4.4

Now save that file with all the other info AS IS.

Edit /etc/hostapd/hostapd.conf
  1. Edit for your AP ssid name ssid=YOUR-AP-NAME
  2. Make sure you edit wpa_passphrase wpa_passphrase=WIFI-PASSWORD
Save file leaving everything else AS IS.

Now if you copied and pasted all the other steps EXACTLY as I wrote then your setup will work.

Reboot pi and edit your WS WiFi access to use the SSDI name you gave in /etc/hostapd/hostapd.conf and the PASSWORD you set.

Then make sure that observer is sniffing port 80 on wlan0

miso

unread,
Mar 9, 2019, 2:17:19 AM3/9/19
to weewx...@googlegroups.com
No, there are several IP addresses that I need to edit. For me, as an user without Linux networking knowledges, it is not clear which IP is what.

Michal

Dňa so 9. 3. 2019, 0:40 Scott Grayban <sgra...@gmail.com> napísal(a):

Scott Grayban

unread,
Mar 9, 2019, 2:25:17 AM3/9/19
to weewx-user
The only one you need is eth0

I don't understand why this is difficult....

As root type ifconfig and paste it here

Scott Grayban

unread,
Mar 9, 2019, 2:29:46 AM3/9/19
to weewx-user
For someone that is playing with Domoticz -- a HA program running on linux -- this should be a snap.

miso k

unread,
Mar 11, 2019, 10:57:20 AM3/11/19
to weewx-user
thanks, I will try it

Dňa sobota, 9. marca 2019 8:29:46 UTC+1 Scott Grayban napísal(-a):
Reply all
Reply to author
Forward
0 new messages