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

Realtime.txt and mysql

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

Moderator: daj

Post Reply
mspec

Realtime.txt and mysql

Post by mspec »

OK so I finally managed to figure out how to take the data from realtime.txt and put it into a database on mysql. I currently have it running via a cron job and so far so good. There are 58 column's within the table and cron updates it every minute.
This make's the data very accessable for anybody wanting to build their site graphs ect.
Just as an example here is a trend graph for outside temp. Bear in mind that I have only managed to have the cron job running for the last hour or so so there are only 80 odd records to plot with, But it is building by the minute :D .

Am i going to release the code for doing all this, Of course I am but I would like a week of making sure its all stable before I do.

Oh here is the example, Should change and grow over the next couple of days as more data is added to the database.

Edit: Seems to be showing the year 2018, Have to figure out how to format data into correct date format its not storing it correctly in the database.

http://mspec.no-ip.org/spline.php
Last edited by mspec on Sun 19 Feb 2012 6:08 am, edited 1 time in total.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Realtime.txt and mysql

Post by steve »

Nice work :)
Steve
mspec

Re: Realtime.txt and mysql

Post by mspec »

Thanks Steve, I really am a novice to this and my code shows it lol, Thanks to the help of somebody else its now inserting the correct date for 2012 and not 2018 lol.
mspec

Re: Realtime.txt and mysql

Post by mspec »

Ok so far so good with over 2k lines of data inserted into the database. I thought I would like to start playing around with something a bit better in the way of graphs and set my sights on Highchart, Its taken me all day to figure it out mainly because I have no idea what I am doing. Finally succeeded in producing what I wanted.
I guess this is just the start, with a data base at your finger tips you could pull out and use what ever data you wanted as long as you knew how.

Here is the Highchart, http://mspec.no-ip.org/spline.php
User avatar
beelzebubs
Posts: 62
Joined: Sun 04 Oct 2009 10:18 pm
Weather Station: Davis VP2
Operating System: Windows 7
Location: Sweden
Contact:

Re: Realtime.txt and mysql

Post by beelzebubs »

Looking nice, really nice :clap: *thumbs up*
Post Reply