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 4019) - 03 April 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
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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
How to upload weatherdata to my website
Moderator: daj
-
- 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
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"??
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"??
- PaulMy
- Posts: 3849
- 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
Hi,
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
Yes, in Extra web files you would enter:But still the question is how I upload my own *.html-file, I believe it has to be done in "Extra web files"??
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
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
-
- 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
Thanks for answer.
I have the setting like this:
I have copied the index2021T.asp to my RPi with WinSCP: '
But when I look in FileZilla I don't find the index.asp.
What does the T?\web\yourfileT.html
I have the setting like this:
I have copied the index2021T.asp to my RPi with WinSCP: '
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.
- PaulMy
- Posts: 3849
- 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
Hi,
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
The T is usually used just to identify the file as a Template, like Cumulus realtimegaugesT.txt but uploaded without the T as realtimegauges.txtWhat does the T?
I am not familiar with Pi nor WinSCP but your Extra web files settings screen capture shows the destination as index2021.asp not index.aspBut when I look in FileZilla I don't find the 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.
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
- KarlS
- Posts: 137
- Joined: Tue 30 Nov 2010 3:01 pm
- Weather Station: Ecowitt GW1003 / WH32 / WH41
- Operating System: 64bit Bookworm on Pi4
- Location: Bridge Lake, BC, Canada
- Contact:
Re: How to upload weatherdata to my website
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:
Once this file is processed and uploaded by CumulusMX to “cu.dat” on my server it looks like this:
Hope that helps
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>;
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;
-
- 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
I put it under http://www.ludvikasegel.com/mx/What is the URL to your website?
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()...
-
- Posts: 2477
- 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
Are the permissions on the public_html/mx/ directory correct?
- rogerthn
- Posts: 518
- 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
Hej
I do get HTTP Error 403.14 - Forbidden on http://www.ludvikasegel.com/mx/
I do get HTTP Error 403.14 - Forbidden on http://www.ludvikasegel.com/mx/
-
- 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
It works for instance with http://ludvikasegel.com/mx/websitedata.jsonAre the permissions on the public_html/mx/ directory correct?
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
-
- Posts: 2477
- 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
This bit:
You're using a Pi so separator should be "/" not "\"
Also, there should be a "/" before "opt"
Code: Select all
[opt\CumulusMX\web\indexT.asp] not found!
Also, there should be a "/" before "opt"
-
- 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
Ok, so I changed to this settings:
Now I should change from Meteohub webtags to CumulusMX webtags.
So now it works.Now I should change from Meteohub webtags to CumulusMX webtags.
You do not have the required permissions to view the files attached to this post.
- PaulMy
- Posts: 3849
- 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
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
-
- 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
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?
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?
- PaulMy
- Posts: 3849
- 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
Have you ticked Process in the Destination Filename side?
Does it show in the \web folder (or wherever you have the template)?
Enjoy,
Paul
Does it show in the \web folder (or wherever you have the template)?
Enjoy,
Paul
VP2+
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
C1 www.komokaweather.com/komokaweather-ca
MX https://komokaweather.com/cumulusmx/index.htm /index.html /index.php
MX https://komokaweather.com/cumulusmxwll/index.htm /index.html /index.php
MX https:// komokaweather.com/cumulusmx4/index.htm
-
- 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
Yes, I have.Have you ticked Process in the Destination Filename side?
Yes, it does.Does it show in the \web folder (or wherever you have the template)?
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.