Author Topic: Server side PHP script for some GARNI meteo devices  (Read 3273 times)

0 Members and 1 Guest are viewing this topic.

Offline buffy

  • Contributor
  • ***
  • Posts: 111
  • My PWS: Garni Ventus 830
    • PWS Monitor
Server side PHP script for some GARNI meteo devices
« on: April 30, 2020, 07:53:47 AM »
Garni Weather Station server PHP script

Some of new GARNI meteo station devices have option to set up own domain for sending data values to this website. If you don't know how you can get this values, I prepare simple PHP script. You can upload it to your website and save actual data to your server.

I can make also some history, SQL insert etc, but this is first simple script to help people save own data from Weather stations. If you have any questions, let me know.

Download PHP script
https://github.com/buffy007/garni

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Server side PHP script for some GARNI meteo devices
« Reply #1 on: April 30, 2020, 08:49:28 AM »
Garni Weather Station server PHP script

Some of new GARNI meteo station devices have option to set up own domain for sending data values to this website. If you don't know how you can get this values, I prepare simple PHP script. You can upload it to your website and save actual data to your server.

I can make also some history, SQL insert etc, but this is first simple script to help people save own data from Weather stations. If you have any questions, let me know.

Download PHP script
https://github.com/buffy007/garni

Hi Buffy,
I assume this works for the Garni 940 which is a Fine_offset clone.   The Garni website says:
Quote
Data upload to 4 weather servers and 1 user's server
Data upload between those web servers: Weather Underground, Weather Cloud, Weather Observations, Ecowitt
Or are there other Garni stations with upload to your own website?

Checking your PHP script, you are using the upload with "GET" data as used for WeatherUnderground.
But the Ecowitt protocol has FAR more data,  it uploads the data in "POST"

Do you have any specific Garni documentation of how to setup the station? 
Or is it using the standard WS-View from the app-stores?

The PWS_Dashboard probably fully supports these stations using this "Custom-upload"
Check here https://pws.sluispark.be/

Wim



Offline buffy

  • Contributor
  • ***
  • Posts: 111
  • My PWS: Garni Ventus 830
    • PWS Monitor
Re: Server side PHP script for some GARNI meteo devices
« Reply #2 on: April 30, 2020, 11:03:42 AM »
Garni Weather Station server PHP script

Some of new GARNI meteo station devices have option to set up own domain for sending data values to this website. If you don't know how you can get this values, I prepare simple PHP script. You can upload it to your website and save actual data to your server.

I can make also some history, SQL insert etc, but this is first simple script to help people save own data from Weather stations. If you have any questions, let me know.

Download PHP script
https://github.com/buffy007/garni

Hi Buffy,
I assume this works for the Garni 940 which is a Fine_offset clone.   The Garni website says:
Quote
Data upload to 4 weather servers and 1 user's server
Data upload between those web servers: Weather Underground, Weather Cloud, Weather Observations, Ecowitt
Or are there other Garni stations with upload to your own website?

Checking your PHP script, you are using the upload with "GET" data as used for WeatherUnderground.
But the Ecowitt protocol has FAR more data,  it uploads the data in "POST"

Do you have any specific Garni documentation of how to setup the station? 
Or is it using the standard WS-View from the app-stores?

The PWS_Dashboard probably fully supports these stations using this "Custom-upload"
Check here https://pws.sluispark.be/

Wim

I was contacted by Garni and I tested this script with few devices. I'm not sure which firmware supports uploading to own server, but when I tested it, there was WU data export, which are serving by GET. It should be some new firmware, I can try ask Garni for some device list or version of firmware.

Anyway, script is open, you can also try POST function if you feel your station will working with this.

I have no documentation and I made many tests to find way export my data from station to server. There were many problems. But this setup works for me.
« Last Edit: April 30, 2020, 11:09:42 AM by buffy »