Trixology

WeatherCat => WeatherCat Web Templates => Topic started by: xairbusdriver on April 22, 2015, 10:53:11 PM

Title: Basic stupid template operations
Post by: xairbusdriver on April 22, 2015, 10:53:11 PM
I've given up on the beautiful Steel Gauges and the very interesting Saratoga templates for the moment. I actually have been able to display the Steel Gauges on my web site, but I still haven't figured out where to put all the files so WC can update the info on them. I'll figure that out in due time; I'm starting over with the basics, following the WC User Manual (BTW, the one I have should be the newest, so my page numbers may not coincide with yours).

OK, page 102 discusses using the template written by Todd Atkins, it's included with the WC download. There are three steps on this page that are easy to follow, of course. However, by the time I get to the Prefs, I've made lots of changes, so I sneak a peak at the picture (on the next page) make sure I have the correct "Save Path" set.

The last step is to simply 'test locally'. WOW! I gave up counting the number of tabs Safari threw at me. A little investigation, however, revealed that the ~/Library/Application Support/WeatherCatCustomWeb directory had already been filled with maybe a hundred files; lots of images, but tons of html, css, js, etc. files. Safari attempted to display every single one of them. TextEdit also tried to help by opening all the .txt files. Even BBEdit got into the act by opening all the css, php, and html files.

I decided these were put into this directory with my earlier baseball bat approach and I removed everything other than the images. Ran the 'test local' again and now only the "wx.css" tab was added to the two (normal) Wx display pages for the Atkins template.

Those html files both show that css file in the head, which is normal (although I may move that to a folder and change the link a bit). Why Safari wants to display it, I don't know. I emptied its cache via the Develop Menu, but it still wants to display that file in a separate tab than the two Wx pages. Also, TextEdit opens the realtimegaugesWC.txt file. I may have that file in the wrong (or too many) place(s) after playing with the Steel Gauges WC Wiki. [banghead]

I've also changed the default browser to Firefox with somewhat different results:

A regular Restart, after changing the default browser, made no difference. I may try a cold Start up...

Any clues as to:
Title: Re: Basic stupid template operations
Post by: xairbusdriver on April 22, 2015, 11:13:06 PM
Slight update: I completely emptied the WeatherCatCustomWeb folder and hit the 'test locally' again.
First WC simply added the images that it needed, but the browser never opened.
I clicked the 'test locally' a second time. This time, WC probably updated the images, but it also added the wx.html and wxhistoric.html and the wx.css files.

Firefox then opened the two pages.
Safari still opened and displayed the wx.css file.
However, the realtimegaugesWC.txt file was not added nor did TextEdit open it. That file only resides in completely different directories from WC and the Atkins template. How is WC accessing it?!
Title: Re: Basic stupid template operations
Post by: WCDev on April 22, 2015, 11:41:22 PM
With nothing in the source folder, the only thing that'll be generated is the images for gauges etc. When the processing is complete, the Finder is asked to open the processed files with the applications that would normally open that type of file so you can see how they've been processed (e.g. .txt files will be opened in your default text editor for example). Do you have the additional custom web files being processed from for example the Steel gauges - that'd explain where the other files are coming from.

Title: Try my SeaMonkey templates first. (Re: Basic stupid template operations)
Post by: elagache on April 22, 2015, 11:44:25 PM
Dear xairbusdriver and WeatherCat web spinners,

Why don't you try getting my Seamonkey templates working first:

http://athena.trixology.com/index.php?topic=956.0 (http://athena.trixology.com/index.php?topic=956.0)

There is a lot of documentation specifically on installation and setup.  You may not like the style of these web templates, but it is a good way to get the hang of how things are organized and will help you understand how some of the more complex web templates work.

Cheers, Edouard  [cheers1]
Title: Re: Basic stupid template operations
Post by: xairbusdriver on April 23, 2015, 01:01:09 AM
Quote from: WCDev
Do you have the additional custom web files being processed from for example the Steel gauges - that'd explain where the other files are coming from.
Well, I didn't even know the "Test... Locally" would even work without having Enable Custom Web Pages ticked! [banghead] I'm sure I've forgot that it was probably always enabled. [blush]

WC seems to be updating the images just fine, latest versions show a time only a few minutes ago and I started this thread well before that. :)

Nor do there appear to be any new txt or html files in there. The OS is not trying to open any text files, but there are none in that directory, now, anyway.

Unfortunately, Safari insists on opening the wx.css file when I have changed the default browser to Foxfire. The file also shows "BBEdit" as the app that should open it with the normal 'open' methods. I may try deleting Safari and install it from my other Mac. It may be that its cache or some other file simply is corrupted.

Right now, I'm not sure I even know how WC knows where to FTP web files. When I try to provide a path to the directory in my web space, the test reports "curl: (9) Server denied you to change to the given directory". If I use just "ftp://domainname.com/" I get the "All OK..." message. The message also says it has successfully uploaded a "WeatherCat_test.html" file, but it must also send a 'delete' message after that, since I don't see such a file in the files. But this is a different problem, one at a time is enough for me! I'd just like to get Safari to shut up.

Edouard, every time I see "Seamonkey" I think you're talking about an amail app that tried to take Eudora's place! Apparently that is now the name of a text editor?
Title: Re: Basic stupid template operations
Post by: xairbusdriver on April 23, 2015, 05:06:40 PM
Progress! I now have the Atkins Template working on the web! [computer]

The key was to change the info in the WC FTP settings. As I mentioned above, I was confused as to how WC knew where to FTP the files. I finally noticed the info in Fetch for the path to my space. After adding that piece plus the name of the directory name in the info in the FTP Details in WC, things started working. The FTP test reported "OK". I can now see the "WeatherCat_test.html" that is created by that test. WC is/was working perfectly, all along.

BTW, I also edited the "wx.html" file to use the radar image of the local facility.

Onward and webward, I'll start 'playing' with other Templates (and ignore what Safari does! [banghead]).
Title: Re: Basic stupid template operations
Post by: Blicj11 on April 23, 2015, 08:28:09 PM
The Seamonkey template is a very nice template that Edouard built specifically for displaying your weather data on your website. You would use it rather than the Atkins template that is included with WeatherCat. One advantage of using Edouard's template is that he is here to provide support, while Todd Atkins, to my knowledge is no longer supporting his template, although lots of forum members still use the Atkins template so you should be able to get some help with it as well. Just be aware as we move forward with improvements and changes to both WeatherCat and OS X, you'll need to be able to make some changes in your template to keep it current.

Another nice template available on this forum is the Leuvan template. One of these should be dead on for you.

And here I am preaching about templates when I don't use any of them. I had to build my weather page in WordPress, which is not nearly as slick as the templates the rest of you are using.
Title: Re: Basic stupid template operations
Post by: xairbusdriver on April 23, 2015, 08:43:33 PM
I'm now playing with the Steel templates. Very marginal success. It's not the templates (or the use of a WYSIWYG editor) that are giving me trouble. It's simply getting the right files in the right location for WC to 'see' them. That should be dead simple. I certainly qualify for that last part, but apparently, I can't reed thee direcksions gud enuf! [banghead] I'm seeing WC add its images to the WCCustomWeb folder, but the page shows only the labels that would be under each gauge, not the actual Steel gauges. Also, the default settings are not what I have set up in WC; C? instead of F?, mm instead of inches, km/h instead of mph, etc. I can see where these units are set in one of the js files, but I can't figure out how to get the various files in the three folders to communicate with WC.

Good thing I like challenges... I probably need to take a few more basic/baby steps before try to get SG to work. [rockon] Part of the fun is editing files on the mini while using the iMac plus Screen Sharing to view the edit results! [lol]
Title: Re: Basic stupid template operations
Post by: Blicj11 on April 23, 2015, 10:51:09 PM
Xair:

If you follow the instructions in the SteelSeries wiki the gauges will work. If you leave out a few steps, they will not.

If the gauges aren't showing, you did not follow the instructions for either Option 1 or Option 2.

