Hi @numberoverzero, I remember seeing a discussion somewhere about how to sort through the stations' list — I have been working on this issue, myself.
Almost all of the "stations" that are returned by brain ls have id, parent_id, and display_order tags that make it possible to sort and organize the stations (the same as the website).
This can be done automatically, by starting at 0 and recursively finding the children.
However, this method will leave many orphaned stations. This issue can be solved if you know the ids for the Station Categories...
I found them hardcoded into the app.bundle.js code:
var QUICK_RELAX = exports.QUICK_RELAX = 253;
var MEDITATE = exports.MEDITATE = 99;
var FOCUS = exports.FOCUS = 35;
var SLEEP = exports.SLEEP = 192;
var RECHARGE = exports.RECHARGE = 147;
and
var EXPLORE_FOCUS_ID = exports.EXPLORE_FOCUS_ID = 48;
var EXPLORE_RELAX_ID = exports.EXPLORE_RELAX_ID = 47;
var EXPLORE_SLEEP_ID = exports.EXPLORE_SLEEP_ID = 49;
Hi @numberoverzero, I remember seeing a discussion somewhere about how to sort through the stations' list — I have been working on this issue, myself.
Almost all of the "stations" that are returned by
brain lshaveid,parent_id, anddisplay_ordertags that make it possible to sort and organize the stations (the same as the website).This can be done automatically, by starting at
0and recursively finding the children.However, this method will leave many orphaned stations. This issue can be solved if you know the ids for the Station Categories...
I found them hardcoded into the
app.bundle.jscode:and