maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [DEVEL] Saera: Siri clone for Maemo5, Harmattan and Sailfish OS (https://talk.maemo.org/showthread.php?t=84753)

taixzo 2012-06-15 22:24

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
Quote:

Originally Posted by safoo (Post 1222509)
whats wrong i am doing?

Two things: You're using the i386 archive I posted, and you're not in the right directory. Download the .deb from first post (it should be called saera_0.1-0_all.deb). Save this to "Nokia N900". Then, in xterm:

Code:

root
cd /home/user/MyDocs
dpkg -i saera_0.1-0_all.deb


safoo 2012-06-15 22:38

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
Quote:

Originally Posted by taixzo (Post 1222514)
Two things: You're using the i386 archive I posted, and you're not in the right directory. Download the .deb from first post (it should be called saera_0.1-0_all.deb). Save this to "Nokia N900". Then, in xterm:

Code:

root
cd /home/user/MyDocs
dpkg -i saera_0.1-0_all.deb


i got this



BusyBox v1.20.1 (Debian 1.20.1power1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ root


BusyBox v1.20.1 (Debian 1.20.1power1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# root
root is not in the sudoers file. This incident will be reported.
Nokia-N900:~# cd /home/user/MyDocs
Nokia-N900:/home/user/MyDocs# dpkg -i saera_0.1-0_all.debBusyBox v1.20.1 (Debian 1.20.1power1) multi-call binary.

Usage: sendmail [OPTIONS] [RECIPIENT_EMAIL]...

Read email from stdin and send it

Standard options:
-t Read additional recipients from message body
-f SENDER Sender (required)
-o OPTIONS Various options. -oi implied, others are ignored
-i -oi synonym. implied and ignored

Busybox specific options:
-v Verbose
-w SECS Network timeout
-H 'PROG ARGS' Run connection helper
Examples:
-H 'exec openssl s_client -quiet -tls1 -starttls smtp
-connect smtp.gmail.com:25' <email.txt
[4<username_and_passwd.txt | -auUSER -apPASS]
-H 'exec openssl s_client -quiet -tls1
-connect smtp.gmail.com:465' <email.txt
[4<username_and_passwd.txt | -auUSER -apPASS]
-S HOST[:PORT] Server
-auUSER Username for AUTH LOGIN
-apPASS Password for AUTH LOGIN

Other options are silently ignored; -oi -t is implied
Use makemime to create emails with attachments

godofwar424 2012-06-15 22:45

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
Quote:

Originally Posted by taixzo (Post 1222510)
If someone would help with Spanish there would be a Spanish translation. I don't know Spanish myself; I only know English and German, and SolarisSixth is translating it into Portuguese.

I think you forgot that Alephito already translated it into Spanish :p

http://talk.maemo.org/showpost.php?p...&postcount=120

Quote:

Originally Posted by alephito (Post 1220628)
Here you are, Taixzo. The Spanish translation.

Now, where is my N9 version of Saera?

:D

If you need a revision or something, just let me know.


safoo 2012-06-15 22:50

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
Quote:

Originally Posted by taixzo (Post 1222514)
Two things: You're using the i386 archive I posted, and you're not in the right directory. Download the .deb from first post (it should be called saera_0.1-0_all.deb). Save this to "Nokia N900". Then, in xterm:

Code:

root
cd /home/user/MyDocs
dpkg -i saera_0.1-0_all.deb


finally i got it.. many thanks to u..



BusyBox v1.20.1 (Debian 1.20.1power1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

~ $ root


BusyBox v1.20.1 (Debian 1.20.1power1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

Nokia-N900:~# cd /home/user/MyDocs
Nokia-N900:/home/user/MyDocs# dpkg -i saera_0.1-0_all.deb
Selecting previously deselected package saera.
(Reading database ... 28326 files and directories currently installed.)
Unpacking saera (from saera_0.1-0_all.deb) ...
Setting up saera (0.1-0) ...
generating *.pyc files
Listing /opt/saera ...
Listing /opt/saera/model ...
Compiling /opt/saera/portrait.py ...
Compiling /opt/saera/saera.py ...
/opt/saera/saera.py:189: SyntaxWarning: name 'able_to_listen' is used prior to global declaration
global able_to_listen
Compiling /opt/saera/saera_processing.py ...
Listing /opt/saera/sentences ...
Compiling /opt/saera/sentences/sentences_portuguese.py ...
Nokia-N900:/home/user/MyDocs#

bignutbrown 2012-06-15 22:58

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
Hi. I just tried installing and got this error. Please can someone point me in the right direction?

file /var/lib/dpkg/tmp.c1/digsigsums cannot be opened
No digsigsums file..
....
then lots of

not in digsigsums -- warning

dpkg: dependency problems prevent configuration of saera..

Package pocketsphinx-utils is not installed
and such like.

I copied the file from the first post and placed in N9

s4br0s0 2012-06-15 23:03

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
Quote:

Originally Posted by bignutbrown (Post 1222528)
I copied the file from the first post and placed in N9

This is for N900.

Greetings

taixzo 2012-06-15 23:08

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
Quote:

Originally Posted by godofwar424 (Post 1222522)
I think you forgot that Alephito already translated it into Spanish :p

http://talk.maemo.org/showpost.php?p...&postcount=120

Oops, I missed that. :o I'll add that in.

Video of Saera running:

http://www.youtube.com/watch?v=ghVOH-6X1yg

Quote:

I copied the file from the first post and placed in N9
Please, at least read the title of the post. The "Maemo 5" bit should let you know this is for the N900, not the N9. At least not yet.

bignutbrown 2012-06-15 23:09

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
Sorry, blonde moments here! *down, Boy, down !*

saponga 2012-06-15 23:12

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
Ok... Automagically Saera waits for the complete number again but i think it has a problem: althought it tells that "phone numbers have 10 or 11 caracters", it dials only 7 characters numbers... And, no ofense here (i dont know what is the first language of who makes that), but the portuguese translation of the sentences_portuguese.py isn't very good.
Still testing :)

MartinK 2012-06-15 23:15

Re: [DEVEL] Saera: Siri clone for Maemo 5
 
So ModRana now has quite a few new CLI options for use by Saeri (and any other program or script):
Code:

usage: modrana.py [-h] [-d device ID] [-u GUI ID]
                  [--local-search search query]
                  [--local-search-location an address or geographic coordinates]
                  [--address-search an address]
                  [--wikipedia-search search query] [--return-static-map-url]
                  [--center-on-position] [--set-zl zoom level number]
                  [--center-on-position-on-zl zoom level number]
                  [--focus-on-coordinates geographic coordinates with the geo: prefix]

A flexible GPS navigation system.

optional arguments:
  -h, --help            show this help message and exit
  -d device ID          specify device type
  -u GUI ID            specify user interface type (GTK or QML)
  --local-search search query
                        specify a local search query EXAMPLE: "pizza"
  --local-search-location an address or geographic coordinates
                        specify a geographic location for a local search query
                        (current location is used by default), both addresses
                        and geographic coordinates with the geo: prefix are
                        supported EXAMPLE: "London" or
                        "geo:50.083333,14.416667"
  --address-search an address
                        specify an address search query EXAMPLE: "Baker Street
                        221b, London"
  --wikipedia-search search query
                        specify a local search query EXAMPLE: "Prague castle"
  --return-static-map-url
                        return static map URL for a CLI query (works for local
                        search, address and Wikipedia search)
  --center-on-position  focus on the current position & enable centering
  --set-zl zoom level number
                        set a zoom level EXAMPLE: 15
  --center-on-position-on-zl zoom level number
                        focus on current position on a given zoom level
                        EXAMPLE: 15
  --focus-on-coordinates geographic coordinates with the geo: prefix
                        focus on given coordinates, NOTE you can use --set-zl
                        to set zoom level, EXAMPLE: "geo:50.083333,14.416667"

Search
The search options work in two modes:

If --return-static-map-url is used, modRana loads only the most essential modules, handles the query and exits after printing the Url pointing to a static-map with the result to stdout.

If --return-static-map-url is not used, modRana starts normally and shows the search results.

Exit codes
If everything went fine, modRana returns 0, as expected.

If something went wrong, modRana exits with one of the codes below:
Code:

SYNTAX_ERROR = 2
SEARCH_NO_RESULTS_FOUND = 3
SEARCH_PROVIDER_TIMEOUT_ERROR = 4
SEARCH_PROVIDER_ERROR = 5
LOCAL_SEARCH_CURRENT_POSITION_UNKNOWN_ERROR = 6

Local search takes some time
When modRana does local search and no --local-search-location is specified, it starts the GPS and waits for up to 30 seconds for it to supply valid location coordinates.

If the current location is not determined within the 30 second time limit, modRana uses the last known position (if available).

Results
If more results are returned for --return-static-map-url, modRana just returns Url for the first one (this is also usually the result with the best accuracy).

It also shouldn't be difficult to add support for returning multiple results or to return coordinates or other information to stdout (maybe URL + result title ?).

Other supported options
It is also possible to set the zoom level, make modRana focus on a set of coordinates or center on current position.

Routing
There are not yet CLI options for routing, but will be added in near future. :)

How to use
Example - show address search result in GTK UI on zoom level 10:
Code:

python /opt/modrana/modrana.py -d n900 -u GTK --address-search "Prague" --set-zl 10
Example - return local search result at static map URL on default zoom level (15):
Code:

python /opt/modrana/modrana.py --local-search "pizza" --return-static-map-url
Availability
You need the latest modRana version (V0.32) from Extras-Devel to use the new CLI options.

Feedback
Don't hesitate to let me know if you hit any issues or if you have any ideas for improvements. :)

EDIT:
added usage examples


All times are GMT. The time now is 18:23.

vBulletin® Version 3.8.8