Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.0.1 (build 4023) - 16 May 2024

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

Script ET

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

Moderator: daj

Post Reply
MeteoBisignano
Posts: 79
Joined: Mon 09 Mar 2015 10:45 am
Weather Station: wh3080
Operating System: windows
Location: Cosenza

Script ET

Post by MeteoBisignano »

Hi I'm trying to load data from cumulus but I can not
Would you give me some help?
This is the string that loads the data "<td style =" text-align: left; padding-left: 10px ">
<input class = "button" value = "<? php echo $ t?>" id = "avgT" style = "width: 75px"> "

I tried to include the file cumuluswebtag.php also changing the value in $ temp but I do not returns.
How do you load the data from Cumulus
Here's an example page with data entered manually: http://stazionemeteobisignano.it/NOAA.php
water01
Posts: 3315
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: Script ET

Post by water01 »

This is the string that loads the data "<td style =" text-align: left; padding-left: 10px ">
<input class = "button" value = "<? php echo $ t?>" id = "avgT" style = "width: 75px"> "
Difficult to understand exactly what you are trying to achieve but the PHP echo command is incorrect.

If it is Average Temperature you are trying to get from cumuluswebtags.php (I assume you have

Code: Select all

<?php require "cumuluswebtags.php";?> 
in your HTML head area) then the code should be

Code: Select all

"<td style =" text-align: left; padding-left: 10px ">
<input class = "button" value = "<? php echo $avgtemp?>" id = "avgT" style = "width: 75px"> 
unless you have a variable called $ t which is against PHP syntax rules!!
David
Image
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Script ET

Post by daj »

This is the string that loads the data "<td style =" text-align: left; padding-left: 10px ">
<input class = "button" value = "<? php echo $ t?>" id = "avgT" style = "width: 75px"> "
There's a few things wrong here....

firstly it is <?php with NO spaces
secondly, echo $t; NO Spaces


I'm assuming you have already created a variable $t with a value?! if you are using the standard php webtags file there is no $t variable.

Any reason why you are creating a button to show the value?
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
Post Reply