Closed eghetto closed 2 years ago
The configuration looks ok to me. Have you tried specifying option --viewsdir
to the Recorder to set the directory explicitly?
Do you see anything untoward / any diagnostics on the Recorder's console when you attemt to access the view?
Thank you!
Indeed using the option --viewsdir
explicitly did the trick for me!
However how do I modify my /usr/share/doc/ot-recorder/ot-recorder.service
in order to accept the additional --viewsdir
argument?
No luck with...:
ExecStart=/usr/sbin/ot-recorder '--viewsdir /var/spool/owntracks/recorder/htdocs/views'
You are specifying that as one argument, where it must be two (the option is one, its value a second) so removing the single quotes ought to do the trick:
ExecStart=/usr/sbin/ot-recorder --viewsdir /var/spool/owntracks/recorder/htdocs/views
Marking as bug because viewdir
ought to default to _docsdir_/views
Thanks!
I realized I had to modify /etc/systemd/system/ot-recorder.service
instead of /usr/share/doc/ot-recorder/ot-recorder.service
ExecStart=/usr/sbin/ot-recorder --viewsdir /var/spool/owntracks/recorder/htdocs/views
works fine after systemctl daemon-reload
Thank you very much for the great support - keep up the good work! 👍
It turns out this is likely not a bug as <DOCROOT>/views
is default for the views directory. Looking at this issue again, I see that you tried
http://192.168.0.32:8084/view/r9 returns "View not found"
The URL should have said /views/r9
(plural).
I'll assume that was the cause for confusion, so I'll close this now. By all means say if you think that's not right. :-)
Created my my custom json (r9.json) in /var/spool/owntracks/recorder/htdocs/views like this:
http://192.168.0.32:8084/view/r9 returns "View not found"
my settings:
Am I missing something?
Thanks!