almost everything is configurable now

pull/118/head
bert hubert 2020-05-19 23:23:43 +02:00
parent 895d9251a2
commit e954a45203
2 changed files with 15 additions and 3 deletions

View File

@ -318,7 +318,13 @@ Tooling
stdout or to a navrecv server. This is the equivalent of 'ubxtool'
except for submitting RTCM messages.
Sample command lines
--------------------
Look at old data:
```
$ ./navcat storage "2020-01-01 00:00" "2020-01-02 00:00" | ./navdump
```
Global coverage (via volunteers)
--------------------------------

View File

@ -82,12 +82,18 @@ int main(int argc, char **argv)
period = "time > '"+ beginarg +"' and time <= '" + endarg +"'";
cout<<"Period: "<<period<<endl;
}
cerr<<"InfluxDBName: "<<influxDBName<<endl;
// auto res = mc.getURL(url + mc.urlEncode("select distinct(value) from sisa where "+period+" and sigid='"+to_string(sigid)+"' group by gnssid,sv,sigid,time(10m)"));
string url="http://127.0.0.1:8086/query?db="+influxDBName+"&epoch=s&q=";
auto res = mc.getURL(url + mc.urlEncode("select distinct(value) from sisa where "+period+" and sigid='"+to_string(sigid)+"' group by gnssid,sv,sigid,time(10m)"));
string url="http://127.0.0.1:8086/query?db="+influxDBName+"&epoch=s&q=";
string query="select distinct(value) from sisa where "+period+" and sigid='"+to_string(sigid)+"' group by gnssid,sv,sigid,time(10m)";
cout<<"query: "<<query<<endl;
auto res = mc.getURL(url + mc.urlEncode(query));
auto j = nlohmann::json::parse(res);
// cout<<j<<endl;