mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-09-30 19:43:41 +08:00
NUI comma api intergration (#1186)
* Prototyping comma api call * Adding nui command * Fixing hard coded vals * Adding generalized nui changes * Added both public and private api support * Removing debug statement * Chaning private api tag to use env variables * FrameReader change for string parsing old-commit-hash: 763493e98887d207cd6632e13b0a7a31573ad41d
This commit is contained in:
@@ -8,8 +8,9 @@ FileReader::FileReader(const QString& file_) : file(file_) {
|
||||
|
||||
void FileReader::process() {
|
||||
timer.start();
|
||||
// TODO: Support reading files from the API
|
||||
startRequest(QUrl("http://data.comma.life/"+file));
|
||||
QString str = file.simplified();
|
||||
str.replace(" ", "");
|
||||
startRequest(QUrl(str));
|
||||
}
|
||||
|
||||
void FileReader::startRequest(const QUrl &url) {
|
||||
|
||||
Reference in New Issue
Block a user