Page 1 of 1

Weather

Posted: Fri Aug 31, 2012 11:48 pm
by dansonamission
Does any know a way of displaying the current weather for a set location in demo pad??

Ive guessed its probably simple to do it with a web page, but its knowing which webpage use!

Thanks

Re: Weather

Posted: Sat Sep 01, 2012 1:22 am
by dansonamission
After trying about 100 web widgets I came across this great site!

http://www.weather-wherever.co.uk/widget/

Works a treat. If you make your web views height slightly smaller than the size it gives you, it will remove the small piece of text at the bottom of it.

Re: Weather

Posted: Tue Sep 25, 2012 8:43 am
by symmoelectric
What part of code are you coping over on this? I'm struggling to get this working very well...

Re: Weather

Posted: Tue Sep 25, 2012 11:04 am
by dansonamission
You need to create a HTML file and host it on a website some where. The code is then copied into that HTML file.

How far have you got?

Re: Weather

Posted: Tue Sep 25, 2012 11:16 am
by dansonamission
This is the only code in one of my HTML files which is hosted on my server at home.

I created a blank image (png, jpg etc) of the size of the webview area needed. Drew a webview on the page, selected it along with the blank image and used the image resize toolbar to make them the same size. The blank image can now be deleted. Edit the webview properties to point to the html file where ever it might be hosted and your done.

If you need any more info, give me a shout.

The file is also attached.

Code: Select all

<style type="text/css">
body {
	background-color: #000;
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
</style>
<div id="cont_MTEyMDd8NXwzfDR8MXxGRkZGRkZ8NnxGRkZGRkZ8Y3wx"><div id="spa_MTEyMDd8NXwzfDR8MXxGRkZGRkZ8NnxGRkZGRkZ8Y3wx"><a id="a_MTEyMDd8NXwzfDR8MXxGRkZGRkZ8NnxGRkZGRkZ8Y3wx" href="http://www.weather-wherever.co.uk/united-kingdom/london_v11207/" target="_blank" style="color:#000;text-decoration:none;">London Weather forecast</a></div><script type="text/javascript" src="http://widget.weather-wherever.co.uk/js/MTEyMDd8NXwzfDR8MXxGRkZGRkZ8NnxGRkZGRkZ8Y3wx"></script></div>

Re: Weather

Posted: Tue Sep 25, 2012 11:45 am
by symmoelectric
Cheers peeps!!

Gotcha!! Spot on. Doesn't look too bad either....

Thanks for your help!