[Sugar-devel] require some information from sugar to develop other plugins

Gonzalo Odiard godiard at sugarlabs.org
Mon Jul 28 16:46:57 EDT 2014


On Mon, Jul 28, 2014 at 4:30 PM, Puneet Kaur <puneet.gkaur at gmail.com> wrote:

> Hi all,
>
> As I was developing other cordova plugins, I require some information from
> sugar about the following :
>
> 1. Network connection - need to know what type of network the device is
> connected to - wifi, cellular, no connection
>

NetworkManager provide that information.

You can see at sugar/extensions/deviceicon/network.py
That is the code who keep updated the network device icon in the Sugar
frame.


>
> 2. Battery status - Watch the percentage of battery charged
>

You can see at sugar/extensions/deviceicon/battery.py


>
> 3. Geolocation - Fetching the latitude , longitude etc details from
> network
>
>
We don't have code to get that info.



> 4. Personalized Settings - Getting the prefered language etc
>
>
Languages are configured in sugar/extensions/cpsection/language/
all the code for the control panel is on  sugar/extensions/cpsection



> 5. Fetching the friends details
>
>
What information is needed in this case?


>
> Please let me know how I can retrieve all these. Kindly note I need to
> plug in these info into a program so just getting to know from the output
> screen wont do. I need to know the file / program in the sugar shell by the
> help of which I can retrieve all these values.
>
>
>
-- 
Gonzalo Odiard

SugarLabs - Software for children learning
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20140728/52430f38/attachment.html>


More information about the Sugar-devel mailing list