Environdata Weather Mate 3000

83 views
Skip to first unread message

Johnny H

unread,
Nov 4, 2021, 6:15:27 PM11/4/21
to weewx-user
G'day team,

I have one of these beasts, I'm trying to get data out of.
It uses an Xport adapter, which is just a lantronix server to stream data via telnet on port 10001.

I can communicate and see the data on the station using basic commands, but Enviondata only support their own software.

Anyone have any ideas how I can get weewx to talk to it?
here's a couple of data streams.

When telnetting to 10001 and typing R and return=
> r
r
2021/11/04 11:04:17    Title "John"
Sensor Name                       Model   Value      Unit
  1    "Wind Speed              " (WS45): +000000.05 km/h
  2    "Wind Direction          " (WD42): +000285.84 Degs
  3    "Relative Humidity       " (RH40): +000066.83 %
  4    "Air Temperature         " (TA10): +000023.07 DegC
  5    "Barometric Pressure     " (BP41): +001020.78 hPa
  21   "Battery Voltage         " (BTVL): +000011.95 V
  22   "Load Current            " (LMA ): +000043.89 mA
  23   "Solar Voltage           " (SPVL): +000012.41 V
  24   "Charge Current          " (CMA ): +000050.23 mA
  25   "Peak Wind Gust          " (PWG ): +000001.00 km/h
  26   "Inst. Wind Speed        " (IWS ): +000000.00 km/h
  27   "Inst. Wind Direction    " (    ): +000286.65 Degs
  30   "Rain Since 9am          " (    ): +000000.00 mm
  31   "Communications          " (    ): +000001.00 Mins

or typing R2 =
> rr22

2021/11/04,12:06:42,+000000.10,+000285.79,+000062.50,+000024.97,+001019.67,+000011.87,+000044.56,+000012.30,+000041.49,+000001.00,+000000.00,+000286.65,+000000.00,+000001.00
;0911-0125         ,Wind S,Wind D,Rela H,Air  T,Baro P,Batt V,Load C,Sola V,Char C,Peak W,Inst W,Inst W,Rain S,Commun
;Title "John"
;Location "Riverside"

I'm technically capable, by comparing other files, and trial and error, but really no idea where to start.
Thanks to any input.
Cheers
johnny

gjr80

unread,
Nov 4, 2021, 6:33:29 PM11/4/21
to weewx-user
Hi,

I'm technically capable, by comparing other files, and trial and error
Ah, some one who uses the same coding style as me!

If you can use python (python has a telnet library) to get valid and consistent data out of the device it should be a simple job to add some simple parsing and restructuring of the data into WeeWX loop packet format. From there it would be pretty simple to fashion a WeeWX driver that polls the station every so often and emits loop packets.

The ‘Porting to new hardware’ section in the Customisation Guide may fill in a few blanks for you (http://weewx.com/docs/customizing.htm#porting). Otherwise a bit of googling should find some example python telnet code that you can start off with. Once you can talk to your station with python we can help you cobble together a basic driver.

Gary

Johnny H

unread,
Nov 4, 2021, 9:06:16 PM11/4/21
to weewx-user
Thanks Gary,

I've got a few things to say to you.   Firstly - Thanks!  :-)   and also, thanks for the last 2.5hrs, but I worked it out.   With ZERO idea what I'm doing, other than the commands to get the data out of the logger.

I'm really hoping someone can make me whatever extension/driver I need to run import into WeeWX now, I'll be over the bloody moon.

This is my .py file:  (keep in mind I have no python knowledge at all, so this is copied from the net until I got it to work with only my logic).

import time,os,re,telnetlib,sys
host = "192.168.1.73"
port = "10001"

tn = telnetlib.Telnet(host, port)
tn.read_until(">", timeout=5) # <- add this line

str_all=tn.read_until("> ", timeout=10)
f=open("/usr/share/weewx/user/Live.txt", "w")
tn.write("r\r")
str_all=tn.read_until("> ", timeout=10)
f.write(str_all)
f.close()
tn.write("^] \r")
tn.write("quit \r")

This generates the live.txt file - which looks like this: the "r" at the top of the file is the command to retrieve latest data 

r
2021/11/05 11:14:14    Title "John"
Sensor Name                       Model   Value      Unit
  1    "Wind Speed              " (WS45): +000000.00 km/h
  2    "Wind Direction          " (WD42): +000285.84 Degs
  3    "Relative Humidity       " (RH40): +000066.00 %
  4    "Air Temperature         " (TA10): +000020.17 DegC
  5    "Barometric Pressure     " (BP41): +001019.67 hPa
  21   "Battery Voltage         " (BTVL): +000012.33 V
  22   "Load Current            " (LMA ): +000043.00 mA
  23   "Solar Voltage           " (SPVL): +000012.94 V
  24   "Charge Current          " (CMA ): +000259.87 mA
  25   "Peak Wind Gust          " (PWG ): +000000.00 km/h
  26   "Inst. Wind Speed        " (IWS ): +000000.00 km/h
  27   "Inst. Wind Direction    " (    ): +000286.65 Degs
  30   "Rain Since 9am          " (    ): +000000.00 mm
  31   "Communications          " (    ): +000001.00 Mins

Thanks again 
johnny
Message has been deleted

Johnny H

unread,
Nov 5, 2021, 12:07:32 AM11/5/21
to weewx-user
I've since got this writing to the fileparser location:  /var/tmp/datafile    ... still learning.

Then perhaps trying to workout the fileparser map - which is difficult without the examples in the readme, but think I've found the list in wview.py
I still can't work out how the map works, and wondered if I should just be more patient for a response.

Decided maybe the data I'm retrieving wont be that easy to map?  So found a few more commands I can get the latest readings from the station with - let me know if one of these is more compatible maybe?
> r1
r1
WS=   ,r2WD=   ,RH=   ,AT=   ,BP=   ,BV=   ,LC=   ,SV=   ,CC=   ,PW=   ,IW=   ,IW=   ,RS=   ,Co=
+000001.60,+000112.81,+000058.67,+000024.83,+001016.33,+000012.87,+000041.20,+000013.60,+000543.76,+000004.00,+000002.00,+000078.61,+000000.00,+000001.00
km/h  ,Degs  ,%
    ,DegC  ,hPa   ,V     ,mA    ,V     ,mA    ,km/h  ,km/h  ,Degs  ,mm    ,Mins

> r2
r2
2021/11/05,14:20:36,+000001.60,+000112.81,+000058.67,+000024.83,+001016.33,+0000r12.87,+000041.20,+000013.60,+000543.76,+000004.00,+000002.00,+000078.61,+000000.00,+000001.00
;0911-0125         ,Wind S,Wind D,Rela H3,Air  T,Baro P,Batt V,Load C,Sola V,Char C,Peak W,Inst W,Inst W,Rain S,Commun

;Title "John"
;Location "Riverside"

> r3
r3
2021/11/05,14:20:37,1.60,112.81,58.67,24.83,1016.33,12.87,41.20,13.60,543.76,4.r00,2.00,78.61,0.00,1.00

> raw
raw
D1:N/A, D2:N/A, D3:952, D4:1345,  D5:1155, D6:N/A, D7:N/A, D8:N/A,  D9:N/A, D10:N/A, D11:N/A, D12:N/A,  D13:N/A, D14:N/A, D15:N/A, D16:N/A,
A1:N/A, A2:N/A, A3:N/A, A4:N/A,
W1:666, W2:1372, W3:533, W4:1969,  W5:32000, W6:1333, W7:-352, W8:837,  W9:-186, W10:452,
S1:0, S2:1, S3:952, S4:1345,  S5:1155, S21:646, S22:184, S23:504,  S24:249, S25:1, S26:0, S27:1,  S30:0, S31:1,
>

If that makes any sense to anyone?  
Reply all
Reply to author
Forward
0 new messages