[SailfishDevel] Battery life without The other half Daemon running

2013-12-23 Thread A. Wickert

Hi everybody,

I read this article today:
http://reviewjolla.blogspot.com/2013/12/jolla-battery-life-power-consumption.html

And now I trying to measure the difference with tohd on and off. I am 
using powertop to get the amount of power consumed by the phone.


- With tohd on, wlan on, screen off, logged in via SSH - 982mW
- With tohd off, wlan on, screen off, logged in via SSH - 552mW

This is a great difference I think.

Best regards,
Annika


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] QtContacts available

2013-12-23 Thread christopher . lamb

Hi Marko

Thanks, that has deepened my understanding, and confirms what I had  
guessed / inferred. I will update my blog later with a simplified  
version of your explanation.


Chris

Zitat von Marko Koschak marko.kosc...@tisno.de:


Hi Matze

On So, 2013-12-22 at 21:50 +0100, christopher.l...@thurweb.ch wrote:

The SDK Build Engine is a little bit more tricky.

Once you SSH in, zypper is available, but if you zypper at that level,
all you are doing is adding stuff to the operating system.

Within this VM is SB2, which is the Build Engine itself. Others on
this mailist are much better qualified than me to tell you more about
it.


If you are familiar with the term chroot (change-root) then you could
thing of SB2 (Scratchbox2) just as an chroot environment running armv7hl
emulated code (through qemu) where you actually build your source rpm
package. SB2 comes from the legacy of cross-compiling. The problem
with cross-compiling is that you need to tell your compiler not to use
the host (x86) tools and libs for compiling but the equivalent tools and
libs from the target (armv7hl) system. There are multiple approaches to
overcome that. One is to tell the compiler (via e.g. configure,
makefile,...) where to find that stuff or you don't tell the compiler
that (less work to create a makefile that cross-compiles too) but alter
your environment that the compiler thinks it is running on the target
(armv7hl) system itself. This is what SB2 actually does. That is very
useful if you want to compile just any normal rpm package (from the
linux userland stack) without adapting it to the target architecture.

(In detail SB2 is not a full chroot system, but it uses fakeroot which
enables SB2 to use host tools for speed up compilation instead of
running arm binaries in slow emulation mode. It's quite some time ago I
used SB2 but I hope I got it right and you got a rough idea... :)

Cheers,
Marko

___
SailfishOS.org Devel mailing list





___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Developing with SailfishOS - a short introduction

2013-12-23 Thread Sven Putze
Hi all,

this is a shameless plug (again). Still far from complete, now 133 pages short.
The PDF can be directly downloaded from
http: //hardcodes.de/SailfishOS/Developing-with-SailfishOS.pdf

The project resides on Github.
https://github.com/hardcodes/developwithsailfishos.git


The source is still in LaTeX but I've decided to go for MultiMarkDown in near 
future.

Happy holidays!
BR.
Sven
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] QDnsLookup always fails

2013-12-23 Thread Robin Burchell
Hi,

On 22 Dec 2013, at 19:31, Alexander Stante sta...@gmail.com wrote:
 Looking at the source code of QDnsLookup for Unix operating systems, it
 looks like it can't load / find certain libraries. Has onyone else
 experienced the same problem? I've tried it with the latest version of
 the SDK. Is there an other way to obtain SRV records?

This looks to have been fixed in 6c5e6a030dc49f36a5d4f2846fe78daf3d02a03d in 
qtbase, which we’ll get when we upgrade Qt sometime next year.

BR,
Robin
___
SailfishOS.org Devel mailing list


[SailfishDevel] Can not ssh to Jolla via USB in Developer mode

2013-12-23 Thread Alexander Ladygin
Ahoy everyone!

For some reason i can not connect to my Jolla from my laptop
I turned Develeper mode on, set the pass, set the IP
I'm connecting jolla via USB, then selecting Developer mode, and then
trying to SSH from host
PING is just getting all packets lost and with ssh nemo@192.168.2.100 i'm
getting:
FATAL: Unable to connect to destination host, errno=110
ssh_exchange_identification: Connection closed by remote host

