Comments (6)
not specifically, but. you might be able to use os.date.
from recorder.
the problem is that the device that transmits the coordinates may be in a time zone that is different from the server’s time zone
from recorder.
For now i am identify timezone by reverse geocoding but if i can receive timezone directly from device it made everything easier
from recorder.
You raise a very valid point.
When using our Recorder as backend, we perform reverse geo lookups (if so configured), and store country code alongside the address in the LMDB database:
$ ocat —dump | grep …
u0fxp88 {"cc":"BE","addr":"Autoroute de Wallonie, 7390 Mons, Belgium","tst":1660297060,"locality":"Mons"}
This data is surfaced via the API:
curl http://192.168.1.30:8083/api/0/locations -d
user=jp -d device=5s -d from=2022-08-12T06:50 -d format=json | jq .
{
"_type": "location",
"acc": 5,
"lat": 50.453064,
"lon": 3.845614,
"tid": "jp",
"tst": 1660297031,
"vac": 3, "vel": 116,
"ghash": "u0fxp88",
"cc": "BE",
"addr": "Autoroute de Wallonie, 7390 Mons, Belgium",
"locality": "Mons",
"isorcv": "2022-08-12T09:37:11Z",
"isotst": "2022-08-12T09:37:11Z",
"disptst": "2022-08-12 09:37:11"
}
and, finally, that contains a country code (cc
).
It’s not exactly what you want, but might be a bit of help. However, we’d need to take tst
into consideration to determine whether daylight savings was in effect, etc.
What a mess. ;)
from recorder.
We've been talking about this. The tst
is definitely in UTC. As @ckrey points out it is possible to lookup $TZ
using one of a large number of languages / services
from recorder.
Solved by #444 Many thanks to the participants for their useful help
from recorder.
Related Issues (20)
- Returned friends data over HTTP mode is missing topic
- open cage geocoding stop working HOT 6
- Segmentation fault during JSON payload testing (String expected, Number received) HOT 6
- Document repo for debian 12 HOT 1
- Add alt field to GeoJSON points parameters HOT 3
- Capability request: hard limit location handling to a region HOT 5
- CloudFlare Zero Trust + MQTT: does it work? HOT 6
- friends.txt in HTTP mode does not make devices visible from the mobile app HOT 5
- Difficulty creating cards HOT 12
- High memory usage with views HOT 6
- "Allow KML, GPX export - This we do enable in the back-end." what does this mean? HOT 2
- import google location history HOT 43
- unix socket support HOT 5
- ldap support HOT 3
- How do you change the timezone and the units for the recorder? HOT 1
- Feature request: disable webserver HOT 1
- What is the best way to get location data *in* to ot-recorder? HOT 3
- edit reverse geo result after lookup? HOT 2
- Provide a way to have reverse-geo lookups return partial data
- Raspberry Pi 2: can't launch ot-recorder ("Cannot allocate memory") HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from recorder.