ManageStore and CFStat - Weed out your store

Has it been six years?

CFStat does not work. Coldfront is no longer providing the data. Similar data is being provided by loathers.net. I am in the process of trying to understand what is available programmatically and provide it instead. As long as I am doing that I should also look at ManageStore and make some tweaks to it. I should develop a migration plan so that from henceforth the latest version of CFStat is on GitHub. Stand by. Suggestions and words of encouragement may serve to convince me to work on this instead of various other time sinks in my life :-)
 
Alright, I got this far:
Code:
void main()
{   
    string expr = "unitPrice\":\\{\"__decimal__\":\"(\\d+)";

    item i = $item[mr. accessory];

    string page = visit_url("https://pricegun.loathers.net/api/" + to_int(i));

    matcher m = create_matcher(expr, page);
    find(m);
    print(group(m,1));
}
Which is the most recent sale. You can get older sales by calling find again.
 
Alright, I got this far:

I've got some JavaScript the gets the JSON and extracts the latest price and volume. When there is no 'recent" data I can detect it. I'm trying to figure out what I want as far as volume since ColdFront let me play with a timespan whereas what is easy to get is just the latest day's volume. I'm probably an hour away from something that does what I want and that I can explain. When I get that hour depends because not only do I have five services in seven days as a church choir member in Holy Week but I also have a gig on bass guitar that needs as much practice as I can give. Real Life vs. KoL :-)
 
Back
Top