[weewx-user] Re: Environdata Weather Mate 3000

2021-11-04 Thread Johnny H
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=
+01.60,+000112.81,+58.67,+24.83,+001016.33,+12.87,+41.20,+13.60,+000543.76,+04.00,+02.00,+78.61,+00.00,+01.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,+01.60,+000112.81,+58.67,+24.83,+001016.33,+r12.87,+41.20,+13.60,+000543.76,+04.00,+02.00,+78.61,+00.00,+01.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?  

On Friday, November 5, 2021 at 12:06:16 PM UTC+11 Johnny H wrote:

> 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:14Title "John"
> Sensor Name   Model   Value  Unit
>   1"Wind Speed  " (WS45): +00.00 km/h
>   2"Wind Direction  " (WD42): +000285.84 Degs
>   3"Relative Humidity   " (RH40): +66.00 %
>   4"Air Temperature " (TA10): +20.17 DegC
>   5"Barometric Pressure " (BP41): +001019.67 hPa
>   21   "Battery Voltage " (BTVL): +12.33 V
>   22   "Load Current" (LMA ): +43.00 mA
>   23   "Solar Voltage   " (SPVL): +12.94 V
>   24   "Charge Current  " (CMA ): +000259.87 mA
>   25   "Peak Wind Gust  " (PWG ): +00.00 km/h
>   26   "Inst. Wind Speed" (IWS ): +00.00 km/h
>   27   "Inst. Wind Direction" (): +000286.65 Degs
>   30   "Rain Since 9am  " (): +00.00 mm
>   31   "Communications  " (): +01.00 Mins
> > 
>
> Thanks again 
> johnny
> On Friday, November 5, 2021 at 9:33:29 AM UTC+11 gjr80 wrote:
>
>> 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
>> On Friday, 5 November 2021 at 08:15:27 UTC+10 john...@gmail.com wrote:
>>
>>> G'day team,
>>>
>>> I have one of these beasts, I'm trying to get data out of.
>>> It 

[weewx-user] Re: Environdata Weather Mate 3000

2021-11-04 Thread Johnny H
Sorry I should have said also - I need to run this using 
sudo python 5.py to allow writing of the file, and I'm not sure why, 
regardless of the file location, even my \home\ folder ...   I dont know 
enough about Linux, like I said, just enough knowledge :)

On Friday, November 5, 2021 at 9:33:29 AM UTC+11 gjr80 wrote:

> 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
> On Friday, 5 November 2021 at 08:15:27 UTC+10 john...@gmail.com wrote:
>
>> 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:17Title "John"
>> Sensor Name   Model   Value  Unit
>>   1"Wind Speed  " (WS45): +00.05 km/h
>>   2"Wind Direction  " (WD42): +000285.84 Degs
>>   3"Relative Humidity   " (RH40): +66.83 %
>>   4"Air Temperature " (TA10): +23.07 DegC
>>   5"Barometric Pressure " (BP41): +001020.78 hPa
>>   21   "Battery Voltage " (BTVL): +11.95 V
>>   22   "Load Current" (LMA ): +43.89 mA
>>   23   "Solar Voltage   " (SPVL): +12.41 V
>>   24   "Charge Current  " (CMA ): +50.23 mA
>>   25   "Peak Wind Gust  " (PWG ): +01.00 km/h
>>   26   "Inst. Wind Speed" (IWS ): +00.00 km/h
>>   27   "Inst. Wind Direction" (): +000286.65 Degs
>>   30   "Rain Since 9am  " (): +00.00 mm
>>   31   "Communications  " (): +01.00 Mins
>>
>> or typing R2 =
>> > rr22
>>
>>
>> 2021/11/04,12:06:42,+00.10,+000285.79,+62.50,+24.97,+001019.67,+11.87,+44.56,+12.30,+41.49,+01.00,+00.00,+000286.65,+00.00,+01.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
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/f1171757-b943-4d8e-b89b-d76417a999d1n%40googlegroups.com.


[weewx-user] Re: Environdata Weather Mate 3000