Any thoughts?

My laptop's OS is Opensuse 13.1

Thanks
___
SailfishOS.org Devel mailing list

[SailfishDevel] The Other Half I2C

2013-12-23 Thread Kimmo Lindholm
Anchors aweigh!

Just hooked up scope to I2C bus on pogo pins, and there is life!

Can someone point me in correct direction to enable 3.3V pin?

3.3V seems to be active just for a while when I press the cover detector switch 
and after eeprom in address 0x50 is tested 3.3V is gone.



Best Regards,
-  --... ...--  -.. .  ---  ..---  --.- .--.  


Kimmo Lindholm
Hardware and Platform Development Manager

EKE-Electronics Ltd.
Piispanportti7, FI-02240 Espoo, Finland
Tel. +358 9 6130 3305, fax +358 96130 3300, mobile +358 40 500 0081
kimmo.lindh...@eke.fi www.eke.com

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.




___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Can not ssh to Jolla via USB in Developer mode

2013-12-23 Thread Unai IRIGOYEN
Hi,
It works fine here. You may have to check your IP address and network sub-mask 
are compatible with the IP address of your Jolla. You may also have to check 
your network routes.

Best regards.
-- 


Unai IRIGOYEN


Le lundi 23 décembre 2013 18:53:21, Alexander Ladygin a écrit :
 Ahoy everyone!
 
 For some reason i can not connect to my Jolla from my laptop
 I turned Develeper mode on, set the pass, set the IP
 I'm connecting jolla via USB, then selecting Developer mode, and then
 trying to SSH from host
 PING is just getting all packets lost and with ssh nemo@192.168.2.100 i'm
 getting:
 FATAL: Unable to connect to destination host, errno=110
 ssh_exchange_identification: Connection closed by remote host
 
 Any thoughts?
 
 My laptop's OS is Opensuse 13.1
 
 Thanks
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Can not ssh to Jolla via USB in Developer mode

2013-12-23 Thread Alexander Couzens
On Mon, 23 Dec 2013 18:53:21 +0400
Alexander Ladygin fake...@gmail.com wrote:

 L: Unable to connect to destination host, errno=110
 ssh_exchange_identification: Connection closed by remote host
 
 Any thoughts?
 
 My laptop's OS is Opensuse 13.1
 
 Thanks
The ip address of the jolla over usb should be 192.168.2.15 as long you haven't
changed it. Before logging into your device over ssh you have to set a password 
via System settings - developer mode - Remote connection
e.g.
ssh nemo@192.168.2.15
$ devel-su
# whoami
root

After you logged into your jolla you can also set a password for user root if 
you like.
$ devel-su
# passwd root

Best,
lynxis
-- 
Alexander Couzens

mail: lyn...@fe80.eu
sip/jabber: lyn...@c-base.org
mobile: +4915123277221
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] The Other Half I2C

2013-12-23 Thread Jonni Rainisto

NOTE: This API is not supported in initial Jolla device software. It will be 
available from 1.0.2.* and later Sailfish OS releases.
# Enable VDD
echo 1  /sys/devices/platform/reguserspaceconsumer.0/state
# Disable VDD
echo 0  /sys/devices/platform/reguserspaceconsumer.0/state

So unfortunately you have to wait for next update before you can unable 3.3V 
pin from user space. But that should happen 'soon'...


From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Kimmo Lindholm [kimmo.lindh...@eke.fi]
Sent: Monday, December 23, 2013 4:49 PM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] The Other Half I2C

Anchors aweigh!

Just hooked up scope to I2C bus on pogo pins, and there is life!

Can someone point me in correct direction to enable 3.3V pin?

3.3V seems to be active just for a while when I press the cover detector switch 
and after eeprom in address 0x50 is tested 3.3V is gone.



Best Regards,
-  --... ...--  -.. .  ---  ..---  --.- .--.  


