Paul C wrote: ↑Mon 24 Jan 2022 1:31 pm
Cheers Trevor !!!! much appreciated
At last I have something on my screen.
Its not quiet right, but getting there I think
http://www.bramptonweather.co.uk/yadr.php
historical files stop at 2018 ? and the formatting doesnt look right.
Hi Paul,
It looks like you have not unzipped the files before copying them across to your server. All of your references are pointing to a location on your local computer rather than your web server.
Code from your page looks like this: (I've highlighted in blue the lines with incorrect references)
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="weather data">
<meta name="keywords" content="Cumulus, weather, data, weather station">
<meta name="author" content="beteljuice">
<title>Data Summary</title>
<link rel="icon" type="image/png" href="../../../../AppData/Local/Temp/Temp1_yadr.zip/images/favicon.png">
<!-- jQuery library -->
<script src="../../../../AppData/Local/Temp/Temp1_yadr.zip/lib/jquery/jquery-latest.min.js"></script>
<!-- Fonts System will default to a sans-serif font if no Internet connection -->
<link rel="preconnect" href="
https://fonts.gstatic.com">
<link href="
https://fonts.googleapis.com/css2?famil ... splay=swap" rel="stylesheet">
<!-- All Styles -->
<link href="../../../../AppData/Local/Temp/Temp1_yadr.zip/css/w3Pro.css" rel="stylesheet"> <!-- Basic w3shools responsive styles -->
<link href="../../../../AppData/Local/Temp/Temp1_yadr.zip/css/colours.css" rel="stylesheet"> <!-- Slightly enhanced w3schools colours -->
<link href="../../../../AppData/Local/Temp/Temp1_yadr.zip/css/mx-templates.css" rel="stylesheet"> <!-- Specific styles for these templates. -->
<link rel="stylesheet" type="text/css" media="screen" href="../../../../AppData/Local/Temp/Temp1_yadr.zip/css/700betel_datasummary.css" /> <!-- Specific styles for THIS template. -->
<style>
The above should look like this:
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="weather data">
<meta name="keywords" content="Cumulus, weather, data, weather station">
<meta name="author" content="beteljuice">
<title>Data Summary</title>
<link rel="icon" type="image/png" href="images/favicon.png">
<!-- jQuery library -->
<script src="lib/jquery/jquery-latest.min.js"></script>
<!-- Fonts System will default to a sans-serif font if no Internet connection -->
<link rel="preconnect" href="
https://fonts.gstatic.com">
<link href="
https://fonts.googleapis.com/css2?famil ... splay=swap" rel="stylesheet">
<!-- All Styles -->
<link href="css/w3Pro.css" rel="stylesheet"> <!-- Basic w3shools responsive styles -->
<link href="css/colours.css" rel="stylesheet"> <!-- Slightly enhanced w3schools colours -->
<link href="css/mx-templates.css" rel="stylesheet"> <!-- Specific styles for these templates. -->
<link rel="stylesheet" type="text/css" media="screen" href="css/700betel_datasummary.css" /> <!-- Specific styles for THIS template. -->
<style>
As a test, I just downloaded the files and followed the instructions I gave you and everything worked perfectly, apart from it didn't find dayfile.txt. This was because betel_readDayfile.php has the location of the dayfile in a folder called "data". I edited the location and all was good.
Regards,
Trevor