I use the Homey Papertrails app not for connecting to Papertrails itself, but for creating a simple (…) log which can be shown in the app settings.
Reason for choosing Papertrails was the automatic adding of a flow card to all flows, with the name of the flow and that rhis flow was executed. This helps a tremendous lot in troubleshooting errors…
Adding these was done by visiting a webpage (https://homeybackup.web.app/login/) where the log cards could automatically be added (or removed when necessary).
Such a function, in either way, could be a great addition imho. So no need for connecting it to a cloud service like Papertrails. Would be nice to not having to edit all of my flows when switching to Simple Log…
Adding flow cards by executing a script would be great.
Not sure how the Papertrails app handled Advanced Flows; I didn’t use AF at the time the automating adding still worked.
Well,
I don’t want to step on @Dijker toes and rip his idea’s off.
I also don’t want to add homey-api to Simple (Sys) LOG, because it’s now 500kB install size, else it would be about 8 or 9 MBs!
But what i could do (later on, when HP2023 and homey-apiV3 is completed, is add a function in the DC settings, where you can generate a script to add certain flowcards to the end of all execution lines.
(To be executed in the Playground-API with the code under your clipboard when you click the link in the app, just like the DC app does with TEF’s).
That way, people could chooise to include either Simple (Sys) LOG or Papertrails flowcards.
Currently my settings are for 10240 entries and logs are cut off by 20% when the max lines is reached. In time, that comes down to about 2 months in my case. Current oldest entry is off dec. 19th.
The app uses 16.9MB memory and app size is 1.6 MB.
No, it is not by far the complete list. It does have about 10240 entries now (=max).
The list is shown in a frame in the app settings that ypu can scroll…
About 29 in that frame, but there’s a search (filter actually) function, see the screenshot above.
You can also scroll through the list (chronologically).
And it’s kinda on topic, since i don;t want to recreate an app that already exists. But except the ability to send it to a Syslog, it doesn’t sound completly the same.
Especially when i am done
Now it’s even only 13.4 MB. I log every flow too, but perhaps you got more. Could depend on the exact measurement time. When it’s active it will consume more memory I suppose…
Sorry, Arie, too quick… this was not about SimpleLog
I replied on your question to Henk, if one can download the Papertrails log.
Henk answered ‘No’, but it is, using copy/paste. Very basic though
BLL now has a FileServer system, which apps like Simple Log can use by sending a base64 file to it and receiving an URL that retrieves that file.
I already had this kind of for Google Services and also for FTP CLient, but i took the best of the two and placed it in BLL. Now all i need it this:
const link = await BL.getDownloadUrl({ base64: Buffer.from(logs.csv).toString('base64'), contentType: 'text/csv' });
This gives me a link to download the file i sended for (right now) 30 seconds.
You request the link, send the Homey App a openURL and whalla: You got any type of file you want.
Currently only works on locale network, but it’s already been written to, just like FTP client, check if i need to place the file in the userdata folder for a few seconds to download it from remote/www.
This already works great for Simple Log:
You can now Export the .csv in the Developer App Settings AND in the Mobile App!