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

Puneet Kaur puneet.gkaur at gmail.com
Tue Jul 29 03:29:48 EDT 2014


On Tue, Jul 29, 2014 at 2:16 AM, Gonzalo Odiard <godiard at sugarlabs.org>
wrote:

>
>
>
> 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.
>

Is there some activity for the same ?

>
>
>
>> 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?
>

the names of a person's friends , and their details ( somewhat like
contacts we have in phone , map to the friends in sugar)

>
>
>>
>> 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/20140729/565d8faf/attachment.html>


More information about the Sugar-devel mailing list