maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [SFOS] [Announce] Pebble Watch Connector daemon (https://talk.maemo.org/showthread.php?t=93399)

billranton 2015-04-02 09:23

Re: [Announce] Pebble Watch Connector daemon
 
Quote:

Originally Posted by smoku (Post 1465549)
I don't get what you mean by "crowdfund the Pebble support for a 1.0 release". Can you give a for instance?


P.S. If you feel the software you installed is worth paying for, there's a "PayPal Donate" button on the About page.

Well said. There's a bit too much crowdfunding round here these days.

smoku 2015-04-02 09:38

Re: [Announce] Pebble Watch Connector daemon
 
Quote:

Originally Posted by cgfrost (Post 1465597)
you would probably be able to raise some money and pay yourself to work on this full time.

Being hired as a software developer full time pays much, much, much better than any croudfunding campaign. :D

Quote:

Originally Posted by cgfrost (Post 1465597)
Get to 1.0 and put it in the Harbour store.

Impossible.
Any useful API is banned from Harbour.
Background daemons - banned.
Installation scripts - banned.
Multiple binaries apps - banned.
[...]

Basically, you cannot put anything more useful than a FartApp to Harbour Store. (Unless you're called Jolla.com)

javispedro 2015-04-02 14:37

Re: [Announce] Pebble Watch Connector daemon
 
Quote:

Originally Posted by smoku (Post 1465600)
Basically, you cannot put anything more useful than a FartApp to Harbour Store. (Unless you're called Jolla.com)

... there have been some additional 'privileges' for TOH drivers, too. So maybe exceptions are made for high visibility packages. For the rest of us, "is there really an store?".

BTW, in case you ever wondered why some caller IDs fail to match to a contact.

smoku 2015-04-02 14:48

Re: [Announce] Pebble Watch Connector daemon
 
Quote:

Originally Posted by javispedro (Post 1465614)

Good find!
I've updated https://github.com/smokku/pebble/issues/36

smoku 2015-04-14 10:24

Re: [Announce] Pebble Watch Connector daemon
 
Anyone having trouble with uploading certain apps, please test this pre-release https://github.com/smokku/pebble/releases/tag/7cdadf0 and check whether it fixes your app installation issue.

Bundyo 2015-04-15 13:16

Re: [Announce] Pebble Watch Connector daemon
 
Love Weather now installs (didn't before), but since several releases I can't open any configuration page - the app sits not responding for up to a minute, then opens empty configuration page (with only cancel on top).

MaemoUser 2015-04-17 08:22

Re: [Announce] Pebble Watch Connector daemon
 
Same here configuration pages don't work even when they worked before the upgrade.

Bundyo 2015-04-17 12:33

Re: [Announce] Pebble Watch Connector daemon
 
Yes, he is right - I was able to open some configuration pages before. With the new update however none work.

smoku 2015-04-17 13:04

Re: [Announce] Pebble Watch Connector daemon
 
Quote:

Originally Posted by Bundyo (Post 1467501)
Yes, he is right - I was able to open some configuration pages before. With the new update however none work.

https://github.com/smokku/pebble/issues/49

Bundyo 2015-04-17 19:06

Re: [Announce] Pebble Watch Connector daemon
 
Can we get an RPM? :)

smoku 2015-04-19 17:47

Re: [Announce] Pebble Watch Connector daemon
 
Just released 1.0 (feature complete) to OpenRepos.

Main new features:
  • Firmware Upgrade support
  • Music volume controls alter the system volume (thanks to Andrew Branson)

jandreas 2015-04-19 20:06

Re: [Announce] Pebble Watch Connector daemon
 
Hi,
I'm new here, and want to say thanks a lot for your great work on this! I bought a used Pebble Steel last week, and was happy to see how nicely it plays with my Jolla through the pebble daemon and app - especially after the last update, which solved the app uploading problem. Thank you!

I now want to try writing a Pebble+Sailfish companion app. For this I've started playing around with the org.pebbled interface through dbus-python, but I must admit that I'm very much of a DBus novice. I manage to ping my pebble and to upload, unload and remove apps, as well as to read the various properties. But I can not figure out how to call SendAppMessage. Does it need any more argument in addition to uuid and message? I get 'TypeError: More items found in D-Bus signature than in Python arguments'. (And 'a{sv]' means that the message argument should be a dictionary with strings as keys, right?) Please excuse me for what might be stupid questions!

Also, is there any way to send a notification text to the Pebble from a script on the phone (through org.pebbled or otherwise)?

MaemoUser 2015-04-20 09:33

Re: [Announce] Pebble Watch Connector daemon
 
You should note that Firmware upgrade support is a paid option ;).

smoku 2015-04-20 10:09

Re: [Announce] Pebble Watch Connector daemon
 
Quote:

Originally Posted by MaemoUser (Post 1467846)
You should note that Firmware upgrade support is a paid option ;).

Only the UI screen. ;-)

