Author Topic: Help Trends con Cumulus  (Read 570 times)

0 Members and 1 Guest are viewing this topic.

Offline ea1hmy

  • Contributor
  • ***
  • Posts: 107
    • meteotorrelavega
Help Trends con Cumulus
« on: May 06, 2018, 07:35:57 AM »
Hello,
how to correct the date of the year 1970 in the wxtrends.php template with Cumulus
Thank you

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6880
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Help Trends con Cumulus
« Reply #1 on: May 06, 2018, 10:10:31 AM »
Your default page shows a Leuven template.  What is the URL to the wxtrends.php page that shows the error?
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline ea1hmy

  • Contributor
  • ***
  • Posts: 107
    • meteotorrelavega
Re: Help Trends con Cumulus
« Reply #2 on: May 07, 2018, 02:07:59 AM »
Hello Ken,
Use the Saratoga Template, the script is CU-trends-inc.php version
print "<! - begin CU-trends-inc.php V1.10 - 30-Sep-2017 -> \ n" ;.
The website is:
http://www.tiempoenxativa.es/saratoga/wxtrends.php
Thank you for your attention

Offline saratogaWX

  • Administrator
  • Forecaster
  • *****
  • Posts: 6880
  • Saratoga, CA, USA Weather - free PHP scripts
    • Saratoga-Weather.org
Re: Help Trends con Cumulus
« Reply #3 on: May 08, 2018, 02:55:44 PM »
In your CUtags.php, the dates are shown in Spanish.  You need to change in Settings.php
Code: [Select]
$SITE['monthNames'] = array(  // for wxastronomy page .. replace with month names in your language
'January','February','March','April','May','June',
'July','August','September','October','November','December'
);
to
Code: [Select]
$SITE['monthNames'] = array(  // for wxastronomy page .. replace with month names in your language
"enero","febrero","marzo","abril","mayo","junio",
"julio","agosto","septiembre","octubre","noviembre","diciembre"
);
so the dates can be handled correctly (by translating Spanish months to English for PHP calculations, then back to Spanish if needed).
« Last Edit: May 08, 2018, 02:57:31 PM by saratogaWX »
Ken True/Saratoga, CA, USA main site: saratoga-weather.org
Davis VP1+ FARS, Boltek-PCI/NexStorm, microSferics ToA, Blitzortung RED, GRLevel3, WD, WL, VWS, Cumulus, Meteobridge/hub
Free weather PHP scripts/website templates - update notifications on Twitter saratogaWXPHP

Offline ea1hmy

  • Contributor
  • ***
  • Posts: 107
    • meteotorrelavega
Re: Help Trends con Cumulus
« Reply #4 on: May 09, 2018, 02:00:31 AM »
Thank you for your attention
 =D&gt; =D&gt; \:D/ \:D/

 

anything