Sandaysoft

Support forum for Cumulus weather station software
It is currently Fri May 24, 2013 4:19 am
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  [ 246 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 17  Next
Author Message
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Wed May 16, 2012 8:48 pm 
Offline
User avatar

Joined: Tue Feb 01, 2011 8:22 am
Posts: 344
Location: Wokingham, Berkshire, UK
Weather Station: WH1081
Operating System: Win 7, XP, Xubuntu, Linux Mint
Finally, after two weeks of coding, testing and debugging I have now released a new version of Grabber. ;)

I would advise anyone using an older version to update to this one as this version sorts out a problem when the program
was 1st started and no URL was present, as it would crash. This version now displays a message box to inform the user what
info needs to be entered. Then once the user has saved the URL all future starts of the program will automatically load the
URL and will no longer cause a problem.


Quote:
nitrx quote from earlier post, "It should be nice to export the graphs in (selectable) intervals to disk (they can be ftp-ed to websites) I always think a graph says more as a huge page full with numbers".


Well I am happy to announce that with this version it brings chart image saving and FTP image upload as well as a pre-made
HTML webpages to display the data :)

NOTE:
Please read the additional notes at the bottom of this post for information on chart saving and
FTP uploading, this info is also available in the accompanying readme.txt file within the distribution
ZIP file.


Download version 1.3.1 : http://www.wokinghamweather.co.uk/downl ... DGv131.zip


New in this version:

1.3.1 - (15-05-12)

1. Added Option to save and upload charts to remote FTP site.

2. Added simple webpage templates to display chart information.

3. Code added to handle no realtime.txt URL on load.


This release also incorporates the following unreleased test version updates:

1.3.0 - Cleaned up code, tidied up readme.txt file. (not released)


1.2.9 - Test version. (not released)

Recoding of Saved Image code so that image quality is increased.
Added rain, frost, fog predictions & Data Time&Date stamp


1.2.8 - FTP Test version. (not released)





SAVING AND FTP UPLOADING OF CHART IMAGES:


You can now save charts and automatically get them uploaded to a remote FTP site, by pressing
the [Start Export Charts Button].

Image

Before doing this please press the [Config] button to setup your FTP credentials.

You will also need to create a folder on your FTP site called "grabber" which is where the images and
webpage will be uploaded to. You will need to supply the url to this folder when Configuring your FTP Credentials.


Also you must have a folder called "charts" residing in the same local folder as the "Cumulus RealTime Data Grabber.exe"
program file. By default when you unzip the *.ZIP file the "charts" folder will be created.


Within this "charts" folder there will be the Webpage Templates:

GrabberIndexT.htm (Landscape webpage)

GrabberIndexPortraitT.htm (Portrait webpage template)


Please note that the file "GrabberIndexT.htm" is the main file that will be uploaded automatically by the
program and when it gets saved into the remote "grabber" folder it will be then be called: "grabberindex.htm"

Therefore if you want to use the "GrabberIndexPortrateT.htm" webpage instead of the landscape version,
just rename the local file in the "charts" folder "GrabberIndexT.htm" to "GrabberIndexT.org" and then rename
"GrabberIndexPortraitT.htm" to "GrabberIndexT.htm", so it will be uploaded.


I have set the FTP uploading of the files at 15 minute intervals once the [Start Export Charts Button] has
been pressed. Please be patient once the button has been pressed as the FTP connection and uploading
of the files may take a little while to perform their actions.

NOTE: Charts are reset at Midnight.



Reduced size sample of HTML pre-made template:

Feel free to modify the HTML Templates to suit your needs.

Image

_________________
Cumulus Real Time Data Grabber
http://bit.ly/WjBh5z

Wokingham Berkshire - weather station
http://www.wokinghamweather.co.uk

MRD Photography
http://www.mrdphotography.co.uk

Image


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Thu May 17, 2012 5:39 pm 
Offline

Joined: Sun Dec 13, 2009 1:21 pm
Posts: 867
Location: Apeldoorn The Netherlands
Weather Station: WH1080 / WS 4000
Operating System: Windows 7 / Ubuntu
Hi Mark great job but..

my graph for the pressure has an axis multiplied by ten,

example:

Attachment:
PressureChart.png





[strike]I can't find out how to ftp the files to the right directory they should appear by example in /www/apeldoorn.tk/weer/grabber but all the files are placed in the root of the server and not accesable from the web ..[/strike]

solved.. but the htm file is saved as GrabberIndex.htm with capitals in it instead grabberindex.htm


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

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Thu May 17, 2012 9:44 pm 
Offline
User avatar

Joined: Tue Feb 01, 2011 8:22 am
Posts: 344
Location: Wokingham, Berkshire, UK
Weather Station: WH1081
Operating System: Win 7, XP, Xubuntu, Linux Mint
Quick bug fix version ;)

Quote:
my graph for the pressure has an axis multiplied by ten,

Nitrx, hopefully the following version will sort out the x10 value on the Y-axis. Oops once again I had the wrong data type :bash:

Can you let me know if this new version fixes the above problem?

Quote:
but the htm file is saved as GrabberIndex.htm with capitals in it instead grabberindex.htm

Please see below point 1.


Download version 1.3.2 :
Attachment:
CRTDGv132.zip


New in this version:

1.3.2 - (17-05-12)

1. Image filenames and HTML files now all saved and uploaded to FTP site in
"lowercase", previously these had a mix of upper and lowercase characters.

2. Corrected incorrect values on Y-axis on Pressure Graph.

3. Added Readme.txt screen to TabControl.

If anyone else finds any bugs, please let me know.


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

_________________
Cumulus Real Time Data Grabber
http://bit.ly/WjBh5z

Wokingham Berkshire - weather station
http://www.wokinghamweather.co.uk

MRD Photography
http://www.mrdphotography.co.uk

Image


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Thu May 17, 2012 10:12 pm 
Offline

Joined: Sun Dec 13, 2009 1:21 pm
Posts: 867
Location: Apeldoorn The Netherlands
Weather Station: WH1080 / WS 4000
Operating System: Windows 7 / Ubuntu
Mark I can confirm everything works fine now the reset at midnight worked too http://apeldoorn.tk/weer/grabber/grabberindex.htm great job :clap:

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Fri May 18, 2012 6:45 am 
Offline
User avatar

Joined: Tue Feb 01, 2011 8:22 am
Posts: 344
Location: Wokingham, Berkshire, UK
Weather Station: WH1081
Operating System: Win 7, XP, Xubuntu, Linux Mint
nitrx wrote:
Mark I can confirm everything works fine now the reset at midnight worked too http://apeldoorn.tk/weer/grabber/grabberindex.htm great job :clap:


Thanks for letting me know, I am glad it fixed the problem. :)

_________________
Cumulus Real Time Data Grabber
http://bit.ly/WjBh5z

Wokingham Berkshire - weather station
http://www.wokinghamweather.co.uk

MRD Photography
http://www.mrdphotography.co.uk

Image


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Sat May 26, 2012 8:01 pm 
Offline

Joined: Sun Dec 13, 2009 1:21 pm
Posts: 867
Location: Apeldoorn The Netherlands
Weather Station: WH1080 / WS 4000
Operating System: Windows 7 / Ubuntu
Mark, I noticed that the pressure @ station always displays LOW , even by 2020 hPa ? What are the criteria for Low / High ??

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Sat May 26, 2012 9:27 pm 
Offline
User avatar

Joined: Tue Feb 01, 2011 8:22 am
Posts: 344
Location: Wokingham, Berkshire, UK
Weather Station: WH1081
Operating System: Win 7, XP, Xubuntu, Linux Mint
Hi Ron, I will have a look through my code to see if I can find out why that is happening as well as let you know what the criteria is. As its late here and I have to get up early tomorrow I won't be able to look tonight. Hopefully I can have a look tomorrow evening and will post back here :)

_________________
Cumulus Real Time Data Grabber
http://bit.ly/WjBh5z

Wokingham Berkshire - weather station
http://www.wokinghamweather.co.uk

MRD Photography
http://www.mrdphotography.co.uk

Image


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Sun May 27, 2012 7:06 am 
Offline
User avatar

Joined: Tue Feb 01, 2011 8:22 am
Posts: 344
Location: Wokingham, Berkshire, UK
Weather Station: WH1081
Operating System: Win 7, XP, Xubuntu, Linux Mint
Hi Ron,

I've just tested your realtime.txt file in Grabber and it all seems to be working fine :?

See below screenshot of Grabber and also the webpage that it has generated, both of which are
displaying the HIGH pressure graphic.

Image


The code I have written to determine HIGH and LOW pressure is:

NOTE:
The pressure value switch point between High and Low is: 1013.25 hpa/mb, or 29.921 inches
dependent upon which unit the user is using).


Code:
    Private Sub PressureAtStationGraphic()

        Dim Pressure As Double

        'copy text held in Label11 for pressure to a variable called "Pressure", as it wont work correctly if just using Label11.text string.
        Pressure = Label11.Text



        'Procedure to display High or Low pressure graphic

        If Label16.Text = "mb" OrElse Label16.Text = "hPa" Then
            GoTo hPa_mb_Pressure
        ElseIf Label16.Text = "in" Then
            GoTo in_Pressure
        End If



        ' Turning point from Low to High pressure =  hPa & mb (same units) = 1013.25,  same value for in = 29.921

hPa_mb_Pressure:
        If Pressure <= "1013.25" Then
            PictureBox4.Image = PictureBox2.Image ' Shows Low Pressure symbol if pressure is less than or equal to 1013.25
        Else
            PictureBox4.Image = PictureBox3.Image ' Shows High Pressure symbol if pressure is less than or equal to 1013.25
        End If
        Exit Sub

in_Pressure:
        If Pressure <= "29.921" Then
            PictureBox4.Image = PictureBox2.Image ' Shows Low Pressure symbol if pressure is less than or equal to 29.921
        Else
            PictureBox4.Image = PictureBox3.Image ' Shows High Pressure symbol if pressure is less than or equal to 29.921
        End If
        Exit Sub
    End Sub


It may be worth stopping and restarting Grabber and deleting all the graphic image files *.png from your
local "chart" folder and then restarting Grabber to see if it sorts the problem out.