You don't set the preferences for F or C in a script. You use the buttons in the box at the bottom of the gauge display. When you get it working properly, you will be able to set your preferences for units of measure.

In WC Preferences | On-line | Custom Web you set two paths. (1) Whatever path you identify in Set HTML Source is where you copy your realtimegaugesWC.txt file from the SteelSeries download. (2) Whatever path you identify in Set Save Path is where Weathercat automatically updates the realtimegaugesWC.txt file each time it process the weather data and sticks it in that file, replacing the tags with data.

WeatherCat will then follow whatever FTP instructions you set in the Edit FTP Details window and upload the realtimegaugesWC.txt file from the Set Save Path folder to your site.

Other than FTPing the SteelSeries Folders one time to your website, and the tags folder (which you have to create yourself, but you can just copy the contents from the wiki), the processed realtimegaugesWC.txt is the only file that gets FTPd to update the gauges with data and populate the popup graphs.

If you ask more specific questions, we can give you more specific suggestions.
Title: Re: Basic stupid template operations
Post by: Bull Winkus on April 23, 2015, 10:58:42 PM
Good explanation, Blick! ? Xair, you'll get it. You know, lack of specificity may or may not be my problem, too!

 [cheers1]
Title: Re: Basic stupid template operations
Post by: Blicj11 on April 23, 2015, 11:08:57 PM
Encoding Specificity is a principle that states that human memories are more easily retrieved if external conditions (emotional cues) at the time of retrieval are similar to those in existence at the time the memory was stored. For instance, happy memories are easier to access when happy, or bad memories are more accessible when in a depressed mood. At my age, I'm lucky to remember anything so my memories are best retrieved when I am lucky.

I have no idea why I am posting this but Herb has given me so many opportunities to laugh I am hoping this one might be a small token of my appreciation. Very small.
Title: Back to Blacque Jacque Shellacque (Was: Basic stupid template operations)
Post by: elagache on April 23, 2015, 11:23:44 PM
Dear Blick and WeatherCat graceful aging types . . . .

At my age, I'm lucky to remember anything so my memories are best retrieved when I am lucky.