Kimmo Lindholm
Hardware and Platform Development Manager

EKE-Electronics Ltd.
Piispanportti7, FI-02240 Espoo, Finland
Tel. +358 9 6130 3305, fax +358 96130 3300, mobile +358 40 500 0081
kimmo.lindh...@eke.fi www.eke.comhttp://www.eke.com

This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.




___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] The Other Half I2C

2013-12-23 Thread David Greaves
From some (soon-to-be-released) docs by Kalle Jokiniemi

# Enable VDD
echo 1  /sys/devices/platform/reg-userspace-consumer.0/state
# Disable VDD
echo 0  /sys/devices/platform/reg-userspace-consumer.0/state

David

On 23/12/13 14:49, Kimmo Lindholm wrote:
 Anchors aweigh!
  
 Just hooked up scope to I2C bus on pogo pins, and there is life!
  
 Can someone point me in correct direction to enable 3.3V pin?
  
 3.3V seems to be active just for a while when I press the cover detector 
 switch
 and after eeprom in address 0x50 is tested 3.3V is gone.
  
  
  
 Best Regards,
 -  --... ...--  -.. .  ---  ..---  --.- .--. 
 
  
 *Kimmo Lindholm *
 *Hardware and Platform Development Manager*
  
 EKE-Electronics Ltd.
 Piispanportti7, FI-02240 Espoo, Finland
 Tel. +358 9 6130 3305, fax +358 96130 3300, mobile +358 40 500 0081
 kimmo.lindh...@eke.fi www.eke.com http://www.eke.com
  
 This email and any files transmitted with it are confidential and intended
 solely for the use of the individual or entity to whom they are addressed.
  
  
  
  
 
 
 ___
 SailfishOS.org Devel mailing list
 

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] The Other Half I2C

2013-12-23 Thread Kimmo Lindholm
Then I have to just sit and wait.
Or is there any magic that I can store to the eeprom to keep it active?

-kimmo

From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Jonni Rainisto
Sent: Monday, December 23, 2013 6:06 PM
To: Sailfish OS Developers
Subject: Re: [SailfishDevel] The Other Half I2C


NOTE: This API is not supported in initial Jolla device software. It will be 
available from 1.0.2.* and later Sailfish OS releases.
# Enable VDD
echo 1  /sys/devices/platform/reguserspaceconsumer.0/state
# Disable VDD
echo 0  /sys/devices/platform/reguserspaceconsumer.0/state

So unfortunately you have to wait for next update before you can unable 3.3V 
pin from user space. But that should happen 'soon'...

From: devel-boun...@lists.sailfishos.org [devel-boun...@lists.sailfishos.org] 
on behalf of Kimmo Lindholm [kimmo.lindh...@eke.fi]
Sent: Monday, December 23, 2013 4:49 PM
To: devel@lists.sailfishos.org
Subject: [SailfishDevel] The Other Half I2C
Anchors aweigh!

Just hooked up scope to I2C bus on pogo pins, and there is life!

Can someone point me in correct direction to enable 3.3V pin?

3.3V seems to be active just for a while when I press the cover detector switch 
and after eeprom in address 0x50 is tested 3.3V is gone.

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] SailfishOs Integration questions

2013-12-23 Thread Andrey Kozhevnikov
you should create json file in subdirectory inside 
/usr/share/jolla-settings/entries
then add qml page, preferable inside /usr/share/jolla-settings/pages 
subdirectory


On 24.12.2013 00:00, jja...@gmail.com wrote:

Hi sailors,

I'm also interested (spesifically question 2)  to know  how can I make my 
application to appear in the Jolla system Settings  Apps section. Thanks for 
asking this, Winfried ;)

I am developing an app that uses QSettings to manage app-spesific configuration 
and that handless nicely the persistence of settings in default file-system 
locations. Now, it would be perfect tp expose those settings to system Settings 
GUI.

