Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

Legacy Cumulus 1 release v1.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

How to upload weatherdata to my website

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Armond
Posts: 32
Joined: Mon 05 Jul 2021 6:39 am
Weather Station: Froggit
Operating System: Raspberry Pi 4
Location: Sweden

How to upload weatherdata to my website

Post by Armond »

Hi!

I have just set up my Raspberry Pi 4 with the raspberry pi image, and got it working.
I have connected my Ecowitt (Froggit) GW1000 and got weather data when I look in http://<ip_address>:8998.

Now I want to upload weaher data to my website, but I don't figure out how to do it.
I use Meteohub and upload data to my website with ftp, but I want to change to Cumulus MX.
I know that I have to change the webtags to Cumulus MX.

But my question is how to do it in Cumulus MX.
Where should I put the files and how to do it. I am a little bit comfused (begginer of Cumulus MX).



Update:
I have manage to upload the common files to my webhotel in "Internet settings".
But still the question is how I upload my own *.html-file, I believe it has to be done in "Extra web files"??
User avatar
PaulMy
Posts: 3775
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: How to upload weatherdata to my website

Post by PaulMy »

Hi,
But still the question is how I upload my own *.html-file, I believe it has to be done in "Extra web files"??
Yes, in Extra web files you would enter:
in the Local Filename side the path and file name on your computer that you want to FTP, i.e. \web\yourfileT.html
and on the Destination Filename side the remote filename - i.e. public_html/yourfile.html
tick Process if you have webtags in the local file and want CumulusMX to process the webtags
tick Realtime if you want it at your realtime interval, otherwise it would be process and FTP at the set interval - i.e. 5 minutes
tick FTP if you want it updated to your website
tick UTF-8 for correct encoding
usually don't need to tick Binary
tick End of Day if you want the process and FTP done once a day only, at the daily or midnight rollover.

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
Armond
Posts: 32
Joined: Mon 05 Jul 2021 6:39 am
Weather Station: Froggit
Operating System: Raspberry Pi 4
Location: Sweden

Re: How to upload weatherdata to my website

Post by Armond »

Thanks for answer.
\web\yourfileT.html
What does the T?

I have the setting like this:
Bild_01.jpg

I have copied the index2021T.asp to my RPi with WinSCP:
Bild_02.jpg
'
But when I look in FileZilla I don't find the index.asp.
You do not have the required permissions to view the files attached to this post.
User avatar
PaulMy
Posts: 3775
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: How to upload weatherdata to my website

Post by PaulMy »

Hi,
What does the T?
The T is usually used just to identify the file as a Template, like Cumulus realtimegaugesT.txt but uploaded without the T as realtimegauges.txt
But when I look in FileZilla I don't find the index.asp
I am not familiar with Pi nor WinSCP but your Extra web files settings screen capture shows the destination as index2021.asp not index.asp
Is there anything in the MXdiags files on the FTP status? You may need to enable FTP logging in settings.

What is the URL to your website?

Enjoy,
Paul
You do not have the required permissions to view the files attached to this post.
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
User avatar
KarlS
Posts: 135
Joined: Tue 30 Nov 2010 3:01 pm
Weather Station: Ecowitt GW1003 / WH32 / WH41
Operating System: Buster Lite on Pi4
Location: Bridge Lake, BC, Canada
Contact:

Re: How to upload weatherdata to my website

Post by KarlS »

As Paul says, the “T” just stands for “template”. The local file has the structure and variables that your website expects with the real weather data represented by a webtags. A Cumulus webtag looks like this: <#temp>. This will give you the current temperature. <#hum> will give you the current humidity, and so on. For a list of all available webtags see the Wiki.

Here is an example. My website is PHP based and expects the current weather data in a file called “cu.dat”. The local file is called “cuT.dat” and looks like this:

Code: Select all

<?php
$datetime = "<#year>-<#month>-<#day> <#timehhmmss>";
$year = "<#shortyear>";
$month = "<#month>";
$day = "<#day>";
$time = "<#timehhmmss>";
$temp = <#temp>;
$dew = <#dew>;
$apptemp = <#apptemp>;
$feelslike = <#feelslike>;
$wchill = <#wchill>;
$humidex = <#humidex>;
$hidx = <#heatindex>;
$hum = <#hum>;
$wgust = <#wgust>;
$wavg = <#wspeed>;
$wbear = <#avgbearing>;
$press = <#press>;
$rrate = <#rrate>;
$rtoday = <#rfall>;
$solarrad = <#SolarRad>;
$uvindex = <#UV>;
$sunshinehours = <#SunshineHours>;
$pm25 = <#AirQuality1>;
$pm25avg = <#AirQualityAvg1>;
Once this file is processed and uploaded by CumulusMX to “cu.dat” on my server it looks like this:

Code: Select all

<?php
$datetime = "2021-07-17 15:40:00";
$year = "21";
$month = "07";
$day = "17";
$time = "15:40:00";
$temp = 22.3;
$dew = 6.9;
$apptemp = 20.6;
$feelslike = 21.6;
$wchill = 22.3;
$humidex = 22.3;
$hidx = 22.3;
$hum = 37;
$wgust = 12;
$wavg = 5;
$wbear = 170;
$press = 1018.8;
$rrate = 0.0;
$rtoday = 0.0;
$solarrad = 526;
$uvindex = 5.0;
$sunshinehours = 4.2;
$pm25 = 101.0;
$pm25avg = 53.2;
Hope that helps
Armond
Posts: 32
Joined: Mon 05 Jul 2021 6:39 am
Weather Station: Froggit
Operating System: Raspberry Pi 4
Location: Sweden

Re: How to upload weatherdata to my website

