Re: [Server-devel] [XSCE] xovis on the XSCE 5.0

2014-06-24 Thread Tim Moody
Here's where I'm stuck.  There is 
https://github.com/martasd/xsce/tree/feature_xovis and there is  
https://github.com/martasd/xovis/tree/master (and several other branches).  
There is also https://github.com/martasd/xo-stats (with several branches).

Martin created a PR for the first , but there have been additions to the 
second, as Sameer noted, since the PR and I don’t think they are reflected in 
the xsce branch.  I think Martin or someone familiar with the changes needs to 
modify the xsce branch so it can be tested and merged.  In fact I think the 
third is what is cloned by the existing PR.  Should tasks/main.yml be based on 
https://github.com/martasd/xovis/blob/master/scripts/install_xovis.sh?  It 
clones the xovis repo, not xo-stats.

In terms of the configuration for xovis on xsce, Martin included a 
vars/main.yml to hold values like the name of the deployment (which I think is 
supposed to appear on the charts) and user name and password for admin.

Tim
-Original Message- 
From: Sameer Verma 
Sent: Tuesday, June 24, 2014 1:47 PM 
To: xsce-devel 
Cc: XS Devel 
Subject: Re: [XSCE] xovis on the XSCE 5.0 

On Thu, Jun 19, 2014 at 3:38 AM, Martin Dluhos  wrote:
> On 06/17/2014 08:49 PM, Sameer Verma wrote:
>> On Tue, Jun 17, 2014 at 1:11 AM, Martin Dluhos  wrote:
>>> When installing with install_xovis.sh script, the script will output the 
>>> command
>>> that you need to run. Since the db was created using an admin account, you 
>>> need
>>> to pass the 'server' flag to the command including the couch credentials:
>>>
>>> ./process_journal_stats.py dbinsert xovis --deployment olpc --server
>>> http://admin:admin@127.0.0.1:5984
>>>
>>
>> That works! https://twitter.com/sameerverma/status/478970452757327874
>
> Very nice!
>
>
>

So, here are some observations:

XSCE should pull to get the latest from xovis (Tim Moody has already
written about this). I don't see the add deployment [+] button and
spider charts on the XSCE version.

Add methods to pull from sugar-stats (currently stores data in RRD
format, but rrdtool does the export in versions 1.4.6 and above) and
harvest (already has serialized json). Also add methods to read from
Sugar backups done using the Backup activity. Many smaller projects
have backups done by hand.

We'll need some auth layer above xovis. If it's on XSCE, then XSCE
should handle this, but if not, there should be some basic auth
mechanism to do roles/permissions for teacher, principal, etc.

Resolve the userid:password for couchdb (instead of admin:admin) in
ansible, so it installs with an account other than admin.

A way to edit out the "OLENepal" header from all charts.

Maybe we spin a VM with CentOS and xovis (call it the visualizer!)
where you can plug in a USB stick or external drive with backups, and
visualize.

Some basic documentation on the use of xovis and interpretation of
data for teachers, principals, etc.

Something that's quite popular with many similar projects (deployment
of several mobile computers) is "How many laptops showed up at school
today?". There are a few different ways this can be done (dhcp log,
Journal data), but I'd like to discuss this a bit more.

I'll post more as I think of other ideas.

cheers,
Sameer___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] [XSCE] xovis on the XSCE 5.0

2014-06-24 Thread Sameer Verma
On Thu, Jun 19, 2014 at 3:38 AM, Martin Dluhos  wrote:
> On 06/17/2014 08:49 PM, Sameer Verma wrote:
>> On Tue, Jun 17, 2014 at 1:11 AM, Martin Dluhos  wrote:
>>> When installing with install_xovis.sh script, the script will output the 
>>> command
>>> that you need to run. Since the db was created using an admin account, you 
>>> need
>>> to pass the 'server' flag to the command including the couch credentials:
>>>
>>> ./process_journal_stats.py dbinsert xovis --deployment olpc --server
>>> http://admin:admin@127.0.0.1:5984
>>>
>>
>> That works! https://twitter.com/sameerverma/status/478970452757327874
>
> Very nice!
>
>
>

So, here are some observations:

XSCE should pull to get the latest from xovis (Tim Moody has already
written about this). I don't see the add deployment [+] button and
spider charts on the XSCE version.

Add methods to pull from sugar-stats (currently stores data in RRD
format, but rrdtool does the export in versions 1.4.6 and above) and
harvest (already has serialized json). Also add methods to read from
Sugar backups done using the Backup activity. Many smaller projects
have backups done by hand.

