Just wondering if there was an easy way to import the raw log files into the website?
So that I can display the historical data in table format
For example - much the same way that weather underground shows it for user weather stations (scroll to bottom of page)
example http://www.wunderground.com/weatherstat ... =IWADARLI2
Scott
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
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
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
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
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
import raw log file into the website in table format
- sunray24
- Posts: 41
- Joined: Wed 20 Oct 2010 1:05 pm
- Weather Station: Ecowitt GW1100
- Operating System: Windows 11
- Location: Cunderdin, Western Australia
- Contact:
import raw log file into the website in table format
Scott
Station: Ecowitt GW1100
Location: Cunderdin, Western Australia
Website: http://bucklandtech.com.au/index.htm
Station: Ecowitt GW1100
Location: Cunderdin, Western Australia
Website: http://bucklandtech.com.au/index.htm
- daj
- Posts: 2041
- Joined: Tue 29 Jul 2008 8:00 pm
- Weather Station: WH1081
- Operating System: Pi & MX
- Location: SW Scotland
- Contact:
Re: import raw log file into the website in table format
Scott
This may be a good place to start the reading....https://cumulus.hosiene.co.uk/viewtopic.php?f=18&t=2367
I'm sure there was chat of a solution only using the TXT file but i can't find the post
There are a number of things to think of....
Getting the data onto the web server regularly
How to store on the server (text file, database)
How to present to the user
This may be a good place to start the reading....https://cumulus.hosiene.co.uk/viewtopic.php?f=18&t=2367
I'm sure there was chat of a solution only using the TXT file but i can't find the post
There are a number of things to think of....
Getting the data onto the web server regularly
How to store on the server (text file, database)
How to present to the user
- sunray24
- Posts: 41
- Joined: Wed 20 Oct 2010 1:05 pm
- Weather Station: Ecowitt GW1100
- Operating System: Windows 11
- Location: Cunderdin, Western Australia
- Contact:
Re: import raw log file into the website in table format
Thanks David for your reply
Will read up on it
Scott
Will read up on it
Scott
Scott
Station: Ecowitt GW1100
Location: Cunderdin, Western Australia
Website: http://bucklandtech.com.au/index.htm
Station: Ecowitt GW1100
Location: Cunderdin, Western Australia
Website: http://bucklandtech.com.au/index.htm
- nitrx
- Posts: 1297
- Joined: Sun 13 Dec 2009 1:21 pm
- Weather Station: WH1080
- Operating System: Windows 10
- Location: Apeldoorn The Netherlands
- Contact:
Re: import raw log file into the website in table format
Parsing the dayfile.txt is over here https://cumulus.hosiene.co.uk/viewtopic.php?f=14&t=2419
-
DaveNZ
- Posts: 373
- Joined: Mon 07 Dec 2009 10:27 pm
- Weather Station: Davis VP2
- Operating System: Windows 7 64-bit
- Location: Howick, Auckland, New Zealand
- Contact:
Re: import raw log file into the website in table format
If I have understood you correctly, you want to display the file such as Oct10log.txt in table format.
I have done something similar recently.
EDIT sorry just saw David's post and link to the other thread, d'oh!!
still I will leave my rough outline below
I have done something similar recently.
EDIT sorry just saw David's post and link to the other thread, d'oh!!
still I will leave my rough outline below
Code: Select all
some html...
<table>
<tr>
insert table headings...
<tr>
<?php
$f="Oct10log.txt";
$logfile=fopen($f,"r");
while (!feof($logfile)) {
$data=fgets($logfile);
$dataA=explode(",",$data);
echo "<tr>";
for ($i=0;$i<count($dataA);$i++) {
echo "<td>$dataA[$i]</td>";
}
echo "</tr>";
}
fclose($logfile);
?>
</table>
....rest of html
- beteljuice
- Posts: 3292
- Joined: Tue 09 Dec 2008 1:37 pm
- Weather Station: None !
- Operating System: W10 - Threadripper 16core, etc
- Location: Dudley, West Midlands, UK
Re: import raw log file into the website in table format
The beteljuice started (but yet again did not complete) playing with the 'flat' file / php combination.
Work never finished here in rough form (so I could see what was happening as I coded)
http://www.beteljuice.com/dayfile/take3.php
As a lot of people seem to have mysql etc, plus some have come up some excellent graphing options, plus now there is even more data to consider ....... it sits quietly in my webspace (sorry nitrx).
As you will see, it determines the wx units AND PC delimiters and delivers any calculated results in the same format.
Work never finished here in rough form (so I could see what was happening as I coded)
http://www.beteljuice.com/dayfile/take3.php
As a lot of people seem to have mysql etc, plus some have come up some excellent graphing options, plus now there is even more data to consider ....... it sits quietly in my webspace (sorry nitrx).
As you will see, it determines the wx units AND PC delimiters and delivers any calculated results in the same format.
......................Imagine, what you will KNOW tomorrow !