Author Topic: WeeWX with GW1000 API connection  (Read 766 times)

0 Members and 1 Guest are viewing this topic.

Offline galfert

  • Global Moderator
  • Forecaster
  • *****
  • Posts: 5308
WeeWX with GW1000 API connection
« on: July 23, 2020, 05:08:39 PM »
It has been posted elsewhere, but I just wanted to let people know that WeeWX now supports using the GW1000 API. Previously WeeWX users needed to use the Interceptor driver along with "Customized" server upload settings on the console. This means that now WeeWX can utilize the GW1000 much as other software currently does instead of needing to use the "Customized" server upload settings.

Still early days for this driver but I'm sure issues if any will get addressed soon.

You can get the GW1000 API driver for WeeWX here:
https://github.com/gjr80/weewx-gw1000

This GW1000 API driver works by directly querying the GW1000. The GW1000 does not need any configuration settings in order for this to work. Essentially the GW1000 API driver finds the GW1000 on the local network and it continually taps it for live data....much as how the WS View app works.

A great benefit of using the API method is that it requires no user programming when an application such as WeeWX and this new driver is utilized. It also allows you to run multiple applications to get live data from the GW1000. If you want to run WeeWX and then test a different application you can do this simultaneously. This can facilitate testing of different weather software or for migration to a new system, like if you want to migrate from an old system to a new system, you don't need to take down the original system as you spin up the new one and they both get data at the same time.

« Last Edit: July 23, 2020, 05:17:58 PM by galfert »
Ecowitt GW1000 | Meteobridge (WeatherBridge)
WU: KFLWINTE111  |  PWSweather: KFLWINTE111
CWOP: FW3708  |  AWEKAS: 14814
Windy: pws-f075acbe
Weather Underground Issue Tracking
Tele-Pole

Offline dmtalon

  • Member
  • *
  • Posts: 23
Re: WeeWX with GW1000 API connection
« Reply #1 on: July 23, 2020, 10:41:43 PM »
Since I just entered the Ecowitt world this week and am not broadcasting my data (still waiting on my WSH32), I've been playing with weewx, and switched over to this "API connection".

I got it running and it ran for a few hours, but crashed.  No real loss since I'm still setting everything up, but just an FYI.
« Last Edit: July 26, 2020, 09:08:41 PM by dmtalon »
Ecowitt GW1000: WH32|WS68|WH40|WH57|WH31x2

Offline gand

  • Senior Member
  • **
  • Posts: 53
    • Lynghuzed
Re: WeeWX with GW1000 API connection
« Reply #2 on: July 24, 2020, 12:41:09 AM »
Hi

Currently the GW1000 and the WeeWx must be on the same network in order to have the API working. If your server is remote, you still need to use Interceptor and custom upload.

Rgds
Gert

Offline GHammer

  • Contributor
  • ***
  • Posts: 128
    • Woodmar Weather
Re: WeeWX with GW1000 API connection
« Reply #3 on: July 24, 2020, 10:25:40 AM »
Working well at my location with the sensors in my signature.
I liked the simplicity of the install, seems there is little to configure in the weewx.conf file using this driver.
Code: [Select]
2020-07-24 10:41:04 EDT (1595601664): UV: 4, barometer: 1020.4, dateTime: 1595601664, daymaxwind: 3.6, inHumidity: 66, inTemp: 24.9, luminosity: 55640.0, outHumidity: 75, outTemp: 24.1, pressure: 1004.8, rainRate: 0.0, rainday: 0.0, rainevent: 9.4, rainmonth: 114.3, rainweek: 22.0, rainyear: 516.2, usUnits: 17, uvRadiation: 140.0, windDir: 21.6, windGust: 1.5, windSpeed: 1.2
2020-07-24 10:41:19 EDT (1595601679): UV: 4, barometer: 1020.4, dateTime: 1595601679, daymaxwind: 3.6, inHumidity: 66, inTemp: 24.9, luminosity: 55640.0, outHumidity: 75, outTemp: 24.1, pressure: 1004.8, rainRate: 0.0, rainday: 0.0, rainevent: 9.4, rainmonth: 114.3, rainweek: 22.0, rainyear: 516.2, usUnits: 17, uvRadiation: 140.0, windDir: 21.7, windGust: 1.0, windSpeed: 0.3
2020-07-24 10:41:34 EDT (1595601694): UV: 4, barometer: 1020.4, dateTime: 1595601694, daymaxwind: 3.6, inHumidity: 66, inTemp: 24.9, luminosity: 53470.0, outHumidity: 75, outTemp: 24.2, pressure: 1004.8, rainRate: 0.0, rainday: 0.0, rainevent: 9.4, rainmonth: 114.3, rainweek: 22.0, rainyear: 516.2, usUnits: 17, uvRadiation: 140.0, windDir: 20.7, windGust: 0.5, windSpeed: 0.3
2020-07-24 10:41:49 EDT (1595601709): UV: 4, barometer: 1020.4, dateTime: 1595601709, daymaxwind: 3.6, inHumidity: 66, inTemp: 24.9, luminosity: 54560.0, outHumidity: 75, outTemp: 24.2, pressure: 1004.8, rainRate: 0.0, rainday: 0.0, rainevent: 9.4, rainmonth: 114.3, rainweek: 22.0, rainyear: 516.2, usUnits: 17, uvRadiation: 140.0, windDir: 20.7, windGust: 0.5, windSpeed: 0.1

