Re: travel-diary a simple GPS application

2009-07-24 Thread Risto H. Kurppa
Thanks!

I can't promise I have time to try this or move it to the wiki before
travelling - anyone feel free to write it there  try it out!


r


On Thu, Jul 23, 2009 at 4:49 PM, Christian Rübchristian.r...@gmx.net wrote:

  wiki page: http://wiki.openmoko.org/wiki/Travel_Diary

 Christian, well done!

 I'll be travelling on Monday and would like to integrate this somehow
 on my wordpress blog or something. Don't have the time right now to
 check but is the process documented somewhere (how to set up the .cgi
 script etc etc on the server etc?). In what formats can I get the
 reports out? Is anyone of you running this now somewhere, could you
 please link the URL?

 Thanks!

 Hi Risto,

 how about this - I try to explain to you how to set up everything and you add
 this information to  the wiki page - this way it is written from a user's view
 what might help other users :)

 Get my CGI examples from here [1] and add a password file in the same 
 directory
 but make sure it's inaccessible from web through a .htaccess file [2] and
 create a subdirectory data (this is where your diary files will be stored).

 On your Freerunner you have to configure the send script (it's a really easy
 shell script), to match your username/password and CGI script on your server.

 So what happens is:
 You execute the send script on your moko (using the button) and it will send
 your file via curl to your server. The file will be stored in data/

 The diary.kml file is a perl script as well that creates a kml. file (e.g. you
 can link it directly to google maps). To make it work you have to define .kml
 files as CGI in your webserver config [2].

 What happens if someone downloads the diary.kml file:
 The script is executed on your webserver and offers a real kml file for
 download. So all you need to do is use the link to your kml file somewhere.

 Just a note on the .htaccess file. It alows you to execute scripts in current
 directory and tells your web server to execute .kml files. Access to passwd 
 and
 data are not allowed (to protect your data).

 If you need any more help or I did not express myself clearly enough just let
 me know. I hope at some point someone will understand what all this is for :)

 [1] http://git.senfdax.de/?p=travel-diary;a=tree;f=server_example
 [2] exmaple .htaccess:
 Options ExecCGI
 AddHandler cgi-script .kml
 RewriteRule ^passwd$ - [forbidden]
 RewriteRule ^data/.*$ - [forbidden]

 Cheers,
  Christian

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community





-- 
| risto h. kurppa
| risto at kurppa dot fi
| http://risto.kurppa.fi

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: travel-diary a simple GPS application

2009-07-23 Thread Risto H. Kurppa
 wiki page: http://wiki.openmoko.org/wiki/Travel_Diary

Christian, well done!

I'll be travelling on Monday and would like to integrate this somehow
on my wordpress blog or something. Don't have the time right now to
check but is the process documented somewhere (how to set up the .cgi
script etc etc on the server etc?). In what formats can I get the
reports out? Is anyone of you running this now somewhere, could you
please link the URL?

Thanks!



r

-- 
| risto h. kurppa
| risto at kurppa dot fi
| http://risto.kurppa.fi

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: travel-diary a simple GPS application

2009-07-23 Thread Christian Rüb

  wiki page: http://wiki.openmoko.org/wiki/Travel_Diary

 Christian, well done!

 I'll be travelling on Monday and would like to integrate this somehow
 on my wordpress blog or something. Don't have the time right now to
 check but is the process documented somewhere (how to set up the .cgi
 script etc etc on the server etc?). In what formats can I get the
 reports out? Is anyone of you running this now somewhere, could you
 please link the URL?

 Thanks!

Hi Risto,

how about this - I try to explain to you how to set up everything and you add 
this information to  the wiki page - this way it is written from a user's view 
what might help other users :)

Get my CGI examples from here [1] and add a password file in the same directory 
but make sure it's inaccessible from web through a .htaccess file [2] and 
create a subdirectory data (this is where your diary files will be stored).

On your Freerunner you have to configure the send script (it's a really easy 
shell script), to match your username/password and CGI script on your server.

So what happens is:
You execute the send script on your moko (using the button) and it will send 
your file via curl to your server. The file will be stored in data/

The diary.kml file is a perl script as well that creates a kml. file (e.g. you 
can link it directly to google maps). To make it work you have to define .kml 
files as CGI in your webserver config [2].

What happens if someone downloads the diary.kml file:
The script is executed on your webserver and offers a real kml file for 
download. So all you need to do is use the link to your kml file somewhere.

Just a note on the .htaccess file. It alows you to execute scripts in current 
directory and tells your web server to execute .kml files. Access to passwd and 
data are not allowed (to protect your data).

