almost everything is configurable now
parent
895d9251a2
commit
e954a45203
|
@ -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)
|
||||
--------------------------------
|
||||
|
|
12
reporter.cc
12
reporter.cc
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue