Page 1 of 1
Cumulus "Current Condition Box"
Posted: Wed 02 Mar 2011 10:16 am
by hqrgro
Hello
I have noted that in Cumulus there is the possibility to show "Current Condition Box" in diplay setting.
I have enabled in my Cumulos, and now I have a possiblity to write a string in the box.....
My question is:
Is stored in soma place the string?
If yes where?
Thanks a lot...
Best regards
Giorgio
Re: Cumulus "Current Condition Box"
Posted: Wed 02 Mar 2011 10:18 am
by daj
Re: Cumulus "Current Condition Box"
Posted: Wed 02 Mar 2011 10:33 am
by steve
Just to clarify: it's the other way round, with the file. The currentconditions.txt file provides the content for the box (and hence the web tag), the contents of the box aren't written to the file.
Re: Cumulus "Current Condition Box"
Posted: Wed 02 Mar 2011 10:57 am
by daj
oops!
So trying to turn my
faux pas round into a positive, you could create a file with the webtag in it and ask Cumulus to process the file. You then have a file with the condition in it
Re: Cumulus "Current Condition Box"
Posted: Wed 02 Mar 2011 11:02 am
by steve
daj wrote:So trying to turn my faux pas round into a positive, you could create a file with the webtag in it and ask Cumulus to process the file. You then have a file with the condition in it
Indeed; good thinking. Well rescued

Re: Cumulus "Current Condition Box"
Posted: Wed 02 Mar 2011 11:09 am
by hqrgro
Ok, understood
I have found the varialble
<#currcond>
and now is showned in web page.....
I'm doing some test now.......
Tanks a lot.....
Ciao
Giorgio
Re: Cumulus "Current Condition Box"
Posted: Wed 02 Mar 2011 11:12 am
by hqrgro
I have see the help....
"The contents of the 'Current Conditions' box on the main screen (as entered manually). If a file called 'currentconditions.txt' exists in the same directory as the Cumulus executable, the contents of this file will be used instead. The file will be deleted if the text in the current conditions box is modified."
Created the txt file, but changing the value on the condition box the file is not deleted......
I have the condition box updated using the txt file.....?
Is right?
Ciao
Giorgio
Re: Cumulus "Current Condition Box"
Posted: Wed 02 Mar 2011 12:05 pm
by steve
hqrgro wrote:Created the txt file, but changing the value on the condition box the file is not deleted......
It works OK for me. But I've noticed that the code relies on the current directory being correct. If somehow yours isn't (e.g. you're not starting Cumulus from a shortcut with the 'start in' folder set correctly), then the file deletion will fail because it won't be looking in the right place for the file. I'll change the code so it explicitly looks in the Cumulus folder.
Does the box get updated from the file correctly when the web tag is processed? That would normally cause the file to be deleted anyway.
Re: Cumulus "Current Condition Box"
Posted: Wed 02 Mar 2011 12:54 pm
by hqrgro
Yes....
the box is updated correctly from the txt file......
But if I can suggest, it is possible to update the file from the box.....
Could be an improvment.
I would like to shown in web page a wheater gif, changing using the value of the txt file.....
Ciao
Giorgio
Re: Cumulus "Current Condition Box"
Posted: Wed 02 Mar 2011 12:57 pm
by steve
You can do that using the web tag.
Re: Cumulus "Current Condition Box"
Posted: Wed 02 Mar 2011 1:18 pm
by hqrgro
ok, thanks
I will tray
Grazie
Giorgio
Re: Cumulus "Current Condition Box"
Posted: Wed 02 Mar 2011 2:17 pm
by steve
OK. Lots of willing helpers here if you get stuck