Cheers,
-jukka

  
On Mon Dec 23 2013 11:53:26 GMT+0200 (EET), winfried.do...@xmsnet.nl wrote:

Hi,

Two questions about making apps as much integrated as possible in SailfishOs:

1) Is it possible to add notifications to the notification overview (swipe
up from bottom of phone) from my own app ?

2) What should I do to make my application's settings accessible from the
Settings app - Applications screen ?

thanks for any info,

Winfried

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Battery life without The other half Daemon running

2013-12-23 Thread Kimmo Lindholm
I did find this somewhere

ssu ar mer-tools
ssu ur
pkcon refresh

pkcon install powertop

-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of jja...@gmail.com
Sent: Monday, December 23, 2013 8:48 PM
To: devel@lists.SailfishOS.org
Subject: Re: [SailfishDevel] Battery life without The other half Daemon running

Hii sailors,

Thanks for the instructions on how to stop/disable TOH-daemon in dev-mode. 
Works perfectly, and I'm now testing how much it affecrs the battery-life  (in 
comparison to covering the NFC-tag with foil).

I saw that someone was using powertop to  monitor power consumption, but how 
do.you install it? Couldn't find it with pkcon.. 

Thanks for any info,
-jukka 

On Mon Dec 23 2013 13:25:48 GMT+0200 (EET), A. Wickert wrote:
Dear Jani,

use :  systemctl stop tohd.service
And systenctl mask tohd.service to make it permanent even on reboot, 
which i do not prefer at the moment.

Regards,
Annika

On 23/12/13 11:29, Jani Kotakoski wrote:
 Dear Annika,

 can you please tell me how to properly close the daemon? Killing it doesn't 
 help -- it respawns automatically.

 Thanks!

 // Jani

 A. Wickert sailf...@penguinfriends.org kirjoitti:
 Hi everybody,

 I read this article today:
 http://reviewjolla.blogspot.com/2013/12/jolla-battery-life-power-co
 nsumption.html

 And now I trying to measure the difference with tohd on and off. 
 I am using powertop to get the amount of power consumed by the 
 phone.

 - With tohd on, wlan on, screen off, logged in via SSH - 982mW
 - With tohd off, wlan on, screen off, logged in via SSH - 552mW

 This is a great difference I think.

 Best regards,
 Annika


 ___
 SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

--
Jukka Aaltonen
Twitter: @jjaone
Arctic Circle / Lapland
Jolla device #3
--
Jukka Aaltonen
Twitter: @jjaone
Arctic Circle / Lapland
Jolla device #39
___
SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Forcing application to stay active and prevent screensaver.

2013-12-23 Thread Kimmo Lindholm
I noticed that when I use QtSensors (acceleration sensor) and I keep phone 
moving, it prevents screensaver not activating without touching the screen. If 
I let it stay in place, then screensaver activates.
(this is great as my app is completely controlled by gravitation..)

-kimmo

From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of Samuli Järvinen
Sent: Monday, December 23, 2013 9:00 PM
To: devel@lists.sailfishos.org
Subject: Re: [SailfishDevel] Forcing application to stay active and prevent 
screensaver.

Thanks,

Playing with ScreenSaver seems to work on emulator, but not on device. Also no 
errors on journalctl, so I guess the device handles the ScreenSaver at some 
level, but there is another mechanism for turning screen off.

-Samuli

On 23 Dec 2013, at 03:42, Gabriel Böhme 
m.gabrielboe...@googlemail.commailto:m.gabrielboe...@googlemail.com wrote:


Hi,

the ScreenSaver function from QML SystemInformation should allow to keep the 
screen alive, BUT: this is not allowed for import in harbour applications at 
the moment. Due to the fact it's possibly not API stable. It was included in 
QtMobility in Qt4.x, but is now split up and got maybe some changes in Qt5. It 
worked in Harmattan and is also in SDK, if you don't want to release at harbour 
give it a try.

For charger - no idea, how to get this info at all, maybe also with 
SystemInformation, you could check the old Qt4 Docs.

Cheers, Gabriel.


--


Von meinem Nokia N9 gesendet




Samuli Järvinen schrieb am 23.12.13 00:33:
Hi,

I know this is something that more often than not should not happen. However I 
could not be more annoyed when the screen goes blank and I'm watching for 
example my position on screen and waiting for a gps fix. So short question. Is 
there a way to prevent application from going background and to prevent the 
screen from blanking via qml?

Another question, is it possible to detect if a charger is plugged in from QML 
or does it need .js or cpp code?

Thanks in advance,

-Samuli
___
SailfishOS.orghttp://SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Forcing application to stay active and prevent screensaver.

2013-12-23 Thread Samuli Järvinen
Thanks,

Playing with ScreenSaver seems to work on emulator, but not on device. Also no 
errors on journalctl, so I guess the device handles the ScreenSaver at some 
level, but there is another mechanism for turning screen off.

-Samuli

On 23 Dec 2013, at 03:42, Gabriel Böhme m.gabrielboe...@googlemail.com wrote:

 Hi,
 
 the ScreenSaver function from QML SystemInformation should allow to keep the 
 screen alive, BUT: this is not allowed for import in harbour applications at 
 the moment. Due to the fact it's possibly not API stable. It was included in 
 QtMobility in Qt4.x, but is now split up and got maybe some changes in Qt5. 
 It worked in Harmattan and is also in SDK, if you don't want to release at 
 harbour give it a try.
 
 For charger - no idea, how to get this info at all, maybe also with 
 SystemInformation, you could check the old Qt4 Docs.
 
 Cheers, Gabriel.
  
 --
  
 Von meinem Nokia N9 gesendet
  
 
 Samuli Järvinen schrieb am 23.12.13 00:33:
 Hi,
 
 I know this is something that more often than not should not happen. However 
 I could not be more annoyed when the screen goes blank and I’m watching for 
 example my position on screen and waiting for a gps fix. So short question. 
 Is there a way to prevent application from going background and to prevent 
 the screen from blanking via qml?
 
 Another question, is it possible to detect if a charger is plugged in from 
 QML or does it need .js or cpp code?
 
 Thanks in advance,
 
 -Samuli
 ___
 SailfishOS.org Devel mailing list
 

___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] Battery life without The other half Daemon running

2013-12-23 Thread A. Wickert
I have currently 80% battery left after 12 hours of usage (wlan always 
on, 1 hour BT Audio streaming to car, browsing the web, check for mails 
every 15min and Twitter connected). Before disabling tohd the day before 
I was at 45% battery after the same amount of usage.


So it works very good :).

On 23/12/13 19:56, Kimmo Lindholm wrote:

I did find this somewhere

ssu ar mer-tools
ssu ur
pkcon refresh

pkcon install powertop

-Original Message-
From: devel-boun...@lists.sailfishos.org 
[mailto:devel-boun...@lists.sailfishos.org] On Behalf Of jja...@gmail.com
Sent: Monday, December 23, 2013 8:48 PM
To: devel@lists.SailfishOS.org
Subject: Re: [SailfishDevel] Battery life without The other half Daemon running

Hii sailors,

Thanks for the instructions on how to stop/disable TOH-daemon in dev-mode. 
Works perfectly, and I'm now testing how much it affecrs the battery-life  (in 
comparison to covering the NFC-tag with foil).

I saw that someone was using powertop to  monitor power consumption, but how 
do.you install it? Couldn't find it with pkcon..

Thanks for any info,
-jukka

On Mon Dec 23 2013 13:25:48 GMT+0200 (EET), A. Wickert wrote:

Dear Jani,

use :  systemctl stop tohd.service
And systenctl mask tohd.service to make it permanent even on reboot,
which i do not prefer at the moment.

Regards,
Annika

On 23/12/13 11:29, Jani Kotakoski wrote:

Dear Annika,

can you please tell me how to properly close the daemon? Killing it doesn't 
help -- it respawns automatically.