This situation calls once more for Blacque Jacque Shellacque: (http://athena.trixology.com/index.php?topic=1614.msg13924#msg13924)

 ;) . . . . THIS!?!?!?!??!??  Is being saved!?!??!??!??!? (http://looneytunes.wikia.com/wiki/Wet_Hare)  . . .  [biggrin]

Cheers, Edouard  [cheers1]
Title: Re: Basic stupid template operations
Post by: Bull Winkus on April 23, 2015, 11:36:11 PM
 [lol2] Good one, Blick! ? I guess since you're a pretty lucky guy, you get to remember a lot.  [wink]

 [cheers1]
Title: Re: Basic stupid template operations
Post by: xairbusdriver on April 24, 2015, 02:28:08 AM
Quote
If you ask more specific questions, we can give you more specific suggestions.
What is the meaning of this life? Is that 'specific' enough?

Quote
If the gauges aren't showing, you did not follow the instructions for either Option 1 or Option 2.
Couldn't agree more. The only problem is which option and what instruction. [banghead] I've been working on the Leuven template files most of the afternoon. Very specific, file-by-file instructions. K.I.S.S.
If I can't get that template working, I may start over with the Steel template... from a new download, even. :D
Title: Re: Basic stupid template operations
Post by: xairbusdriver on April 24, 2015, 02:54:14 AM
I may have discovered something that could be the cause of my problems. I went to the Wxforum to register and went through the process ~5 times getting a "complete Captcha" message each time. I finally realized the three little images at the bottom of the page were part of the Captcha process! [banghead] I kept wondering why I would care if the images were displayed vertically rather than horizontally! Never noticing that each one could be other than upright! "Vertical" had nothing to do with them, even when they are upright, they will still be horizontal! [rolleyes2] [blush] I must not get out enough, I've never seen a Captcha with this kind of added human requirement. Oh well...
Title: Re: Basic stupid template operations
Post by: xairbusdriver on April 25, 2015, 12:37:57 AM
Started working on the <Leuven template (http://leuven-template.eu/download.php?lang=en)> late yesterday. Got to a point where I was supposed to run a script on the web space. 500 ERROR: INTERNAL SERVER ERROR!!! Do not pass Go, do not collect $200!.

Contacted the dev this afternoon (busy installing new plants in out little fish pond all morning). It appeared the only reason to run the scrip was to download four additional files. I already had all of them, but I wanted to be sure I didn't have some other problem. Got a reply within an hour! The instructions are a bit older than the templates; those files are included in the download, now. But he also discovered that I was using an older version! Downloaded the latest version and will start over on the instructions, probably over the weekend. [cheer]

I can only imagine the "fun" of keeping up with the half dozen weather apps, different hardware, and the changes in the weather sites needs, and capabilities.  [rolleyes2]
Title: Re: Basic stupid template operations
Post by: Blicj11 on April 25, 2015, 08:54:02 AM
Got a reply within an hour!

This is why you want to use a template that is still supported. Belgians are not only famous for waffles and friets, but now, apparently, they also make good weather templates.
Title: Re: Basic stupid template operations
Post by: xairbusdriver on April 25, 2015, 03:49:05 PM
Belgian?! I thought maybe Dutch, probably lives in northern Belgium, since his site is in mainly English or Dutch. Belgium is similar in languages to Switzerland; they speak the 'national' language and the one in the country 'next door'. And the vast majority of Europe can speak English, also. I wish we Americans had their language skills, but I'm as lazy as most other Yanks when it comes to that! [blush] All I can say is that he speaks and writes perfect English! [cheer]

They eat waffles like we eat 'french' fries! There are little side walk waffle shops in every town! OK, I don't know about 'every town', but they certainly have downtown Brussels covered! Of course, they don't usually put maple syrup on them! That would be rather messy when walking around eating the waffle! [rolleyes2]
Title: Re: Basic stupid template operations
Post by: saratogaWX on April 25, 2015, 07:11:54 PM
I may have discovered something that could be the cause of my problems. I went to the Wxforum to register and went through the process ~5 times getting a "complete Captcha" message each time. I finally realized the three little images at the bottom of the page were part of the Captcha process! [banghead] I kept wondering why I would care if the images were displayed vertically rather than horizontally! Never noticing that each one could be other than upright! "Vertical" had nothing to do with them, even when they are upright, they will still be horizontal! [rolleyes2] [blush] I must not get out enough, I've never seen a Captcha with this kind of added human requirement. Oh well...

Sorry you had issues navigating the image-based captcha on WXforum.net registration.  We had to resort to that method to foil the spambot registrations (which easily solve the 'regular' captcha).  The positioning of images by rotation so they are 'upright' is still a bit beyond the spambots to accomplish, so bogus registrations on WXForum.net has vastly diminished.. still get a few 'human-based' spam registrations from Asia, but easily thwarted as we clear each registration through the StopForumSpam database.

Let me know if you need assistance in registering still...

Best regards,
Ken
(admin for WXforum.net)
Title: Re: Basic stupid template operations
Post by: xairbusdriver on April 25, 2015, 07:58:12 PM
Just a matter of me being less smart than a bot! [blush] I have a contact page on my site and it's a fairly simple PHP system. My real filtering comes with SpamSieve on my own machine. A few weeks ago, I discovered that I'd reached the mailbox limit at the hosting company. I was wondering why I was not getting any messages, even when I tested the address for another reason. Apparently, the 'at-the-limit-notification' message also got trapped and deleted by SpamSieve! [lol]

I also learned that Wxforum is HUGE! I never got around to even posting a question! I did use the search function and didn't see much info on the topic of concern. The ratio of Mac to Windows users is quite different than here, of course.

Thanks for the offer of help, if you've seen most of my posts, that's their main purpose! [blush]
Title: Re: Basic stupid template operations
Post by: Blicj11 on May 03, 2015, 08:37:30 PM
Quote
If the gauges aren't showing, you did not follow the instructions for either Option 1 or Option 2.
Couldn't agree more. The only problem is which option and what instruction.

For the next guy reading this thread, there is a wiki entry on how to install the SteelSeries Gauges to interact with WeatherCat:

http://wiki.trixology.com/index.php/Steel_Series_Gauges

Now, if we could only get Edouard to join the gang and add SteelSeries to his SeaMonkey offering ...
Title: The things to do are seemingly endless . .(Re: Basic stupid template operations)
Post by: elagache on May 03, 2015, 10:15:19 PM
Dear Blick and WeatherCat web spinners,

Now, if we could only get Edouard to join the gang and add SteelSeries to his SeaMonkey offering ...

I would like to had some sort of real-time updating like some of these other web templates use.  Alas, everyday I seem to fall further behind . . . .

Oh well, . . . . . Edouard
Title: Re: Basic stupid template operations
Post by: xairbusdriver on May 03, 2015, 10:40:18 PM
UPDATED: This post refers to a site using a template. My current site is 90% hand-coded. The link below is valid but you won't see anything discussed in my comments there. [rolleyes2]

Guess I should update this thread. I now have a working site, still cleaning up a few minor details, like removing the "Develop" menu. The "globe" under my profile info should take you there. The url is: <mid-southweather.com (http://mid-southweather.com)>

BTW, there is a "Customize" menu (left nav/menu items) that will give you three different options in the top header; text only info, text and small, light-weight gifs, and some small Steel gauges (along with even smaller text, although I managed to make the timer window wide enough to see all the digits...). I generally prefer the text w/images for ease of reading.

I'm sure there are some settings, somewhere, to remove the direction markings on the Wind Direction gauge or even make the gauges larger. Right now, the test on the scrolling forecast is about 6 pixels tall. [rolleyes2] Seems a shame to waste so much horizontal and vertical space. I'm pretty sure the header can be taller with a few well placed edits. And I tend to use "em" text measurements rather than pixels, which are rather device dependent. Oh well, maybe Edouard can whip up a few ASs just for that. Since he's not getting any rain, it's not like he has to keep mowing the grass... [computer] [rockon]
Title: Re: Basic stupid template operations
Post by: Blicj11 on May 03, 2015, 11:04:12 PM
Looks like your website is coming right along, mate. Wim has done a nice job with his template. It still has some Dutch scattered around on a few pages of the English template, but it's a solid weather offering, which you will like.
Title: Re: Basic stupid template operations
Post by: xairbusdriver on May 03, 2015, 11:44:15 PM
I fear I don't have a bug squashed just yet that came from my NWS Alerts listing, I've seen the error report a couple of times; apparently after WC send updates... I'll have to copy and paste it into a file and see if I can track down the cause.

I'm getting a bit of vision-glasing from looking at the site and back to the files. If there's any Dutch you remember seeing, please let me know, if you can remember the location. It may be intentional on Wim's part. ;)
Title: Re: Basic stupid template operations
Post by: Randall75 on May 04, 2015, 01:01:46 AM
impressive xairbusdriver [tup]


cheers
 [cheers1]
Title: Re: Basic stupid template operations
Post by: Blicj11 on May 04, 2015, 06:17:14 AM
If there's any Dutch you remember seeing, please let me know, if you can remember the location. It may be intentional on Wim's part. ;)

One place that I remember is the credits on the About page, which uses the Dutch word "van" rather than the English word "from" or "with". In one of my previous lives, I lived in Belgium and was quite fluent in Flemish at the time. I have even been to Leuven.
Title: Re: Basic stupid template operations
Post by: wvdkuil on May 04, 2015, 08:45:51 AM
If there's any Dutch you remember seeing, please let me know, if you can remember the location. It may be intentional on Wim's part. ;)

One place that I remember is the credits on the About page, which uses the Dutch word "van" rather than the English word "from" or "with". In one of my previous lives, I lived in Belgium and was quite fluent in Flemish at the time. I have even been to Leuven.
To solve the Dutch words, or even more important: all the menglish words ( menglish short for "my English" as I think it is correct, but probably contains errors I do not see) the langlookup files can be used.
All words / sentences which are displayed and need to be changed, for reason of errors or for reason of different meaning (pool temperature => basement temperature), can be changed in the langlookup|from|becomes|  tables.
WiKi: http://wiki.leuven-template.eu/doku.php?id=faq:lang 

it is a pity that English in the the WiKi itself can not be improved that way, sorry for that.
Wim
Title: Re: Basic stupid template operations
Post by: Blicj11 on May 04, 2015, 03:10:29 PM
it is a pity that English in the the WiKi itself can not be improved that way, sorry for that.

Wim, your English is very good and far Superior to my Dutch.
Title: Re: Basic stupid template operations
Post by: xairbusdriver on May 04, 2015, 03:31:32 PM
 [rolleyes2] [lol]
One place that I remember is the credits on the About page, which uses the Dutch word "van" rather than the English word "from" or "with".
You're sure that wasn't some ones name, right?! ;)

