Reply
Thread Tools
Posts: 330 | Thanked: 860 times | Joined on May 2011
#1
Hi,

As you maybe know, I recently divorced with lots of sadness from my N900 to try SFOS (XA2).

Sure, I miss things. But that's the less worse experience I had with a "normal smartphone". It's even pretty cool, open, cosy, quiet (no goopple bla bla all the time) and working well for me.

Back to my subject.
We had Scout on N900 to search messages, calendar and contacts. Remember?

Could we port that to SFOS, you think?
Could I use the sdk, find the sources, adapt, port?
Or make new app with a GUI usinq sqlite?
__________________
Toshiba Libretto 70ct -> Psion -> Palm -> Openmoko Freerunner -> gta02 -> gta04 -> n900 n900 n900 n900
...recycled devices, hack, arduino...
 

The Following 3 Users Say Thank You to ric9K For This Useful Post:
Posts: 330 | Thanked: 860 times | Joined on May 2011
#2
Search app for SFOS like Scout:
Do you all SFOS users have a so huge memory to always know where is what?
C'mooon
__________________
Toshiba Libretto 70ct -> Psion -> Palm -> Openmoko Freerunner -> gta02 -> gta04 -> n900 n900 n900 n900
...recycled devices, hack, arduino...
 

The Following 2 Users Say Thank You to ric9K For This Useful Post:
nonsuch's Avatar
Posts: 584 | Thanked: 1,550 times | Joined on Sep 2019
#3
Sounds interesting & useful.
Can you post a link to Scout source code? Can't hurt to look at it.
I think sqlite(3) is the right keyword here.
And, at least for messages, libcommhistory seems to be another:
Code:
$ pkcon get-files libcommhistory-qt5-tools | grep bin
  /usr/bin/commhistory-tool
Searching "commhistory" in openrepos I found
SearchNemo
After some fiddling (you can create new profiles) it allows me to search in sqlite only. I did find SMS text.
This just might be what you're looking for.

More links:
https://docs.sailfishos.org/Referenc...ations-history
https://together.jolla.com/question/...y-from-backup/
https://talk.maemo.org/showthread.php?t=91909
https://github.com/merlin1991/Harmat...rt/jollaIm.cpp
__________________
N900 in 2020
SFOS in 2021

Last edited by nonsuch; 2022-02-01 at 14:06.
 

The Following 2 Users Say Thank You to nonsuch For This Useful Post:
nonsuch's Avatar
Posts: 584 | Thanked: 1,550 times | Joined on Sep 2019
#4
So to expand a little, there seems to be a file /home/nemo/.local/share/commhistory/commhistory.db which I can access with

Code:
$ commhistory-tool
Usage:
commhistory-tool listgroups
                 list [-t] [-p] [-group group-id] [local-uid] [remote-uid]
                 listcalls [{bycontact|bytime} [resolve]]
                 listcontact {contact-id|local-uid remote-uid}
                 add [-newgroup] [-group group-id] [-startTime yyyyMMdd:hh:mm] [-endTime yyyyMMdd:hh:mm] [{-sms|-mms}] [{-in|-out}] [-n number-of-messages] [-async] [-text message-text] local-uid remote-uid
                 addcall local-uid remote-uid {dialed|missed|received}
                 addVCard event-id filename label
                 addClass0
                 isread event-id {1|0}
                 isvideo event-id {1|0}
                 reportdelivery event-id {1|0}
                 setstatus event-id {unknown|sent|sending|delivered|temporarilyfailed|permanentlyfailed}
                 delete event-id
                 deletegroup group-id
                 deleteall [-groups] [-calls] [-reset]
                 markallcallsread
                 export [-group group-id] [-calls] [-groups] filename
                 import filename
                 import-json [-relativeDate yyMMdd] filename
When adding new events, the default count is 1.
When adding new events, the given local-ui is ignored, if -sms or -mms specified.
New events are of IM type and have random contents.
I have no idea why it doesn't mention SMS messages explicitely, but I can accesss them with e.g.
Code:
$ commhistory-tool listgroups
(choose a group, say 90)
$ commhistory-tool list -group 90
(all messages from one number)
I can also look at the commhistory database:
Code:
$ sqlite3 /home/nemo/.local/share/commhistory/commhistory.db
Etc.
However, the application SearchNemo seems to do what I (or you) need in a nice GUI fashion. I can find text from SMS messages, and it tells me where in the database it is, e.g.:
Code:
commhistory:Events:freeText:nnn
Where nnn is some number.
__________________
N900 in 2020
SFOS in 2021
 

The Following 2 Users Say Thank You to nonsuch For This Useful Post:
Posts: 330 | Thanked: 860 times | Joined on May 2011
#5
Thank you @nonsuch for this wide answer!
I don't know where to find Scout sources but I wrote to Nicolai. Maybe he'll answer if he is still around.
I also searched on his page here.
There is a link to the garage but I have no access there. IIRC, I tried to register but it was closed.
(For the recall, here are all the compiled packages/versions of Scout)

SDK+Gui is over my head. I could maybe, and would like, but I'd need 2 month study and training, I guess.

But why not doing something more user friendly in a script?
This is something I could try when I finish this full work period.
And when I'll feel there's nothing to try with GPS anymore, also.

A script and something like zenity. Would be easy!