All the mechanic is present and you are free to upgrade the firmware using any other tool (i.e. qdbus command line).

wickedsten 2015-04-20 14:59

Re: [Announce] Pebble Watch Connector daemon
 
Good work!

By the way - what with installation of custom fw? f.ex. one from pebblebits?

smoku 2015-04-20 17:09

Re: [Announce] Pebble Watch Connector daemon
 
Quote:

Originally Posted by wickedsten (Post 1467885)
By the way - what with installation of custom fw? f.ex. one from pebblebits?

No idea. I didn't try it.

wickedsten 2015-04-20 19:16

Re: [Announce] Pebble Watch Connector daemon
 
Quote:

Originally Posted by smoku (Post 1467900)
No idea. I didn't try it.

Well, custom sw is a .pbz file - so when I'm d'loading it on the phone and clicked on it - app is opened but no action is taken.
So far custom fw is a good option (at least to read messages in still not supported languages) - so it will be a good option to add such a feature.

smoku 2015-04-20 20:58

Re: [Announce] Pebble Watch Connector daemon
 
You may try uploading it manually using DBus interface.
But I do not support it, so do it on your own risk.

HtheB 2015-04-20 21:20

Re: [Announce] Pebble Watch Connector daemon
 
Quote:

Originally Posted by smoku (Post 1467900)
No idea. I didn't try it.

It's basically the same file as the original though.
Just not picked from the Pebble servers.

smoku 2015-04-22 13:12

Re: [Announce] Pebble Watch Connector daemon
 
Quote:

Originally Posted by jandreas (Post 1467801)
I now want to try writing a Pebble+Sailfish companion app. For this I've started playing around with the org.pebbled interface through dbus-python, but I must admit that I'm very much of a DBus novice.

Writing platform specific companion apps is not that good idea. They are not portable and restrict your companion app to one platform only.

Pebble SDKv2 introduced JavaScript based companion apps you should use. We support them very well. Also pebbled will make sure your JS companion app gets started whenever user opens the app on the watch and it does not have to be run manually or always in background. Just read Pebble SDKv2 documentation and follow.

smoku 2015-04-22 13:14

Re: [Announce] Pebble Watch Connector daemon
 
Quote:

Originally Posted by HtheB (Post 1467946)
It's basically the same file as the original though.
Just not picked from the Pebble servers.

So it should be possible to upload it.

Though I advise against it, do not support it and can't be hold responsible if your watch becomes a paper holder etc. etc.

wickedsten 2015-04-23 12:13

Re: [Announce] Pebble Watch Connector daemon
 
off: well, at least while Pebble do not support all encodings for text messages - custom FW is the only one option f.ex. for Russian

Amboss 2015-04-23 16:41

Re: [Announce] Pebble Watch Connector daemon
 
I recall mention of some GPS issues in the earlier posts of this thread. Was there any solution to it?

I have some apps which work fine pulling information from GPS while others can't find any location.

working:
Minimalist Weather
Weather 2.0

not working:
World Metric 2
GetMeOut

Any idea why? All of them are supposed to work without any companion app.

smoku 2015-04-23 17:58

Re: [Announce] Pebble Watch Connector daemon
 
Quote:

Originally Posted by Amboss (Post 1468245)
All of them are supposed to work without any companion app.

Maybe this is the problem - the only GPS support we have is available for companion js-app.

javispedro 2015-04-25 22:59

Re: [Announce] Pebble Watch Connector daemon 0.15
 
Quote:

Originally Posted by javispedro (Post 1465360)
I guess I should put that into a library so that all smartwatch programs can benefit. It will be useful to implement the new actionable notifications supported by the new Pebble firmwares.

Aaand I've just started doing that:
https://git.javispedro.com/cgit/libwatchfish.git/
Still in development though, and does not support actions, etc. But it can detect dismissed notifications and editions.

The goal is to build a utility library to save some "code duplication" from all different types of Sailfish smartwatch programs, which can be statically linked or included. Not a complicated framework or anything like that. Both my Toq and Gear 2 programs are now using it.

In the future I hope to add the MPRIS client/media player from pebbled, and maybe some other features (e.g. reading calendar?). Feel free to send in patches or fork in Github, etc.

smoku 2015-05-11 14:43

Re: [Announce] Pebble Watch Connector daemon
 
Just released 1.1

Fuzzillogic 2015-05-12 16:33

Re: [Announce] Pebble Watch Connector daemon
 
Quote:

Originally Posted by smoku (Post 1468250)
Maybe this is the problem - the only GPS support we have is available for companion js-app.

I can't get it to work. The native browser can use GPS, but e.g. Maptastic or Get Back To can't get a position on the watch. I noticed, even with these apps active, the GPS-active icon on the phone doesn't appear. Is there an app which is known to work, so I can test?

MaemoUser 2015-05-12 16:39

Re: [Announce] Pebble Watch Connector daemon
 
For me Yelp! works without problem. But only if I am not on Wlan. Everytime I enable Wlan location for Yelp! stops working.

smoku 2015-05-12 16:47

Re: [Announce] Pebble Watch Connector daemon
 
Quote:

Originally Posted by Fuzzillogic (Post 1470142)
Is there an app which is known to work, so I can test?

I use Crowex watchface as my main and it gets my local weather just fine.

Fuzzillogic 2015-05-12 17:59

Re: [Announce] Pebble Watch Connector daemon
 
Crowex seems to be able to get some location, but I'm not too sure it's the correct one. Yelp works, but might use geolocation based on IP. Pity. I was hoping Get Back To or an alternative works, as that might come in handy at times.

Also, neither webcat nor webpirate can get the current geolocation, but I don't know if that's because of this issue, or it simply isn't implemented. Since they also use Qt's webview instead of Gecko, it might be related.

Some serendipity though: scrolling in the app store is really hard. But I noticed that if you first move your finger to the left, and then up/down, it works consistently. Seems like there's some conflict on what to scroll: the webview content or the Silica-stuff around. Or something like that.

Feathers McGraw 2015-05-14 22:15

Re: [Announce] Pebble Watch Connector daemon
 
Hi Smoku,

Thank you so much for the pebble app. I can't believe how lucky we are to have such a high quality open source app for Sailfish, especially when the app for Android is proprietary!

I now have it working well, but one thing I noticed is that I wasn't getting XMPP messages through until I unchecked and re-checked the option for Messaging notifications. Is this something you've seen before? I was thinking maybe the default config file might have different options to what's shown in the GUI or something like that?

Thanks again! :)

smoku 2015-05-15 07:33

Re: [Announce] Pebble Watch Connector daemon
 
Yes. We have had an issue with setting default value of setting to true. Even though UI "thinks" it is true, the demon "thinks" it is false. Looks like it is back with new Qt version. Checking off/on fixes it.