Quote
In one of my previous lives, I lived in Belgium and was quite fluent in Flemish at the time. I have even been to Leuven.
Only "visited" a few times while carrying over-night cargo. Hotel was close to the Nord Station (I think), walked to a very good WWII museum. Once took the train north to Bruges to bring back some lace for my wife. The Europeans know how to use the rails!!!

Even further Off Topic: My wife's paternal grandfather was always known as "L.O." He even signed his name that way. His name was actually "Leonidas"! But growing up with minimal education in the rural South, he may not have ever seen his name spelt anywhere! I'm sure Wim knows of the chocolate brand... However, this southern gentleman, possibly never having seen the name correctly written, assumed that it was really two names; "Lee" and "Onidas"! Thus, he was known by the two initials, "L.O."!
Title: Re: Basic stupid template operations
Post by: wvdkuil on May 04, 2015, 05:18:55 PM
it is a pity that English in the the WiKi itself can not be improved that way, sorry for that.

Wim, your English is very good and far Superior to my Dutch.
Thanks, and also for your and my Dutch I continue to use translation files.
Wim
Title: Re: Basic stupid template operations
Post by: xairbusdriver on May 04, 2015, 05:20:34 PM
UPDATED: This post refers to a site using a template. My current site is 90% hand-coded. The link below is valid but you won't see anything discussed in my comments there. [rolleyes2]

