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

Standardised "structure" for cumulus based web sites

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
Warrandyte
Posts: 41
Joined: Sat 06 Apr 2013 11:46 pm
Weather Station: Fine Offset with Solar
Operating System: Windows XP, 7 8 and 10
Location: TIrrannaville NSW Australia

Standardised "structure" for cumulus based web sites

Post by Warrandyte »

Hi folks.

With so may developers on here, is there a standard (voluntary) structure to follow when coding up pages or content.

I have seen some extremely well commented code on pages and scripts which is great - thanks to all, and i am now trying to get a standard set of elements built for a page that could be easily duplicated - including a day/dusk/night stylesheet, forecast images for day and night and a few other things, which brings a whole mess to the site.

for example I am seeing some expect the realtime.txt in a /data directory whilst some expect in n the relative root, which means uploading it twice.
or some pages reference scripts that have to be in a special folder rather than a standard folder for scripts (which means that you can end up using multiple versions of the same script)

When trying to get all the files in a common place, stuff gets mesed up because some code has relative references to other internal files that are not always easy to identify.

is there a convention, e.g.

root - all htm or php files go in here
/css - all stylesheets go in here
/data - all datafiles get uploaded here (including relatime files, noaa files etc)
/images - all images go here or in /images/projectname/
/scripts - all scripts not externally referenced go in here

special names if your page needs a special file like button.gif then to avoid confusion with other applications call it projectname_button1.gif where projectname is the addon name (e.g. if I had a page called funkyweather then funkyweather_button.gif goes in the /images directory.

This also makes it much easier to troubleshoot website issues.

btw. anyone any good at css colour gradients, mine are more like those of a sick cat !

just a thought...
http://www.warrandytefarm.com/weather (a whole lot of stuff still in development here)
Post Reply