I like that I can specify a polling interval.
My wind and sun info is reported each 16 seconds and is updated on my website as it come in.


« Last Edit: July 24, 2020, 11:03:24 AM by GHammer »
Ecowitt HP2551-C, GW1000, WS68, WH40, WH32-EP, WH32B, RS0001

Online olicat

  • Contributor
  • ***
  • Posts: 106
  • DP1500 & FOSHKplugin
    • FOSHKplugin
Re: WeeWX with GW1000 API connection
« Reply #4 on: July 24, 2020, 11:19:37 AM »
Hi!

Quote
Working well at my location with the sensors in my signature.
Ecowitt HP2551-C
Does it work also with the HP2551-console?
So are the commands the same for GW1000 and HP2551 (aka GW1000 data exchange protocol is both for GW1000&HP2551)?

Regards, Oliver

Offline galfert

  • Global Moderator
  • Forecaster
  • *****
  • Posts: 5308
Re: WeeWX with GW1000 API connection
« Reply #5 on: July 24, 2020, 11:25:02 AM »
Hi!

Quote
Working well at my location with the sensors in my signature.
Ecowitt HP2551-C
Does it work also with the HP2551-console?
So are the commands the same for GW1000 and HP2551 (aka GW1000 data exchange protocol is both for GW1000&HP2551)?

Regards, Oliver

Unfortunately no the GW1000 and HP2551-C are not the same in this regard.

Only the GW1000 has the local API support.

The GW1000 was developed with this API in order to be able to mange it and see the live data in WS View. This is why in WS View you can see all the live data for a GW1000, but if you use WS View for an HP2551-C then all you will see is online services configuration and no live data (WU stations in WS View is not the same thing and that isn't "live"). And that is because the HP2551-C does not have the API to support live data over the network.

This is why anyone wanting to use Cumulus MX, Meteobridge, or Weather-Display software need the GW1000 (a great accessory to any current FO clone), as those applications only support this API (for current FO clones). And now you can add WeeWX as also supporting this API.  WeeWX though (via Interceptor driver) retains the ability to use the "Customized" server upload feature that is available to all display consoles (except Ambient branded display consoles).

The GW1000 picks up all the same sensors as the HP2551-C.
« Last Edit: July 24, 2020, 01:51:20 PM by galfert »
Ecowitt GW1000 | Meteobridge (WeatherBridge)
WU: KFLWINTE111  |  PWSweather: KFLWINTE111
CWOP: FW3708  |  AWEKAS: 14814
Windy: pws-f075acbe
Weather Underground Issue Tracking
Tele-Pole

Offline GHammer

  • Contributor
  • ***
  • Posts: 128
    • Woodmar Weather
Re: WeeWX with GW1000 API connection
« Reply #6 on: July 24, 2020, 01:13:04 PM »
Hi!

Quote
Working well at my location with the sensors in my signature.
Ecowitt HP2551-C
Does it work also with the HP2551-console?
So are the commands the same for GW1000 and HP2551 (aka GW1000 data exchange protocol is both for GW1000&HP2551)?

Regards, Oliver

The console will not work as it does not have the API response built into it AFAIK.
I said that it worked with my sensors, not with my console.
Ecowitt HP2551-C, GW1000, WS68, WH40, WH32-EP, WH32B, RS0001

Offline lemuba

  • Member
  • *
  • Posts: 27
    • Fitzbek-Wetter.de
Re: WeeWX with GW1000 API connection
« Reply #7 on: July 25, 2020, 12:49:38 AM »
Got it running yesterday. Working well with my Froggit DP1500, 7in1 Sensor, WH57.

Matthias

Offline Vetti52

  • Member
  • *
  • Posts: 33
Re: WeeWX with GW1000 API connection
« Reply #8 on: July 25, 2020, 12:09:26 PM »
Same with me, running SP1500. But solar radiation is currently not collected. This will hopefully be fixed soon.

Another idea, which came up, when going through the README.md is, that gw1000 driver can be installed as as Weewx service. As I am not familiar with the service concept of Weewx, I would assume, that this driver could be active besides other drivers, such as interceptor.py.
Therefore I would like to capture the data from both, the GW1000 and the WS2900 console. Well, it is nonsense to collect the data from the same sensors twice, but I could collect the inTemp and inHumid data from the console with the customized ecowitt driver and all of the rest (if it will hopefully be completely imported) from the GW1000 api driver. I would then comment out all of the redundant sensors in the interceptor.py map entries, so that only these two internal sensors data are collected.
Would my idea work that way?

Offline lemuba

  • Member
  • *
  • Posts: 27
    • Fitzbek-Wetter.de
Re: WeeWX with GW1000 API connection
« Reply #9 on: July 26, 2020, 02:16:54 AM »
For me too now. No solar radiation and also no rain collected...

Offline GHammer

  • Contributor
  • ***
  • Posts: 128
    • Woodmar Weather
Re: WeeWX with GW1000 API connection
« Reply #10 on: July 28, 2020, 12:51:33 PM »
If you have installed the driver before today (28 Jul 2020) you will want to install the latest version.
It corrects for radiation and wind direction as well as enabling battery values.

https://github.com/gjr80/weewx-gw1000/releases
« Last Edit: August 02, 2020, 11:43:00 AM by GHammer »
Ecowitt HP2551-C, GW1000, WS68, WH40, WH32-EP, WH32B, RS0001

Offline galfert

  • Global Moderator
  • Forecaster
  • *****
  • Posts: 5308
Re: WeeWX with GW1000 API connection
« Reply #11 on: August 01, 2020, 08:28:22 PM »
WeeWX GW1000 API Driver beta 9 seems have fixed most major problems. The barometric pressure was the latest fix.  Beta 10 (not out yet) seems like is being worked on to fix issue for those with multiple GW1000 on their network.
Ecowitt GW1000 | Meteobridge (WeatherBridge)
WU: KFLWINTE111  |  PWSweather: KFLWINTE111
CWOP: FW3708  |  AWEKAS: 14814
Windy: pws-f075acbe
Weather Underground Issue Tracking
Tele-Pole

Offline KD7GFL

  • Member
  • *
  • Posts: 23
Re: WeeWX with GW1000 API connection
« Reply #12 on: August 02, 2020, 03:43:37 PM »
Can somebody give me some "adult supervision?" 

I believe I have followed all of the steps correctly (a few times already) but I am stuck.  I am seeing the information I put in as far a location, elevation, etc, but it is "stuck" on simulator and the weather data is bogus.  I have gone through the configuration using  "sudo wee_config --reconfigure --driver=user.gw1000" and it all appears correct including the driver selection of 0 for the gw1000. 

I have uninstalled and installed at least 3 times and I am out of ideas of what to check.

What am I doing wrong?
 [ You are not allowed to view attachments ]
« Last Edit: August 02, 2020, 03:46:12 PM by KD7GFL »

Offline galfert

  • Global Moderator
  • Forecaster
  • *****
  • Posts: 5308
Re: WeeWX with GW1000 API connection
« Reply #13 on: August 02, 2020, 05:28:35 PM »
You need to restart WeeWX after making configuration changes.

sudo /etc/init.d/weewx restart
Ecowitt GW1000 | Meteobridge (WeatherBridge)
WU: KFLWINTE111  |  PWSweather: KFLWINTE111
CWOP: FW3708  |  AWEKAS: 14814
Windy: pws-f075acbe
Weather Underground Issue Tracking
Tele-Pole

Offline KD7GFL

  • Member
  • *
  • Posts: 23
Re: WeeWX with GW1000 API connection
« Reply #14 on: August 02, 2020, 05:57:10 PM »
You need to restart WeeWX after making configuration changes.

sudo /etc/init.d/weewx restart

Seems like I have restarted a couple hundred times lol so I don't think that is it. 

Let me verify something, if i open a browser on my RPi and type in the "IP address/weewx"  (ex 192.168.1.43/weewx) should I be seeing live\current data?

EDIT:  Ok so since I couldn't get the API version to work, I tried using Interrceptor and that seems to be working from what I can tell.
« Last Edit: August 02, 2020, 06:01:38 PM by KD7GFL »

 

anything