Thanks, Blicj and Wim
Would either of you check the About page on my site and let me know if I've translated things correctly.
I changed "van" to "from" in most places; it was duplicated in one place (Ken True van van Saratoga-Weather.org). I didn't change it in your name. Particularly, check "Gerard from Doornenburg weather station". I certainly want to have the well deserved Credits correct! (http://i1327.photobucket.com/albums/u666/xAirbusDriver/thumbup_zpsfgqhxlem.gif)

Seems that "from", "with", or even "of" would work in this case. ???

I'd add "van|from" in the English translation list but I wouldn't want "van der Kull" to end up changed! :o

Aside, I'm assuming that "van" is often part of ones family name for the same reason many Anglo-Saxon names include the ancestors trade/skill/work; Cooper, Carpenter, Goldsmith, Farmer, etc. Of course, the 'spelling' (not to mention the hand-writing!) back on Ellis Island leaves a lot to be desires! [lol]
Title: Re: Basic stupid template operations
Post by: Blicj11 on May 04, 2015, 05:46:59 PM
Your changes look good to me.

Het ziet er goed uit voor mij.
Title: Zambretti forecast? (Re: Basic stupid template operations)
Post by: elagache on May 04, 2015, 09:35:46 PM
Dear xairbusdriver, Blick, Randall, Wim, and WeatherCat web spinners,

