I actually have a much better idea. Instead of having Rainmeter folks endlessly update some hosted .inc whenever TWC decides to change the source, why not build a skin that:kyriakos876 wrote: ↑February 7th, 2020, 7:09 pmHello, if I understand correctly the only thing that might change is the code in the Weather.com site which would break the RegExp file.
Can't we just host this file in GitHub like I did for testing here? [...] So in the IfNotMatchAction we can have the lua run and update the file. Just an idea...
- shows the relevant elements (like sections, subsections, etc.) from the source, their order and if they exist (preferable both in the HTML and JSON parts)
- automatically creates a basic regex that can further be used to parse the source and be tailored / modified according to user preference later on
This came to me as I was working on completing my weather skin and I was thinking how one can avoid manually checking and modifying the regex when there's a change in the TWC data (e.g. sections, subsections or fields added, missing or arranged differently, etc). I think such an idea is much better than hosting a continuously updated .inc, as things would be done automatically by each user who downloads the skin and pushes the button on it. Making this work isn't as hard as one may think, it's basically about getting the skin to parse or download the whole page source and replacing the unneeded parts with in the regex and in the visual part presented to the user, since we're talking about a basic attempt.
So, kyriakos, why not start this little project and then share your creation here with everyone else? I'm pretty sure it would be a success when the time comes and weather.com is shuffling things up on its main page.