narc0tiq / YARM

Yet another variant of the Resource Monitor for Factorio
https://mods.factorio.com/mod/YARM
MIT License
54 stars 42 forks source link

Web integration #50

Closed wolfcomp closed 5 years ago

wolfcomp commented 8 years ago

Is it possible to get a web integration to list all of the stats and see what has bean used in this amount of time from the ores you have scanned?

narc0tiq commented 8 years ago

Uh, I think I understand what you're asking -- generate some HTML in the script-output that could be used to watch YARM status (and collected statistics) from a browser; please correct me if I misunderstood -- but it seems awfully far out of scope for a Factorio mod.

Nonetheless, I like the idea and will keep it in mind -- it sounds like fun!

mexmer commented 8 years ago

i would suggest outputing simple formated text (like csv/json), and let all people convert it to whatever they want.

@narc0tiq i agree with you, that generating full fledged html is out of mod scope, but saving current stats in configurable interval, doesn't seem too far fetched.

narc0tiq commented 8 years ago

@mexmer Sounds good to me; it shouldn't be too tricky to then set up a static HTML piece with some javascript to automatically reload the data straight out of the JSON or CSV (probably the former), assuming it's published.

I really like this idea and will look into making it a reality for 0.8.

narc0tiq commented 5 years ago

I'm going to drop this feature; for an alternative, take a look at graftorio, which can read from YARM, and provides data to a Grafana dashboard.