Guess I should update this thread. I now have a working site, still cleaning up a few minor details, like removing the "Develop" menu. The "globe" under my profile info should take you there. The (current) url is: <mailscamalert/weather2/ (http://mailscamalert.com/weather2/)>

Okay, I'm dashing between my afternoon chores, but I've got to ask: so how have you implemented your Zambretti forecast?  Is this the JavaScript version or have you taken a tilt at my AppleScripts?  I'm rather fearful when you take them on, they are in such bad shape that I'm not sure you'll be able to get to run no matter what.  Most of us who are still using them are only able to because they have been running continuously since OS 10.6!  [rolleyes2]

Oh well, maybe Edouard can whip up a few ASs just for that. Since he's not getting any rain, it's not like he has to keep mowing the grass... [computer] [rockon]

Don't count on it.  My to-do list on my trusty wagon is plenty long and worse still, the grass hasn't given up on growing yet!  Although given how little I'm watering the lawn, it shouldn't take many weeks to stunt that growth.

Cheers, Edouard  [cheers1]
Title: Re: Basic stupid template operations
Post by: xairbusdriver on May 04, 2015, 10:03:58 PM
Quote
how have you implemented your Zambretti forecast?
All I did was use the template! Whe...n I get a chance, I'll see if I can find the exact PHP script or javascript. Mr. Kull may get you an answer before that, of course! (http://i1327.photobucket.com/albums/u666/xAirbusDriver/thumbup_zpsfgqhxlem.gif) I'm not sure it's worth the screen real estate, anyway. It's not exactly "cutting edge" technology. Did you click the very, very tiny "i" (info) icon? It shows some background on where the ci=oding may have come from.

Quote
Is this the JavaScript version or have you taken a tilt at my AppleScripts?
The template does use a lot of javascript, but no editing of it was done by me. I have absolutely no experience with it. It is mainly several dozen folders full of PHP. Many of those replace things or completely output html files. There are several 'settings' files that put values into as many Global variables as you might want. Those then help control what the different PHP Functions do and what gets sent to the viewer. I know just enough PHP to get into all kinds of trouble! [blush] So I didn't really edit any of that, except for some hard-coded text snippets and some spelling changes.
Title: Re: Basic stupid template operations
Post by: Blicj11 on May 05, 2015, 01:41:52 AM
Mr. Kull may get you an answer before that, of course!

Mr. Kull's name is actually Mr. van der Kuil
Title: Re: Basic stupid template operations
Post by: xairbusdriver on May 05, 2015, 04:51:19 AM
My apologies. I actually knew that.
Title: Didn't know that Zambretti was built in. (Re: Basic stupid template operations)
Post by: elagache on May 05, 2015, 11:24:55 PM
Dear xairbusdriver,

Quote
how have you implemented your Zambretti forecast?
All I did was use the template!

Okay, I didn't know that that the Zambretti forecast was built into the Leuven-Template.  I found original JavaScript implementation by beteljuice that Mr. van der Kuil refers to in his template and that's what I translated into my AppleScript.  I didn't realize that anyone else would have found this interesting enough to include on a website.  In most places the Zambretti isn't very accurate at all.  However, it was good enough in Northern Europe for the original forecasters to be sold, so I suppose there is an audience in Europe for the JavaScript version.  I suppose that is the reason Mr. van der Kuil included it in his template.

Cheers, Edouard  [cheers1]
Title: Re: Basic stupid template operations
Post by: xairbusdriver on May 06, 2015, 12:31:56 AM
Quote
the Zambretti isn't very accurate at all
Well, it's more accurate than the infamous hanging rock... at least for "forecasts"! (http://i1327.photobucket.com/albums/u666/xAirbusDriver/thumbup_zpsfgqhxlem.gif)

One can easily hide it, and practically anything else in the template. That's usually as simple as changing a "true" to "false" (although sometimes it's actually the opposite!). Most of the choices are in a single "Settings.php" file. ;)
Title: Re: Didn't know that Zambretti was built in. (Re: Basic stupid template operations)
Post by: wvdkuil on May 06, 2015, 07:49:22 AM
Dear xairbusdriver,

Quote
how have you implemented your Zambretti forecast?
All I did was use the template!

Okay, I didn't know that that the Zambretti forecast was built into the Leuven-Template.  I found original JavaScript implementation by beteljuice that Mr. van der Kuil refers to in his template and that's what I translated into my AppleScript.  I didn't realize that anyone else would have found this interesting enough to include on a website.  In most places the Zambretti isn't very accurate at all.  However, it was good enough in Northern Europe for the original forecasters to be sold, so I suppose there is an audience in Europe for the JavaScript version.  I suppose that is the reason Mr. van der Kuil included it in his template.

