Author Topic: Weather site in dashboard view  (Read 13938 times)

Offline tomgru

  • Hero Member
  • *****
  • Posts: 1402
  • Karma: +18/-6
Weather site in dashboard view
« on: April 27, 2014, 02:45:12 pm »
anyone found a good weather site to show current weather in a large tile on a dashboard?

Offline guessed

  • Master Member
  • *******
  • Posts: 5293
  • Karma: +90/-22
  • Release compat is not a bolted-on afterthought
Re: Weather site in dashboard view
« Reply #1 on: April 27, 2014, 02:58:54 pm »
Wunderground has Weather tiles in a number of different shapes/sizes:
    http://www.wunderground.com/stickers/

You just have to put the tile snippet somewhere...

Offline tomgru

  • Hero Member
  • *****
  • Posts: 1402
  • Karma: +18/-6
Re: Weather site in dashboard view
« Reply #2 on: April 27, 2014, 03:43:25 pm »
Wunderground has Weather tiles in a number of different shapes/sizes:
    http://www.wunderground.com/stickers/

You just have to put the tile snippet somewhere...

awesome... thanks.  but for the life of me it just shows the URL in the dashboard tile and tells me webpage not available.

Offline guessed

  • Master Member
  • *******
  • Posts: 5293
  • Karma: +90/-22
  • Release compat is not a bolted-on afterthought
Re: Weather site in dashboard view
« Reply #3 on: April 27, 2014, 04:24:01 pm »
It would depend upon what the ImperiHome App needs.  If it needs an explicit URL to the content, then the Wunderground HTML snippet would need to be "hosted" somewhere.

For test purposes, I copied one of the snippets and pasted it's HTML content into the following file on my Vera (to act as a Local/LAN HTTP-host:
    /www/weather.html

I then accessed it with a regular browser using:

   http://<veraIP>/weather.html

and it loaded the snippet correctly into Chome.  My Nexus is charging right now so I can't test what ImperiHome would do and/or needs.

Offline ImperiHome

  • Moderator
  • Full Member
  • *****
  • Posts: 100
  • Karma: +6/-1
Re: Weather site in dashboard view
« Reply #4 on: April 27, 2014, 06:50:46 pm »
The app's "Web Page" widget just displays a hosted web page in a standard android web-browser UI component; so yes for now you'll have to host the little webpage snippet somewhere.

Offline tomgru

  • Hero Member
  • *****
  • Posts: 1402
  • Karma: +18/-6
Re: Weather site in dashboard view
« Reply #5 on: April 29, 2014, 07:21:04 pm »
It would depend upon what the ImperiHome App needs.  If it needs an explicit URL to the content, then the Wunderground HTML snippet would need to be "hosted" somewhere.

For test purposes, I copied one of the snippets and pasted it's HTML content into the following file on my Vera (to act as a Local/LAN HTTP-host:
    /www/weather.html

I then accessed it with a regular browser using:

   http://<veraIP>/weather.html

and it loaded the snippet correctly into Chome.  My Nexus is charging right now so I can't test what ImperiHome would do and/or needs.

did you get a chance to test this?  seems easy.  Although i'm always a little leery adding files to vera.  Any concerns there regarding overhead/resources? 

Offline patersom82

  • Sr. Newbie
  • *
  • Posts: 42
  • Karma: +1/-1
Re: Weather site in dashboard view
« Reply #6 on: June 18, 2014, 01:46:45 pm »
Did anyone manage to get this to work?

I am also trying to find a way to get weather forecast on the dashboard.

Offline tomtcom

  • Hero Member
  • *****
  • Posts: 852
  • Karma: +20/-31
Re: Weather site in dashboard view
« Reply #7 on: June 18, 2014, 02:18:34 pm »
http://www.wunderground.com/stickers/

I just tested the wunderground code snippet. It worked fine for me. However.......

I haven't yet played with the sizes but make a new file on your SD card called weather.html (or whatever) and in the URL for Imperihome you can specify "file:///storage/emulated/0/....rest of path.html"

You can also click and interact a bit but you can't go "back" without exiting the Imperihome app.

If you're good at html you can probably either edit the code or copy and make your own similar snippets.


Offline patersom82

  • Sr. Newbie
  • *
  • Posts: 42
  • Karma: +1/-1
Re: Weather site in dashboard view
« Reply #8 on: June 18, 2014, 02:40:22 pm »
Ah, very clever!  I never would have figured that out.

I also got some good HTML code from the Met Office web site (since I am based in the UK).

Great, so it seems I need to make an HTML file containing the code, put it on my Nexus 7 and point ImperiHome dashboard to the file.  That's my weekend sorted ;-)
« Last Edit: June 18, 2014, 03:39:56 pm by patersom82 »

Offline tomtcom

  • Hero Member
  • *****
  • Posts: 852
  • Karma: +20/-31
Re: Weather site in dashboard view
« Reply #9 on: June 18, 2014, 03:32:30 pm »
Ah, cleaver!  I never would have figure that out.

I also got some good HTML code from the Met Office web site (since I am based in the UK).

Great, so it seems I need to make an HTML file containing the code, put it on my Nexus 7 and point ImperiHome dashboard to the file.  That's my weekend sorted ;-)

You are correct!

One caveat...not sure if the widget updates itself or how that works so you know.

Sent from my Nexus 5 using Tapatalk


Offline dannieboiz

  • Sr. Member
  • ****
  • Posts: 412
  • Karma: +2/-2
Re: Weather site in dashboard view
« Reply #10 on: December 11, 2014, 05:50:21 pm »
Has there been any update on the success of this?

Offline tomtcom

  • Hero Member
  • *****
  • Posts: 852
  • Karma: +20/-31
Re: Weather site in dashboard view
« Reply #11 on: December 12, 2014, 02:12:31 pm »
Has there been any update on the success of this?

No. I got a hold of support for Imperihome and asked them the widget sizes. The widgets change size per the screen that you are using like 5", 6" and so on. I wanted to know the exact pixelXpixel so I could try to hack together some html to actually fit nicely in the box I chose but since it's dynamic and I can't really do html I never got further.

Imperihome also does not have this on their book of work to do anytime soon so it's best to figure out some html coding and come up with your own.

There's another thread I participated in where I gave a lot of wunderground URL's you could use that might fit your needs. I don't have that URL handy though. Search my screenname maybe.

Offline tomtcom

  • Hero Member
  • *****
  • Posts: 852
  • Karma: +20/-31
Re: Weather site in dashboard view
« Reply #12 on: December 30, 2014, 02:26:17 pm »
I ended up getting the free developer account from wunderground to get the API key. Installed the app from apps.mios.com and it works perfectly in Vera UI on a broswer.

So for Imperihome, what method would display what I see in the browser devices that loaded?

Offline tomtcom

  • Hero Member
  • *****
  • Posts: 852
  • Karma: +20/-31
Re: Weather site in dashboard view
« Reply #13 on: January 01, 2015, 10:50:14 am »
Delete

Offline tomtcom

  • Hero Member
  • *****
  • Posts: 852
  • Karma: +20/-31
Re: Weather site in dashboard view
« Reply #14 on: January 08, 2015, 05:31:46 pm »
(http://tapatalk.imageshack.com/v2/15/01/08/80a0ae5481a3e6518ed91fffd490d547.jpg)

Now I got it going.