Notices


Reply
Thread Tools
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#11
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
 
akira.pwr's Avatar
Posts: 115 | Thanked: 72 times | Joined on Feb 2011 @ Vicenza, Italy
#12
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?
 
Morpog's Avatar
Posts: 956 | Thanked: 2,628 times | Joined on Nov 2011
#13
As you are offline atm on IRC, I'm posting it here:

<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> :/
https://db.tt/MBCDqj0m


(yes, thats all SVG)
 

The Following 2 Users Say Thank You to Morpog For This Useful Post:
Posts: 344 | Thanked: 1,345 times | Joined on Aug 2012 @ Paris, FR
#14
Originally Posted by Schturman View Post
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
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 ?

EDIT: you need to keep the window opened right now.

Originally Posted by akira.pwr View Post
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?
Updated first page for how to create a rule.
__________________
Developer of Friends Facebook client, patchmanager, Phonebot
Blogger at Jollafr and random thoughts on my personnal blog
Support my work

Last edited by Sfiet_Konstantin; 2014-08-02 at 20:06.
 
Posts: 344 | Thanked: 1,345 times | Joined on Aug 2012 @ Paris, FR
#15
0.1.2 testing version includes:
  • UI fixes
  • You can see a summary of the rule in the main page, as well as summary of a component when creating a rule
  • Week day condition, allowing triggering events only on some days of the week
  • HAL watching you while you are on launcher grid

Get it at OBS

Next targets:
  • System daemon + jolla settings
  • DBus trigger and action
  • Notifications
  • Brightness control
  • Switch connectivitiy stuff
  • Entering a wifi area
  • Location
__________________
Developer of Friends Facebook client, patchmanager, Phonebot
Blogger at Jollafr and random thoughts on my personnal blog
Support my work

Last edited by Sfiet_Konstantin; 2014-08-02 at 20:57.
 

The Following 3 Users Say Thank You to Sfiet_Konstantin For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#16
Originally Posted by Sfiet_Konstantin View Post
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 ?
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:
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 ~]$
Here is my rules:
Code:
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
    }
}
and
Code:
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
    }
}
Originally Posted by Sfiet_Konstantin View Post
EDIT: you need to keep the window opened right now.
I know

EDIT: Installed new version, same result, not work from the icon and work from terminal.

Last edited by Schturman; 2014-08-02 at 21:34.
 
Posts: 344 | Thanked: 1,345 times | Joined on Aug 2012 @ Paris, FR
#17
Originally Posted by Schturman View Post
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:
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 ~]$
Here is my rules:
Code:
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
    }
}
and
Code:
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
    }
}
I know

EDIT: Installed new version, same result, not work from the icon and work from terminal.
PhoneBot use system aligned timer, and I'm using the 5 min precision, meaning that the trigger can be triggered between t - 2:30 and t + 2:30.

If it do not work only with the icon-invoked phonebot, you can launch it and go root, journalctl /usr/bin/harbour-phonebot to get logs. Mind trying ?
__________________
Developer of Friends Facebook client, patchmanager, Phonebot
Blogger at Jollafr and random thoughts on my personnal blog
Support my work
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#18
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 ~]#
 
Posts: 344 | Thanked: 1,345 times | Joined on Aug 2012 @ Paris, FR
#19
Originally Posted by Schturman View Post
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 ~]#
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 ?
__________________
Developer of Friends Facebook client, patchmanager, Phonebot
Blogger at Jollafr and random thoughts on my personnal blog
Support my work
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#20
Originally Posted by Sfiet_Konstantin View Post
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 ?
Already tried a few times again (also after reboot).
Tried to start rule after 5, 10 min and second rule also after 5, 10 min (silent -> ambience), but nothing... It just not work and I don't know how to get log for you.
 
Reply

Tags
phonebot, task scheduler

Thread Tools

 
Forum Jump


All times are GMT. The time now is 11:11.