Cheers, Edouard  [cheers1]
Hello Edouard,
The reason that most of those dozen or so optional scripts are in the Template, is because some weather enthousiast like to have them. 
Just for old times sake in this Zambretti case. Sometimes being on a sailboat on the sea, it was the only working "device" they had.

The next one will be the Sager forecaster as on: http://peo.yliniemi.se/vader/sager/ (http://peo.yliniemi.se/vader/sager/)

Just fore the fun of it I need some fully irrelevant programming when it gets boring to be only testing the next Template release for 11 weather programs and 4 regions.

Wim
Title: Could you send me your Sager code? (Re: Zambretti built in.)
Post by: elagache on May 06, 2015, 10:33:47 PM
Dear Wim and WeatherCat nostalgic weather device lovers,

The reason that most of those dozen or so optional scripts are in the Template, is because some weather enthousiast like to have them.  Just for old times sake in this Zambretti case. Sometimes being on a sailboat on the sea, it was the only working "device" they had.

Oh yes, I understand.  I really like the Zambretti forecaster.  I almost bought one of the modern recreations just to have it.  I just wasn't willing to pay the overseas shipping.  My WC Zambretti Forecaster is still one of my favorites.  I've turned to it many times as a prototype to test something new because it was so simple and "harmless."

The next one will be the Sager forecaster as on: http://peo.yliniemi.se/vader/sager/ (http://peo.yliniemi.se/vader/sager/)

Just fore the fun of it I need some fully irrelevant programming when it gets boring to be only testing the next Template release for 11 weather programs and 4 regions.

If you don't mind, when you get some sort of a prototype up and running could you send me the code that actually generates the forecast?  Time is very short right now, but perhaps someday I'll get back to the AppleScripts.  I really hope to sometime rewrite most of this stuff as WeatherCat plug-ins, but I need to get some big projects off my plate first.

Cheers, Edouard  [cheers1]
Title: Re: Basic stupid template operations
Post by: xairbusdriver on May 08, 2015, 03:32:21 PM
UPDATED: This post refers to a site using a template. My current site is 90% hand-coded. The link below is valid but you won't see anything discussed in my comments there. [rolleyes2]

There is a CWOP "radar" display in this template (and likely most others) on which I need some user experience feedback. <On my old/closed site>, using the "CWOP" icon in the "You find our weather info also at:" area of the main page, will present a radar map with rain, flood/tornado/severe weather/etc. overlays. This link may not work as it is changed and created by NOAA/CWOP every five(?) minutes. <http://www.findu.com/cgi-bin/wxpage.cgi?call=EW7115&last=12 (http://www.findu.com/cgi-bin/wxpage.cgi?call=EW7115&last=12)>

My question comes from what appears to be the 'service area' of the radar. On my iMac (and my iPad), this area is displayed (in Safari) as an ellipse rather than a circle.Thanks for any constructive criticism. [blush]
Title: Should look that way I suppose. (Re: Basic stupid template operations)
Post by: elagache on May 08, 2015, 10:58:55 PM
Dear xairbusdriver and WeatherCat web spinners,

There is a CWOP "radar" display in this template (and likely most others) on which I need some user experience feedback.

. . . .

My question comes from what appears to be the 'service area' of the radar. On my iMac (and my iPad), this area is displayed (in Safari) as an ellipse rather than a circle.

. . . .

Is that how it appears on your monitor?

I get exactly the same display on my Mac running Firefox or my iPad.  It may seem odd but perhaps it should be an ellipse.  It may have to do with some sort of odd aspect of that particular Doppler station.  I certainly wouldn't lose any sleep over that.

Cheers, Edouard  [cheers1]
Title: Re: Basic stupid template operations
Post by: xairbusdriver on May 09, 2015, 01:57:24 AM
Maybe it does have a 'doppler' aspect... the eclipse is actually a circle affected by the spinning of the Earth! Perhaps we could contact the people in charge of that to make a short test with the axis rotated 90?... probably would need to make that change very, very slowly, of course.

In the mean time... [sleep]