Displaying info from a website

Posted on
Mon Aug 24, 2020 10:08 am
jroach offline
Posts: 254
Joined: Oct 29, 2010

Displaying info from a website

Based on what I read, I don't think this possible but....

I'm trying to build a control page that posts info (like the noaa plugin) from: https://web.pulsepoint.org

any thoughts appreciated.

Posted on
Tue Aug 25, 2020 1:51 pm
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Displaying info from a website

There's not a super easy way to do this. One way to do this would be to use a Python script to load the page in question and then parse out the bits that you want into Indigo variables. A more involved method that would I think feel more familiar would be a plugin that adds the information you're interested in into custom device states. Both these methods would require knowledge of Python which is super at this sort of thing.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Tue Aug 25, 2020 4:56 pm
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: Displaying info from a website

Dave, thanks.
Maybe it is time to learn Python :)

Posted on
Tue Aug 25, 2020 6:10 pm
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Displaying info from a website

It looks like there also may be an API for the service. If it would work, you might be able to access it with an existing plugin like the GhostXML plugin.

https://docs.google.com/document/pub?id=1qMdahl1E9eE4Rox52bmTA2BliR1ve1rjTYAbhtMeinI

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Wed Aug 26, 2020 8:51 am
eme jota ce offline
Posts: 618
Joined: Jul 09, 2009
Location: SW Florida

Re: Displaying info from a website

jroach wrote:
Based on what I read, I don't think this possible but....

I'm trying to build a control page that posts info (like the noaa plugin) from: https://web.pulsepoint.org

any thoughts appreciated.


As a possible and partial response that might be helpful, I have a live radar image from WeatherUnderground embedded into one of the Indigo control pages.

In the control page, create a Refreshing Image URL and set sizes & refresh rates to the right of it, for example 480 x 360 with 1 second refresh.

The link you'll post into the Control page's "URL" box comes from going to weatherunderground.com and taking these steps:
    Input your location. That will show a radar image / map.
    Zoom in/out using the + / - on that image until it looks approximately like the radar you want. \
    Click the "NEXRAD" button beneath the map, which will open a new page.
    Further refine that radar image, for example hit the play button to animate, zoom, etc.
    When it looks like what you'd like in your indigo page, click the "Save Image" link which will open another new page.
    The URL for that page can be copied and pasted into your Indigo page's URL box beneath what you setup earlier.
    The URL that you paste into Indigo will look like "https://radblast.wunderground.com/cgi-bin/radar/WUNIDS_map?num=..."

Not sure where I found this, but most likely on this forum. It has worked well for many years.

Posted on
Wed Aug 26, 2020 9:22 am
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: Displaying info from a website

Wow, that looks exactly like what I want to do!
I'll give it a try now.
Curious... Do you use this within a page or a trigger that displays the radar if there is a warning?

Posted on
Wed Aug 26, 2020 9:48 am
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: Displaying info from a website

Also curious as to why wunderground works and other websites don't ie:https://web.pulsepoint.org or https://www.aviationweather.gov
I haven't tried the wunderground yet so maybe it's because there is a plug-in.

Posted on
Wed Aug 26, 2020 10:03 am
eme jota ce offline
Posts: 618
Joined: Jul 09, 2009
Location: SW Florida

Re: Displaying info from a website

jroach wrote:
Wow, that looks exactly like what I want to do!
I'll give it a try now.
Curious... Do you use this within a page or a trigger that displays the radar if there is a warning?


I use it within an Indigo page, without the trigger, but that's a great idea.

[EDIT]

In response to your second question, No Idea. But after another search to see if I could locate the original discussion for the method I reposted to you in Dave's Weather Underground plugin forum, I did see another way to import radar data that he posted.
viewtopic.php?f=73&t=23334&p=186340&hilit=weather+underground#p186340

Posted on
Wed Aug 26, 2020 12:59 pm
jroach offline
Posts: 254
Joined: Oct 29, 2010

Re: Displaying info from a website

Thanks again. I'll check out Dave's WU page as well. I think the plug-in info was what I was missing in my thinking.

Posted on
Wed Aug 26, 2020 1:44 pm
neilk offline
Posts: 714
Joined: Jul 13, 2015
Location: Reading, UK

Re: Displaying info from a website

https://forums.indigodomo.com/viewtopic.php?f=279&t=20920 is a method that works for me for individual Grafana frames, but the approach may also work for other sites/sources.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest