Author Topic: GW1000 Customized Server vs API  (Read 355 times)

0 Members and 1 Guest are viewing this topic.

Offline GHammer

  • Senior Contributor
  • ****
  • Posts: 210
    • Woodmar Weather
GW1000 Customized Server vs API
« on: May 30, 2020, 10:25:59 PM »
Just wondering what the benefits of the API is over the customized server.
If you have an app that uses the customized server you get data when it becomes available, for me that's every 16 seconds.
Will software that uses the API get data as it is available or have to call the GW to get data?
Wireless Vantage Pro2 Plus with 24hr FARS, WLL

Offline olicat

  • Forecaster
  • *****
  • Posts: 1521
  • GWxx00, HPx5x1C, WN1900C, WN1980C & WS3xx0C
    • FOSHKplugin
Re: GW1000 Customized Server vs API
« Reply #1 on: May 31, 2020, 07:36:14 AM »
Hi!

Quote
Just wondering what the benefits of the API is over the customized server.
Out of the box you're able to forward the incoming data with custom server to ONE target only.
The software cannot determine when it receives this data because the GW1000 sends it at a static interval - limited to 16sec minimal (by default).
At least for forwarding to multiple destinations, there are various software solutions that make one forward several. Like weewx or FOSHKplugin. But you need another computer (Raspi) that runs 24/7 to enable this service.

With API many clients can poll the data whenever they want. Also in parallel and more frequently. Without optional hardware.
However, the data from the connected sensors does not come in faster. So you always get the sensor data of the last transmission of the sensor.

The disadvantage of the API solution is that only the GW1000 is supported.
With a custom server-based software connection, all weather stations that offer this feature can be connected.
So custom server is more generic.

As soon as there are more compatible devices, I am also considering supporting the API/direct connection via CMD_GW1000_LIVEDATA.
Until then, we are well supplied with the custom server.

Regards, Oliver