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

OpenWeatherMap

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
Post Reply
WoodburyMan
Posts: 166
Joined: Sun 04 Sep 2011 2:02 am
Weather Station: Ecowitt GW1000
Operating System: Windows 10 20H2
Location: Woodbury, Connecticut, U.S.A.
Contact:

OpenWeatherMap

Post by WoodburyMan »

Do you know if Cumulus plans to support OpenWeatherMap in any version of Cumulus in the near future? It seems to be becoming a fairly popular weather site which many apps use. Meteohub and Metobridge currently support it. I currently have a Pebble Smartwatch, and there are quite a number of apps for it that draw data from OpenWeatherMap.. as well if you're into custom firmware for Android devices, the #1 Custom Firmware for many devices CyanogenMod, also used OpenWeatherMap to draw data for Weather on the phone's lockscreen.

http://openweathermap.org/Maps


They also document the API to upload to it, as well as download data from it.
http://openweathermap.org/wiki/API/data_upload

Even if it will not be supported, anyone have any ideas on how to publish this? I was reading up on possibly creating a simple VisualBasic (only thing besides php I know) to be triggered by Cumulus' external program option and have it pull the data from Cumulus and upload via HTTP POST method... however that may be beyond my skills.
Woodbury, CT Weather Ecowitt GW1100, Solar, Wind, Rain, Temp, Soil, Lightning
Southington, CT Weather Ecowitt GW2000 Wittboy Solar, Wind, Rain, Temp, Soil, Lightning, CO2/PM2.5/PM10

Running CumuluxMX 3.24.1 b3234 both sites on Windows 11 22H2
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: OpenWeatherMap

Post by steve »

It won't be in the near future, I just don't have the time - sorry. I get requests to support web sites like this at least once a week. At least it's a simple protocol so if I ever did get around to it, it wouldn't too hard.

wget handles POST and allows a file as input, so you could perhaps get Cumulus to process a file and then use that as input to wget...
Steve
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: OpenWeatherMap

Post by steve »

Actually, I see that my data is on there anyway - they're getting it from CWOP.
Steve
WoodburyMan
Posts: 166
Joined: Sun 04 Sep 2011 2:02 am
Weather Station: Ecowitt GW1000
Operating System: Windows 10 20H2
Location: Woodbury, Connecticut, U.S.A.
Contact:

Re: OpenWeatherMap

Post by WoodburyMan »

steve wrote:Actually, I see that my data is on there anyway - they're getting it from CWOP.
Ahhhhh awesome. That's much easier then. Just signed up for CWOP...
http://www.findu.com/cgi-bin/find.cgi?call=EW4301
Send in email in confirming position verification so hopefully it will show up soon on their map.

Thanks! And thanks for your awesome work with Cumulus!!
Woodbury, CT Weather Ecowitt GW1100, Solar, Wind, Rain, Temp, Soil, Lightning
Southington, CT Weather Ecowitt GW2000 Wittboy Solar, Wind, Rain, Temp, Soil, Lightning, CO2/PM2.5/PM10

Running CumuluxMX 3.24.1 b3234 both sites on Windows 11 22H2
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: OpenWeatherMap

Post by steve »

Yes, I can see you on CWOP now, and on OpenWeatherMap.
Steve
bladel
Posts: 5
Joined: Tue 31 May 2011 2:22 pm
Weather Station: WS2300,VP2,GW1100A
Operating System: dietpi
Location: Germany
Contact:

Re: OpenWeatherMap

Post by bladel »

I wrote a short batch script to post the data via curl:


-get curl for windows
-create a batch file in your cumuls directory

Code: Select all

::
::Variables
::change here
set login=User
set password=Password
set apikey=123456789abcdefghij
set station_name=MyWeatherStaion
set long=1.234
set lat=56.789
set alt=123
::
::use curl
::
C:\curl_X64_ssl\winssl\curl.exe --basic -d "wind_dir=<#bearing>&wind_speed=<#wspeed>&wind_gust=<#wgust>&temp=<#temp>&humidity=<#hum>&pressure=<#press>&rain_1h=<#rhour>&rain_today=<#rmidnight>&lat=%lat%&long=%long%&alt=%alt%&name=%station_name%" --user "%login%:%password%" -H "x-api-key:%apikey%" http://openweathermap.org/data/post
-add bat file to Internet settings-Files (processed files)
Local filename: C:\Cumulus\openweather.bat
Remote filename C:\Cumulus\openweather_processed.bat

-add the processed bat to external programs
Realtime Program: C:\Cumulus\openweather_processed.bat
Image
thecivvie
Posts: 39
Joined: Mon 02 Apr 2012 6:48 pm
Weather Station: Davis Vantage Vue
Operating System: Raspberry Pi
Location: Renvyle, Connemara, Ireland
Contact:

Re: OpenWeatherMap

Post by thecivvie »

