Page 1 of 1

Displaying info from a website

PostPosted: Mon Aug 24, 2020 10:08 am
by jroach
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.

Re: Displaying info from a website

PostPosted: Tue Aug 25, 2020 1:51 pm
by DaveL17
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.

Re: Displaying info from a website

PostPosted: Tue Aug 25, 2020 4:56 pm
by jroach
Dave, thanks.
Maybe it is time to learn Python :)

Re: Displaying info from a website

PostPosted: Tue Aug 25, 2020 6:10 pm
by DaveL17
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

Re: Displaying info from a website

PostPosted: Wed Aug 26, 2020 8:51 am
by eme jota ce
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.

Re: Displaying info from a website

PostPosted: Wed Aug 26, 2020 9:22 am
by jroach
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?

Re: Displaying info from a website

PostPosted: Wed Aug 26, 2020 9:48 am
by jroach
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.

Re: Displaying info from a website

PostPosted: Wed Aug 26, 2020 10:03 am
by eme jota ce
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

Re: Displaying info from a website

PostPosted: Wed Aug 26, 2020 12:59 pm
by jroach
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.

Re: Displaying info from a website

PostPosted: Wed Aug 26, 2020 1:44 pm
by neilk
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.