If you need any more help or I did not express myself clearly enough just let 
me know. I hope at some point someone will understand what all this is for :)

[1] http://git.senfdax.de/?p=travel-diary;a=tree;f=server_example
[2] exmaple .htaccess:
Options ExecCGI
AddHandler cgi-script .kml
RewriteRule ^passwd$ - [forbidden]
RewriteRule ^data/.*$ - [forbidden]

Cheers,
 Christian

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: travel-diary a simple GPS application

2009-07-19 Thread Christian Rüb
wiki page: http://wiki.openmoko.org/wiki/Travel_Diary

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: travel-diary a simple GPS application

2009-07-12 Thread Risto H. Kurppa
On Thu, Jul 9, 2009 at 9:50 PM, Christian Rübchristian.r...@gmx.net wrote:
 should be fixed now:

 r...@om-gta02 ~ $ opkg info travel-diary
 Package: travel-diary
 Version: 0.0+git20+3d7fe3555cb57ef504daece949c7bbf5d28cdcb9-r1
 Depends: python-pygtk, python-misc, bash, curl
 ...

 Can you test again and tell me if it is OK now or if there is still something 
 missing?
 Thanks

Yes, seems to install also python-misc and it starts with no problems.
Now I only need to find out how to work with the server scripts...


r


-- 
| risto h. kurppa
| risto at kurppa dot fi
| http://risto.kurppa.fi

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: travel-diary a simple GPS application

2009-07-09 Thread Sven Klomp
Hi Christian,

good to hear that the idea isn't dead! Looks far more solid than my few lines 
of code :-)
I will give it a try this weekend. In the meantime, screenshots would be very 
interesting...

Sven

On Thursday 09 July 2009 00:00:52 Christian Rüb wrote:
 Hi,
 
 a while ago Sven send us his scripts to store places and some info and send 
 all this to a server which then creates a kml file. [0]
 
 I made a litte GUI for this (actually it is more a rewrite ;-)) that you can 
 find here:
 http://openmoko.senfdax.de/shr-unstable/travel-diary_0.0+git20+3d7fe3555cb57ef504daece949c7bbf5d28cdcb9-r0_armv4t.ipk
 
 It also contains a sample script to send you data to your web server via 
 curl. To really use this you need to set up the corresponding CGIs on your 
 server to receive your diary file and and another one to make the kml 
 download for you visitors.
 You can find examples (they are a point to start - nothing more) in the doc 
 package [2] or view/download them from the git repo [3].
 
 For distribution integration, here is my bb recipe [4]
 
 [0] http://n2.nabble.com/Stress-test-of-my-Freerunner-tp3038658p3045050.html
 [1] 
 http://openmoko.senfdax.de/shr-unstable/travel-diary_0.0+git20+3d7fe3555cb57ef504daece949c7bbf5d28cdcb9-r0_armv4t.ipk
 [2] 
 http://openmoko.senfdax.de/shr-unstable/travel-diary-doc_0.0+git20+3d7fe3555cb57ef504daece949c7bbf5d28cdcb9-r0_armv4t.ipk
 [3] http://git.senfdax.de/?p=travel-diary;a=summary
 [4] 
 http://git.senfdax.de/?p=oe_recipes;a=blob_plain;f=travel-diary/travel-diary_git.bb;hb=HEAD
 
 Feedback and questions welcome.
 
 Cheers,
  Christian
 
 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community
 

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: travel-diary a simple GPS application

2009-07-09 Thread Risto H. Kurppa
Awesome, this sounds like something I'll be using soon. I'll test it
soon but as Sven already said, a screenshot would be appreciated!

r



On Thu, Jul 9, 2009 at 9:27 AM, Sven Klompm...@klomp.eu wrote:
 Hi Christian,

 good to hear that the idea isn't dead! Looks far more solid than my few lines 
 of code :-)
 I will give it a try this weekend. In the meantime, screenshots would be very 
 interesting...

 Sven

 On Thursday 09 July 2009 00:00:52 Christian Rüb wrote:
 Hi,

 a while ago Sven send us his scripts to store places and some info and send 
 all this to a server which then creates a kml file. [0]

 I made a litte GUI for this (actually it is more a rewrite ;-)) that you can 
 find here:
 http://openmoko.senfdax.de/shr-unstable/travel-diary_0.0+git20+3d7fe3555cb57ef504daece949c7bbf5d28cdcb9-r0_armv4t.ipk

 It also contains a sample script to send you data to your web server via 
 curl. To really use this you need to set up the corresponding CGIs on your 
 server to receive your diary file and and another one to make the kml 
 download for you visitors.
 You can find examples (they are a point to start - nothing more) in the doc 
 package [2] or view/download them from the git repo [3].

 For distribution integration, here is my bb recipe [4]

 [0] http://n2.nabble.com/Stress-test-of-my-Freerunner-tp3038658p3045050.html
 [1] 
 http://openmoko.senfdax.de/shr-unstable/travel-diary_0.0+git20+3d7fe3555cb57ef504daece949c7bbf5d28cdcb9-r0_armv4t.ipk
 [2] 
 http://openmoko.senfdax.de/shr-unstable/travel-diary-doc_0.0+git20+3d7fe3555cb57ef504daece949c7bbf5d28cdcb9-r0_armv4t.ipk
 [3] http://git.senfdax.de/?p=travel-diary;a=summary
 [4] 
 http://git.senfdax.de/?p=oe_recipes;a=blob_plain;f=travel-diary/travel-diary_git.bb;hb=HEAD

 Feedback and questions welcome.

 Cheers,
  Christian

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community


 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community





-- 
| risto h. kurppa
| risto at kurppa dot fi
| http://risto.kurppa.fi

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: travel-diary a simple GPS application

2009-07-09 Thread Christian Rüb
sorry about this...

here you go:

http://openmoko.senfdax.de/screenshots/

 Awesome, this sounds like something I'll be using soon. I'll test it
 soon but as Sven already said, a screenshot would be appreciated!

 r

 On Thu, Jul 9, 2009 at 9:27 AM, Sven Klompm...@klomp.eu wrote:
  Hi Christian,
 
  good to hear that the idea isn't dead! Looks far more solid than my few
  lines of code :-) I will give it a try this weekend. In the meantime,
  screenshots would be very interesting...
 
  Sven
 
  On Thursday 09 July 2009 00:00:52 Christian Rüb wrote:
  Hi,
 
  a while ago Sven send us his scripts to store places and some info and
  send all this to a server which then creates a kml file. [0]
 
  I made a litte GUI for this (actually it is more a rewrite ;-)) that you
  can find here:
  http://openmoko.senfdax.de/shr-unstable/travel-diary_0.0+git20+3d7fe3555
 cb57ef504daece949c7bbf5d28cdcb9-r0_armv4t.ipk
 
  It also contains a sample script to send you data to your web server via
  curl. To really use this you need to set up the corresponding CGIs on
  your server to receive your diary file and and another one to make the
  kml download for you visitors. You can find examples (they are a point
  to start - nothing more) in the doc package [2] or view/download them
  from the git repo [3].
 
  For distribution integration, here is my bb recipe [4]
 
  [0]
  http://n2.nabble.com/Stress-test-of-my-Freerunner-tp3038658p3045050.html
  [1]
  http://openmoko.senfdax.de/shr-unstable/travel-diary_0.0+git20+3d7fe3555
 cb57ef504daece949c7bbf5d28cdcb9-r0_armv4t.ipk [2]
  http://openmoko.senfdax.de/shr-unstable/travel-diary-doc_0.0+git20+3d7fe
 3555cb57ef504daece949c7bbf5d28cdcb9-r0_armv4t.ipk [3]
  http://git.senfdax.de/?p=travel-diary;a=summary
  [4]
  http://git.senfdax.de/?p=oe_recipes;a=blob_plain;f=travel-diary/travel-d
 iary_git.bb;hb=HEAD
 
  Feedback and questions welcome.
 
  Cheers,
   Christian
 
  ___
  Openmoko community mailing list
  community@lists.openmoko.org
  http://lists.openmoko.org/mailman/listinfo/community
 
  ___
  Openmoko community mailing list
  community@lists.openmoko.org
  http://lists.openmoko.org/mailman/listinfo/community


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: travel-diary a simple GPS application

2009-07-09 Thread Risto H. Kurppa
On OM2009:

r...@om-gta02:~# DISPLAY=:0 travel-diary.py

(process:2313): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Traceback (most recent call last):
  File /usr/bin/travel-diary.py, line 15, in module
import fileinput
ImportError: No module named fileinput
r...@om-gta02:~# opkg list|grep fileinput

Any ideas?


r

-- 
| risto h. kurppa
| risto at kurppa dot fi
| http://risto.kurppa.fi

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: travel-diary a simple GPS application

2009-07-09 Thread Christian Rüb
 On OM2009:

 r...@om-gta02:~# DISPLAY=:0 travel-diary.py

 (process:2313): Gtk-WARNING **: Locale not supported by C library.
 Using the fallback 'C' locale.
 Traceback (most recent call last):
   File /usr/bin/travel-diary.py, line 15, in module
 import fileinput
 ImportError: No module named fileinput
 r...@om-gta02:~# opkg list|grep fileinput

 Any ideas?


 r

fileinput.py is in python-misc - will add this as dependency and rebuild 
tonight.

Thanks for reporting


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: travel-diary a simple GPS application

2009-07-09 Thread kimaidou
hum... Is there a wiki page for this project, so that we can follow the
activity without being all day on the mailing list ?
Thanks very much
Kimaidou

2009/7/9 Christian Rüb christian.r...@gmx.net

  On OM2009:
 
  r...@om-gta02:~# DISPLAY=:0 travel-diary.py
 
  (process:2313): Gtk-WARNING **: Locale not supported by C library.
  Using the fallback 'C' locale.
  Traceback (most recent call last):
File /usr/bin/travel-diary.py, line 15, in module
  import fileinput
  ImportError: No module named fileinput
  r...@om-gta02:~# opkg list|grep fileinput
 
  Any ideas?
 
 
  r

 fileinput.py is in python-misc - will add this as dependency and rebuild
 tonight.

 Thanks for reporting


 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: travel-diary a simple GPS application

2009-07-09 Thread Christian Rüb
No, there is not. I just made it being inspired by Sven's scripts. But if 
someone wants to - feel free to put i on the wiki.

I have not planned any more features as it does what I need. I mainly posted 
here to see if there is any interest in such an app and if people find bugs 
that need urgent fixing.

currently I have the git for sources [1]
a feed to install [2]
and some screenshots [3]

My current interest is more towards finishing my (simple) dive program and 
start a more generic one afterwards. So if there are any scuba divers - feel 
free to join :)

[1] http://git.senfdax.de/?p=travel-diary;a=summary
[2] http://openmoko.senfdax.de/shr-unstable/
[3] http://openmoko.senfdax.de/screenshots/

Cheers,
 Christian

 hum... Is there a wiki page for this project, so that we can follow the
 activity without being all day on the mailing list ?
 Thanks very much
 Kimaidou

 2009/7/9 Christian Rüb christian.r...@gmx.net

   On OM2009:
  
   r...@om-gta02:~# DISPLAY=:0 travel-diary.py
  
   (process:2313): Gtk-WARNING **: Locale not supported by C library.
   Using the fallback 'C' locale.
   Traceback (most recent call last):
 File /usr/bin/travel-diary.py, line 15, in module
   import fileinput
   ImportError: No module named fileinput
   r...@om-gta02:~# opkg list|grep fileinput
  
   Any ideas?
  
  
   r
 
  fileinput.py is in python-misc - will add this as dependency and rebuild
  tonight.
 
  Thanks for reporting
 
 
  ___
  Openmoko community mailing list
  community@lists.openmoko.org
  http://lists.openmoko.org/mailman/listinfo/community


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: travel-diary a simple GPS application

2009-07-09 Thread kimaidou
ok for this
thanks for the great stuff you put on your repository. I will add it to my
feeds.


2009/7/9 Christian Rüb christian.r...@gmx.net

 No, there is not. I just made it being inspired by Sven's scripts. But if
 someone wants to - feel free to put i on the wiki.

 I have not planned any more features as it does what I need. I mainly
 posted
 here to see if there is any interest in such an app and if people find bugs
 that need urgent fixing.

 currently I have the git for sources [1]
 a feed to install [2]
 and some screenshots [3]

 My current interest is more towards finishing my (simple) dive program and
 start a more generic one afterwards. So if there are any scuba divers -
 feel
 free to join :)

 [1] http://git.senfdax.de/?p=travel-diary;a=summary
 [2] http://openmoko.senfdax.de/shr-unstable/
 [3] http://openmoko.senfdax.de/screenshots/

 Cheers,
  Christian

  hum... Is there a wiki page for this project, so that we can follow the
  activity without being all day on the mailing list ?
  Thanks very much
  Kimaidou
 
  2009/7/9 Christian Rüb christian.r...@gmx.net
 
On OM2009:
   
r...@om-gta02:~# DISPLAY=:0 travel-diary.py
   
(process:2313): Gtk-WARNING **: Locale not supported by C library.
Using the fallback 'C' locale.
Traceback (most recent call last):
  File /usr/bin/travel-diary.py, line 15, in module
import fileinput
ImportError: No module named fileinput
r...@om-gta02:~# opkg list|grep fileinput
   
Any ideas?
   
   
r
  
   fileinput.py is in python-misc - will add this as dependency and
 rebuild
   tonight.
  
   Thanks for reporting
  
  
   ___
   Openmoko community mailing list
   community@lists.openmoko.org
   http://lists.openmoko.org/mailman/listinfo/community


 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


RE: travel-diary a simple GPS application

2009-07-09 Thread Russell Dwiggins
And an app for my dive computer!!  Fantastic! :)

Russell Dwiggins
undrwa...@verizon.net
(562)761-1819
-Original Message-
From: community-boun...@lists.openmoko.org
[mailto:community-boun...@lists.openmoko.org] On Behalf Of Christian Rüb
Sent: Thursday, July 09, 2009 2:11 AM
To: List for Openmoko community discussion
Subject: Re: travel-diary a simple GPS application

sorry about this...

here you go:

http://openmoko.senfdax.de/screenshots/

 Awesome, this sounds like something I'll be using soon. I'll test it
 soon but as Sven already said, a screenshot would be appreciated!

 r

 On Thu, Jul 9, 2009 at 9:27 AM, Sven Klompm...@klomp.eu wrote:
  Hi Christian,
 
  good to hear that the idea isn't dead! Looks far more solid than my few
  lines of code :-) I will give it a try this weekend. In the meantime,
  screenshots would be very interesting...
 
  Sven
 
  On Thursday 09 July 2009 00:00:52 Christian Rüb wrote:
  Hi,
 
  a while ago Sven send us his scripts to store places and some info and
  send all this to a server which then creates a kml file. [0]
 
  I made a litte GUI for this (actually it is more a rewrite ;-)) that
you
  can find here:
 
http://openmoko.senfdax.de/shr-unstable/travel-diary_0.0+git20+3d7fe3555
 cb57ef504daece949c7bbf5d28cdcb9-r0_armv4t.ipk
 
  It also contains a sample script to send you data to your web server
via
  curl. To really use this you need to set up the corresponding CGIs on
  your server to receive your diary file and and another one to make the
  kml download for you visitors. You can find examples (they are a point
  to start - nothing more) in the doc package [2] or view/download them
  from the git repo [3].
 
  For distribution integration, here is my bb recipe [4]
 
  [0]
 
http://n2.nabble.com/Stress-test-of-my-Freerunner-tp3038658p3045050.html
  [1]
 
http://openmoko.senfdax.de/shr-unstable/travel-diary_0.0+git20+3d7fe3555
 cb57ef504daece949c7bbf5d28cdcb9-r0_armv4t.ipk [2]
 
http://openmoko.senfdax.de/shr-unstable/travel-diary-doc_0.0+git20+3d7fe
 3555cb57ef504daece949c7bbf5d28cdcb9-r0_armv4t.ipk [3]
  http://git.senfdax.de/?p=travel-diary;a=summary
  [4]
 
http://git.senfdax.de/?p=oe_recipes;a=blob_plain;f=travel-diary/travel-d
 iary_git.bb;hb=HEAD
 
  Feedback and questions welcome.
 
  Cheers,
   Christian
 
  ___
  Openmoko community mailing list
  community@lists.openmoko.org
  http://lists.openmoko.org/mailman/listinfo/community
 
  ___
  Openmoko community mailing list
  community@lists.openmoko.org
  http://lists.openmoko.org/mailman/listinfo/community


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community

Checked by AVG - www.avg.com 
Version: 8.5.375 / Virus Database: 270.13.5/2220 - Release Date: 07/05/09
17:54:00


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: travel-diary a simple GPS application

2009-07-09 Thread Christian Rüb
Am Donnerstag, 9. Juli 2009 schrieb Christian Rüb:
  On OM2009:
 
  r...@om-gta02:~# DISPLAY=:0 travel-diary.py
 
  (process:2313): Gtk-WARNING **: Locale not supported by C library.
  Using the fallback 'C' locale.
  Traceback (most recent call last):
File /usr/bin/travel-diary.py, line 15, in module
  import fileinput
  ImportError: No module named fileinput
  r...@om-gta02:~# opkg list|grep fileinput
 
  Any ideas?
 
 
  r
 
 fileinput.py is in python-misc - will add this as dependency and rebuild 
 tonight.
 
 Thanks for reporting

should be fixed now:

r...@om-gta02 ~ $ opkg info travel-diary
Package: travel-diary
Version: 0.0+git20+3d7fe3555cb57ef504daece949c7bbf5d28cdcb9-r1
Depends: python-pygtk, python-misc, bash, curl
...

Can you test again and tell me if it is OK now or if there is still something 
missing?
Thanks

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community