Thanks!

// Jani

A. Wickert sailf...@penguinfriends.org kirjoitti:

Hi everybody,

I read this article today:
http://reviewjolla.blogspot.com/2013/12/jolla-battery-life-power-co
nsumption.html

And now I trying to measure the difference with tohd on and off.
I am using powertop to get the amount of power consumed by the
phone.

- With tohd on, wlan on, screen off, logged in via SSH - 982mW
- With tohd off, wlan on, screen off, logged in via SSH - 552mW

This is a great difference I think.

Best regards,
Annika


___
SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list

--
Jukka Aaltonen
Twitter: @jjaone
Arctic Circle / Lapland
Jolla device #3

--
Jukka Aaltonen
Twitter: @jjaone
Arctic Circle / Lapland
Jolla device #39
___
SailfishOS.org Devel mailing list
___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] emulator closes due to 0% battery

2013-12-23 Thread christopher . lamb

Carlos

I think I saw in a previous thread that the Emulator takes the host's  
battery status.


As both my laptop and the Emulator are currently showing 54%, this is  
probably true.


Chris

Zitat von Carlos J Mazieri carlos.mazi...@gmail.com:


Hello guys,

I just installed Sailfish SDK, my laptop does not have battery, I  
use it only with the power cable plugged.


My Sailfish emulator starts and some time later it closes, it looks  
like the message is something like Battery is empty, shutting down.


Is there anything to be done in this case?

Regards,
Carlos
___
SailfishOS.org Devel mailing list






___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type

2013-12-23 Thread Sylvain B .
Hi again Bob,

Just to let you know that your Map example is working fine (I like the blinking 
icon!) if you put it on the first page of your app, but if you put it on the 
second page, when you try to flick to the west, it actually pop the page off 
the stack.
I am not asking for a solution right now because I won't have much time to work 
on it in the following weeks, but I am just letting you know in case you work 
on your example :)

Last question while I am here: It may have already been asked, but is it 
possible to do Pinch actions on the emulator?

Thanks again for the help!
Sylvain.

From: sth...@hotmail.com
To: devel@lists.sailfishos.org
Date: Mon, 23 Dec 2013 00:23:09 +
Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type




Chris: I replied to you in private by error, so I am resaying here in the 
mailing-list: Thank you a lot, that's what I was missing!! It works now! I was 
sure that it was simple, but there is just not enough (not at all?) doc for Qt 
newbies like me =(

Bob: Wow, it may not be finished, but your doc is already great and describe 
exactly what I was missing! Thank you. And if you have time to complete your 
TODO section, that would be a super doc to put directly on SailfishOs.org! 
Thanks for sharing :)

-- 
Sylvain.

 Date: Sun, 22 Dec 2013 23:43:18 +0100
 From: christopher.l...@thurweb.ch
 To: devel@lists.sailfishos.org; sth...@hotmail.com
 Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
 
 Hi Sylvain
 
 I've just got it working!
 
 I added
 
 qt5-plugin-geoservices-nokia
 
 to the PkgBR and Requires sections of the Yaml file, et voila,  
 Belle Paris sur L'emulatuer 
 
 Have fun
 
 Chris
 
 
 Zitat von Sylvain B. sth...@hotmail.com:
 
 
 
 
  Hello,
 
  I come back here because I am definitely not able to display a simple Map :(
  What I have done is:
  - Take the HelloWorld example generated by QtCreator.
  - Replace the content of SecondPage.qml by the code below.
 
  And I just get an empty page with the following error message in the logs:
  QML Map: Error: Plugin does not support mapping.
  Error message: The geoservices provider is not supported.
  If I remove the Plugin, I get the same empty page but without the  
  error message.
  I have regenerated new token from here.com (I there a specific  
  option to set?)
 
  I don't know what I need to do to make it working, is it in the .pro file? 
  :(
  So I would really use either some tips or a working example.
 
  Thank you in advance!
 
  
 
  import QtQuick 2.0
  import Sailfish.Silica 1.0
  import QtLocation 5.0
  import QtPositioning 5.1
 
 
  Page {
  Map {
  anchors.fill: parent
  plugin : Plugin {
  name : nokia;
  parameters: [
  PluginParameter { name: app_id; value: xxx },
  PluginParameter { name: token; value: xxx }
  ]
  }
  center: QtPositioning.coordinate(48.856047, 2.353907) // Paris
  }
  }
 
  From: sailf...@jelica.se
  Date: Thu, 19 Dec 2013 15:50:14 +0100
  To: devel@lists.sailfishos.org
  Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type
 
  I have an example project showing a map and a location.Will try  
  publishing it online later tonight/tomorrow so you guys don?t have  
  to walk to Mordor and back like I did to get it working ;)
  //bob
 
  On 19 Dec 2013, at 14:45, Sthocs sth...@hotmail.com wrote:tw_bolek  
  tw_bolek@... writes:
 
 
  at Bolek, have you got it working?
 
  Yes, it does work this way. Thank you *VERY MUCH* Chris for your help!
  For my needs now it's even better than
  previously as on Harmattan I then had to use Qt.createQmlObject for what I
  needed to get.
 
  Thanks a lot!
 
  BTW. Do you perhaps now the URL of the site where one can register to get
  the API key to use Nokia Maps plugin?  If
  I try to use it without any key it says to go to
  https://api.developer.nokia.com but that URL just
  redirects to the main Nokia Developer page.  I can't find the right place
  to register...
 
  ___
  SailfishOS.org Devel mailing list
 
 
 
 
  Hello,
 
  I also wanted to use a Map in my application, and I am still struggling.
  I already figured out that:
  - We have to install QtLocation/QtPositioning in the SDK
  - We have to manually install them in the emulator (I just found out about
  pkcon and zypper)
  - We need to use QtPositioning.coordinate instead of Coordinate.
 
  But now, if I try to display the simplest Map, I just get a blank screen. I
  have a message telling me that there is an error with the Plugin I use (does
  not support something - sorry I don't have the precise error message here)
 
  I am sure it's something simple (some entry missing in the .pro?) but I
  could not find what yesterday, and I don't have so much time to search (It
  was really cool with Harmattan to have an example out of the box that we
  could just 

Re: [SailfishDevel] python development

2013-12-23 Thread Thomas Perl
2013/12/19 David Jensen davidjen...@usa.net:
 Nokia's original book on Meego featured, I think, Python as the development. I
 do not see this book on Amazon. However, almost none of the articles I have
 seen  relating to Jolla mention Python. I assumed Nokia believed Python was an
 ideal language for an open system that was easily modifiable by others.  I get
 the impression the language is C++. This is more difficult than Java and
 possibly also Objective C. How does Jolla expect their system to be adapted as
 open if the language developers have to deal with is C++, with Python a vague
 afterthought?

Python 3 and a QML Plugin that can be used to call Python code from
QML will be available soon in the repositories, we're testing
integration and making sure everything works and the API is stable. We
use Python 3 instead of Python 2, because Python 2 is going away
soon[1].

With that said, the language for native Sailfish user interfaces is
QML, which has a built-in JavaScript engine, and support for
JavaScript expressions and blocks. You can do native development
with QML and JavaScript alone, or go with the C++/QML/JS or
QML/JS/Python combo. There's nothing stopping you from linking against
any other dynamic language, you just have to write the binding / data
passing between QML (the UI layer) and your favorite language manually
(in C/C++).

HTH :)
Thomas

[1] http://www.python.org/dev/peps/pep-0404/
___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Harbour news

2013-12-23 Thread Thomas Perl
2013/12/19 Matt Austin m...@mattaustin.me.uk:
 On 18 December 2013 22:33, Thomas Perl th.p...@gmail.com wrote:
 2013/12/18  dcali...@free.fr:
 - libxml2. As far as I know, their API is quite stable now even if it was 
 not
 the case in the past (I remember having some trouble with it in 2003, but 
 it's
 history now !).

 I've added it to the list of libs to be considered. Let's see...

 Do you think it likely that some python libraries are likely to be
 considered too?

At the moment, I think the best way is to ship any additional Python
libraries you need with your app (install somewhere below
/usr/share/$APPNAME/). I think it's much work to start pulling in
Python libraries into the repositories and difficult to maintain them
there.

Because of the dynamic nature of Python, it's even harder to verify
apps don't break with OS/library updates compared to native C/C++
libraries (where one could at least do a static check for exported
symbols, etc..). Just providing the standard library as shipped with
Python 3 is relatively easy to maintain, and apps can then ship
different versions of modules they need.

We can of course provide some guidelines for how to best
package/bundle Python libraries (especially more complicated ones that
involve C extension modules) into an application's RPM package, and
make sure the bundling/packaging experience is as good as possible.


HTH :)
Thomas
___
SailfishOS.org Devel mailing list


[SailfishDevel] Booting from SD card

2013-12-23 Thread Oliver Dittmer

Ahoy,

Is it possible to boot a rescue system/second os from an sd card with 
the Jolla phone?

I have not yet found good documentation for this.

Cheers,
Oliver

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] SailfishOs Integration questions

2013-12-23 Thread Andrey Kozhevnikov

i see no problems with harbour.

On 24.12.2013 01:53, Gabriel Böhme wrote:

Hi,


thank you very much, for this answer, but will this be allowed in harbour
apps as well? Guess not. Will it be in the future? :)


Cheers Gabriel



--



Von meinem Nokia N9 gesendet



Andrey Kozhevnikov schrieb am 23.12.13 19:53:
you should create json file in subdirectory inside
/usr/share/jolla-settings/entries
then add qml page, preferable inside /usr/share/jolla-settings/pages
subdirectory

On 24.12.2013 00:00, jja...@gmail.com wrote:


Hi sailors,

I'm also interested (spesifically question 2)  to know  how can I make my
application to appear in the Jolla system Settings  Apps section. Thanks
for asking this, Winfried ;)

I am developing an app that uses QSettings to manage app-spesific
configuration and that handless nicely the persistence of settings in
default file-system locations. Now, it would be perfect tp expose those
settings to system Settings GUI.

Cheers,
-jukka

   On Mon Dec 23 2013 11:53:26 GMT+0200 (EET), winfried.dobbe@xmsnet.nlwrote:


Hi,

Two questions about making apps as much integrated as possible in
SailfishOs:

1) Is it possible to add notifications to the notification overview (swipe
up from bottom of phone) from my own app ?

2) What should I do to make my application's settings accessible from the
Settings app - Applications screen ?

thanks for any info,

Winfried

___
SailfishOS.org Devel mailing list


___
SailfishOS.org Devel mailing list



___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] Harbour news

2013-12-23 Thread Matt Austin
On 24 December 2013 06:15, Thomas Perl th.p...@gmail.com wrote:
 Because of the dynamic nature of Python, it's even harder to verify
 apps don't break with OS/library updates compared to native C/C++
 libraries (where one could at least do a static check for exported
 symbols, etc..). Just providing the standard library as shipped with
 Python 3 is relatively easy to maintain, and apps can then ship
 different versions of modules they need.

Hi Thomas. This is understandable - having Python available at all is fantastic.


 We can of course provide some guidelines for how to best
 package/bundle Python libraries (especially more complicated ones that
 involve C extension modules) into an application's RPM package, and
 make sure the bundling/packaging experience is as good as possible.

Any guides would be very welcome, as I come from a python and web
development background. Packaging is something I don't have much
experience at.


I've started making some general Sailfish  Python Development notes
on the Mer wiki:
https://wiki.merproject.org/wiki/Sailfish/Python_Development


Thanks again!


Matt.
___
SailfishOS.org Devel mailing list