New User Front Pages Need Help

Walt

New member
I'm using Macrodroid for the first time and have no experience. I wrote this app to open the Front Pages of Newspapers that I want to see each morning. I have a tablet that I experiment on and a tablet that I use as my main tablet. When I got this working on the first tablet, it worked fine. When I moved it to my main tablet, it did work as expected. Instead of opening the page in a PDF reader, it downloads the PDF file. I'm sure it's a browser issue, but I cannot figure out how to solve it. I'm using a Google Chrome browser on Android 12. And, as I'm typing it occurs to me to check for a PDF plugin. HELP!
Screenshot_20231015-125438.pngScreenshot_20231015-125515.png
 

Walt

New member
Okay, that might help, and that will certainly be helpful for other Macrodroid ideas that I have. But the real issue is that on the test tablet, it just opens the 6 pages, so that when I get to the tablet at 7:30, the current day's newspapers are open, the Washington post is loaded and the Front Pages app is loaded. There would have to be 6 clicks and the clicks would have to be on the browser download page and there are timing and positioning issues there. Obviously, there's a configuration issue between the test tablet and the main tablet.

Where I really think a universal solution exists is for the pdf reader to open the document directly. I've tried reading the chrome://flags and chrome://chrome-urls to find a difference between the test tablet and the main tablet. I can't find a difference. I also, just now, checked to see what happens if I put the address in the browser on the main, typing cdn.freedomforum.org/dfp/pdf15/NY_NYT.pdf (The number in the url is the day of the month, so that link will only work on the 15th and 16th of the month and typically only after 7:00 am.) It tries to download the page instead of opening it. So there are two potential solutions. Either I fix chrome to open PDFs like it does on the test tablet, or I fix the macro to tell the pdf reader to open the file at that location.

The problem for me is that I don't know how to execute either one of those solutions.
 

Endercraft

Moderator (& bug finder :D)
You can use the open file action with dynamic file name, you can use magic text to open the pdf after downloading.
You can use the HTTP Request action to save the pdf in a temporary directory without needing Chrome.
 

Walt

New member
By the way, this is still a lot faster than using the Front Pages app, even with it's flaw.
 

Walt

New member
Thanks Enercraft! Here's the final product. It's working great. I really appreciate your guidance. I can adapt this to any Android tablet without issue. Plus, the Dictionary Variable you used in the write you sent me exposed me to something new that I would not have understood for weeks. Thanks again.
 

Attachments

  • Daily_Front_Pages_V231015_1.0.macro
    9.3 KB · Views: 8

Walt

New member
Interesting approach.
Would be possible send this action to Telegram or WhatsApp group?
I'm still learning. One thing I did find is that I could streamline the download process and put it in an action block. I don't actually need the 404 warning because the Macro runs before I'm looking at the tablet. I'm trying to figure out if I can build the Dictionary through a kind of check a box interface so that users (my family) can pick their own pages.
 
Top