Page 1 of 1

Geographic resolution extension recommendation

Posted: Mon 14 Sep 2009 8:50 am
by jhaus55
Hi,
I'm using Cumulus for some weeks now and I wanted to add the geographic position of my weatherstation.
According to google maps I found N48°40'58.5" E9°13'15" as the correct coordinates.

Unfortunately Cumulus does not allow decimals of arc seconds, so I can not enter 58.5".
I try N48°40'58" and figure out it points to my neighbour south of my house. :(
I try N48°40'59" and figure out it points to my neighbour north of my house. :(

So I calculated Cumulus resolution of 1 arc-second which is 31m.

For Germany I would recommend to allow at least one decimal digit to be able to
point to the correct geographic area. Two digits (resol. of 31cm) would be perfect.

I'm sorry that my ground for my house is not bigger, it is too expensive in Germany. ;)
I hope it is possible to solve this issue easily.
Best regards
Juergen Hausmann

Re: Geographic resolution extension recommendation

Posted: Mon 14 Sep 2009 10:01 am
by steve
It's not clear to me to what use you want to put the increased resolution? If it's on your web site, you could edit the pages and put in whatever you want by hand (or edit the cumulus.ini file, see below).

Cumulus allows input of co-ordinates (1) so it can calculate sunrise/sunset etc (2) so that the co-ordinates can appear on a web site so that people know which area your weather reports are coming from. I don't really understand the purpose of exactly pinpointing your weather station in Cumulus? I could change the input to allow decimal places to be specified for the seconds field, but some people struggle with getting the correct figures in anyway, and I don't really want to complicate it further.

You could edit cumulus.ini and set the values in there (you'll see it's held as a decimal and as a text string, the latter is what appears on a website). But be aware that if you change any other settings subsequently, your changes will be overwritten.

Perhaps if you could explain what the purpose is, I could see how I might address it?

Re: Geographic resolution extension recommendation

Posted: Mon 14 Sep 2009 7:00 pm
by jhaus55
Hi Steve,
thank you very much for your quick reply.
Well I tried to edit the *.ini file, that works but if it changes after each change in
the configuration settings it is very likely that I forget to change this every time.

I like the Cumulus web-layot very much, I'm lazy and I like precision - and today I see that it is so easy to copy the co-ordinates from the Cumulus hgeader into the Google entry and push the maps-key and I would expect that the ground is shown where the waetherstation is placed and not one of my neighbours grounds.
I leave it up to you to add one or two digits or I will do a work around and remove the co-ordinates and point to a page with the co-ordinates and other station information.
Thank you very much for taking the time to think about it.
Best regards
Juergen Hausmann

Re: Geographic resolution extension recommendation

Posted: Mon 14 Sep 2009 7:43 pm
by daj
jhaus55 wrote: Well I tried to edit the *.ini file, that works but if it changes after each change in
You need to close down Cumulus before editing the ini file. Sounds like you might have left it open during the edit

Re: Geographic resolution extension recommendation

Posted: Tue 15 Sep 2009 12:33 am
by gemini06720
Juergen,

Am I to presume that you are using the standard Cumulus templates (such as 'indexT.htm') for creating your Web pages...

If so, it is quite easy to modify each templates (there are 6 files: 'gaugesT.htm', 'indexT.htm', 'recordT.htm', 'todayT.htm', 'trendsT.htm' and 'yesterdayT.htm') and modify the following line (all on one line):

<h2 style="text-align: left; text-transform: none;">
&nbsp;Latitude&nbsp;<#latitude>&nbsp;&nbsp;&nbsp;
&nbsp;Longitude&nbsp;<#longitude>&nbsp;&nbsp;&nbsp;
&nbsp;Elevation&nbsp;<#altitude>
</h2>

to something like:

<h2 style="text-align: left; text-transform: none;">
&nbsp;Latitude&nbsp;N&nbsp;48&deg;&nbsp;40'&nbsp;58.5"&nbsp;&nbsp;&nbsp;
&nbsp;Longitude&nbsp;E&nbsp;9&deg;&nbsp;13'&nbsp;15"&nbsp;&nbsp;&nbsp;
&nbsp;Elevation&nbsp;<#altitude>
</h2>

to obtain the following display/result (from the second 'h2' group of lines):

Latitude N 48° 40' 58.5" Longitude E 9° 13' 15" Elevation XX

By editing the templates files (such as 'indexT.htm') the latitude/longitude will remain as edited in the templates files and will not be replaced by Cumulus...

Re: Geographic resolution extension recommendation

Posted: Tue 15 Sep 2009 9:10 am
by jhaus55
Hi David,
thank you, it was correct, I edited *.ini while cumulus was running.
Cumulus crashed later on perhaps due to this editing.
Thank you for your quick input.

Hi Ray,
thank you for helping me to edit the indexT.htm, this is a great help since I'm
not a programmer, I modified the indexT.htm already.
I will go with this workaround and will replace the changed indexT.htm tonight.
Thank you very much for your quick and great help.

Juergen

Re: Geographic resolution extension recommendation

Posted: Tue 15 Sep 2009 9:17 am
by gemini06720
Juergen.

Let me know if the modified 'indexT.htm' gives you the results you want...

Re: Geographic resolution extension recommendation

Posted: Fri 18 Sep 2009 3:54 pm
by jhaus55
Hi Ray,
well I first modified indexT.html and it worked so far.
Then I realised that in all xxxT.html files the co-ordinates are present and I had to
do the modification to all of the files.
Now it is ok, not nice if a change is needed, because editing one file could be
forgotten easily.

Thank you for this workaround and have a great weekend.
Best regards
Juergen