Post by Armond »

What is the URL to your website?
I put it under http://www.ludvikasegel.com/mx/


My website that works with Meteohub is under http://www.ludvikasegel.com/wx/

So now I have enabled the ftplogging:
2021-07-18 10:20:03.987 Realtime[19]: Uploading extra web file[0] /opt/CumulusMX/web/index2021T.asptmp to public_html/mx/index2021.asp

2021-07-18 10:20:03.988 FTP[19]: Uploading /opt/CumulusMX/web/index2021T.asptmp to public_html/mx/index2021.asp

# OpenWrite("public_html/mx/index2021.asp", Binary)

# GetFileSize("public_html/mx/index2021.asp")
Command: SIZE public_html/mx/index2021.asp
Response: 550 Can't check for file existence

# OpenPassiveDataStream(AutoPassive, "STOR public_html/mx/index2021.asp", 0)
Command: EPSV
Response: 229 Extended Passive mode OK (|||40633|)
Status: Connecting to 195.74.xx.xx:xxxxx
Command: STOR public_html/mx/index2021.asp
Response: 553 Can't open that file: No such file or directory
Status: Disposing FtpSocketStream...

# CloseDataStream()
2021-07-18 10:20:04.095 FTP[19]: Error uploading /opt/CumulusMX/web/index2021T.asptmp to public_html/mx/index2021.asp : Can't open that file: No such file or directory
Status: Testing connectivity using Socket.Poll()...
freddie
Posts: 2433
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: How to upload weatherdata to my website

Post by freddie »

Are the permissions on the public_html/mx/ directory correct?
Freddie
Image
User avatar
rogerthn
Posts: 489
Joined: Thu 11 Apr 2013 6:31 pm
Weather Station: Ecowitt GW1000/GW1003
Operating System: Raspberry Pi OS bullseye aarch64
Location: Trollhättan Sweden
Contact:

Re: How to upload weatherdata to my website

Post by rogerthn »

Hej :D
I do get HTTP Error 403.14 - Forbidden on http://www.ludvikasegel.com/mx/
Image
Armond
Posts: 32
Joined: Mon 05 Jul 2021 6:39 am
Weather Station: Froggit
Operating System: Raspberry Pi 4
Location: Sweden

Re: How to upload weatherdata to my website

Post by Armond »

Are the permissions on the public_html/mx/ directory correct?
It works for instance with http://ludvikasegel.com/mx/websitedata.json

I change the file to index.asp, but it will not upload. It just says:
2021-07-18 12:53:00.927 FTP[Int]: Uploading Extra files
2021-07-18 12:53:00.928 FTP[Int]: Extra web file #0 [opt\CumulusMX\web\indexT.asp] not found!
2021-07-18 12:53:00.928 FTP[Int]: Uploading standard Data file
freddie
Posts: 2433
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: How to upload weatherdata to my website

Post by freddie »

This bit:

Code: Select all

[opt\CumulusMX\web\indexT.asp] not found!
You're using a Pi so separator should be "/" not "\"
Also, there should be a "/" before "opt"
Freddie
Image
Armond
Posts: 32
Joined: Mon 05 Jul 2021 6:39 am
Weather Station: Froggit
Operating System: Raspberry Pi 4
Location: Sweden

Re: How to upload weatherdata to my website

Post by Armond »

Ok, so I changed to this settings:
Bild_03.jpg
So now it works.

Now I should change from Meteohub webtags to CumulusMX webtags. :D
You do not have the required permissions to view the files attached to this post.
User avatar
PaulMy
Posts: 3775
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: How to upload weatherdata to my website

Post by PaulMy »

:clap: :clap:
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
Armond
Posts: 32
Joined: Mon 05 Jul 2021 6:39 am
Weather Station: Froggit
Operating System: Raspberry Pi 4
Location: Sweden

Re: How to upload weatherdata to my website

Post by Armond »

Some problems, I will upload one more page with Extra web files.
But it will not "process", it just shows the webtags instead of values.
I have restarted the RPi, but it will not help.
Any suggestions about what can be wrong?
User avatar
PaulMy
Posts: 3775
Joined: Sun 28 Sep 2008 11:54 pm
Weather Station: Davis VP2 Plus 24-Hour FARS
Operating System: Windows8 and Windows10
Location: Komoka, ON Canada
Contact:

Re: How to upload weatherdata to my website

Post by PaulMy »

Have you ticked Process in the Destination Filename side?
Does it show in the \web folder (or wherever you have the template)?

Enjoy,
Paul
Davis Vantage Pro2+
C1 www.komokaweather.com/komokaweather-ca
MX www.komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX www.komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX www. komokaweather.com/cumulusmx4/index.htm

Image
Armond
Posts: 32
Joined: Mon 05 Jul 2021 6:39 am
Weather Station: Froggit
Operating System: Raspberry Pi 4
Location: Sweden

Re: How to upload weatherdata to my website

Post by Armond »

Have you ticked Process in the Destination Filename side?
Yes, I have.
Does it show in the \web folder (or wherever you have the template)?
Yes, it does.

From the Data logging:
2021-08-18 17:18:00.334 Interval: Processing extra file[0] - /opt/CumulusMX/web/indexT.asp
2021-08-18 17:18:00.341 Interval: Processing extra file[1] - /opt/CumulusMX/web/webtagsT.asp
2021-08-18 17:18:00.381 Interval: Processing extra file[2] - /opt/CumulusMX/web/index2021T.asp
2021-08-18 17:18:00.388 Interval: Processing extra file[3] - /opt/CumulusMX/web/minmaxT.asp
You do not have the required permissions to view the files attached to this post.
Post Reply