Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

Local API access to HP2650 (EDIT: HP2560!)

GW1000 WiFi gateway
Post Reply
SRHelicity
Posts: 2
Joined: Wed 19 Jul 2023 2:10 am
Weather Station: HP2560-C
Operating System: Windows 11

Local API access to HP2650 (EDIT: HP2560!)

Post by SRHelicity »

[Edit: So, it turns out I mixed up model numbers. As was pointed out to me, I have the HP2560-C, which is NOT the WH2650. The former doesn't have local API access; the latter does.]

I have a new Ecowitt HP2650_C. I've been able to get CumulusMX set up to read the HTTP data coming from the 2650 using the HTTP (Ecowitt) station type with the custom server set on the console. Everything works great in that configuration. However, as I understand it, the local API access can pull in older data from the console rather than having to wait around for the console to push the latest ob (which I have set to happen every 1 min) and can pull data every ~16 s. I *think* the Ecowitt API is supposed to work with the 2650 -- see, e.g., https://osswww.ecowitt.net/uploads/2022 ... v1.6.4.pdf . In the command window / terminal, it says "Connected to station", which sounds good. However, the localhost:8998 site is showing all zeros from each sensor, and there are errors shown in the log file.

Here's a snippet of potentially relevant code from the day logfile:

Code: Select all

2023-07-18 21:00:00.972 Using IP address = 192.168.50.246 Port = 45000
2023-07-18 21:00:00.972 Ecowitt Gateway Connect attempt 1
2023-07-18 21:00:00.972 Ecowitt Gateway reconnected
2023-07-18 21:00:00.972 Connected OK
2023-07-18 21:00:00.972 Reading firmware version
2023-07-18 21:00:01.005 Checksum: Error - Bad checksum
2023-07-18 21:00:01.005 DoCommand(CMD_READ_FIRMWARE_VERSION): Invalid response
2023-07-18 21:00:01.005 Checksum: Error - Bad checksum
2023-07-18 21:00:01.005 command resp=80, checksum=BAD
2023-07-18 21:00:01.005 Received FF-FF-50-19-15-45-61-73-79-57-65-61-74-68-65-72-50-72-6F-5F-56-35-2E-31-2E
2023-07-18 21:00:01.005 Ecowitt firmware version: ???
2023-07-18 21:00:01.006 Reading Ecowitt system info
2023-07-18 21:00:01.427 This Cumulus MX instance is running the latest version
2023-07-18 21:00:03.518 DoCommand(CMD_READ_SSSS): Error - Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
2023-07-18 21:00:03.518 Attempting to reopen the TCP port
2023-07-18 21:00:04.533 Ecowitt Gateway Connect attempt 1
2023-07-18 21:00:04.533 Ecowitt Gateway reconnected
2023-07-18 21:00:04.533 Nothing returned from System Info!
2023-07-18 21:00:04.539 Reading sensor ids
2023-07-18 21:00:07.044 DoCommand(CMD_READ_SENSOR_ID_NEW): Error - Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
2023-07-18 21:00:07.044 Attempting to reopen the TCP port
2023-07-18 21:00:08.052 Ecowitt Gateway Connect attempt 1
2023-07-18 21:00:08.052 Ecowitt Gateway reconnected
2023-07-18 21:00:08.052 Loading last N hour data from data logs: 7/18/2023 8:49:00 PM
2023-07-18 21:00:08.052 LoadRecent: Attempting to load 7 days of entries to recent data list
2023-07-18 21:00:08.084 LoadRecent: Loaded 0 of 1 new entries to recent database
2023-07-18 21:00:08.101 LoadLast3Hour: Attempting to load 3 hour data list
2023-07-18 21:00:08.101 LoadLast3Hour: Loaded 79 entries to last 3 hour data list
I've attached the complete logfile to this email.

Any help you can provide would be greatly appreciated! Thank you!
You do not have the required permissions to view the files attached to this post.
Last edited by SRHelicity on Wed 19 Jul 2023 3:53 pm, edited 1 time in total.
water01
Posts: 3315
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Local API access to HP2650

Post by water01 »

Looking at your log it would appear that you have picked up a GW1000 not a HP2650 using the Ecowitt protocol.

Yours states

Code: Select all

2023-07-18 21:00:00.812 Station type: 12 - GW1000
whereas my HP2551 using HTTP protocol states

Code: Select all

2023-07-15 19:06:28.082 Station type: 14 - HTTP Ecowitt
Are you allowing CumulusMX to pick up the station or have you directly pointed it at the IP address of the HP2650?
David
Image
User avatar
mcrossley
Posts: 12951
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Local API access to HP2650

Post by mcrossley »

According to the "bible" I use the 2650_C only supports the WUnderground and Ecowitt HTTP methods, there is no local API.

https://www.wxforum.net/index.php?topic ... #msg417956
water01
Posts: 3315
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Local API access to HP2650

Post by water01 »

Mark according to the User manual on the Ecowitt.com you can set up a customised server.

Image
David
Image
SamiS
Posts: 403
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Local API access to HP2650

Post by SamiS »

@water01 maybe you have misunderstood the terms?

Cusomized Server means that the console is actively sending data to the selected location.

Local API on the console means that an external client (eg CumulusMX) can send queries to the console to get the requested data.
water01
Posts: 3315
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Local API access to HP2650

Post by water01 »

These are the same settings as my HP2551, so the Customised server can send out HTTP via Ecowitt (i.e. Same as Ecowitt) to an IP Host as demonstrated which can be picked up by CumulusMX as demonstrated by the manual settings page.
David
Image
SamiS
Posts: 403
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Local API access to HP2650

Post by SamiS »

SRHelicity wrote: Wed 19 Jul 2023 2:20 am I have a new Ecowitt HP2650_C. I've been able to get CumulusMX set up to read the HTTP data coming from the 2650 using the HTTP (Ecowitt) station type with the custom server set on the console. Everything works great in that configuration. However, as I understand it, the local API access can pull in older data from the console rather than having to wait around for the console to push the latest ob (which I have set to happen every 1 min) and can pull data every ~16 s. I *think* the Ecowitt API is supposed to work with the 2650 -- see, e.g., https://osswww.ecowitt.net/uploads/2022 ... v1.6.4.pdf .
I think you have mixed the station models. HP2560-C (not 2650) is a graphical display console, and it does not have local api.

However WH2650 is a small black displayless gateway (functionally comparable to GW1000/1100) and it does have the local api.
Last edited by SamiS on Wed 19 Jul 2023 7:29 pm, edited 2 times in total.
SamiS
Posts: 403
Joined: Sun 27 Feb 2011 5:13 pm
Weather Station: Ecowitt HP2551 & GW1100
Operating System: Raspberry Pi OS
Location: Kangasala, Finland

Re: Local API access to HP2650

Post by SamiS »

water01 wrote: Wed 19 Jul 2023 10:12 am These are the same settings as my HP2551, so the Customised server can send out HTTP via Ecowitt (i.e. Same as Ecowitt) to an IP Host as demonstrated which can be picked up by CumulusMX as demonstrated by the manual settings page.
Yes, but the thread starter specifically was asking about getting the local api to work, not about the customized server.
SRHelicity
Posts: 2
Joined: Wed 19 Jul 2023 2:10 am
Weather Station: HP2560-C
Operating System: Windows 11

Re: Local API access to HP2650

Post by SRHelicity »

SamiS wrote: Wed 19 Jul 2023 10:18 am
SRHelicity wrote: Wed 19 Jul 2023 2:20 am I have a new Ecowitt HP2650_C. I've been able to get CumulusMX set up to read the HTTP data coming from the 2650 using the HTTP (Ecowitt) station type with the custom server set on the console. Everything works great in that configuration. However, as I understand it, the local API access can pull in older data from the console rather than having to wait around for the console to push the latest ob (which I have set to happen every 1 min) and can pull data every ~16 s. I *think* the Ecowitt API is supposed to work with the 2650 -- see, e.g., https://osswww.ecowitt.net/uploads/2022 ... v1.6.4.pdf .
I think you have mixed the station models. HP2560-C (not 2650) is a graphical display console, and it does not have local api.

However WH2650 is a small black displayless gateway (functionally comparable to GW1000/1200) and it does have the local api.
:groan: That's exactly what I did, I think. I have the HP2560-C console, which as you note is NOT the WH2650 gateway. Ecowitt/FO and their naming conventions...

Sorry for wasting y'all's time! CumulusMX is a great tool that was surprisingly easy to configure on my Windows 11 machine -- thanks! Mods can delete this now-useless thread, unless there's a non-trivial chance that someone else will mix up model numbers like I did!
Post Reply