We'll need some auth layer above xovis. If it's on XSCE, then XSCE
should handle this, but if not, there should be some basic auth
mechanism to do roles/permissions for teacher, principal, etc.

Resolve the userid:password for couchdb (instead of admin:admin) in
ansible, so it installs with an account other than admin.

A way to edit out the "OLENepal" header from all charts.

Maybe we spin a VM with CentOS and xovis (call it the visualizer!)
where you can plug in a USB stick or external drive with backups, and
visualize.

Some basic documentation on the use of xovis and interpretation of
data for teachers, principals, etc.

Something that's quite popular with many similar projects (deployment
of several mobile computers) is "How many laptops showed up at school
today?". There are a few different ways this can be done (dhcp log,
Journal data), but I'd like to discuss this a bit more.

I'll post more as I think of other ideas.

cheers,
Sameer
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] [XSCE] sugarstats and xovis

2014-06-24 Thread Sameer Verma
On Mon, Jun 23, 2014 at 9:32 PM, Martin Abente
 wrote:
>
>
>
> On Sun, Jun 22, 2014 at 9:43 PM, Sameer Verma  wrote:
>>
>> On Sun, Jun 22, 2014 at 6:12 PM, Walter Bender 
>> wrote:
>> >
>> >
>> > On Sun, Jun 22, 2014 at 6:33 PM, Sameer Verma  wrote:
>> >>
>> >> On Sun, Jun 22, 2014 at 7:41 AM, Tim Moody  wrote:
>> >> > does xovis supersede sugarstats?
>> >>
>> >>
>> >> From what I understand, sugar-stats runs at the dbus level as opposed
>> >> to the Journal metadata, which pulls data from the Journal backups.
>> >> xovis relies on data that it can get as json, pushed into couchdb. So,
>> >> while right now xovis uses json from Journal backups, it could be
>> >> modified to do so from the RRD files that sugar-stats produces. That
>> >> said, the data collected by sugar-stats is different, and needs to be
>> >> filtered accordingly before it can be used sensibly by xovis.
>> >
>> >
>> > And there is the Harvest system, which for the most part relies on data
>> > in
>> > Journal.
>> >
>>
>> Yes, in fact we had conversations with Martin Abente about Harvest,
>> and the possibility that the Harvest data could be serialized (json)
>> and pushed into xovis. Are there any samples of Harvest data that we
>> can look at some place?
>
>
>
> Hello Sameer,
>
> The harvest-client serializes (using json) a subset of journal-objects
> metadata and then sends it to the harvest-server, which is basically a
> web-service plus a MySQL back-end.
>

Great! Then we can perhaps add a method to process_journal_stats.py in
XOVis to support Harvest.

> I need to update this documentation [1] (will do this tomorrow early), but
> you can get an idea of what fields are used. If you need an example of the
> serialized format for the client-server communication you can look at [2].
> The bits that handle the serialization process can be found here [3], which
> is meant to be read.
>

OK. Will take a look.

Sameer

> Regards,
> Martin.
>
> Refs:
> 1. http://wiki.sugarlabs.org/go/Harvest
> 2. https://github.com/tchx84/harvest-server/blob/master/test/data/data.json
> 3.
> https://github.com/tchx84/harvest-client/blob/master/extensions/webservice/harvest/harvest/crop.py
>
>>
>>
>> Sameer
>>
>> > -walter
>> >>
>> >>
>> >> We have RRD files from Bhagmalpur, India, but we haven't done much
>> >> with it as yet. I understand that AU may have a boatload of
>> >> sugar-stats data as well, but not sure if they got around to doing
>> >> anything with it.
>> >>
>> >> cheers,
>> >> Sameer
>> >> --
>> >> Sameer Verma, Ph.D.
>> >> Professor, Information Systems
>> >> San Francisco State University
>> >> http://verma.sfsu.edu/
>> >> http://commons.sfsu.edu/
>> >> http://olpcsf.org/
>> >> http://olpcjamaica.org.jm/
>> >> ___
>> >> Server-devel mailing list
>> >> Server-devel@lists.laptop.org
>> >> http://lists.laptop.org/listinfo/server-devel
>> >
>> >
>> >
>> >
>> > --
>> > Walter Bender
>> > Sugar Labs
>> > http://www.sugarlabs.org
>>
>>
>>
>> --
>> Sameer Verma, Ph.D.
>> Professor, Information Systems
>> San Francisco State University
>> http://verma.sfsu.edu/
>> http://commons.sfsu.edu/
>> http://olpcsf.org/
>> http://olpcjamaica.org.jm/
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel