Trixology

WeatherCat => WeatherCat Web Templates => Topic started by: splatt on May 21, 2021, 09:21:00 PM

Title: WeatherCat and Wordpress
Post by: splatt on May 21, 2021, 09:21:00 PM
Hi,

Not a template as such, but I thought I'd share what you can do on a Wordpress site: http://www.stambourne.com/weather/ (http://www.stambourne.com/weather/)

The image is based on the conditions uploaded by WeatherCat (from VP2) and automatically darkens, slowly, at dusk and lightens at dawn (the power of CSS and JS!).

If anyone's interested in how it works, I can provide more information but I think it's possible to do something reasonably nice in Wordpress.

Steve
Title: Re: WeatherCat and Wordpress
Post by: Blicj11 on May 21, 2021, 11:51:11 PM
Nice work Steve. My site also uses WordPress. There aren't very many WeatherCatters who use WordPress so I am glad to find another one. I'd love to get the details on how you used CSS and JS on your conditions. Send me a PM and I'll reply with my email address.
Title: Re: WeatherCat and Wordpress
Post by: xairbusdriver on May 22, 2021, 02:57:05 AM
Nice site, Steve!
Title: Thanks for sharing! (Re: WeatherCat and Wordpress)
Post by: elagache on May 22, 2021, 09:41:22 PM
Thanks for sharing Steve!

WordPress is a popular web platform, but I can only recall one other example of someone integrating WeatherCat and WordPress.  Hopefully your example will encourage others!

Cheers, Edouard
Title: Re: WeatherCat and Wordpress
Post by: splatt on May 23, 2021, 06:54:20 AM
Thanks for the kind words about the website.

Blicj11 : I've PMed you.

In summary, WeatherCat uploads a barebones file with tags and values e.g. <currentTemp>15c to an upload page, the Wordpress page has JS source in there which uses XMLHttpRequest to get the uploaded page, it outputs the content to a DIV tag which is then parsed to get the values, which are then used to set the innerHtml on various embedded tags in the Wordpress page.

Hugely grateful to WeatherCat for making the s/w for the Mac, after years of having to run rather unreliable and overly complicated s/w on a (Vista!) PC whose only purpose was to update the website, which finally gave up the ghost last year!

Steve