If you want to show power outages, hopefully the website has an API. In which you can get raw data and display it. Showing the outages website instead of getting data is kinda' crap solution.
Power outage data is available from here:
https://poweroutage.us/products
It's not free, but is better than trying to display a website.
The point of expression is you can create graphics. Showing a screen capture of a website degrades Xpression to Powerpoint.
------------------------------
Azathoth
Son of Cthulhu
------------------------------
Original Message:
Sent: 01-21-2025 11:32
From: Ben Scripps
Subject: Loading a Specific Webpage Through Scripting?
Thanks for that info--I'll definitely look into this as a path forward, but I know our news director is adamant that it be a live page (one of the things we use is showing power outage maps from the local electric utility, so it needs to be at least close to live).
We do have a Streamline server in our setup, so producers have a way of grabbing screen caps and adding that way, but I was hoping for something a little closer to an actual live webpage. (Producers could just do a screen cap at the last minute, but building on your observation, I wouldn't want to be reliant on that...)
Thanks!
------------------------------
Ben Scripps
Assistant Operations Manager
WWTV Cadillac MI
------------------------------
Original Message:
Sent: 01-17-2025 17:06
From: Azathoth Son of Cthulhu
Subject: Loading a Specific Webpage Through Scripting?
Perhaps Ross has a better idea than I do. I haven't done it but have done a 10 minute search for some info.
1) Have a server that can render a webpage from the command line.
This has many problems. Biggest is feedback in the MOS plugin or just getting the image in a timely manor. But here are some rabbit-hole links for you:
https://wkhtmltopdf.org/
https://superuser.com/questions/280552/how-can-i-render-a-website-as-an-image-from-the-shell
https://softwarerecs.stackexchange.com/questions/50269/command-line-utility-for-rendering-htmlcss-to-image
https://stackoverflow.com/questions/3318490/generate-image-e-g-jpg-of-a-web-page
2)File server + browser extension
Believe it or not, browser plugins are easy to make, and so is turning a webpage into an image.
Have a file server that accepts http uploads.
Write an extension that does a webpage capture and sends the data to the file server.
MOS and production boxes can access file server.
Extension should resize window to a predetermined size for rendering to look best on air.
This would be the preferred method because there would be no race condition issues with rendering. You just have a push button solution for your news producers ( because they aren't always the brightest ).
------------------------------
Azathoth
Son of Cthulhu