Page 1 of 1

B4017 version string error

Posted: Mon 25 Mar 2024 3:48 pm
by broadstairs
This suddenly popped up so thought I should mention it. The error message said ' ProcessData: Error - Version string portion was too short or too long. (Parameter 'input')'. See log extract... this is running with a custom server input to CMX from a GW1200 gateway.

Code: Select all

2024-03-25 13:00:03.451 Ecowitt Gateway uptime = 1132703 secs - 13.02:38:23
2024-03-25 13:00:03.451 DoWind: latest=12.8, speed=5.4 - Current: gust=17.4, speed=6.8
2024-03-25 13:00:03.452 DoWind: New: gust=17.4, speed=6.8, latest:5.4
2024-03-25 13:00:03.453 ApplyData: Complete
2024-03-25 13:00:03.453 API.GetStationList: Get Ecowitt Station List
2024-03-25 13:00:03.453 Ecowitt URL = https://api.ecowitt.net/api/v3/device/list?application_key=<<App-key>>&api_key=<<User-key>>
2024-03-25 13:00:04.256 API.GetStationList: Ecowitt API Station List Response code: 200
2024-03-25 13:00:04.256 API.GetStationList: Ecowitt API Station List Response: {"code":0,"msg":"success","time":"1711371603","data":{"total":4,"totalPage":1,"pageNum":1,"list":[{"id":175221,"name":"GW1200","mac":"58:CF:79:DF:C9:64","type":1,"date_zone_id":"Europe\/London","createtime":1708122654,"longitude":1.4399615,"latitude":51.3634071,"stationtype":"GW1200A_V1.2.8"},{"id":135555,"name":"GW2000","mac":"94:3C:C6:44:FA:6B","type":1,"date_zone_id":"Europe\/London","createtime":1685006400,"longitude":1.439825,"latitude":51.363315,"stationtype":"GW2000A_V3.1.2"},{"id":59940,"name":"GW1100A","mac":"E8:68:E7:86:BF:D3","type":1,"date_zone_id":"Europe\/London","createtime":1631355678,"longitude":1.440117,"latitude":51.36345,"stationtype":"GW1100A_V2.3.1"},{"id":46543,"name":"GW1000A","mac":"48:3F:DA:55:CA:1E","type":1,"date_zone_id":"Europe\/London","createtime":1617634207,"longitude":1.440109,"latitude":51.363445,"stationtype":"GW1000A_V1.7.7"}]}}
2024-03-25 13:00:04.256 API.GetStationList: Station: id=175221, mac/imei=58:CF:79:DF:C9:64, name=GW1200, type=GW1200A_V1.2.8
2024-03-25 13:00:04.256 API.GetStationList: Station: id=135555, mac/imei=94:3C:C6:44:FA:6B, name=GW2000, type=GW2000A_V3.1.2
2024-03-25 13:00:04.256 API.GetStationList: Station: id=59940, mac/imei=E8:68:E7:86:BF:D3, name=GW1100A, type=GW1100A_V2.3.1
2024-03-25 13:00:04.256 API.GetStationList: Station: id=46543, mac/imei=48:3F:DA:55:CA:1E, name=GW1000A, type=GW1000A_V1.7.7
2024-03-25 13:00:04.256 API.GetStationList: Found vers=, model=
2024-03-25 13:00:04.256 ProcessData: Error - Version string portion was too short or too long. (Parameter 'input')
2024-03-25 13:00:10.330 Current CPU temp = 27.8°C
2024-03-25 13:00:14.453 ProcessData: Processing posted data
2024-03-25 13:00:14.453 ProcessData: Payload = PASSKEY=<PassKey>&stationtype=GW1200A_V1.2.8&runtime=1132714&heap=66656&dateutc=2024-03-25+13:00:15&tempinf=69.62&humidityin=52&baromrelin=29.574&baromabsin=29.456&tempf=51.98&humidity=67&winddir=148&windspeedmph=5.82&windgustmph=12.75&maxdailygust=28.18&solarradiation=405.53&uv=2&rainratein=0.000&eventrainin=0.000&hourlyrainin=0.000&dailyrainin=0.000&weeklyrainin=0.000&monthlyrainin=1.106&yearlyrainin=5.075&totalrainin=5.075&temp1f=62.96&humidity1=69&temp2f=69.08&humidity2=57&pm25_ch1=0.0&pm25_avg_24h_ch1=2.2&lightning_num=0&lightning=37&lightning_time=1711321636&wh80batt=3.28&wh26batt=0&batt1=0&batt2=0&pm25batt1=4&wh57batt=5&freq=868M&model=GW1200A&interval=10
Stuart

