Sandaysoft

Support forum for Cumulus weather station software
It is currently Tue Jun 18, 2013 10:31 pm
Please click here before posting. Help me to help you!
Useful Links: Cumulus FAQ • Enhancement requests • Wiki (documentation)
Please put your approximate location into your profile
Add your web site to the Cumulus user map
Vantage Pro2 users with firmware 3.00 should upgrade to fw 3.12 and Cumulus 1.9.4

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Realtime.txt and mysql
PostPosted: Fri Feb 17, 2012 4:03 pm 
Offline

Joined: Sun Jan 15, 2012 11:21 pm
Posts: 32
Location: Christchurch
Weather Station: WH3081
Operating System: Windows 7
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 Feb 19, 2012 6:08 am, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: Realtime.txt and mysql
PostPosted: Fri Feb 17, 2012 6:40 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17827
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
Nice work :)

_________________
Steve
Sanday Weather
----------------------------------------------------------------------------------------------------------------------------------
Like Cumulus and want to support it? Please donate! Image


Top
 Profile  
 
 Post subject: Re: Realtime.txt and mysql
PostPosted: Fri Feb 17, 2012 8:23 pm 
Offline

Joined: Sun Jan 15, 2012 11:21 pm
Posts: 32
Location: Christchurch
Weather Station: WH3081
Operating System: Windows 7
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.


Top
 Profile  
 
 Post subject: Re: Realtime.txt and mysql
PostPosted: Sun Feb 19, 2012 6:15 am 
Offline

Joined: Sun Jan 15, 2012 11:21 pm
Posts: 32
Location: Christchurch
Weather Station: WH3081
Operating System: Windows 7
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


Top
 Profile  
 
 Post subject: Re: Realtime.txt and mysql
PostPosted: Sun Feb 19, 2012 5:26 pm 
Offline
User avatar

Joined: Sun Oct 04, 2009 10:18 pm
Posts: 49
Location: Sweden
Weather Station: Davis VP2
Operating System: Windows XP
Looking nice, really nice :clap: *thumbs up*

_________________
http://vader.beelzebubs.net/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group