maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   [Commercial] Rockwatch - Pebble smart watch support for the N9 (https://talk.maemo.org/showthread.php?t=89890)

P@t 2013-12-11 15:30

Re: [Available in Ovi Store] Rockwatch - Pebble smart watch support for the N9
 
Sorry for last message, I was still exploring and now I am getting better :)

Couple of remarks on the use for now:
- I still have one hour delay between phone and watch when i press "set watch time from phone"

- I have installed 'fair forecast' but it seems to not locate me accurately as I seem to be in a warm country while in Paris during winter (reports more than 20 celsius degree) :). http://openweathermap.org/ seems to be fine though, so probably something wrong between the two?
Indeed the location seems to be 'Earth' which is probably too vague :p

- I tried m.setpebble.com in the phone but does not seem to work (probably not related to the app?) while the main website is working fine.

Alexxxl 2013-12-11 19:09

Re: [commercial] Rockwatch - Pebble smart watch support for the N9
 
I did everything through setpebble.com weather and showed the correct data, but not always able to download them directly.
and as for the time difference, I have the time zone 4 and I do not see any key problems

Alexxxl 2013-12-16 10:15

Re: [Commercial] Rockwatch - Pebble smart watch support for the N9
 
Found several applications that report on watch...
-qneptunea (tw clien)
-recket (tw client)
-fotoshare (upload-demon) (in the case of notification of the statusbar)

I realized that all broadcasts Rockwatch appears in the status bar phone

I think you can write a separate application - a demon that could prompt the phone some data (eg battery level, calendar events) and send notification in status in turn picks Rockwatch this notice and be sent to the clock ...

Elleo 2013-12-16 15:46

Re: [Commercial] Rockwatch - Pebble smart watch support for the N9
 
Quote:

Originally Posted by Alexxxl (Post 1397000)
Found several applications that report on watch...
-qneptunea (tw clien)
-recket (tw client)
-fotoshare (upload-demon) (in the case of notification of the statusbar)

I realized that all broadcasts Rockwatch appears in the status bar phone

I think you can write a separate application - a demon that could prompt the phone some data (eg battery level, calendar events) and send notification in status in turn picks Rockwatch this notice and be sent to the clock ...

Yep, anything sends a standard MeeGo notification will get sent to the watch. You can also communicate with Rockwatch directly over dbus if you want to send messages to the watch without also making MeeGo notifications (plus it allows you a little more flexibility in what you display).

Alexxxl 2013-12-17 12:06

Re: [Commercial] Rockwatch - Pebble smart watch support for the N9
 
unfortunately I was not a programmer, I can only do what that small things in this regard ...

Could you tell the exact format of the command for "dbus" in the beam ... ?

all that I still found this:
Quote:

dbus-send --print-reply --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.addNotificatio n uint32:0 uint32:0 string:'device' string:'' string:'My message' string:'' string:'icon-m-toolbar-done' uint32:0
but it's not, it only shows the banner, and naturally sends nothing to watch ...

thank you!

Elleo 2013-12-17 17:48

Re: [Commercial] Rockwatch - Pebble smart watch support for the N9
 
Quote:

Originally Posted by Alexxxl (Post 1397582)
unfortunately I was not a programmer, I can only do what that small things in this regard ...

Could you tell the exact format of the command for "dbus" in the beam ... ?

all that I still found this:

but it's not, it only shows the banner, and naturally sends nothing to watch ...

thank you!

Here's a quick working example:

Code:

dbus-send --print-reply --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:"Test" string:"This is a public service announcement this is only a test" string:"Test" string:"action" string:"/opt/rockwatch/icon.png" uint32:0
You can also have a look at the Rockwatch specific dbus functions by running:

Code:

qdbus com.mikeasoft.rockwatch /rockwatch
That'll list them all, their names should be fairly self explanatory, when I get a bit more time I'll write up some documentation for the dbus side of things.

Alexxxl 2013-12-17 18:26

Cool.. Lets try... )))

Alexxxl 2013-12-17 21:13

Re: [Коммерческих] Rockwatch - Галечный умные " часы по
 
Quote:

Originally Posted by Elleo (Post 1397769)
Вот быстрый пример:

Code:

dbus-отправить --print-ответ --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.addnotification uint32:0 uint32:0 строка:"Test" строку:"Это public service announcement это только test" строку:"Test" строку:"акция" строки:"/opt/rockwatch/icon.png" uint32:0
Вы также можете взглянуть на Rockwatch конкретных dbus функций, выполнив:

Code:

qdbus com.mikeasoft.rockwatch /rockwatch
Что буду их все перечислять, их имена должны быть достаточно понятны, когда я немного больше времени я буду писать до некоторой документации для dbus сторону вещей.

for it shall be very grateful we all!

Thanks for prompts with teams, I almost achieved the desired! Now come up with that and how to ask the phone, and how to send it on the clock - now I know! Thank you again!

Alexxxl 2013-12-18 20:59

Re: [Commercial] Rockwatch - Pebble smart watch support for the N9
 
The first trial ... simple script
constantly checks the status of the charger and informs its connecting / disconnecting the phone

Thank Shturman! Thank Elleo!

Now before issuing a message waits until dbus goes charging system message, I think the transition to (qdbus com.mikeasoft.rockwatch) change the situation



Code:

#!/bin/bash

status=$(hal-get-property --udi /org/freedesktop/Hal/devices/bme --key maemo.charger.connection_status)
echo $status > /home/user/MyDocs/status.log

source /tmp/session_bus_address.user
while true
do

status=$(hal-get-property --udi /org/freedesktop/Hal/devices/bme --key maemo.charger.connection_status)
log=$(cat /home/user/MyDocs/status.log)

if [[ "$status" == "$log" ]]; then
:
else
if [[ "$status" == "connected" ]]; then

dbus-send --print-reply --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:"Test" string:"Charge connected" string:"N9" string:"action" string:"/opt/rockwatch/icon.png" uint32:0
echo $status > /home/user/MyDocs/status.log

else
dbus-send --print-reply --dest=com.meego.core.MNotificationManager /notificationmanager com.meego.core.MNotificationManager.addNotification uint32:0 uint32:0 string:"Test" string:"Charge disconnected" string:"N9" string:"action" string:"/opt/rockwatch/icon.png" uint32:0

echo $status > /home/user/MyDocs/status.log

fi
fi

sleep 1
done

result - https://www.dropbox.com/sc/tz2irp61bgv6xc9/6tTYhjG6pu

Alexxxl 2013-12-19 07:27

Re: [Commercial] Rockwatch - Pebble smart watch support for the N9
 
Elleo,
could you tell which method should be used with (com.mikeasoft.rockwatch / rotskschach) to send any messages?
I assumed (method void com.mikeasoft.rockwatch.showSMS), but the correct syntax and did not understand ...


All times are GMT. The time now is 09:12.

vBulletin® Version 3.8.8