If not can you let me know and I will have to have another look when I get back in later from my walk :)

_________________
Cumulus Real Time Data Grabber
http://bit.ly/WjBh5z

Wokingham Berkshire - weather station
http://www.wokinghamweather.co.uk

MRD Photography
http://www.mrdphotography.co.uk

Image


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Sun May 27, 2012 8:37 am 
Offline

Joined: Sun Dec 13, 2009 1:21 pm
Posts: 867
Location: Apeldoorn The Netherlands
Weather Station: WH1080 / WS 4000
Operating System: Windows 7 / Ubuntu
Well it stays low (the graphic) I've deleted all graphs local and remote it's 1020 hPa over here , I can't remeber if I've ever have seen the Highpressure-icon :roll:

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Sun May 27, 2012 9:52 pm 
Offline
User avatar

Joined: Tue Feb 01, 2011 8:22 am
Posts: 344
Location: Wokingham, Berkshire, UK
Weather Station: WH1081
Operating System: Win 7, XP, Xubuntu, Linux Mint
Hi Ron,

I have quickly added a few bits to display info for me to check in the below debug test version of grabber. I have only zipped the
*.exe file in this, so if you could rename your old "Cumulus RealTime Data Grabber.exe" to say "Cumulus RealTime Data Grabber.org" then copy this test version into the same folder, then run it.

Attachment:
CRTDG_debug_01.zip


Once its started running could you go to the [Info @ Station] tab and then screen capture it and post it up here on this thread
for me (similar to my screenshot below), so I can see what it is displaying.

Image


Thanks

Mark


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

_________________
Cumulus Real Time Data Grabber
http://bit.ly/WjBh5z

Wokingham Berkshire - weather station
http://www.wokinghamweather.co.uk

MRD Photography
http://www.mrdphotography.co.uk

Image


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Mon May 28, 2012 8:04 am 
Offline

Joined: Sun Dec 13, 2009 1:21 pm
Posts: 867
Location: Apeldoorn The Netherlands
Weather Station: WH1080 / WS 4000
Operating System: Windows 7 / Ubuntu
Hi Mark,

well it seems to work I've attached a screenshot of the debug version.

Attachment:
rt.jpg


Strange that some equal numbers are not the same on another computer :shock:

Thanks


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

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Mon May 28, 2012 7:40 pm 
Offline
User avatar

Joined: Tue Feb 01, 2011 8:22 am
Posts: 344
Location: Wokingham, Berkshire, UK
Weather Station: WH1081
Operating System: Win 7, XP, Xubuntu, Linux Mint
Hi Ron,

Thanks for letting me know it now works.

I changed a data type which looks like it was the problem.

I will test it on my server for a day or so, just to make sure all is working correctly.
Then I will release a new version with the corrected code.

I would be interested to see if it correctly identifies the LOW pressure when the
pressure drops below: 1013.25 mb on you machine, just to make sure it's all
working 100%. If you can let me know if/when this happens I would appreciated it :)

_________________
Cumulus Real Time Data Grabber
http://bit.ly/WjBh5z

Wokingham Berkshire - weather station
http://www.wokinghamweather.co.uk

MRD Photography
http://www.mrdphotography.co.uk

Image


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Tue May 29, 2012 9:07 am 
Offline

Joined: Sun Dec 13, 2009 1:21 pm
Posts: 867
Location: Apeldoorn The Netherlands
Weather Station: WH1080 / WS 4000
Operating System: Windows 7 / Ubuntu
Hi Mark, well I've changed the calibration for a minute below 1013.25 hPa and the pressure icon changed to low , so it works fine here,
good job.

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Tue May 29, 2012 12:06 pm 
Offline
User avatar

Joined: Tue Feb 01, 2011 8:22 am
Posts: 344
Location: Wokingham, Berkshire, UK
Weather Station: WH1081
Operating System: Win 7, XP, Xubuntu, Linux Mint
Hi Ron,

Thanks for testing it for me, I will release the new version in the next couple of days.

_________________
Cumulus Real Time Data Grabber
http://bit.ly/WjBh5z

Wokingham Berkshire - weather station
http://www.wokinghamweather.co.uk

MRD Photography
http://www.mrdphotography.co.uk

Image


Top
 Profile  
 
 Post subject: Re: Cumulus RealTime Data Grabber - Tool
PostPosted: Thu May 31, 2012 5:34 pm 
Offline

Joined: Sun Dec 13, 2009 1:21 pm
Posts: 867
Location: Apeldoorn The Netherlands
Weather Station: WH1080 / WS 4000
Operating System: Windows 7 / Ubuntu
Mark another issue it's not clear to me how the posibility of rain is predicted but its seems there's never a change of rain over here even when it rains :)

Attachment:
rain.jpg


It has no hurry for me I'm going a few weeks to Turkey (there is no rain hopefully)

Update well finally after a day of rain it gives a change of rain :D


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

_________________
Ron

Image

Apeldoorn, The Netherlands


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 246 posts ]  Go to page Previous  1 ... 5, 6, 7, 8, 9, 10, 11 ... 17  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