|
2014-08-02
, 06:28
|
|
Posts: 115 |
Thanked: 72 times |
Joined on Feb 2011
@ Vicenza, Italy
|
#12
|
|
2014-08-02
, 09:20
|
|
Posts: 956 |
Thanked: 2,628 times |
Joined on Nov 2011
|
#13
|
<Sfiet_Konstantin> Morpog_PC__: ping ?
<Sfiet_Konstantin> I'm searching for yet another icon, this time for phonebot
<Sfiet_Konstantin> I'm thinking of HAL 3000's eye
<tbr> 9000
<Sfiet_Konstantin> oh dear
<Sfiet_Konstantin> 9000
<Sfiet_Konstantin> :/
The Following 2 Users Say Thank You to Morpog For This Useful Post: | ||
|
2014-08-02
, 14:24
|
Posts: 344 |
Thanked: 1,345 times |
Joined on Aug 2012
@ Paris, FR
|
#14
|
Thanks for this app.
But it not wotk for me...
Tried to create 2 rules (silent and general) and it doesn't change the profile..
Also, can you please add in action option for running command (as root/user) ?
Thanks
It's an interesting app, but can you do a step by step tutorial for how to create a rule and which rule we can create?
|
2014-08-02
, 20:53
|
Posts: 344 |
Thanked: 1,345 times |
Joined on Aug 2012
@ Paris, FR
|
#15
|
|
2014-08-02
, 21:25
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#16
|
Interesting, can you run phonebot (harbour-phonebot) from the terminal and paste me what's shown ? Also, can you give me the QML files inside ~/.config/harbour/phonebot/ruleXXXXX ?
[nemo@Jolla ~]$ /usr/bin/harbour-phonebot [D] QWaylandEglIntegration::QWaylandEglIntegration:58 - Using Wayland-EGL [D] EngineManager::reloadEngine:242 - Using "/home/nemo/.config/harbour-phonebot/harbour-phonebot/" to search rules [D] EngineManager::reloadEngine:253 - Rule found: "/home/nemo/.config/harbour-phonebot/harbour-phonebot/rule_00000/rule.qml" [D] EngineManager::reloadEngine:253 - Rule found: "/home/nemo/.config/harbour-phonebot/harbour-phonebot/rule_00001/rule.qml" [W] QQmlImportDatabase::importPlugin:1697 - Module 'Sailfish.Silica' does not contain a module identifier directive - it cannot be protected from external registrations. [W] MetaTypeCachePrivate::populateCacheForType:251 - Cannot get Phonebot metadata from "DebugTrigger" : DebugTrigger don't have a Phonebot metatype. Did you forgot PHONEBOT_METADATA macro ? [W] MetaTypeCachePrivate::populateCacheForType:251 - Cannot get Phonebot metadata from "DebugTrigger" : DebugTrigger don't have a Phonebot metatype. Did you forgot PHONEBOT_METADATA macro ? [W] MetaTypeCachePrivate::populateCacheForType:251 - Cannot get Phonebot metadata from "LoggerAction" : LoggerAction don't have a Phonebot metatype. Did you forgot PHONEBOT_METADATA macro ? [W] MetaTypeCachePrivate::populateCacheForType:251 - Cannot get Phonebot metadata from "LoggerAction" : LoggerAction don't have a Phonebot metatype. Did you forgot PHONEBOT_METADATA macro ? [D] TimeTrigger::setTime:103 - Time set: QTime("00:16:00") [D] TimeTrigger::setTime:103 - Time set: QTime("00:18:00") DeclarativeCoverWindow: I have a default alpha buffer [D] TimeTriggerPrivate::slotTriggered:66 - Triggered time: QTime("00:15:19") [D] Profile::setActiveProfile:211 - bool Profile::setActiveProfile(QString) "silent" [D] TimeTriggerPrivate::slotTriggered:66 - Triggered time: QTime("00:18:24") [D] Profile::setActiveProfile:211 - bool Profile::setActiveProfile(QString) "ambience" [nemo@Jolla ~]$
import org.SfietKonstantin.phonebot 1.0 import org.SfietKonstantin.phonebot.profile 1.0 import org.SfietKonstantin.phonebot.time 1.0 Rule { actions: [ ProfileAction { profile: "silent" } ] mappers: [ TimeMapper { id: mapper0 hour: 0 minute: 16 } ] name: "Silent profile" trigger: TimeTrigger { time: mapper0.value } }
import org.SfietKonstantin.phonebot.profile 1.0 import org.SfietKonstantin.phonebot 1.0 import org.SfietKonstantin.phonebot.time 1.0 Rule { actions: [ ProfileAction { profile: "ambience" } ] mappers: [ TimeMapper { id: mapper0 hour: 0 minute: 18 } ] name: "Ambience profile" trigger: TimeTrigger { time: mapper0.value } }
|
2014-08-03
, 06:26
|
Posts: 344 |
Thanked: 1,345 times |
Joined on Aug 2012
@ Paris, FR
|
#17
|
When I run app from terminal it work, but it start rule immediately even if it should wait 1m for trigger time.
Here is output:
Here is my rules:Code:[nemo@Jolla ~]$ /usr/bin/harbour-phonebot [D] QWaylandEglIntegration::QWaylandEglIntegration:58 - Using Wayland-EGL [D] EngineManager::reloadEngine:242 - Using "/home/nemo/.config/harbour-phonebot/harbour-phonebot/" to search rules [D] EngineManager::reloadEngine:253 - Rule found: "/home/nemo/.config/harbour-phonebot/harbour-phonebot/rule_00000/rule.qml" [D] EngineManager::reloadEngine:253 - Rule found: "/home/nemo/.config/harbour-phonebot/harbour-phonebot/rule_00001/rule.qml" [W] QQmlImportDatabase::importPlugin:1697 - Module 'Sailfish.Silica' does not contain a module identifier directive - it cannot be protected from external registrations. [W] MetaTypeCachePrivate::populateCacheForType:251 - Cannot get Phonebot metadata from "DebugTrigger" : DebugTrigger don't have a Phonebot metatype. Did you forgot PHONEBOT_METADATA macro ? [W] MetaTypeCachePrivate::populateCacheForType:251 - Cannot get Phonebot metadata from "DebugTrigger" : DebugTrigger don't have a Phonebot metatype. Did you forgot PHONEBOT_METADATA macro ? [W] MetaTypeCachePrivate::populateCacheForType:251 - Cannot get Phonebot metadata from "LoggerAction" : LoggerAction don't have a Phonebot metatype. Did you forgot PHONEBOT_METADATA macro ? [W] MetaTypeCachePrivate::populateCacheForType:251 - Cannot get Phonebot metadata from "LoggerAction" : LoggerAction don't have a Phonebot metatype. Did you forgot PHONEBOT_METADATA macro ? [D] TimeTrigger::setTime:103 - Time set: QTime("00:16:00") [D] TimeTrigger::setTime:103 - Time set: QTime("00:18:00") DeclarativeCoverWindow: I have a default alpha buffer [D] TimeTriggerPrivate::slotTriggered:66 - Triggered time: QTime("00:15:19") [D] Profile::setActiveProfile:211 - bool Profile::setActiveProfile(QString) "silent" [D] TimeTriggerPrivate::slotTriggered:66 - Triggered time: QTime("00:18:24") [D] Profile::setActiveProfile:211 - bool Profile::setActiveProfile(QString) "ambience" [nemo@Jolla ~]$
andCode:import org.SfietKonstantin.phonebot 1.0 import org.SfietKonstantin.phonebot.profile 1.0 import org.SfietKonstantin.phonebot.time 1.0 Rule { actions: [ ProfileAction { profile: "silent" } ] mappers: [ TimeMapper { id: mapper0 hour: 0 minute: 16 } ] name: "Silent profile" trigger: TimeTrigger { time: mapper0.value } }
I knowCode:import org.SfietKonstantin.phonebot.profile 1.0 import org.SfietKonstantin.phonebot 1.0 import org.SfietKonstantin.phonebot.time 1.0 Rule { actions: [ ProfileAction { profile: "ambience" } ] mappers: [ TimeMapper { id: mapper0 hour: 0 minute: 18 } ] name: "Ambience profile" trigger: TimeTrigger { time: mapper0.value } }
EDIT: Installed new version, same result, not work from the icon and work from terminal.
|
2014-08-03
, 10:32
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#18
|
[root@Jolla ~]# journalctl /usr/bin/harbour-phonebot -- Logs begin at Sun 2014-08-03 11:54:56 IDT, end at Sun 2014-08-03 13:30:59 IDT. -- [root@Jolla ~]#
|
2014-08-04
, 06:45
|
Posts: 344 |
Thanked: 1,345 times |
Joined on Aug 2012
@ Paris, FR
|
#19
|
Tried to run journalctl as root and get only one line:
Code:[root@Jolla ~]# journalctl /usr/bin/harbour-phonebot -- Logs begin at Sun 2014-08-03 11:54:56 IDT, end at Sun 2014-08-03 13:30:59 IDT. -- [root@Jolla ~]#
|
2014-08-04
, 07:10
|
|
Posts: 5,339 |
Thanked: 4,133 times |
Joined on Jan 2010
@ Israel
|
#20
|
hum ... reproduced here too. qDebug is not enough to log stuff in journal ... the problem is that I cannot reproduce from my side. could you try again with some real-life rules ?
Tags |
phonebot, task scheduler |
|
But it not wotk for me...
Tried to create 2 rules (silent and general) and it doesn't change the profile..
Also, can you please add in action option for running command (as root/user) ?
Thanks
Lausanne & Lyon de descente...
----------------
Schturman's home page
Schturman's repo on openrepos
RPM packaging directly on your Jolla phone.
Root & User SSH access to Jolla via WinSCP.
Root and User SSH access to Jolla via Nautilus on Linux PC.