maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Situations app - bugs, questions, answers, help etc.. (https://talk.maemo.org/showthread.php?t=94442)

zagrim 2018-11-25 06:31

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by balta (Post 1551068)
I don't know if it is because of Sailfish OS 3 or because of my Xperia XA2 Plus, but the mobile cell condition cannot record any cells. Does anybody else have this problem?

Just checked, I am able to record a new cell (as well as remove it) on SFOS 3, but I'm using Xperia X so it might be related to your phone model.

zagrim 2018-11-25 06:41

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by Korkkiruuvi (Post 1550939)
I laso noticed some stuttering/lag when using this application so there is some performance issues also? For example when navigating in settings and properties sections I see noticeble stuttering/lag what ever. I remember earlier version of this application there wasn't any kind of this lag.

My device is xperia x (F5121) with sailfish 3.0.0.8.

I have the same device model and SFOS release and haven't noticed any significant stuttering or lag. After the new UI came Situations was a bit slow on Jolla1 but after switching to Xperia X I can't recall having any performance issues with the UI.

Are other apps performing ok on your device? Even the heavier ones like the browser?

Korkkiruuvi 2018-11-28 14:04

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by hhaveri (Post 1551013)
Korkkiruuvi, do you have HERE maps installed on your device?

> I remember earlier version of this application there wasn't any kind of this lag.

I wonder if it was v2? In v3 there are much more graphical effects being used in the UI. The target being modern Android devices (and SW) -> no idea why your xperia would show significant lag, except something in the Sailfish OS xperia port perhaps causing it.

Br,
Heikki


Well I don't have here maps installed, because simply need it. Dammit if here maps is mandatory to be installed if I want use location feature.


and next subject, perfomance issue. So I should go terminal and type something jornalctl? Or anyways I should debug this issue, for further investigation.

Korkkiruuvi 2018-11-28 14:09

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by zagrim (Post 1551108)
I have the same device model and SFOS release and haven't noticed any significant stuttering or lag. After the new UI came Situations was a bit slow on Jolla1 but after switching to Xperia X I can't recall having any performance issues with the UI.

Are other apps performing ok on your device? Even the heavier ones like the browser?

Thanks for your experience, interesting. What comes to the my other applications the are fine, only both browsers, webcat and jolla have some issues about Performance but I think these are just "work in progress" status, because for example qt webkit is outdated. Sometimes Jolla browser crashes but what I read other users it's just normal and can be called "feature".

Sichtelement 2018-11-28 14:18

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by balta (Post 1551068)
I don't know if it is because of Sailfish OS 3 or because of my Xperia XA2 Plus, but the mobile cell condition cannot record any cells. Does anybody else have this problem?

I have the same problem with a XA2 Dual-Sim (H4113).

wrm 2018-11-28 17:22

Re: Situations app - bugs, questions, answers, help etc..
 
Any chance of flight mode to work?

zagrim 2018-11-29 04:01

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by Korkkiruuvi (Post 1551210)
What comes to the my other applications the are fine, only both browsers, webcat and jolla have some issues about Performance but I think these are just "work in progress" status, because for example qt webkit is outdated. Sometimes Jolla browser crashes but what I read other users it's just normal and can be called "feature".

In my experience Situations UI is not heavy on memory (or CPU), but since browsers tend to be heavy on resources makes me think if you by chance have tweaked some settings related to OOM-killer/low-memory-killer or swapping, or have a shortage of RAM? Do you have many apps running all the time? Shortage of RAM is a sure way to cause lags and stuttering. You could use some app like Mem! to verify if that's an issue.

I'm just guessing here, though. And yeah, I've had both browsers crash many times :( Mostly that's been for lack of system resources on sites they handle badly.

hhaveri 2018-11-29 06:30

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by wrm (Post 1551225)
Any chance of flight mode to work?

You can ask Jolla to (re)open an API for it. Or tweak your own solution: run Situations as root or use Situations to launch some flight mode helper app / script with root access instead.

Br,
Heikki

hhaveri 2018-12-11 10:38

Re: Situations app - bugs, questions, answers, help etc..
 
Hep,

There's a new (beta) version of the app available here: https://github.com/pastillilabs/pack...leases/tag/186

Some change log:
- Changed condition & action selection layout
- Improved runtime state handling over server restarts
- Fixed Mobile Data, Airplane Mode & Internet Sharing features when set as conditions
- Sync with all other internal implementation improvements done to the Android version

Having not used Sailfish actively for a long time, I noticed that increasing number of features seem to work only when the app is run as root. Which is kind of disappointing, as Android - while having the same frustrating direction - is now doing much better in that regard :(

Br,
Heikki

hhaveri 2019-01-10 08:13

Re: Situations app - bugs, questions, answers, help etc..
 
Hep,

New beta (3.1.192) available here: https://github.com/pastillilabs/pack...leases/tag/192

It is also already in the store review process.

Contains only fixes & improvements to existing functionality:
- Improved / fixed in-call handling
- Improveed / fixed runtime state handling over reboot & service restarts
- Fixed Launch & Close plugins having multiple entries

Well... in-call handling is kind of new functionality. It means that some actions will be delayed until an active or incoming call has ended. There was application logic for it in place already from the Symbian times but it never got platform specific backend implementation (for Android & Sailfish) done until now.

There is now also an option to re-activate actions on background service restart. On Android this is done only when the service is autostarted on boot. By default, background service restarts just continue from where the execution was left.

On Sailfish this means that if you are using some autostart mechanism, you should probably have a "reset" parameter added to the service startup command if you want re-activation to happen (for example launch apps with an ongoing situation in device boot).

Launching the service from the app UI currently does not have the "reset" option. Not sure if it should or not. But it might get added in the next update.

Br,
Heikki Haveri
Pastilli Labs

BonoNL 2019-01-17 11:59

Re: Situations app - bugs, questions, answers, help etc..
 
Hey @hhaveri, I really like this app.
I know it is not working as supposed on SailfishOS because of the attitude of Jolla towards devs but nevertheless I want to thank you for this great app!

I will use it and hope that some day Jolla will make SailfishOS great again :D:D:D

Edit: maybe make a send API request to Jolla button in the app to send a mail to Jolla to adjust the api's for Situation ap :p

cy8aer 2019-01-17 14:16

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by BonoNL (Post 1552900)
Edit: maybe make a send API request to Jolla button in the app to send a mail to Jolla to adjust the api's for Situation ap :p

Yeah, great Idea: Will implement it in the next PodQast release.

hhaveri 2019-01-24 12:36

Re: Situations app - bugs, questions, answers, help etc..
 
New beta available here:
https://github.com/pastillilabs/pack...leases/tag/194

- Fix serialisation issue that loses data in some cases
- Fix hidden flightmode action on Sailfish
- Fix some remaining state handling issues when app is disabled

Sorry, no "API button" to send mail to Jolla...

Br,
Heikki

hhaveri 2019-01-29 10:31

Re: Situations app - bugs, questions, answers, help etc..
 
Another update (already in store review):
https://github.com/pastillilabs/pack...leases/tag/198

- Adds "Any connection" option to WiFi Pro condition
- Other small fixes

hhaveri 2019-02-08 06:56

Re: Situations app - bugs, questions, answers, help etc..
 
Aaaand yet another update (also in store review):
https://github.com/pastillilabs/pack...leases/tag/204

- Adds "Any connection" option to BT Pro condition
- Many fixes affecting mainly Android version of the app

Info available also in the improved website:
https://pastillilabs.com/2019-02-08-version-204/

Br,
Heikki

BonoNL 2019-02-09 19:30

Re: Situations app - bugs, questions, answers, help etc..
 
HHaveri is on fire!

hhaveri 2019-02-21 07:23

Re: Situations app - bugs, questions, answers, help etc..
 
One more update to the fire. Mostly Android stuff, but also some small fixes affecting the Sailfish version:

- Fixed situation state handling after manual timing
- Added clearing of "NOT" state when last condition from a group is removed

More info here:
https://pastillilabs.com/2019-02-21-version-212/

Br,
Heikki

hhaveri 2019-02-25 08:59

Re: Situations app - bugs, questions, answers, help etc..
 
Ok, since it seems last update had some issues with the extra plugins & Android version had fixes waiting to be released, I updated both at the same time once more. Technically I could just have updated the extra plugins for Sailfish, but to keep up with Android versioning and make the plugin update explicit, the whole app was updated.

For Sailfish:
- Fixed extra plugins not working properly with previous release
- Brought back Help item in menu (links directly to FAQ web page)

If there are no major bugs, this might now be the last release for a while.

More info here:
https://pastillilabs.com/2019-02-25-version-216/

Br,
Heikki

hhaveri 2019-03-27 09:54

Re: Situations app - bugs, questions, answers, help etc..
 
New release available in store and here:
https://github.com/pastillilabs/pack...leases/tag/220

For Sailfish:
- Added call state plugin
- Added powersave plugin
- Fixed overlapping actions restore state handling
- Fixed evaluation of situation being moved from manual to automatic state

More info here:
https://pastillilabs.com/2019-03-27-version-220/

Br,
Heikki

jenix 2019-05-11 08:21

Re: Situations app - bugs, questions, answers, help etc..
 
Has there been any advancement on the WiFi management? I just noticed that some update seems to have removed connmanctl on my device, so my script to enable / disable wifi is no longer working.

monkeyisland 2019-05-17 07:44

Re: Situations app - bugs, questions, answers, help etc..
 
1 Attachment(s)
hi i wrote a comment on jollastore perhaps somebody has the same issue:




I tested more, on my xperia which is also on 3.0.3.9 there is not the problem. There i had installed situations for upgrading the device to sailfish 3

hhaveri 2019-05-30 06:44

Re: Situations app - bugs, questions, answers, help etc..
 
Sorry for the long response time, there is a beta release available here that should fix the issue:

https://github.com/pastillilabs/pack...leases/tag/232

Br,
Heikki

lantern 2019-07-21 21:04

Re: Situations app - bugs, questions, answers, help etc..
 
Hi, is there any way to manually set up cell towers cids in settings?
I can manually add them into json settings file, but it has checksum in the end.

hhaveri 2019-07-22 09:17

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by lantern (Post 1558489)
Hi, is there any way to manually set up cell towers cids in settings?
I can manually add them into json settings file, but it has checksum in the end.

I think you should be able to edit situations.json manually. If there is a checksum, it might be a leftover from some past app version.

Br,
Heikki

hhaveri 2019-08-21 06:13

Re: Situations app - bugs, questions, answers, help etc..
 
Hello folks,

I implemented a quick (and dirty?) companion daemon "Sonar" for Situations app that makes it possible to run privileged actions on Sailfish without any other hacks. And it is now available for testing.

First implementation is just bringing back functionality that has previously been crippled by updates to Sailfish security policies. But with this daemon, new & improved functionality should be possible to implement in the future too.

This version just re-enables the following actions:
- Bluetooth state
- Wifi state
- Mobile network
- Airplane mode

In addition, the package implements autostart for Situations background service - so it might be incompatible with any other autostart tweaks available.

Obviously the package cannot be available in harbour, so users need to install it separately.

NOTE: Since the Sonar daemon runs as root and opens holes to the current Sailfish security model, the sources of it are open (and available for improvement suggestions). Beware that absolutely any app could use the same interface to access same functionality that is exposed to Situations.

Sonar sources are available here:
https://github.com/pastillilabs/sonar

A ready made rpm package can be fetched from here:
https://github.com/pastillilabs/sona...ases/tag/0.0.1

A compatible alpha version of Situations app is available here:
https://github.com/pastillilabs/pack...leases/tag/248

Briefly tested on Jolla 1 and nothing else. Feedback & improvement suggestions are welcome. Would be nice to know if anyone is actually willing to use this ;)

Br,
Heikki

hhaveri 2019-09-12 06:20

Re: Situations app - bugs, questions, answers, help etc..
 
Hep,

An update to Sonar & Situations alpha versions:

Additions to Sonar:
- Basic check for acceptable clients. Only situations binary is allowed to connect, so this adds at least some sort of security to Sonar.
- Initial calendar support
- Due to changes in IPC, only compatible with updated Situations app

Available here:
https://github.com/pastillilabs/sona...ases/tag/0.0.2


Situations:
- Added basic calendar condition!

Available here:
https://github.com/pastillilabs/pack...leases/tag/248

Br,
Heikki

zagrim 2019-09-13 04:07

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

- Basic check for acceptable clients. Only situations binary is allowed to connect, so this adds at least some sort of security to Sonar.
I haven't yet tried Sonar, but as you've pointed out the security being a bit of a concern, could there be some kind of a key mechanism to authenticate clients? Sonar would generate a key on installation and the connecting clients would be required to pass that key when they connect. Just like a regular API key. Of course it would mean the users would need to manually copy-paste the key from Sonar to the client app, but anyone paying the least amount of interest to security would probably be willing to do that anyway.

I really should try the new versions out, I've just grown used to going around with Wifi always enabled out of laziness (which isn't necessarily good for security, either).

hhaveri 2019-09-15 17:12

Re: Situations app - bugs, questions, answers, help etc..
 
Thanks for the feedback. I must say I currently have no idea how to implement such mechanism and not sure if it would really make things any safer / private. Any pointers to examples / concrete suggestions for implementation are welcome :)