2021-11-04 Thread Johnny H
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:14Title "John"
Sensor Name   Model   Value  Unit
  1"Wind Speed  " (WS45): +00.00 km/h
  2"Wind Direction  " (WD42): +000285.84 Degs
  3"Relative Humidity   " (RH40): +66.00 %
  4"Air Temperature " (TA10): +20.17 DegC
  5"Barometric Pressure " (BP41): +001019.67 hPa
  21   "Battery Voltage " (BTVL): +12.33 V
  22   "Load Current" (LMA ): +43.00 mA
  23   "Solar Voltage   " (SPVL): +12.94 V
  24   "Charge Current  " (CMA ): +000259.87 mA
  25   "Peak Wind Gust  " (PWG ): +00.00 km/h
  26   "Inst. Wind Speed" (IWS ): +00.00 km/h
  27   "Inst. Wind Direction" (): +000286.65 Degs
  30   "Rain Since 9am  " (): +00.00 mm
  31   "Communications  " (): +01.00 Mins
> 

Thanks again 
johnny
On Friday, November 5, 2021 at 9:33:29 AM UTC+11 gjr80 wrote:

> 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
> On Friday, 5 November 2021 at 08:15:27 UTC+10 john...@gmail.com wrote:
>
>> 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:17Title "John"
>> Sensor Name   Model   Value  Unit
>>   1"Wind Speed  " (WS45): +00.05 km/h
>>   2"Wind Direction  " (WD42): +000285.84 Degs
>>   3"Relative Humidity   " (RH40): +66.83 %
>>   4"Air Temperature " (TA10): +23.07 DegC
>>   5"Barometric Pressure " (BP41): +001020.78 hPa
>>   21   "Battery Voltage " (BTVL): +11.95 V
>>   22   "Load Current" (LMA ): +43.89 mA
>>   23   "Solar Voltage   " (SPVL): +12.41 V
>>   24   "Charge Current  " (CMA ): +50.23 mA
>>   25   "Peak Wind Gust  " (PWG ): +01.00 km/h
>>   26   "Inst. Wind Speed" (IWS ): +00.00 km/h
>>   27   "Inst. Wind Direction" (): +000286.65 Degs
>>   30   "Rain Since 9am  " (): +00.00 mm
>>   31   "Communications  " (): +01.00 Mins
>>
>> or typing R2 =
>> > rr22
>>
>>
>> 2021/11/04,12:06:42,+00.10,+000285.79,+62.50,+24.97,+001019.67,+11.87,+44.56,+12.30,+41.49,+01.00,+00.00,+000286.65,+00.00,+01.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
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To 

[weewx-user] Re: Environdata Weather Mate 3000

2021-11-04 Thread gjr80
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
On Friday, 5 November 2021 at 08:15:27 UTC+10 john...@gmail.com wrote:

> 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:17Title "John"
> Sensor Name   Model   Value  Unit
>   1"Wind Speed  " (WS45): +00.05 km/h
>   2"Wind Direction  " (WD42): +000285.84 Degs
>   3"Relative Humidity   " (RH40): +66.83 %
>   4"Air Temperature " (TA10): +23.07 DegC
>   5"Barometric Pressure " (BP41): +001020.78 hPa
>   21   "Battery Voltage " (BTVL): +11.95 V
>   22   "Load Current" (LMA ): +43.89 mA
>   23   "Solar Voltage   " (SPVL): +12.41 V
>   24   "Charge Current  " (CMA ): +50.23 mA
>   25   "Peak Wind Gust  " (PWG ): +01.00 km/h
>   26   "Inst. Wind Speed" (IWS ): +00.00 km/h
>   27   "Inst. Wind Direction" (): +000286.65 Degs
>   30   "Rain Since 9am  " (): +00.00 mm
>   31   "Communications  " (): +01.00 Mins
>
> or typing R2 =
> > rr22
>
>
> 2021/11/04,12:06:42,+00.10,+000285.79,+62.50,+24.97,+001019.67,+11.87,+44.56,+12.30,+41.49,+01.00,+00.00,+000286.65,+00.00,+01.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
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/689755d8-2d87-4f8f-8999-f637a3117701n%40googlegroups.com.