Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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 V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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
HighCharts displaying wrong date
- N0BGS
- Posts: 205
- Joined: Sat 10 Nov 2012 2:26 am
- Weather Station: Davis Vantage Pro 2
- Operating System: Win10vm,VMWare ESXi 7.0
- Location: Hermon, Maine USA
- Contact:
HighCharts displaying wrong date
Obviously doing something all wrong here, but I can't find it in the code. I'm using Mark's Highcharts - Realtime package and
TNET's Cumulus RealTimeLog Script on a Linux server.
This is what I get when I go to the chart on my site:
Of course, today is May 1st, not June 4th.
If I wait approximately 2 minutes the chart flips back to this multi-year view:
Anyone know what I'm doing wrong? Probably something easy that I am just overlooking.
You can see it for yourself at: http://cheesewhiz.dyndns.org/realtimeCumulus.htm
Thanks,
--Kurt
TNET's Cumulus RealTimeLog Script on a Linux server.
This is what I get when I go to the chart on my site:
Of course, today is May 1st, not June 4th.
If I wait approximately 2 minutes the chart flips back to this multi-year view:
Anyone know what I'm doing wrong? Probably something easy that I am just overlooking.
You can see it for yourself at: http://cheesewhiz.dyndns.org/realtimeCumulus.htm
Thanks,
--Kurt
Blitzortung Station 1809
- nitrx
- Posts: 1297
- Joined: Sun 13 Dec 2009 1:21 pm
- Weather Station: WH1080
- Operating System: Windows 10
- Location: Apeldoorn The Netherlands
- Contact:
Re: HighCharts displaying wrong date
Your realtime.log http://cheesewhiz.dyndns.org/realtime.log has other date seprators I'm not sure if this causes the probles, I think Mark has a better answer..
- nitrx
- Posts: 1297
- Joined: Sun 13 Dec 2009 1:21 pm
- Weather Station: WH1080
- Operating System: Windows 10
- Location: Apeldoorn The Netherlands
- Contact:
Re: HighCharts displaying wrong date
Your realtime.log http://cheesewhiz.dyndns.org/realtime.log has other date seprators I'm not sure if this causes the probles, I think Mark has a better answer.. and there is someting wrong with realtimeLogParser.php view http://cheesewhiz.dyndns.org/realtimeLo ... p?sce=view
- N0BGS
- Posts: 205
- Joined: Sat 10 Nov 2012 2:26 am
- Weather Station: Davis Vantage Pro 2
- Operating System: Win10vm,VMWare ESXi 7.0
- Location: Hermon, Maine USA
- Contact:
Re: HighCharts displaying wrong date
Oh, you're right, Ron. Nice catch.
Getting a "No valid data types supplied" from realtimeLogParser.php.
I'll investigate that.
Thanks,
--Kurt
Getting a "No valid data types supplied" from realtimeLogParser.php.
I'll investigate that.
Thanks,
--Kurt
Blitzortung Station 1809
- nitrx
- Posts: 1297
- Joined: Sun 13 Dec 2009 1:21 pm
- Weather Station: WH1080
- Operating System: Windows 10
- Location: Apeldoorn The Netherlands
- Contact:
Re: HighCharts displaying wrong date
I think you have to change the following lines in the .php file
according to your realtime.log good luck
Code: Select all
$field_delimiter = ' ';
$date_delimiter = '-';
$time_delimiter = ':';
- N0BGS
- Posts: 205
- Joined: Sat 10 Nov 2012 2:26 am
- Weather Station: Davis Vantage Pro 2
- Operating System: Win10vm,VMWare ESXi 7.0
- Location: Hermon, Maine USA
- Contact:
Re: HighCharts displaying wrong date
When I change:
The date displayed is Friday, Nov 3!
Code: Select all
$date_delimiter = '-';
Blitzortung Station 1809
- nitrx
- Posts: 1297
- Joined: Sun 13 Dec 2009 1:21 pm
- Weather Station: WH1080
- Operating System: Windows 10
- Location: Apeldoorn The Netherlands
- Contact:
Re: HighCharts displaying wrong date
your datenotation is 2013-04-30 ergo yyyy-mm-dd
mine is dd-mm-yyyy http://apeldoorn.hollandweather.net/rt/ I think there should be changed somerthing in the script ( js script) unfortunally I've no idea what , wating for Mark Mc
edit: the realtimeparser gives the same error anyway http://cheesewhiz.dyndns.org/realtimeLo ... p?sce=view
mine is dd-mm-yyyy http://apeldoorn.hollandweather.net/rt/ I think there should be changed somerthing in the script ( js script) unfortunally I've no idea what , wating for Mark Mc
edit: the realtimeparser gives the same error anyway http://cheesewhiz.dyndns.org/realtimeLo ... p?sce=view
- N0BGS
- Posts: 205
- Joined: Sat 10 Nov 2012 2:26 am
- Weather Station: Davis Vantage Pro 2
- Operating System: Win10vm,VMWare ESXi 7.0
- Location: Hermon, Maine USA
- Contact:
Re: HighCharts displaying wrong date
I believe it is normal for realtimeparser.php to return that error without any input. According to the comments in Mark's PHP script:
These are the http calls to my server:
216.x.x.x [03/May/2013:10:03:23 -0400] "GET /realtimeLogParser.php?count=180&rfall&press&wspeed&temp HTTP/1.1" 200 14384 "http://cheesewhiz.dyndns.org/realtimeCumulus.htm" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
216.x.x.x - - [03/May/2013:10:04:23 -0400] "GET /realtime.txt?_=1367589862022 HTTP/1.1" 200 270 "http://cheesewhiz.dyndns.org/realtimeCumulus.htm" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
216.x.x.x - - [03/May/2013:10:05:23 -0400] "GET /realtime.txt?_=1367589922023 HTTP/1.1" 200 269 "http://cheesewhiz.dyndns.org/realtimeCumulus.htm" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
I have no idea what the problem is.
So, I don't think that is the cause. I've double and triple checked all the Linux permissions and the time and date delimiters. No go.Call this script as e.g. ...realtimeLogParser.php?count=N&temp&dew
Where count=N returns the last N rows worth of data from the log file
if the count parameter is omitted all available records are returned.
These are the http calls to my server:
216.x.x.x [03/May/2013:10:03:23 -0400] "GET /realtimeLogParser.php?count=180&rfall&press&wspeed&temp HTTP/1.1" 200 14384 "http://cheesewhiz.dyndns.org/realtimeCumulus.htm" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
216.x.x.x - - [03/May/2013:10:04:23 -0400] "GET /realtime.txt?_=1367589862022 HTTP/1.1" 200 270 "http://cheesewhiz.dyndns.org/realtimeCumulus.htm" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
216.x.x.x - - [03/May/2013:10:05:23 -0400] "GET /realtime.txt?_=1367589922023 HTTP/1.1" 200 269 "http://cheesewhiz.dyndns.org/realtimeCumulus.htm" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0"
I have no idea what the problem is.
Blitzortung Station 1809
- N0BGS
- Posts: 205
- Joined: Sat 10 Nov 2012 2:26 am
- Weather Station: Davis Vantage Pro 2
- Operating System: Win10vm,VMWare ESXi 7.0
- Location: Hermon, Maine USA
- Contact:
Re: HighCharts displaying wrong date
If I input the following URL: http://cheesewhiz.dyndns.org/realtimeLo ... 5&temp&dew
This is the output:
So, I think it is working.
This is the output:
Code: Select all
{"temp":[[1117879915000,54.4],[1117879975000,54.5],[1117880035000,54.5],[1117880095000,54.5],[1117880155000,54.6]],"dew":[[1117879915000,42.1],[1117879975000,42.2],[1117880035000,41.7],[1117880095000,41.7],[1117880155000,42.3]]}
Blitzortung Station 1809
- mcrossley
- Posts: 12756
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: HighCharts displaying wrong date
The realtimeLogParser is returning the incorrect date for some reason.
Can you look at your realtime table in MySQL and check what the date/times are showing up as there?
Can you look at your realtime table in MySQL and check what the date/times are showing up as there?
- nitrx
- Posts: 1297
- Joined: Sun 13 Dec 2009 1:21 pm
- Weather Station: WH1080
- Operating System: Windows 10
- Location: Apeldoorn The Netherlands
- Contact:
Re: HighCharts displaying wrong date
The data are not extracted from mysql but from http://cheesewhiz.dyndns.org/realtime.log
- mcrossley
- Posts: 12756
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: HighCharts displaying wrong date
Ah, sorry, still catching up from a few days away in Scotland.
Try the following script - I have added a config param of the date format ($date_format = 'dmy'; is the default), change that to 'ymd'
(I think 0.1 was the last one I used? Sorry but I am using the SQL version).
Renaming from .txt to .php obviously
Try the following script - I have added a config param of the date format ($date_format = 'dmy'; is the default), change that to 'ymd'
(I think 0.1 was the last one I used? Sorry but I am using the SQL version).
Renaming from .txt to .php obviously
You do not have the required permissions to view the files attached to this post.
- N0BGS
- Posts: 205
- Joined: Sat 10 Nov 2012 2:26 am
- Weather Station: Davis Vantage Pro 2
- Operating System: Win10vm,VMWare ESXi 7.0
- Location: Hermon, Maine USA
- Contact:
Re: HighCharts displaying wrong date
That's done it Mark!
Your code, with the settings below, made it work:
Part of what was throwing me was the "The various delimiters used in your version of realtime.txt" line.
I believe that should read, at least in my case, "The various delimiters used in your version of realtime.log" because the delimiters in my realtime.txt and realtime.log files are not the same.
In any case, it would not have worked without the addition of your "$date_format = " snippet.
BTW, I do have MySql on my Linux box and would much prefer to have the capability to pull near-realtime and historical data from there. I know how to get the data into the db, I just don't know how to get it out. SO, if you happen to have some old code laying around that you aren't using...
Thanks so much...again!
--Kurt
Your code, with the settings below, made it work:
Code: Select all
// The name of your realtime.txt log file
$logfile = 'realtime.log';
// The various delimiters used in your version of realtime.txt
$field_delimiter = ' ';
$date_delimiter = '-';
$time_delimiter = ':';
$date_format = 'ymd'; // valid formats are 'dmy', 'mdy', and 'ymd'
I believe that should read, at least in my case, "The various delimiters used in your version of realtime.log" because the delimiters in my realtime.txt and realtime.log files are not the same.
In any case, it would not have worked without the addition of your "$date_format = " snippet.
BTW, I do have MySql on my Linux box and would much prefer to have the capability to pull near-realtime and historical data from there. I know how to get the data into the db, I just don't know how to get it out. SO, if you happen to have some old code laying around that you aren't using...
Thanks so much...again!
--Kurt
Blitzortung Station 1809
- mcrossley
- Posts: 12756
- Joined: Thu 07 Jan 2010 9:44 pm
- Weather Station: Davis VP2/WLL
- Operating System: Bullseye Lite rPi
- Location: Wilmslow, Cheshire, UK
- Contact:
Re: HighCharts displaying wrong date
Great.N0BGS wrote:That's done it Mark!
Just take a look at my now/index page...N0BGS wrote:BTW, I do have MySql on my Linux box and would much prefer to have the capability to pull near-realtime and historical data from there. I know how to get the data into the db, I just don't know how to get it out. SO, if you happen to have some old code laying around that you aren't using...
http://weather.wilmslowastro.com/realti ... p?view=sce