Page 1 of 1
Problem with the CumulusImportFile
Posted: Fri 10 Feb 2012 10:32 am
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
Re: Problem with the CumulusImportFile
Posted: Fri 10 Feb 2012 10:46 am
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.
Re: Problem with the CumulusImportFile
Posted: Fri 10 Feb 2012 11:09 am
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?
Re: Problem with the CumulusImportFile
Posted: Fri 10 Feb 2012 11:16 am
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.
Re: Problem with the CumulusImportFile
Posted: Fri 10 Feb 2012 11:29 am
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.
Re: Problem with the CumulusImportFile
Posted: Fri 10 Feb 2012 10:24 pm
by serowe
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.
Re: Problem with the CumulusImportFile
Posted: Wed 22 Aug 2012 5:12 pm
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!