Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

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

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Weather network support

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Post Reply
User avatar
meteoaficionada
Posts: 2
Joined: Thu 12 Dec 2019 8:02 pm
Weather Station: Fine Offset WH-1080
Operating System: Linux (Debian 8)
Contact:

Weather network support

Post 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
David
Red Meteoaficionada de Chile & Vigías del Tiempo Chile (Weather Watchers Chile)
An open hobbyist chilean weather network - https://redmeteo.cl
User avatar
mcrossley
Posts: 14388
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Weather network support

Post 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?
User avatar
meteoaficionada
Posts: 2
Joined: Thu 12 Dec 2019 8:02 pm
Weather Station: Fine Offset WH-1080
Operating System: Linux (Debian 8)
Contact:

Re: Weather network support

Post 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
David
Red Meteoaficionada de Chile & Vigías del Tiempo Chile (Weather Watchers Chile)
An open hobbyist chilean weather network - https://redmeteo.cl
Post Reply