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
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
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
Moderator: daj
-
- Posts: 79
- Joined: Mon 09 Mar 2015 10:45 am
- Weather Station: wh3080
- Operating System: windows
- Location: Cosenza
-
- 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
Difficult to understand exactly what you are trying to achieve but the PHP echo command is incorrect.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"> "
If it is Average Temperature you are trying to get from cumuluswebtags.php (I assume you have
Code: Select all
<?php require "cumuluswebtags.php";?>
Code: Select all
"<td style =" text-align: left; padding-left: 10px ">
<input class = "button" value = "<? php echo $avgtemp?>" id = "avgT" style = "width: 75px">
- 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
There's a few things wrong here....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"> "
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?