Reply
Thread Tools
Posts: 301 | Thanked: 531 times | Joined on Aug 2010 @ The Netherlands
#431
After reading these new developments, I decided to install Sonar and the new Situations. Great that this wonderful app becomes useful again!

I'm happy with it in daily use, and yet there are some observations:
1. Not all the What are eligible at all times. For setting the Location settings, I have to start with a proper example.
2. When - it won't register cell towers.
3. It seems my phone (XA2) has become more unstable than before.

I'll try to register specific issues. Many thanks anyway, hhaveri!
__________________
Palm Treo -> N900 -> N9 -> Jolla -> SailfishX -> XA2
Developer mode novice, and enjoying it
 

The Following User Says Thank You to rob_kouw For This Useful Post:
Posts: 203 | Thanked: 596 times | Joined on Jan 2015 @ Finland
#432
Thanks, not sure if I understood the 1st point, though. If I remember correctly, 2nd one was due to something being different in the platform implementation for XA2. No idea what could cause no.3.

Anyway, I'll try to have a look at all reported issues. Lately I've had some difficulties to find time to "finalize" the sonar stuff - mostly on situations side. Hopefully within a couple weeks...

Br,
Heikki
 

The Following 2 Users Say Thank You to hhaveri For This Useful Post:
Posts: 15 | Thanked: 17 times | Joined on Sep 2019
#433
I am looking to send SMS automatically (without manual intervention) from FindMyJolla and GPSInfo.

I am expecting that I will hit a permissions problem**, and your daemon might be the answer.

Should I be making my own functional daemon to do my task for each app, or would it be better to use yours?

If "use situations daemon", then would you think it best to add the functionality to your daemon or would it just give me a privileged commandline to send any command to?


Any suggestions on how to do the send welcome.
To be specific,
1) it must send when phone is unattended.
2) it does not need to do it invisibly or in secret.

** Yup indeed I do get access denied as they say at the bottom of this sending-an-sms-via-the-command-line

Code:
[nemo@Sailfish ~]$ dbus-send --system --print-reply --dest=org.ofono /ril_0 org.ofono.MessageManager.SendMessage string:"+123456789" string:"test sms"
Error org.ofono.Error.AccessDenied: Operation not permitted
further: it does work if I login to root with devel-su then try it.

Last edited by crun; 2019-09-30 at 04:55. Reason: aad link
 

The Following User Says Thank You to crun For This Useful Post:
Posts: 203 | Thanked: 596 times | Joined on Jan 2015 @ Finland
#434
Originally Posted by crun View Post
Should I be making my own functional daemon to do my task for each app, or would it be better to use yours?
I think you should make your own daemon(s). Sonar is not supposed to be a general purpose component. Instead I'm putting reasonable effort to keep it Situations only to minimize unwanted exposure of personal data & otherwise restricted APIs.

Br,
Heikki
 

The Following 3 Users Say Thank You to hhaveri For This Useful Post:
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#435
Originally Posted by crun View Post
I am looking to send SMS automatically (without manual intervention) from FindMyJolla and GPSInfo.

I am expecting that I will hit a permissions problem
I don't know if it helps, I uploaded a binary which userid is set to zero and it is calling this sms dbus command. This binary can be executed by a user (smssend).
 

The Following 2 Users Say Thank You to Halftux For This Useful Post:
Posts: 15 | Thanked: 17 times | Joined on Sep 2019
#436
Thanks, I'll try it on the next go round.
Current problem: I don't get the phone number of incoming sms....
 
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#437
Originally Posted by crun View Post
Thanks, I'll try it on the next go round.
Current problem: I don't get the phone number of incoming sms....
What method are you trying to get the phone number?

On the same dbus service there is a IncomingMessage signal and a GetMessages method. But don't know if there can deliver the number.


Maybe it is also worth to look here:

https://sailfishos.org/wiki/Telephony
https://sailfishos.org/wiki/Messaging

telepathy-ring
telepathy-qt
libqofono
 

The Following 2 Users Say Thank You to Halftux For This Useful Post:
Posts: 15 | Thanked: 17 times | Joined on Sep 2019
#438
It uses this DBUS channel.

Code:
#define DBUS_INTERFACE "org.freedesktop.Telepathy.Channel.Interface.Messages"

#define DBUS_MEMBER_NAME "MessageReceived"

    if (!sessionBus.connect("", "", DBUS_INTERFACE, DBUS_MEMBER_NAME, this, SLOT(dbusMessageReceived(const QDBusMessage &)))) {
which returns data thus:

https://together.jolla.com/question/...pathy-message/

sender-identity is IMSI not MSISDN (phone number)
 

The Following User Says Thank You to crun For This Useful Post:
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#439
@crun ok I could seperate the phone number with dbus service org.ofono.MessageManager. Listening on signal IncomingMessage (service: org.ofono, path: /ril_0, interface: org.ofono.MessageManager). There you get a variant map [string, variant]. The second key is "Sender" where its variant holds the number.

I attach a deb which I used for listening on ImmediateMessage, IncomingMessage and MessageAdded. But for me only IncomingMessage got triggerd. It has some debug messages and in the end it prints to stdout the number. You can quit with x+enter.

EDIT: lol wrong slot, IncomingMessage got triggerd not Immediate, fixed it.
Attached Files
File Type: rpm smsreceive-0.0.2-1.armv7hl.rpm (16.7 KB, 22 views)

Last edited by Halftux; 2019-10-04 at 18:43. Reason: sorry IncomingMessage not Immediate
 

The Following User Says Thank You to Halftux For This Useful Post:
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#440
 

The Following User Says Thank You to Halftux For This Useful Post:
Reply

Tags
sailfish os, situations


 
Forum Jump


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