But is SFos going to last? Although I am very pleased with mine, I read quiet a number of unsatisfied users reporting a lot of bugs in an atmosphere which is not...like here.
I am OT. But here, I dare, don't I?

EDIT: Forgot, yes SearchNemo, I had tried it. I was disappointed not to find something similar to Scout and maybe closed it a bit to early. Gonna try again.
__________________
Toshiba Libretto 70ct -> Psion -> Palm -> Openmoko Freerunner -> gta02 -> gta04 -> n900 n900 n900 n900
...recycled devices, hack, arduino...

Last edited by ric9K; 2022-02-03 at 21:00.
 

The Following 2 Users Say Thank You to ric9K For This Useful Post:
Posts: 330 | Thanked: 860 times | Joined on May 2011
#6
Yeah, laziness...
In fact, Serach Nemo is great and well configurable.
You were right @nonsuch, thanks, it does the job!

One has to think a bit differently than in Scout but it's even greater and wider effective on the user's directory.
__________________
Toshiba Libretto 70ct -> Psion -> Palm -> Openmoko Freerunner -> gta02 -> gta04 -> n900 n900 n900 n900
...recycled devices, hack, arduino...
 

The Following 2 Users Say Thank You to ric9K For This Useful Post:
nonsuch's Avatar
Posts: 584 | Thanked: 1,550 times | Joined on Sep 2019
#7
Originally Posted by ric9K View Post
Yeah, laziness...
In fact, Serach Nemo is great and well configurable.
You were right @nonsuch, thanks, it does the job!

One has to think a bit differently than in Scout but it's even greater and wider effective on the user's directory.
Without any settings, it just searches everything, and then you can't find the needle in the haystack of your search results, but creating specific search profiles is easy and you can narrow it down sufficiently to be extremely useful.

Originally Posted by ric9K View Post
But is SFos going to last?
Ever since I started using it almost 2 years ago, updates have been coming in regularly. Every now and then an app from Openrepos stops working after an SFOS update, but is soon fixed.
Otherwise, the updates went smoothly.

I've had more problems with LineageOS than I ever had with SailfishOS.

So yes, I definitely think it's going to last.

I read quiet a number of unsatisfied users reporting a lot of bugs in an atmosphere which is not...like here.
If you use F(L)OSS a lot, this happens all the time. It can have several reasons:
  • First of all, it ususally isn't a bug in the sense that something is broken in the code. Often things just don't work as desired, or the user started poking around and is surprised that things break, or it's a 3rd party problem.
  • Helpdesk mentality. People think they just need to shout and demand that problems be fixed, and not try to (help) fix them themselves.
  • Some FOSS/Linux zealots think that by loudly criticizing every tiny bit that "keeps the OS from being adapted by more users" they are somehow helping the cause...
It usually takes a bit of interaction, reading beyond the headline, and reading the first few replies to debunk 90% of such loud complaints.
__________________
N900 in 2020
SFOS in 2021
 

The Following 3 Users Say Thank You to nonsuch For This Useful Post:
Posts: 330 | Thanked: 860 times | Joined on May 2011
#8
Originally Posted by nonsuch View Post
[*]Helpdesk mentality...
the expression I was missing.

So, good to hear that those unsatisfied people and the [apparent] important number of reported "bugs" are not a sign of a future abandon. Sure that some of these "bugs" could be related to all the fiddling/install/uninstall/experiments done by us...

Nicolai, author of Scout kindly answered to me to point where the sources, that I didn't find, are: http://maemo.org/packages/source/view/fremantle_extras_free_source/scout/0.1.5/

Just at the right place :--)
__________________
Toshiba Libretto 70ct -> Psion -> Palm -> Openmoko Freerunner -> gta02 -> gta04 -> n900 n900 n900 n900
...recycled devices, hack, arduino...
 

The Following 2 Users Say Thank You to ric9K For This Useful Post:
nonsuch's Avatar
Posts: 584 | Thanked: 1,550 times | Joined on Sep 2019
#9
Originally Posted by ric9K View Post
Sure that some of these "bugs" could be related to all the fiddling/install/uninstall/experiments done by us...
People who try out Linux (and, by extension, also Maemo/SFOS) are usually attracted by the "freedom": the fact that they can fiddle around with practically everything to make it the way they want.
Now to me, this automatically entails the possibility that things might also break - but to most that seems to be a separate realisation that they make only much later, after much pain.

So, in a nutshell, they expect to tinker with it, but at the same time to be rock solid "like Windows", or like Android. Just another case of wanting a shoehorn with teeth.
__________________
N900 in 2020
SFOS in 2021
 

The Following 2 Users Say Thank You to nonsuch For This Useful Post:
Posts: 330 | Thanked: 860 times | Joined on May 2011
#10
Oh yes, fiddling it IS related to "unattended" bugs

Sorry, I like some old stupid tradidions, hence I couldn't resist:

Originally Posted by nonsuch View Post
...
...to be rock solid "like Windows", or like Android...[/url].
__________________
Toshiba Libretto 70ct -> Psion -> Palm -> Openmoko Freerunner -> gta02 -> gta04 -> n900 n900 n900 n900
...recycled devices, hack, arduino...
 

The Following 2 Users Say Thank You to ric9K For This Useful Post:
Reply

Thread Tools

 
Forum Jump


All times are GMT. The time now is 18:14.