Using some sort of public/private key signature is the best protection I can currently think of, but I think even that would be hackable and perhaps not worth the effort. In the end, without some sort of platform support for sandboxing apps / protecting IPC, it comes down to trusting all the software you have installed on the device not to be malicious.

Br,
Heikki

zagrim 2019-09-16 03:16

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by hhaveri (Post 1560364)
Using some sort of public/private key signature is the best protection I can currently think of, but I think even that would be hackable and perhaps not worth the effort. In the end, without some sort of platform support for sandboxing apps / protecting IPC, it comes down to trusting all the software you have installed on the device not to be malicious.

That's true, lack of sandboxing (and the fact that all apps run as nemo, if not as root) makes it hard (if not impossible, I'm not security expert) to prevent a malicious application from finding out the secrets - at least without having the user to provide a passphrase to allow Sonar to read it's security config, and even then they might be able to spy IPC. :(
My idea was, that having key-based authentication would add another layer of security. Then again, I don't really know if it is easy or hard to fake the process command line on SFOS (or Linux in general - probably easy with root privs but how about with normal user privs?).

But you might be right, in the current situation what you've implemented might be as good as it gets without.

Anyway, I installed Sonar and the matching version of Situations over the weekend and I'm soon to find out how things work with them.

BonoNL 2019-09-16 19:08

Re: Situations app - bugs, questions, answers, help etc..
 
@hhaveri,

Haven't used Situations in a while. Will install it this week with Sonar to start testing. Maybe you can put this apps on Openrepos so a greater audience becomes available for you. Also Sonar won't be a problem there like in harbour....

rob_kouw 2019-09-23 18:19

Re: Situations app - bugs, questions, answers, help etc..
 
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!

hhaveri 2019-09-29 07:05

Re: Situations app - bugs, questions, answers, help etc..
 
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

crun 2019-09-29 21:33

Re: Situations app - bugs, questions, answers, help etc..
 
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.

hhaveri 2019-10-02 14:20

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by crun (Post 1560669)
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

Halftux 2019-10-02 16:36

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by crun (Post 1560669)
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).

crun 2019-10-03 11:15

Re: Situations app - bugs, questions, answers, help etc..
 
Thanks, I'll try it on the next go round.
Current problem: I don't get the phone number of incoming sms....

Halftux 2019-10-03 11:39

Re: Situations app - bugs, questions, answers, help etc..
 
Quote:

Originally Posted by crun (Post 1560809)
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

crun 2019-10-04 09:32

Re: Situations app - bugs, questions, answers, help etc..
 
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)

Halftux 2019-10-04 18:01

Re: Situations app - bugs, questions, answers, help etc..
 
1 Attachment(s)
@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.

Halftux 2019-10-04 22:51

Re: Situations app - bugs, questions, answers, help etc..
 
@crun I uploaded a code example
https://github.com/halftux/smsrun/bl...src/smsrun.cpp


All times are GMT. The time now is 10:06.

vBulletin® Version 3.8.8