Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
(Note that 4.1.0 (build 4024) - 05 June 2024 remains available, but usage of this version is not recommended - particularly for Davis stations - and the included utility in this distribution for migrating to v4 is known to contain errors affecting conversion of dayfile.txt)
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
Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024
(Note that 4.1.0 (build 4024) - 05 June 2024 remains available, but usage of this version is not recommended - particularly for Davis stations - and the included utility in this distribution for migrating to v4 is known to contain errors affecting conversion of dayfile.txt)
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
Meteotemplate
Moderator: daj
-
- Posts: 131
- Joined: Thu 16 Jan 2014 1:31 pm
- Weather Station: Vantage PRO2
- Operating System: Windows 11
- Location: France
- Contact:
Meteotemplate
Hello Paul,
Your last post that I copied here in the directory more appropriate to our discussion METEOTEMPLATE
*******************************************************************************************************
Hi Michel,
It looks like you have the template working and presumably using the WU data source and would like to use the Cumulus data directly. I will gladly try to show how I have mine working.
Which file to use to read the archives of CUMULUS since 2014 and to install them in the Alldata of Meteotemplate?
First you have to upload the monthly log files to your webserver. Yes, all of the ones you want added to your database alldata table.
Then from the Admin tab select Control Panel and then Data Import from Txt/Csv file. Fill in the required information and then Test Import to make sure the import will be correct. Then Import Data and do the same for each month log file. (Check your MySQL database after the first Import to make sure it looks ok.) It took less than an hour to have all my monthly log files imported - from Nov 2008.
Meteotemplate accepts the date separators YYYY-MM-DD and HH: MM
The format of CUMULUS is:
09/05/17 15:24:16 in two separate fields
From the Admin tab select Control Panel and then Database Update Setup. Select Cumulus and insert the path to your realtime.txt and / (back slash) for the date separator. Test Cumulus to make sure it is updating correctly. Then create a cron job for regular updates. I use cron-job.org and have -template path/update/update.php?passwword=xxxx
How to insert plugins in the menu?
From the Admin tab Menu Menu Setup. Use the existing default Menu items or edit, add as you please. Use the Edit to add in plugin items. Any specific questions on this just let me know.
Regards,
Paul
http://www.komokaweather.com
P.S. I know my http://www.komokaweather.com/j-template loads very slow and that is because I have every block and plugin that I can use with Cumulus in my plugin menu tabs and homepage blocks. .
*******************************************************************************
Thank you for all your information which allowed me to set up a site dedicated to METEOTEMPLATE !!
http://lecourtilauxepines.shost.ca/temp ... esktop.php
Again I put you to contribution !!!
Question:
I do not know how to integrate more than one plugin per tab !!!
This is how I write in the tab FRANCE
Example: AirTraffic
/ Template / plugins / airTraffic
How to put several by tab ??
Thank you for your information
cordially
Michel
http://lecourtilauxepines.shost.ca/temp ... esktop.php
Your last post that I copied here in the directory more appropriate to our discussion METEOTEMPLATE
*******************************************************************************************************
Hi Michel,
It looks like you have the template working and presumably using the WU data source and would like to use the Cumulus data directly. I will gladly try to show how I have mine working.
Which file to use to read the archives of CUMULUS since 2014 and to install them in the Alldata of Meteotemplate?
First you have to upload the monthly log files to your webserver. Yes, all of the ones you want added to your database alldata table.
Then from the Admin tab select Control Panel and then Data Import from Txt/Csv file. Fill in the required information and then Test Import to make sure the import will be correct. Then Import Data and do the same for each month log file. (Check your MySQL database after the first Import to make sure it looks ok.) It took less than an hour to have all my monthly log files imported - from Nov 2008.
Meteotemplate accepts the date separators YYYY-MM-DD and HH: MM
The format of CUMULUS is:
09/05/17 15:24:16 in two separate fields
From the Admin tab select Control Panel and then Database Update Setup. Select Cumulus and insert the path to your realtime.txt and / (back slash) for the date separator. Test Cumulus to make sure it is updating correctly. Then create a cron job for regular updates. I use cron-job.org and have -template path/update/update.php?passwword=xxxx
How to insert plugins in the menu?
From the Admin tab Menu Menu Setup. Use the existing default Menu items or edit, add as you please. Use the Edit to add in plugin items. Any specific questions on this just let me know.
Regards,
Paul
http://www.komokaweather.com
P.S. I know my http://www.komokaweather.com/j-template loads very slow and that is because I have every block and plugin that I can use with Cumulus in my plugin menu tabs and homepage blocks. .
*******************************************************************************
Thank you for all your information which allowed me to set up a site dedicated to METEOTEMPLATE !!
http://lecourtilauxepines.shost.ca/temp ... esktop.php
Again I put you to contribution !!!
Question:
I do not know how to integrate more than one plugin per tab !!!
This is how I write in the tab FRANCE
Example: AirTraffic
/ Template / plugins / airTraffic
How to put several by tab ??
Thank you for your information
cordially
Michel
http://lecourtilauxepines.shost.ca/temp ... esktop.php
OS : Windows 11 Familial
Station Météo : Vantage PRO2
Cumulus MX v.4.0.1 build 4024
https://courtil1.com
Station Météo : Vantage PRO2
Cumulus MX v.4.0.1 build 4024
https://courtil1.com
- PaulMy
- Posts: 3907
- 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: Meteotemplate
Hi Michel,
I hope I have understood your question correctly...
In Settings select Menu| Update Menu so that you will download the latest menu items from Meteotemplate.com
Then in Settings select Menu| Menu Setup and select the tab where you want to add a new item; click on the Edit cog wheel;
use >>> to start a new column
use >> to begin a column
use #plugin(and place your new plugin name here)
use #plugin(and place another new plugin name here)
use #plugin(and place another new plugin name here)
Here is one of my examples:
Enjoy,
Paul
I hope I have understood your question correctly...
In Settings select Menu| Update Menu so that you will download the latest menu items from Meteotemplate.com
Then in Settings select Menu| Menu Setup and select the tab where you want to add a new item; click on the Edit cog wheel;
use >>> to start a new column
use >> to begin a column
use #plugin(and place your new plugin name here)
use #plugin(and place another new plugin name here)
use #plugin(and place another new plugin name here)
Here is one of my examples:
Looks like you had already figured out how to add new tabs.>>>
>>
#plugin(units)
#plugin(apparentTemp)
#plugin(dewpoint)
#plugin(pressureConversion)
#plugin(cloudCalculations)
#plugin(windPower)
>>>
>>
#plugin(geography)
#plugin(worldTime)
>>>
>>
#plugin(airTraffic)
#plugin(marine)
>>>
>>
#plugin(calendar)
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: 131
- Joined: Thu 16 Jan 2014 1:31 pm
- Weather Station: Vantage PRO2
- Operating System: Windows 11
- Location: France
- Contact:
Re: Meteotemplate
Hello Paul,
Currently the site under METEOTEMPLATE works on:
http://lecourtilauxepines.shost.ca/indexDesktop.php
Currently the site under METEOTEMPLATE in parametrage on:
http://lecourtilauxepines.eu/indexDesktop.php
cordially
Michel
Currently the site under METEOTEMPLATE works on:
http://lecourtilauxepines.shost.ca/indexDesktop.php
Currently the site under METEOTEMPLATE in parametrage on:
http://lecourtilauxepines.eu/indexDesktop.php
cordially
Michel
OS : Windows 11 Familial
Station Météo : Vantage PRO2
Cumulus MX v.4.0.1 build 4024
https://courtil1.com
Station Météo : Vantage PRO2
Cumulus MX v.4.0.1 build 4024
https://courtil1.com
- PaulMy
- Posts: 3907
- 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: Meteotemplate
Hi Michel,
A little bit of fun playing with the various blocks and plugins isn't it! Looking good...
Are you still using the WU as source or directly from Cumulus realtime.txt updates?
I notice you have the various plugins added in the /pages folder and then a redirect. Is there a reason for that rather than use /plugin as the folder. I presume that complicates adding new items to the Menu tabs as the usual format is #plugin(plugin name) and the /plugin folder is where it would expect the matching plugin to be located
Also see that some of your Menu tabs go to a new page and presumably there is only one plugin link in those tabs.
Enjoy,
Paul
A little bit of fun playing with the various blocks and plugins isn't it! Looking good...
Are you still using the WU as source or directly from Cumulus realtime.txt updates?
I notice you have the various plugins added in the /pages folder and then a redirect. Is there a reason for that rather than use /plugin as the folder. I presume that complicates adding new items to the Menu tabs as the usual format is #plugin(plugin name) and the /plugin folder is where it would expect the matching plugin to be located
Also see that some of your Menu tabs go to a new page and presumably there is only one plugin link in those tabs.
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: 131
- Joined: Thu 16 Jan 2014 1:31 pm
- Weather Station: Vantage PRO2
- Operating System: Windows 11
- Location: France
- Contact:
Re: Meteotemplate
Hello Paul,
Thank you for your message.
Currently two personal websites in function with METEOTEMPLATE:
http://lecourtilauxepines.eu/indexDesktop.php
http://lecourtilauxepines.shost.ca/indexDesktop.php
On the site :
http://lecourtilauxepines.shost.ca/indexDesktop.php
I use the data from WU
On the site :
http://lecourtilauxepines.eu/indexDesktop.php
I use Realtime.txt from CumulusMX
How I proceed:
CumulusMX sends realtime.txt to the local directory METEOTEMPLATE
SYNCBACKFREE sends the realtime.txt file to the root of the remote site
The update to the database is done with Cron-job.org as recommended
It is necessary to parameterize the remote site (SSL, blocked sites ...) to obtain the correct data.
To simplify the task, I used the archives of WU, they were older than CumulusMX
The settings of the tabs is still in progress, I modify plugins to integrate personal data ...
cordially
Michel
Thank you for your message.
Currently two personal websites in function with METEOTEMPLATE:
http://lecourtilauxepines.eu/indexDesktop.php
http://lecourtilauxepines.shost.ca/indexDesktop.php
On the site :
http://lecourtilauxepines.shost.ca/indexDesktop.php
I use the data from WU
On the site :
http://lecourtilauxepines.eu/indexDesktop.php
I use Realtime.txt from CumulusMX
How I proceed:
CumulusMX sends realtime.txt to the local directory METEOTEMPLATE
SYNCBACKFREE sends the realtime.txt file to the root of the remote site
The update to the database is done with Cron-job.org as recommended
It is necessary to parameterize the remote site (SSL, blocked sites ...) to obtain the correct data.
To simplify the task, I used the archives of WU, they were older than CumulusMX
The settings of the tabs is still in progress, I modify plugins to integrate personal data ...
cordially
Michel
Last edited by courtil on Fri 09 Jun 2017 5:36 am, edited 1 time in total.
OS : Windows 11 Familial
Station Météo : Vantage PRO2
Cumulus MX v.4.0.1 build 4024
https://courtil1.com
Station Météo : Vantage PRO2
Cumulus MX v.4.0.1 build 4024
https://courtil1.com
- PaulMy
- Posts: 3907
- 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: Meteotemplate
Very well done, and like your customizing.
Enjoy,
Paul
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: 131
- Joined: Thu 16 Jan 2014 1:31 pm
- Weather Station: Vantage PRO2
- Operating System: Windows 11
- Location: France
- Contact:
Re: Meteotemplate
Hello everyone,
Forum for METEOTEMPLATE
http://www.meteotemplate.com/forum/index.php
cordially
Michel says Courtil
Forum for METEOTEMPLATE
http://www.meteotemplate.com/forum/index.php
cordially
Michel says Courtil
OS : Windows 11 Familial
Station Météo : Vantage PRO2
Cumulus MX v.4.0.1 build 4024
https://courtil1.com
Station Météo : Vantage PRO2
Cumulus MX v.4.0.1 build 4024
https://courtil1.com
- BeaumarisWX
- Posts: 380
- Joined: Mon 09 Apr 2012 2:38 pm
- Weather Station: Davis VP2 Plus - 24hr FARS
- Operating System: Windows 10 Pro Hades Canyon
- Location: Beaumaris, Tasmania, AU
- Contact:
Re: Meteotemplate
Hi Jachym,
While still in recovery mode I had some time to rebuild a laptop and local website today and rather than go through the lengthy process of re importing all my data into the meteotemplate alldata and indoor tables (as I had deleted them a while back), so I decided to setup mysql query/views from my core cumulusmx tables. This meant absolutely no mods to your script what so ever and requires no update scripts by meteotemplate as cumulusmx does all that. When the views are queried the data is already there.
Works perfect and quick, initial testing shows correct returns and data validation as say for the Temp I just triplicated it and your scripts do the Avg/Max/Min correctly. Brilliant
alldata view from (cumulusmx - monthly tables which are in 1 min intervals);
indoor view from (cumulusmx - monthly tables which are in 1 min intervals);
I will do the same for my Soil (Temp/Moist) in due course.
Kind regards,
While still in recovery mode I had some time to rebuild a laptop and local website today and rather than go through the lengthy process of re importing all my data into the meteotemplate alldata and indoor tables (as I had deleted them a while back), so I decided to setup mysql query/views from my core cumulusmx tables. This meant absolutely no mods to your script what so ever and requires no update scripts by meteotemplate as cumulusmx does all that. When the views are queried the data is already there.
Works perfect and quick, initial testing shows correct returns and data validation as say for the Temp I just triplicated it and your scripts do the Avg/Max/Min correctly. Brilliant
alldata view from (cumulusmx - monthly tables which are in 1 min intervals);
Code: Select all
CREATE VIEW alldata (DateTime, T, Tmax, Tmin, H, P, W, G, R, RR, D, A, B, S) AS
SELECT LogDateTime, Temp, Temp, Temp, Humidity, Pressure, WindSpeed, Windgust, TodayRainSoFar, RainRate, DewPoint, ApparentTemp, Windbearing, SolarRad
FROM `monthly`
Code: Select all
CREATE VIEW indoor (DateTime, Tin, Hin) AS
SELECT LogDateTime, InsideTemp, InsideHumidity
FROM `monthly`
Kind regards,
You do not have the required permissions to view the files attached to this post.
Tony Beaumaris, Tasmania (AUS)
CMX Mobile : https://beaumaris-weather.com/BWX/
CMX Default: https://beaumaris-weather.com/cumulusmx_default/
Colour Dashboard : https://beaumaris-weather.com/dashborad_color.php
Click below for Saratoga Template :
CMX Mobile : https://beaumaris-weather.com/BWX/
CMX Default: https://beaumaris-weather.com/cumulusmx_default/
Colour Dashboard : https://beaumaris-weather.com/dashborad_color.php
Click below for Saratoga Template :
- PaulMy
- Posts: 3907
- 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: Meteotemplate
Hi Tony,
Yet another idea and an issue overcome by you
I don't yet use MX regularly so have not set up a MySQL database through that but do have my dayfile.txt and realtime.txt being updated by the Cumulus import script and cron job. Also have been importing the monthly logs after the end of the month. Would this data work with your method? My meteotemplate is currently using the normal update cron job for updating.
Regards,
Paul
www.komokaweather.com/j-template
Yet another idea and an issue overcome by you
I don't yet use MX regularly so have not set up a MySQL database through that but do have my dayfile.txt and realtime.txt being updated by the Cumulus import script and cron job. Also have been importing the monthly logs after the end of the month. Would this data work with your method? My meteotemplate is currently using the normal update cron job for updating.
Regards,
Paul
www.komokaweather.com/j-template
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
- laulau
- Posts: 678
- Joined: Tue 13 Oct 2009 10:52 pm
- Weather Station: WeatherDuino Pro2
- Operating System: Win 7
- Location: Meyenheim, Alsace, FR
- Contact:
Re: Meteotemplate
Hi Tony,
Once the 'view' is created is it possible to modify the sql code ?
for example to add a 'ORDER BY' or a 'WHERE' option
Once the 'view' is created is it possible to modify the sql code ?
for example to add a 'ORDER BY' or a 'WHERE' option
- BeaumarisWX
- Posts: 380
- Joined: Mon 09 Apr 2012 2:38 pm
- Weather Station: Davis VP2 Plus - 24hr FARS
- Operating System: Windows 10 Pro Hades Canyon
- Location: Beaumaris, Tasmania, AU
- Contact:
Re: Meteotemplate
Hi Paul and laulau,
I will start by stating the the primary reason for my earlier post was purely meant as a (fyi) for Jachym as to what I had done to meet my requirements, being a quick way to reference the mysql data I already had and to eliminate the need for duplication of data in tables and having to upload historic data.
I did not foresee anyone wanting to use it and do not want to go down the road of modifying jachym's script nor be involved in helping do so for others.
Having said that I am more than happy with my outcome and time saving as well.
However regardless, in order to answer your question Paul :
No it will not work correctly with your setup (as mentioned in my post it was for CumulusMX setup, or rather a cumulus user who updates the monthlogs as I do in realtime (not something most would do), but as you know I am local only and I have no issues with that.
laulau as above (but yes can you do what you like with the initial script no need to change it afterwards. Add OrderBy or whatever from the start), though no need to and can't think why one would need to add a where clause.
I setup my alldataExtra view as well, now just need to work out how to utilize it. (my soil data table is not standard).
And example of my outputs from the mysql views (note: I have no tables called alldata etc
Kind regards,
I will start by stating the the primary reason for my earlier post was purely meant as a (fyi) for Jachym as to what I had done to meet my requirements, being a quick way to reference the mysql data I already had and to eliminate the need for duplication of data in tables and having to upload historic data.
I did not foresee anyone wanting to use it and do not want to go down the road of modifying jachym's script nor be involved in helping do so for others.
Having said that I am more than happy with my outcome and time saving as well.
However regardless, in order to answer your question Paul :
No it will not work correctly with your setup (as mentioned in my post it was for CumulusMX setup, or rather a cumulus user who updates the monthlogs as I do in realtime (not something most would do), but as you know I am local only and I have no issues with that.
laulau as above (but yes can you do what you like with the initial script no need to change it afterwards. Add OrderBy or whatever from the start), though no need to and can't think why one would need to add a where clause.
I setup my alldataExtra view as well, now just need to work out how to utilize it. (my soil data table is not standard).
Code: Select all
CREATE VIEW alldataExtra (DateTime, UV, SS, SM1, SM2, ST1, ST2) AS
SELECT monthly.LogDateTime, monthly.UVindex, monthly.HrsSunShine, vpsoildatasql.SoilMoisture1, vpsoildatasql.SoilMoisture2, vpsoildatasql.SoilTemp1, vpsoildatasql.SoilTemp2
FROM monthly, vpsoildatasql
WHERE monthly.LogDateTime = vpsoildatasql.LogDateTime
Kind regards,
You do not have the required permissions to view the files attached to this post.
Tony Beaumaris, Tasmania (AUS)
CMX Mobile : https://beaumaris-weather.com/BWX/
CMX Default: https://beaumaris-weather.com/cumulusmx_default/
Colour Dashboard : https://beaumaris-weather.com/dashborad_color.php
Click below for Saratoga Template :
CMX Mobile : https://beaumaris-weather.com/BWX/
CMX Default: https://beaumaris-weather.com/cumulusmx_default/
Colour Dashboard : https://beaumaris-weather.com/dashborad_color.php
Click below for Saratoga Template :
- PaulMy
- Posts: 3907
- 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: Meteotemplate
Hi Tony, and understand.
My setup is working excellent, but always interested in what is available.
Regards, and keep well.
Paul
My setup is working excellent, but always interested in what is available.
Regards, and keep well.
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: 131
- Joined: Thu 16 Jan 2014 1:31 pm
- Weather Station: Vantage PRO2
- Operating System: Windows 11
- Location: France
- Contact:
Re: Meteotemplate
Hello everyone,
New script from Meteotemplate
Meteotemplate 16.0 Physalis
See the blog for more info about this version
http://meteotemplate.com/
cordially
Michel says Courtil
New script from Meteotemplate
Meteotemplate 16.0 Physalis
See the blog for more info about this version
http://meteotemplate.com/
cordially
Michel says Courtil
OS : Windows 11 Familial
Station Météo : Vantage PRO2
Cumulus MX v.4.0.1 build 4024
https://courtil1.com
Station Météo : Vantage PRO2
Cumulus MX v.4.0.1 build 4024
https://courtil1.com
- K8POS
- Posts: 94
- Joined: Sat 03 Jan 2015 4:17 am
- Weather Station: Davis Vantage Pro2
- Operating System: Windows 7
- Location: Thumb of Michigan
- Contact:
Re: Meteotemplate
Has anyone figured out a way to run the "UPDATE.PHP" more than once per minute?
I have Cumulus uploading the realtime.txt every 10 seconds, but Meteotemplate will only run the UPDATE.PHP once per minute via a cron job.
There has to be a way to modify the UPDATE.PHP with a loop and a sleep function so that it will execute every 10 seconds.
Right now the ssGauges look static due to the update only happening once per minute.
My thoughts were to have the cron job initiate the UPDATE.PHP (as it does now) Have it loop 5 times with a 10 second delay. After the 5th loop or 50 seconds it would die until the cron job starts it again.
PHP programming is my weak point.
Any thoughts
I have Cumulus uploading the realtime.txt every 10 seconds, but Meteotemplate will only run the UPDATE.PHP once per minute via a cron job.
There has to be a way to modify the UPDATE.PHP with a loop and a sleep function so that it will execute every 10 seconds.
Right now the ssGauges look static due to the update only happening once per minute.
My thoughts were to have the cron job initiate the UPDATE.PHP (as it does now) Have it loop 5 times with a 10 second delay. After the 5th loop or 50 seconds it would die until the cron job starts it again.
PHP programming is my weak point.
Any thoughts
- mcrossley
- Posts: 12966
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: Meteotemplate
I have no knowledge of how Meteotemplate works, but here's my t'uppence worth...K8POS wrote:Has anyone figured out a way to run the "UPDATE.PHP" more than once per minute?
I have Cumulus uploading the realtime.txt every 10 seconds, but Meteotemplate will only run the UPDATE.PHP once per minute via a cron job.
There has to be a way to modify the UPDATE.PHP with a loop and a sleep function so that it will execute every 10 seconds.
Right now the ssGauges look static due to the update only happening once per minute.
My thoughts were to have the cron job initiate the UPDATE.PHP (as it does now) Have it loop 5 times with a 10 second delay. After the 5th loop or 50 seconds it would die until the cron job starts it again.
PHP programming is my weak point.
Any thoughts
Sounds like cron is the wrong tool for you. What I'd do is run a job in the background - you could use cron to start it - that monitored the realtime.txt file, and every time it was updated, call or do whatever update.php does.
I did exactly that when I was playing around with creating a websocket server to drive the ssgauges.
EDIT: OR, get Cumulus to call your PHP script via http every time it uploads realtime.txt?