I have no good idea how to fix it... :(

Feathers McGraw 2015-05-15 12:30

Re: [Announce] Pebble Watch Connector daemon
 
Thanks for the reply. Out of curiosity i had a look at the code, it's very readable! I wish I could write like that.

So are you saying the bug disappeared and reappeared with the last couple of updates to qt? Do you know of any other sailfish apps that have had similar issues?

smoku 2015-05-15 12:49

Re: [Announce] Pebble Watch Connector daemon
 
Quote:

Originally Posted by Feathers McGraw (Post 1470382)
So are you saying the bug disappeared and reappeared with the last couple of updates to qt?

We fixed it.
But it looks like the fix stopped working with the upgrade to Qt 5.2.
It is hard to debug, as it does not have a stable reproduction.


Quote:

Originally Posted by Feathers McGraw (Post 1470382)
Do you know of any other sailfish apps that have had similar issues?

Are there any other apps architectured as a daemon + configuration app tandem?

javispedro 2015-05-15 13:24

Re: [Announce] Pebble Watch Connector daemon
 
Quote:

Originally Posted by smoku (Post 1470383)
We fixed it.
But it looks like the fix stopped working with the upgrade to Qt 5.2.
It is hard to debug, as it does not have a stable reproduction.

I already mentioned about it in here:
http://talk.maemo.org/showpost.php?p...&postcount=216

It is not easily reproducible because an unitialized variable (e.g. Settings::incomingCallNotification) is being read (valgrind should complain).

QObject->property() will only return an invalid variant if the property does not exist. The property exists (it is not dynamic, since it is declared via Q_PROPERTY), and therefore the isValid() check is useless (always returns true).

Thus, even if the dconf setting does not exist, the current value of Settings::incomingCallNotification is read. This is not initialized in the constructor (which doesn't initialize much), and certainly is not initialized by MDConfGroup (because the setting does not exist in dconf yet).

Therefore, a random value is read.

Sorry I don't have time to make a patch atm, but it should be as trivial as changing the settings.h constructor to initialize the member variables to the proper default values.

Feathers McGraw 2015-05-15 15:25

Re: [Announce] Pebble Watch Connector daemon
 
Thanks both of you!

I don't have much programming experience (I'm a Civil Engineer) but am keen to learn - I use Plasma Desktop on my laptop so learning some Qt will be a double win because I can use it with both Sailfish and any desktop apps I write.

Explanations like above really help with the learning, I hope I'll be good enough to contribute to projects like this soon.

Thanks again :)

smoku 2015-05-15 19:35

Re: [Announce] Pebble Watch Connector daemon
 
Quote:

Originally Posted by javispedro (Post 1470386)
QObject->property() will only return an invalid variant if the property does not exist. The property exists (it is not dynamic, since it is declared via Q_PROPERTY), and therefore the isValid() check is useless (always returns true).

Ouch! I missed that.
MDConf returns invalid QVariant for non-existing values. But in MDConfGroup there is an explicit check not to store invalid QVariant.
Also like you noticed, QObject would not return one anyway.


Quote:

Originally Posted by javispedro (Post 1470386)
Sorry I don't have time to make a patch atm, but it should be as trivial as changing the settings.h constructor to initialize the member variables to the proper default values.

I'm hesistant to such change as it would mean storing default values both in daemon and app and a need to keep them synchronized.

smoku 2015-05-15 19:59

Re: [Announce] Pebble Watch Connector daemon
 
But... If I see correctly, we could in constructor: set defaults, resolveProperties() and then call MDConfGroup::propertyChanged() to flush all (defaults + read properties) back to DConf, right?

javispedro 2015-05-15 19:59

Re: [Announce] Pebble Watch Connector daemon
 
Quote:

Originally Posted by smoku (Post 1470432)
I'm hesistant to such change as it would mean storing default values both in daemon and app and a need to keep them synchronized.

The current situation is much worse where you're doing that implicitly depending on how the ->isValid() checks are wired :)

But generally I agree, I just wish there was an easy way to package+install dconf schemas in Mer... I have hit this in almost every Jolla program I've made.

smoku 2015-05-15 20:00

Re: [Announce] Pebble Watch Connector daemon
 
Quote:

Originally Posted by javispedro (Post 1470437)
The current situation is much worse where you're doing that implicitly depending on how the ->isValid() checks are wired :)

Agreed of course. :D
But I would like to fix it once-for-all well, not with some cludges.


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

vBulletin® Version 3.8.8