I want to create a breadcrumb map using the gps coordinates that I see in the events.log.
I found using a couple of searches that I could create a separate log file (the zwave example), but I’m still pretty new to openhab and linux. what I was hoping for was a way to do something like this in the rules file.
loginfo(“iCloud_Settings”,"Chase’s location " Chase_iPhone_Location.state as PointType)
and have that write to that separate file.
so the separate file would contain just gps coordinates, every 5 minutes when the iCloud binding ran.
this probably doesn’t make any sense but hopefully it does.
And then what? I ask because having this data in a text file isn’t really all that useful unless you have a tool that somehow knows how to ingest opneHAB log files.
Maybe a better approach would be to use Persistence and a database like MySQL or InfluxDB. Then you can use a tool like Grafana which has a map plug-in to show the locations on an actual map.
But to answer your specific answer, you follow the same approach as that zwave example you found but use “org.eclipse.smarthome.model.script.iCloud_Settings” as the logger name.
thanks Rich! I plan on taking the gps coordinates and uploading them into mapline.com to see those breadcrumbs. I just wanted them all together in the file rather than trying to read through the events file and finding each entry…
You don’t just change that “one” thing. Notice how “zwave” appears all over the place, on every line in fact, in the original example you found. You need to replace those as well.
ok I went through and corrected all the iCLoud to iCloud, but the log is still 0 bytes, is there anything else that should be done? besides putting the above in the file /var/lib/openhab2/etc/org.ops4j.pax.logging.cfg?