-
-
Notifications
You must be signed in to change notification settings - Fork 130
Recorder/ocat do not seem to be able to access stored location updates that got published as CSV #205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Judging by this piece:
you are publishing to |
You are right, they are published to I have to figure out how to make Homie perform the publish on the base path... as far as I know, Homie uses the following scheme by default: |
Don't modify either. Let's think about this for a moment. If that doesn't work: can you confirm the device is publishing to If that is the case, I propose a change to Recorder: I would consider all publishes to |
Actually, it does! According to For the sake of completeness:
When you name the node property "csv", it does publish to the path you mentioned.
Yes again. The current "workaround" is good enough for me. Well, at least until Homie introduces some breaking changes ;-) Thanks again for your help, it's much appreciated! 👍 |
When I now publish a payload (JSON or CSV) to
which ought to be what you need. If you can test this I'd appreciate it, otherwise you have to wait until the next release. |
I re-compiled Recorder and tested the changes with my physical device (setting the node property name to A message to
generates
I think we can consider this ticket closed then :-) Thanks! |
- FIX: GPX exporter gets xmlns (#215) - FIX: wait on start of systemd to allow Mosquitto to start (#185) - FIX: s/json_remove_from_parent/_delete/g - NEW: Add support for OwnTracks Pico by pretending `../pico` is a base topic (#205) - UPD: rollback: cards are now once again stored at user/device/user-device.json (but map/table also uses user/user.json if it exists)
Hi there,
I'm trying to get Owntracks Pico (thanks for this great idea, btw) working with the Recorder (installed on Debian Stretch, latest version from your repository).
The Pico part works just fine, i.e. location updates are correctly published in CSV syntax to my MQTT broker (I'm using a slighty modified version of your Homie sketch so it works with Homie v2).
Inside the web interface of the Recorder, I am able to see my GPS sensor on the live map. The Recorder also saves the location updates in the corresponding
*.rec
files, which look like the following:What is not working is the "points" and "tracks" options – Recorder does not show any points, but simply an empty map.
Looking at
ocat
, I tried the following commands to debug this situation:ocat --list
shows:{"results":["wemos-gps"]}
ocat --list --user wemos-gps
shows{"results":["gps","-implementation","-mac","-homie","-stats","-fw","-online","-localip","-name"]}
ocat --list --user wemos-gps --device gps
shows{"results":["/var/spool/owntracks/recorder/store/rec/wemos-gps/gps/2017-07.rec"]}
ocat --last --user wemos-gps --device gps
shows[{"_type":"location","t":"p","tid":"c8","tst":1500456109,"lat":redacted,"lon":redacted,"cog":60,"vel":1,"alt":270,"dist":0,"trip":24000,"csv":true,"topic":"homie/wemos-gps/gps/csv","username":"redacted","device":"gps","ghash":redacted,"isotst":"2017-07-19T09:21:49Z","disptst":"2017-07-19 09:21:49"}]
So far, so good (I guess?). But when trying to get the last locations (via
ocat --user wemos-gps --device gps
) I get the following output:{"locations":[]}
I guess that this is the reason why recorder also does not see any historic data.
To further narrow down this issue, I set up Owntracks on my iOS device. It does not have this problem, i.e. I can see the historic points in Recorder and also retrieve them via
ocat
. So it seems that this has something to do with the way that stored CSV entries are processed byocat
andRecorder
?If you need any more input, please let me know.
Regards
Alex
The text was updated successfully, but these errors were encountered: