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

Problem with the CumulusImportFile

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
Post Reply
wetter
Posts: 4
Joined: Fri 10 Feb 2012 10:16 am
Weather Station: WH1080
Operating System: XP SP3
Location: Germany

Problem with the CumulusImportFile

Post by wetter »

Hello,
I installed the CumulusImportFile in Cumulus. In the howto is standing that you must have a security key. Where can I find the security key?Or what it means? :?: :?:
Greeting wetter
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: Problem with the CumulusImportFile

Post by steve »

wetter wrote:Where can I find the security key?
It's a password that you make up yourself. Edit the script to change it from the default:

Code: Select all

// EDIT THIS NEXT SECTION CAREFULLY
// ----------------------------------------------------------------
// Your security key you will pass in the URL, change this to 
// something unique to you
$key="letmein";
Instead of "letmein", make up your own password. The password will then need to be specified when you invoke the script, using the "key=..." parameter.
Steve
wetter
Posts: 4
Joined: Fri 10 Feb 2012 10:16 am
Weather Station: WH1080
Operating System: XP SP3
Location: Germany

Re: Problem with the CumulusImportFile

Post by wetter »

Hello steve
Thank you for your message. But now I get the message back "failed to open file". What`s wrong?
I have filled all the informations in the code. Then I start it with:"http://xxx.xxx.de/ImportCumulusFile.php ... b12log.txt.
What I do wrong?
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: Problem with the CumulusImportFile

Post by steve »

I've never used this script and know very little about it. But I can see one problem immediately. You've specified 'type=dayfile' but Feb12log.txt is not the dayfile, it's a monthly log file. I think you need to read the instructions more carefully, make sure you have all of the files in the correct place, and so on.
Steve
gemini06720
Posts: 1700
Joined: Mon 10 Aug 2009 10:16 pm
Weather Station: No weather station
Operating System: No operating system
Location: World...

Re: Problem with the CumulusImportFile

Post by gemini06720 »

The error message is displayed, more likely, because the script cannot find the file 'Feb12log.txt'...

I have been running a modified version of the script without problem.
serowe
Posts: 484
Joined: Tue 03 Aug 2010 6:23 am
Weather Station: WM918
Operating System: Win Server 2008 R2
Location: Ferntree Gully, VIC, Oz
Contact:

Re: Problem with the CumulusImportFile

Post by serowe »

wetter wrote:Hello steve
Thank you for your message. But now I get the message back "failed to open file". What`s wrong?
I have filled all the informations in the code. Then I start it with:"http://xxx.xxx.de/ImportCumulusFile.php ... b12log.txt.
What I do wrong?
Also, depending on how your host is configured, it wil or may also fail on the location of the file the way you have it ie

file=./data/Feb12log.txt

Some servers will wortk using ths format, some won't.
Punctuation is the difference between 'Let's eat, grandma' and 'Let's eat grandma'
Hunter362
Posts: 93
Joined: Tue 19 Oct 2010 12:20 am
Weather Station: Ambient Weather WS-2080
Operating System: Ubuntu 14.4
Location: Fairmount, New York (USA)
Contact:

Re: Problem with the CumulusImportFile

Post by Hunter362 »

I have it installed and working fine from a browser, however can not get the script to process via a cron job
Here's the browser command I run:
http://weather.cerchia.com/ajax/ImportC ... ayfile.txt
(I use a different key) but it works fine.
Does anything need to be in quotes? I run a couple different PHP scripts via cron, but no pararms are passed to it, other than what is in the script
and they all work fine.
I've tried using:
PHP <scriptname>
wget -q
lynx -dump
Nothing gets imported till I run it from the browser....
no errors, just nothing happens.

Update: 08/29/12
Ran it using curl, with the URL in quotes, and it works now!
Post Reply