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

MS SQL Server Import

Discussion and support for 3rd-party (non-Sandaysoft) tools for Cumulus
Post Reply
spyker

MS SQL Server Import

Post by spyker »

I've hashed a small VB.NET app together to extract the data from Cumulus and import it into SQL for data manipulation with something like Excel, Crystal Reports etc.

It runs on a timer and imports the live data every minute.

Anybody interested in the source code?
spyker

Re: MS SQL Server Import

Post by spyker »

Ok, attached is the source project. I'm no programmer but it seems to do the trick.

The only tags I was interested in was;

Code: Select all

<#date>;<#hour>:<#minute>;<#temp>;<#hum>;<#dew>;<#wspeed>;<#wgust>;<#bearing>;<#rrate>;<#rfall>;<#press>;<#ryear>;<#intemp>;<#inhum>;<#wlatest>;<#wchill>;<#heatindex>;<#battery>
Because my console is not connected to a power supply I wanted to chart the battery voltage to see how long a set of batteries will last.

Installation

I created a a text file webtags.txt, containing only the tags I'm interested in, and have Cumulus process the file and upload it to my web server.

My app process this webtags.htm file and parses the data and imports it into SQL. The SQL script to create the table is included in the RAR file.
Because the webtags.htm file is residing on my web server my app can process the data remotely.
I have plans to convert it to a windows service so will post the update here when complete.

Please remember to change the URL of the webtags.htm file and the connection string in the app.config file.
You do not have the required permissions to view the files attached to this post.
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: MS SQL Server Import

Post by daj »

You could use the local copy of the processed webtag file rather than pulling it back down from the webserver each time.

Once Cumulus processes a file it leaves a tmp with all the processed data. So if it was processing webtag.txt there will be a webtag.txttmp in the same folder on the PC
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
spyker

Re: MS SQL Server Import

Post by spyker »

Yes, but that is the whole purpose of this app, to be able to pull the data over the internet from one site to another.
Post Reply