Author Topic: WeatherCat and Wordpress  (Read 1818 times)

splatt

  • Calm
  • *
  • Posts: 3
  • Station Details: Davis VP2 wireless running for around 8 years
WeatherCat and Wordpress
« 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/

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

Blicj11

  • Storm
  • *****
  • Posts: 3969
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Ventura 13.6.7 | Sharx SCNC2900 Webcam | WeatherCat 3.3 | Supportive Wife
Re: WeatherCat and Wordpress
« Reply #1 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.
Blick


xairbusdriver

  • Storm
  • *****
  • Posts: 3131
Re: WeatherCat and Wordpress
« Reply #2 on: May 22, 2021, 02:57:05 AM »
Nice site, Steve!
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system

elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6525
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Thanks for sharing! (Re: WeatherCat and Wordpress)
« Reply #3 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

splatt

  • Calm
  • *
  • Posts: 3
  • Station Details: Davis VP2 wireless running for around 8 years
Re: WeatherCat and Wordpress
« Reply #4 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