Re: B4017 version string error

Posted: Mon 25 Mar 2024 8:14 pm
by mcrossley
Thanks Stuart. I'll take a look at this when I'm back up to speed (I had some minor surgery yesterday!}

Re: B4017 version string error

Posted: Mon 25 Mar 2024 9:44 pm
by broadstairs
No problem Mark, it's not causing any problem that I can see. Hope you recover OK.

Stuart

Re: B4017 version string error

Posted: Tue 26 Mar 2024 8:58 am
by The Dalek Hunter
I have got a string error as well on one of my V4 sites - the one using Ecowitt EasyWeather Pro

When CMX starts I get

Opening station type 14 - HTTP Ecowitt
Last update: 2024-03-26T07:00:00
System.ArgumentException: Version string portion was too short or too long. (Parameter 'input')
at System.Version.ParseVersion(ReadOnlySpan`1 input, Boolean throwOnFailure)
at System.Version.Parse(String input)
at System.Version..ctor(String version)
at CumulusMX.HttpStationEcowitt..ctor(Cumulus cumulus, WeatherStation station)
at CumulusMX.Cumulus.Initialise(Int32 HTTPport, Boolean DebugEnabled, String startParms)
at CumulusMX.Program.RunAsAConsole(Int32 port, Boolean debug)
at CumulusMX.Program.Main(String[] args)
at CumulusMX.Program.<Main>(String[] args)
**** An error has occurred - please zip up the MXdiags folder and post it in the forum ****
Press Enter to terminate


I have attached MXdiags - for the moment I have gone back to V3 for this site and this is working ok.
All my other V4 sites are fine

Re: B4017 version string error

Posted: Tue 26 Mar 2024 2:42 pm
by mcrossley
Can I ask - do you have the MAC address for your station entered in the MX config?

Re: B4017 version string error

Posted: Tue 26 Mar 2024 3:23 pm
by broadstairs
Yes the .ini file does contain a mac address under the GW1000 section but this is a type 14 station driven from the Custom Server option on the GW1200. I wonder if the mac is a throwback from when it used the local API? The EcowittMacAddress in the .ini is blank. The custom sever option was set manually by me.

Stuart

Re: B4017 version string error

Posted: Tue 26 Mar 2024 3:42 pm
by The Dalek Hunter
I am away from home for a few days at the moment but a quick check via VPN shows there is a MAC address in the settings for this station. Should I delete it and try again (when home)

Re: B4017 version string error

Posted: Tue 26 Mar 2024 5:48 pm
by mcrossley
No do not delete the MAC

I've fixed the code so it will not crash produce an error. I'll follow up with how the MAC is captured and used - primarily for ecowitt.net when using catch-up on the primary station.

Re: B4017 version string error

Posted: Tue 26 Mar 2024 7:52 pm
by The Dalek Hunter
Many thanks - I will look forward to the next v4 beta

Re: B4017 version string error

Posted: Wed 27 Mar 2024 11:24 am
by mcrossley
Could you both let me know what MAC you have configured please?

Re: B4017 version string error

Posted: Wed 27 Mar 2024 11:33 am
by broadstairs
Mark mine is MACAddress=58:CF:79:DF:C9:64 in the GW1000 section of the .ini file which is the one for the Custom Server gateway in use.

Stuart

Re: B4017 version string error

Posted: Wed 27 Mar 2024 11:48 am
by mcrossley
Thanks Stuart

Re: B4017 version string error

Posted: Wed 27 Mar 2024 1:34 pm
by The Dalek Hunter
Mine is bc:FF:4D:10:E8:E4

Re: B4017 version string error

Posted: Thu 28 Mar 2024 10:18 am
by mcrossley
Thanks.

Re: B4017 version string error

Posted: Sun 31 Mar 2024 8:22 am
by The Dalek Hunter
Working fine with the latest beta version - many thanks