Author Topic: File locations  (Read 3212 times)

Coomkeen

  • Calm
  • *
  • Posts: 4
  • Station Details: Watson
File locations
« on: July 25, 2021, 12:51:23 PM »
Hello All,
Sorry for this probably silly question, but as I understand it, WC uses 'source' files and modifies the tags before ftping it to your web site.
That may be wrong or an over simplification. Please put me right.
The way I read the manual, WCWeb folder 'library/application support/WCWeb' is where files are 'saved'. Presumably before uploading.
But where are the source files?
All help appreciated.

Ron

xairbusdriver

  • Storm
  • *****
  • Posts: 3131
Re: File locations
« Reply #1 on: July 25, 2021, 02:33:12 PM »
You have a good grasp of the details!  ThU5:-)

The source files can be anywhere you want. You ‘tell’ WC where that is by putting the path in the WC prefs: On-line/Custom Web…”Set HTML Source” button.

Be advised that any and all files in that path will be looked at (parsed) by WC and any tags will be converted to proper values. All the files will then be copied to the WeatherCatCustomWeb folder. WC will then upload them to your site at the next scheduled time.

My point is that if you have items/files in the ‘source’ folder that are not related to your weather data, you will simply be creating extra work for WC. You will also be doubling the space required for those files; they will end up copied to the “…CustomWeb” folder and also get uploaded to your web space. While I have about 10 pages for my web site, only two html files are in my ‘source’ path. Other pages and files that don’t need updating every few minutes, are listed in the “On-line/Custom Web/Additional Files” list. Each of those files can then be used by WC at times you specify in that list. Again, those files can be anywhere on any of your drives.

Hope this helps! :)

+ + + + + + + + + + + + +

By the way, please excuse me for not seeing that you are new to the forums!

Welcome AboaRd, Ron!

Be sure to post on the New Members threads when you get a chance! ThU5:-)

There are others here who are real experts on Weathercat and they are most helpful and eager to answer any questions!
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system

Coomkeen

  • Calm
  • *
  • Posts: 4
  • Station Details: Watson
Re: File locations
« Reply #2 on: July 25, 2021, 03:09:28 PM »
Thank you,
Glad I'm on the right track.
So, as it stands, not having enabled the CustomWeb but relying to start with on the simple version, where are the source files for that?

And if I enable the custom web, can I just put say one file, maybe the index.html in there?

Sorry I keep thinking of more things....
The index.html file uses frames. And yet frames are depreciated?

Think I'm getting somewhere.
Very confusing though.

Is there any way to make the WINDDIRECTION show N-E or S_W etc, instead of the degrees?

xairbusdriver

  • Storm
  • *****
  • Posts: 3131
Re: File locations
« Reply #3 on: July 25, 2021, 08:21:56 PM »
Quote
And if I enable the custom web, can I just put say one file, maybe the index.html in there?
Certainly. I have but two html files in my 'source' folder. :)

If you use the "Simple Web", you would just put all the html 'code' in the "Text" block in the On-line/Simple Web/Text area. The "Setup" tab still allows you to save the original html page, with any WC tags you might include, in any location you want. I've never used the Simple Web method, but from reading the Manual (page 131, bottom of page, sentence starting with: "Note also..."), it appears that WC does not actually save the edited files in the WeatherCatCustomWeb folder. No surprise there, these pages are not going to be updated/uploaded several times a minute. The fastest updating is 4 times an hour. The actual page you paste into the "Text" section of the prefs will always remain as you typed/pasted it in. There is little need to save the edited/parsed version after it is uploaded to your web space. The only thing that would be changed are the WC tags, the original is not changed (just as in the Custom Web method).

Quote
The index.html file uses frames. And yet frames are depreciated?
Well, several things allowed in html 1 are deprecated. We're actually up to version 5 of html. Fortunately, most browsers are not too particular and will be backwards compatible. The only time you would usually see that warning is if you run your html through a W3C or other Validation system. There are dozens of sites that can provide help in seeing what's changed and why. A good dedicated editor will usually indicate a conflict if you enter deprecated code. AFAIK, no search engines downgrade the use of deprecated html. 8)

Quote
Is there any way to make the WINDDIRECTION show N-E or S_W etc, instead of the degrees?
Yes, but I don't think the way is in WC. I use some simple code to change the "PM" or "AM" time suffixes to "pm" and "am" because I like that better. Likewise, if the only 'rain' indication is 0.01 inch (the minimum Davis can measure), I have a "Max Rain Rate" show "Less than 0.01 in/hr". I also have Total Rain show "No rain today" instead of "0" (or whatever WC would show). Some 'non-html' language (PHP, javascript, etc.) could be made to change the numeric values (0 through 365) to a string containing any combination of letters and punctuation you want. But that's a task for later, I think. :)
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system

Coomkeen

  • Calm
  • *
  • Posts: 4
  • Station Details: Watson
Re: File locations
« Reply #4 on: July 25, 2021, 08:39:18 PM »
Thank you so much for all that.
I have enabled the custom web but based it temporarily, on the basic one.
Just copied the html files I needed and have been 'bodging' from there.

Yes, I think a bit of php might be in order. Used to do a lot of that a few (cough) years ago  [blush]

Thanks again.

Ron

xairbusdriver

  • Storm
  • *****
  • Posts: 3131
Re: File locations
« Reply #5 on: July 25, 2021, 09:30:47 PM »
HA! I only know enough to get into trouble! I did create a page that takes some aviation weather reports (METAR, used mostly by pilots) and converts them to "human-readable" displays. ;D I keep meaning to improve the page to allow the viewer to specify any particular US airport instead of the five programmed places. [computer] It is pretty much 'brute-force' code. It was fun and educational, but I'm just too lazy now!! [blush]
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system