Page 1 of 1

Weather network support

Posted: Thu 12 Dec 2019 8:51 pm
by meteoaficionada
Hi there,

I'm new in this forum. I'm David, sysadmin from Redmeteo.cl, a chilean weather station network intended for weather enthusiasts (the only weather network of its type in my country). I forked Cumulus-MX from b3050, adding a native support to our telemetry system written in PHP on our server, resembling in some form the Realtime.txt variable specification. But software have some issues detected by our members, that possibly could be fixed with a Cumulus-MX update. I haven't keep your pace @mcrossley to keep my code (github/davidaguilerar) up-to-date with new versions and Redmeteo.cl native support. It's possible to merge to official version the support for redmeteo.cl, or "modularize" our network in cumulus code? I have source code in my repo with the modification.

Best regards from Chile

Re: Weather network support

Posted: Fri 13 Dec 2019 3:39 pm
by mcrossley
It looks like you have made two main changes to the code...

1. Added GetRedMeteoURL() and a timed check to get the URL
2. A SQL Server module, but that isn't used?

As a test it looks like you could just add the Red Meteo URL as a custom URL into the current version of MX? Your sample custom URL in the code appears to be incomplete though as it does not have the "units of measurement" fields - you could hardcode these, or add web tags. As you URL does a remove commas, then the custom URL should probably also have the rc=y option added....

Code: Select all

/http://redmeteo.cl/telemetria.php?ID=IDUSUARIO&format=realtime&date=<#date format=dd/MM/yy>&time=<#timehhmmss>&wsunit=<#windunit>&tempunit=<#tempunitnodeg> ... &temp=<#temp rc=y> ...
Other than doing that as a test, then yes, it *could* possibly be added as an additional supported URL - how many CMX users in Chile are likely to make use of this feature?

Re: Weather network support

Posted: Thu 30 Jan 2020 2:16 pm
by meteoaficionada
Hi there and sorry for my late reply! :cry:

Yeah, our code performs a change between commas to points in order to get a good processing. Even our php retrieval script does the same thing to get same result, but you are right, rc=y should be a better idea before. We use wsunit, tempunit, presunit and rainunit fields to send the wind, temperature, pressure and rainfall units of measurement into our website.
I also could give you an URL for your tests, using only webtags:

Code: Select all

http://redmeteo.cl/telemetria.php?ID=IDUSUARIO&format=realtime&date=<#date format=dd/MM/yy>&time=<#timehhmmss>&temp=<#temp>&rh=<#hum>&dewpoint=<#dew>&wsavg=<#wspeed>&ws=<#wlatest>&wdirangle=<#bearing>&rainrate=<#rrate>&rain=<#rfall>&baro=<#press>&wdir=<#currentwdir>&bf=<#beaufortnumber>&wsunit=<#windunit>&tempunit=<#tempunitnodeg>&presunit=<#pressunit>&rainunit=<#rainunit>&windrun=<#windrun>&prestrend=<#presstrendval>&monthrain=<#rmonth>&yearrain=<#ryear>&yesterdayrain=<#rfallY>&insidetemp=<#intemp>&insiderh=<#inhum>&windchill=<#wchill>&temptrend=<#temptrend>&tempmax=<#tempTH>&htempmax=<#TtempTH>&tempmin=<#tempTL>&htempmin=<#TtempTL>&wsavgmax=<#windTM>&hwsavgmax=<#TwindTM>&wsgustmax=<#wgustTM>&hwsgustmax=<#TwgustTM>&presmax=<#pressTH>&hpresmax=<#TpressTH>&presmin=<#pressTL>&hpresmin=<#TpressTL>&version=<#version>&build=<#build>&tenmingust=<#wgust>&heatindex=<#heatindex>&humidex=<#humidex>&uv=<#UV>&et=<#ET>&sw=<#SolarRad>&tenmindir=<#avgbearing>&rainlasthr=<#rhour>&zambretti=<#forecastnumber>&isday=<#isdaylight>&scl=<#SensorContactLost>&avgwdir=<#wdir>&cloudbase=<#cloudbasevalue>&cloudunit=<#cloudbaseunit>&apptemp=<#apptemp>&sunhrs=<#SunshineHours>&sunmax=<#CurrentSolarMax>&issunny=<#IsSunny>
Where IDUSUARIO is your user ID here.
Regarding point 2, I did this change only in order to get a normal compilation using my current Visual Studio version, otherwise compiler refuses to build executables.

Right now in our network there's about 30 members using Cumulus-MX, but we expect that about 100 or 200 along Chile have stations compatible with Cumulus-MX and we'd like that all those weather station owners share data on our website (that's unique on its type in Chile).

Best regards from a hot summer in Santiago, Chile.
David
Red Meteoaficionada de Chile