Simple LOG app - Former main topic [Deprecated]

I use the Homey Papertrails app not for connecting to Papertrails itself, but for creating a simple (…:wink:) 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. :slight_smile: 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…

1 Like

Can you show a screen-shot?

I thought it was an app for Papertrail.com - cloud-hosted log management, live in seconds

I could do it like in the DC and AVD app:
Generate a script to be executed in the Playground API to add a card to all flows.

But, with Advanced Flows, that’s gonne require a lott of thinking to get it right (and usefull).

1 Like

It originally is an app for that, but you do not have to use it that way…
This is a screenshot of how the log looks like in the app settings:


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.

@Dijker, you alright with that idea Dijker?

2 Likes

How long can the log be kept?
And, how is it’s memory usage?
Grows with log growth?

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.

1 Like

How do you go through that list?
is the complet list shown in the app settings?

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…

Than how do you see all those records?
How many can you see in the App Settings (at once)?

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).

1 Like

Any way to download it?

No, but the log entries can be sent to a syslog server. I never really used that part though.
I just use it to check the log when troubleshooting.

If you want more info, feel free to contact me by PM as well. Before mods think this is going offtopic… :slight_smile:

Why? This is “my” topic. :wink:

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 :stuck_out_tongue:

Haha, getting me curious!
Looking forward to what you -might- brew…:stuck_out_tongue_winking_eye:
Just let me know if I can help!

1 Like

Kind of, very basic. When you use developer site app settings:
ctrl-a ctrl-c,
open text editor,
ctrl-v

That’s low, Henk. Here it’s around 20 to 25MB.

+100 That would be very cool

2 Likes

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…

1 Like

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 :beers:

Haha, yeah, i knew Peter.
It was not that kind of response, i just wanted to show you what Simple Log can do allready.

Next update:





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!

(Well, it’s still in dev/test ;))

1 Like