Sandaysoft

Support forum for Cumulus weather station software
It is currently Tue May 21, 2013 9:12 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  [ 50 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: Realtime and mysql download available.
PostPosted: Mon Apr 23, 2012 5:58 pm 
Offline

Joined: Sun Jan 15, 2012 11:21 pm
Posts: 32
Location: Christchurch
Weather Station: WH3081
Operating System: Windows 7
inaciovieira wrote:
i have traied in a file called teste and already moved the real.php to the root sit and its the same.
Is it because the version of cumulus? I have the Cumulus (1.9.2-b1031) .
I have also treid on a local server anda dosent run.
Is it because im portugal user :bash:


lol no its not because you are a portugal user, the version of cumulus should be fine as its putting out the same amount of fields. Could you start fresh on your local server and keep things as outlined in the instructions, make a database called weather then run the sqlsetup so it creates the table realtime then try running real.php in the root directory making sure you have defined the path correctly. There is no reason why it should not be working and I am sure its a simple mistake somewhere along the line.


Top
 Profile  
 
 Post subject: Re: Realtime and mysql download available.
PostPosted: Mon Apr 23, 2012 6:12 pm 
Offline

Joined: Sun May 01, 2011 7:13 pm
Posts: 45
Location: Funchal
Weather Station: Watson
Operating System: Windows 7
well i traied on the local server
real.php
Code:
//Edit below your sql info
$databasehost = "localhost";
$databasename = "weather";
$databasetable = "realtime";
$databaseusername ="root";
$databasepassword = "";
$fieldseparator = " ";
$lineseparator = "\n";
$realfile = "../realtime.txt"; //example /home/weather/www/realtime.txt

it guives an error on the page


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
 Post subject: Re: Realtime and mysql download available.
PostPosted: Mon Apr 23, 2012 6:36 pm 
Offline

Joined: Sun Jan 15, 2012 11:21 pm
Posts: 32
Location: Christchurch
Weather Station: WH3081
Operating System: Windows 7
Not sure why you should be getting that error , I see you are testing on windows, To be honest I have only ever had problems trying to run apache/php/mysql on windows I always use linux.
What version on php is running on your web server. Can you use something like phpinfo() to make sure the path to your realtime.txt is absolute.


Top
 Profile  
 
 Post subject: Re: Realtime and mysql download available.
PostPosted: Mon Apr 23, 2012 6:40 pm 
Offline

Joined: Sun May 01, 2011 7:13 pm
Posts: 45
Location: Funchal
Weather Station: Watson
Operating System: Windows 7
you can see here http://meteocasas.com/server.php


Top
 Profile  
 
 Post subject: Re: Realtime and mysql download available.
PostPosted: Mon Apr 23, 2012 6:46 pm 
Offline
User avatar

Joined: Thu Apr 19, 2012 9:24 pm
Posts: 32
Location: West Middlands
Weather Station: W-8681
Operating System: Win XP
yep for me on linux VPS was no problems to run these files. It still registering everything. But I still need somehow to pull data form mysql :D :roll: :D

_________________
http://www.weatherboy.info - in West Middlands
Image


Top
 Profile  
 
 Post subject: Re: Realtime and mysql download available.
PostPosted: Mon Apr 23, 2012 6:47 pm 
Offline

Joined: Sun Jan 15, 2012 11:21 pm
Posts: 32
Location: Christchurch
Weather Station: WH3081
Operating System: Windows 7
Thanks for that seems everything is in order. Ok try this replace line 35 in real.php with the following.

foreach(preg_split($lineseparator,$realcontent) as $line) {


Top
 Profile  
 
 Post subject: Re: Realtime and mysql download available.
PostPosted: Mon Apr 23, 2012 6:51 pm 
Offline

Joined: Sun May 01, 2011 7:13 pm
Posts: 45
Location: Funchal
Weather Station: Watson
Operating System: Windows 7
mspec wrote:
Thanks for that seems everything is in order. Ok try this replace line 35 in real.php with the following.

foreach(preg_split($lineseparator,$realcontent) as $line) {


it guives this error

Code:
Warning: preg_split() [function.preg-split]: Empty regular expression in C:\Users\chico\Desktop\xampp\htdocs\meteocasas\sit-teste\teste\real.php on line 35

Warning: Invalid argument supplied for foreach() in C:\Users\chico\Desktop\xampp\htdocs\meteocasas\sit-teste\teste\real.php on line 35


Top
 Profile  
 
 Post subject: Re: Realtime and mysql download available.
PostPosted: Mon Apr 23, 2012 6:55 pm 
Offline

Joined: Sun Jan 15, 2012 11:21 pm
Posts: 32
Location: Christchurch
Weather Station: WH3081
Operating System: Windows 7
OK just change it back. Hmmmmmm, The only other thing I can think of is do you have access to the server web error logs ?? , depending on the error level set in php it may be logging it to the web server but not displaying the results. ie when you run real.php do you get anything on the screen at all ??, or is it just blank.
It looks like currently your php settings are "display_errors Off Off"


Top
 Profile  
 
 Post subject: Re: Realtime and mysql download available.
PostPosted: Mon Apr 23, 2012 9:14 pm 
Offline

Joined: Sun May 01, 2011 7:13 pm
Posts: 45
Location: Funchal
Weather Station: Watson
Operating System: Windows 7
well
i could not put the data realtime with real.php file, I modified the file importcumulusfile.php and get put in that file


Top
 Profile  
 
 Post subject: Re: Realtime and mysql download available.
PostPosted: Mon Jul 23, 2012 12:56 pm 
Offline
User avatar

Joined: Wed Dec 21, 2011 11:04 am
Posts: 155
Location: Essex
Weather Station: Oregon WRM200 and Davis VP1
Operating System: W7
I relalise this thread is a bit old now, but was anything further developed to get the Highgrapgs WUG config working with the realtime database?

Seems to have gone a bit quiet on that, unless I missed it somewhere?

_________________
Image


Top
 Profile  
 
 Post subject: Re: Realtime and mysql download available.
PostPosted: Tue Jul 24, 2012 4:23 pm 
Offline

Joined: Sun Jan 15, 2012 11:21 pm
Posts: 32
Location: Christchurch
Weather Station: WH3081
Operating System: Windows 7
SJG1976 wrote:
I relalise this thread is a bit old now, but was anything further developed to get the Highgrapgs WUG config working with the realtime database?

Seems to have gone a bit quiet on that, unless I missed it somewhere?


I got the database side of things up and running and had a play with highcharts but nothing really extensive as I have just not got the time at the moment, I got the database sorted you guys can do the rest of using all the information. ;)

Just a side note, I have had it running for quite a while now and its generated around 40k lines of data and is only coming in at 8meg so that's not to bad.


Top
 Profile  
 
 Post subject: Re: Realtime and mysql download available.
PostPosted: Thu Jul 26, 2012 8:07 pm 
Offline
User avatar

Joined: Wed Dec 21, 2011 11:04 am
Posts: 155
Location: Essex
Weather Station: Oregon WRM200 and Davis VP1
Operating System: W7
Thanks mspec,


Ive had a look at mixing the too together, but cant find what dta the WUG charts are looking for, the date format isnt right i think.

Like you ive not really had a chance to have a proper look.


Steve

_________________
Image


Top
 Profile  
 
 Post subject: Re: Realtime and mysql download available.
PostPosted: Mon Sep 03, 2012 6:31 am 
Offline

Joined: Fri Aug 31, 2012 6:52 am
Posts: 2
Location: Germany
Weather Station: WH1080
Operating System: 7
Hi,

I installed it on my Webserver.
My Problem is that in my Realtime.txt the date is like this "03.09.12" meaning 3rd September 2012
and that the part where the date is changed that it fits to sql-standards is not working.
Can anyone Help me with that Problem?

Thank you

Greetings Andy


Top
 Profile  
 
 Post subject: Re: Realtime and mysql download available.
PostPosted: Tue Sep 04, 2012 1:42 pm 
Offline

Joined: Sun Jan 15, 2012 11:21 pm
Posts: 32
Location: Christchurch
Weather Station: WH3081
Operating System: Windows 7
What version of Cumulus are you running ?? , Not sure if the current Beta version has changed the way it outputs realtime.txt. I have not updated mine for a while so don't know. If I get time I will have a look but at the moment i need 48hrs a day to get things done lol.


Top
 Profile  
 
 Post subject: Re: Realtime and mysql download available.
PostPosted: Tue Sep 04, 2012 1:49 pm 
Offline
Site Admin
User avatar

Joined: Mon Jun 02, 2008 6:49 pm
Posts: 17564
Location: Sanday, Orkney
Weather Station: Davis VP2
Operating System: Windows Home Server 2011
mspec wrote:
What version of Cumulus are you running ?? , Not sure if the current Beta version has changed the way it outputs realtime.txt.
It hasn't changed. Cumulus thinks it's using "/" for the date separator, but apparently what this means to the system code that actually does the formatting is "use the system's configured date separator".

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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 50 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


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