Great script, do they need it realtime or would every 5 mins do. I cannot see any thing on their website
Image
User avatar
EveshamWeather
Posts: 2
Joined: Tue 05 Aug 2014 5:11 pm
Weather Station: OS WMR100
Operating System: Windows 8.1
Location: Evesham
Contact:

Re: OpenWeatherMap

Post by EveshamWeather »

Has anyone had an success recently using curl to submit information? I have been registered on COAA for nearly a year but cannot see my data on Openweathermap so decided to submit it using the script. Unfortunately I am getting {"message":"Unauthorized.","cod":"401"} error messages.
Vince
EveshamWeather.co.uk
Megachip
Posts: 17
Joined: Thu 20 Dec 2012 4:33 pm
Weather Station: WS3080
Operating System: Windows 2003
Location: East-Germany

Re: OpenWeatherMap

Post by Megachip »

EveshamWeather wrote:Has anyone had an success recently using curl to submit information? I have been registered on COAA for nearly a year but cannot see my data on Openweathermap so decided to submit it using the script. Unfortunately I am getting {"message":"Unauthorized.","cod":"401"} error messages.
Do you set username, password and api key correctly?
Megachip
Posts: 17
Joined: Thu 20 Dec 2012 4:33 pm
Weather Station: WS3080
Operating System: Windows 2003
Location: East-Germany

Re: OpenWeatherMap

Post by Megachip »

I've extend the script a bit:
-rain24h
-solar rad
-uv
-dewpoint

Code: Select all

::
::Variables
::change here
set login=INSERTLOGIN
set password=INSERTPASSWORD
set apikey=INSERTAPIKEY
set station_name=Peter's Wetter
set curlpwd=E:\Curl
::
::use curl
::
%curlpwd%\curl.exe --basic -d "wind_dir=<#bearing>&wind_speed=<#wspeed>&wind_gust=<#wgust>&temp=<#temp>&humidity=<#hum>&pressure=<#press>&rain_1h=<#rhour>&rain_24h=<#r24hour>&rain_today=<#rmidnight>&lum=<#SolarRad>&uv=<#UV>&dewpoint=<#dew>&lat=<#latitude dp=5 rc=y>&long=<#longitude dp=5 rc=y>&alt=<#altitude dp=0>&name=%station_name%" --user "%login%:%password%" -H "x-api-key:%apikey%" http://openweathermap.org/data/post
@Steve
Why there isn't the possibility to get the altitude without the unit (like long and lat)?
How to get an point instead of an comma for all values?
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: OpenWeatherMap

Post by steve »

Megachip wrote:Why there isn't the possibility to get the altitude without the unit (like long and lat)?
How to get an point instead of an comma for all values?
Normally, you can do both of those things with a bit of javascript, but obviously not in this case.

You can't do it currently because I haven't got around to it, sorry. There was a time when I spent five or six hours a day on Cumulus, as well as doing my day job. I eventually realised how stupid that was, and I am no longer prepared to spend more than an hour or two a day, and all of that is usually taken up with the forum and email. But maybe one day I will find some time to add the required changes - in Cumulus MX.
Steve
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: OpenWeatherMap

Post by mcrossley »

You could use something like (untested)...

Code: Select all

set altitude="<#altitude>"
REM eg. altitude="70&nbsp;m"
REM remove units
set altitude=%altitude:&nbsp;m=%
set altitude=%altitude:"=%

echo %altitude%

REM change comma decimal to dot
set rain_1h=<#rhour>
set rain_1h=%rain_1h:,=.%

echo %rain_1h%
User avatar
philpugh
Posts: 428
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 12 (RPi5)
Location: Antrobus, Cheshire, UK
Contact:

Re: OpenWeatherMap

Post by philpugh »

Hi

I am trying to submit data to Openweathermap also.

I have written a small python prog to run on the Banana Pi using MySQL to get the data.

The string below is the 'command' I generate and send...
curl -d 'temp=19.9&wind_speed=3.7&wind_dir=180&pressure=1016.12&rain_today=0.0&lum=366.0&uv=3.0&lat=53.32&long=-2.54&alt=68&name=Goosegate' --user 'user:pass' -H 'x-api-key:somelongstring' http://openweathermap.org/data/post
(I have altered the user:password and API key (obviously)!

I get back the following - each time I send data..
{"message":"","cod":"200","id":1461056386}
THis looks OKish to me - but nothing appears on the website. Other than sign up (which I have) do you need to do anything else to 'create' a personal station other than send data - as implied on their website. I must say they are most unhelpful - no response to an email for over two weeks now.
Phil Pugh
GW1100 + WH65/WH57/WH31;GW1100 + WS68/WH40A (also with HP25xx console); GW2001 WittBoy
CumulusMX V4 / CUtils V7
Raspberry Pi 5 64bit
https://goosegate.uk/
Post Reply