How to use MeteoHub in Wordpress ?

Moderator: Mattk

Post Reply
User avatar
ON1DQD
Expert Boarder
Expert Boarder
Posts: 93
Joined: Fri Dec 05, 2008 8:46 pm
Location: Belgium (Genk)
Contact:

How to use MeteoHub in Wordpress ?

Post by ON1DQD » Sat Jan 31, 2015 8:17 pm

Hi,

Can someone give an example of how to use MeteoHub data on Wordpress ?

The plug-in that are available on Wordpress does not work.

Any help on this is welcome!
Regards / Grüß,
Geert - ON1DQD

User avatar
ON1DQD
Expert Boarder
Expert Boarder
Posts: 93
Joined: Fri Dec 05, 2008 8:46 pm
Location: Belgium (Genk)
Contact:

Re: How to use MeteoHub in Wordpress ?

Post by ON1DQD » Fri Feb 20, 2015 9:15 pm

Not much support here if you ask me.

Anyone?
Regards / Grüß,
Geert - ON1DQD

rune
Expert Boarder
Expert Boarder
Posts: 100
Joined: Wed Jun 24, 2009 10:51 pm

Re: How to use MeteoHub in Wordpress ?

Post by rune » Sat Feb 21, 2015 8:15 pm

What kind of functionality/plugin are you looking for? Widget, page or ?

I've borrowed a HTML page which I use for my WP weatherpage www.vaerloese-vejr.dk, but to be honest I'd like much more but lack the expert HTML coding & design skills.
You can also use e.g. the Saratoga framework (non WP), but in my opinion it looks way to old for my taste.

jwka
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: Tue Mar 17, 2015 4:39 pm

Re: How to use MeteoHub in Wordpress ?

Post by jwka » Tue Mar 17, 2015 5:13 pm

Not sure about Wordpress' possibilities on utilizing customized pages, but given there is PHP support, you could:

- make a page, say "wl.php"
- use this in the Push Servicess Page of meteobridge to push data to an "HTTP" the server running wordpress
- that page would not contain any html code rather than just a few lines of code in PHP disassembling the $_GET field
- writing a result-page in HTML that you could link into your wordpress page - say "weather.html"

Basically any web-server I know supports PHP and therefor can be used to collect & prepare the weather data. With that method, you could even build your own storage and make individual averages etc.

The simple trick is to use meteobridge to push the data to the php page ...

User avatar
ON1DQD
Expert Boarder
Expert Boarder
Posts: 93
Joined: Fri Dec 05, 2008 8:46 pm
Location: Belgium (Genk)
Contact:

Re: How to use MeteoHub in Wordpress ?

Post by ON1DQD » Mon Mar 23, 2015 9:44 pm

Thanks for the advice and ideas!

I have found a plugin but I can't get it to work.
https://wordpress.org/plugins/meteohub/
Regards / Grüß,
Geert - ON1DQD

rune
Expert Boarder
Expert Boarder
Posts: 100
Joined: Wed Jun 24, 2009 10:51 pm

Re: How to use MeteoHub in Wordpress ?

Post by rune » Mon Mar 23, 2015 9:51 pm

It doesn't seem like a good idea to run through all-sensors.txt on every display of the homepage. As jwka says, you can use multiple e.g. IFRAME plugins (I know IFRAME isn't good, but it works) and upload a html file with the data you wish to show.

jwka
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: Tue Mar 17, 2015 4:39 pm

Re: How to use MeteoHub in Wordpress ?

Post by jwka » Mon Mar 23, 2015 10:01 pm

I mean you have TWO (three) different processes:

1.) "uploading" tha data from your meteobridge to the site that runs Wordpress

1.a) "formatting/writing" the data into a format the Wordpress Templates or finctions are able to use

2.) Having a Wordpress page/subpart to read your prepared data to make it visible within the website.

All I can help with is how to upload and format the data - that's the PHP part and relatively easy. I have no glue as how wordpress can read data from a file and render it to the browser. I could post the string you put into the meteobrisge push service and alspo the PHP code to acept it and write it to a file.

rune
Expert Boarder
Expert Boarder
Posts: 100
Joined: Wed Jun 24, 2009 10:51 pm

Re: How to use MeteoHub in Wordpress ?

Post by rune » Mon Mar 23, 2015 10:27 pm

Attached you'll find a HTML template which I received from someone on this forum. I'm uploading it to my Wordpress site and have the frontpage reference it via a IFRAME plugin.
Attachments
wetter_aktuell.zip
(1.39 KiB) Downloaded 128 times

jwka
Fresh Boarder
Fresh Boarder
Posts: 6
Joined: Tue Mar 17, 2015 4:39 pm

Re: How to use MeteoHub in Wordpress ?

Post by jwka » Mon Mar 23, 2015 10:47 pm

<wir können vielleicht auch deutsch spechen ?>

Sorry, cannot help with that. As said, I have no glue about WOrdpress. The file shows that there seems to be data being populated inot the html template, but that seems to be done by Wordpress.

I my world, I would do as described in my recent post. To have a quick start to check if it pricipally would work, I can upload three things for you:

- a string you paste into the push service on your meteobridge (you have local access to it?)

- a php file that will collect tha data and stores it to a local file on your server

- a file with embedded PHP code to show one or two data points

If you set the update interval on your meteobridge to 5 seconds, you should very quickly see if there's a solution. Then we can finish and build your webpage according to the template.

Are you at all programming (html and/or PHP)?

Post Reply