My Gmail Address Book widget available for the public.

For the 605 WiFi, 705 WiFi and the TV+
divx118
Archos Guru
Archos Guru
Posts: 595
Joined: Tue Dec 04, 2007 9:48 pm
Contact:

Post by divx118 »

Yes, sorry I was a little busy. I tried it and I couldn't get it to work I will make a step by step Tutorial to put it on the web and then you can restore it from there.
I am gonna do that tonight.

Maurice 8)
Didier
Archos Novice
Archos Novice
Posts: 7
Joined: Tue Apr 22, 2008 6:03 pm

Post by Didier »

thank you
but it's a great mystery for me : where are the data now ???
divx118
Archos Guru
Archos Guru
Posts: 595
Joined: Tue Dec 04, 2007 9:48 pm
Contact:

Post by divx118 »

The data is on the hidden linux partition of your archos 605 together with the cookies , temporary internetfiles, favorits etc.

A widget can't access local harddisc, because of security issues. Now they have a method of storing variables with the functions widget.setPreferenceForKey(variable,name) and widget.preferenceForKey(name)
An example from the widget:

Code: Select all

widget.setPreferenceForKey(<complete>,'contacts');
var contacts = widget.preferenceForKey('contacts');
The first line will save the complete address book as a string under the name contacts.
The second line will load that string into the variable contacts.

And now for the tutorial it can be found here http://my.opera.com/maurice118/blog/ste ... ook-backup

Maurice 8)
Didier
Archos Novice
Archos Novice
Posts: 7
Joined: Tue Apr 22, 2008 6:03 pm

Post by Didier »

Thank you
i'll try asap your tutorial

Didier
Didier
Archos Novice
Archos Novice
Posts: 7
Joined: Tue Apr 22, 2008 6:03 pm

Post by Didier »

Impeccable this tutorial : my list is update in my archos

thank you :D

Didier
divx118
Archos Guru
Archos Guru
Posts: 595
Joined: Tue Dec 04, 2007 9:48 pm
Contact:

Post by divx118 »

Glad I could help you out on this.

Maurice 8)
kris994
Archos Expert
Archos Expert
Posts: 176
Joined: Sat Jan 05, 2008 1:13 pm

Post by kris994 »

Is there a widget that will work with windows live mail?
divx118
Archos Guru
Archos Guru
Posts: 595
Joined: Tue Dec 04, 2007 9:48 pm
Contact:

Post by divx118 »

Sorry no there isn't. Am I gonna make one, no sorry.
Maybe someone else will do this, but I doubt it.

Maurice 8)
foxblock
Archos User
Archos User
Posts: 143
Joined: Tue Apr 22, 2008 10:04 pm
Location: Ederen, GER
Contact:

Post by foxblock »

first, thank you very much for this widget, I waited a long time for something like this...

One question though, is there a function (if yes please tell me where, because I didn't find it) to import you gmail-address-book (which can be exported to a .csv-file - comma seperated values), because it is a pain to enter all info with the on-screen-keyboard and it would be a lot easier to have all contacts imported with a few clicks :D

if there is no such feature, would it be possible/easy to implement this? :? I would love to see this feature added ;)
Image
divx118
Archos Guru
Archos Guru
Posts: 595
Joined: Tue Dec 04, 2007 9:48 pm
Contact:

Post by divx118 »

Sadly no, because a widget can't interact with a local hd not even open a file.
But you can export and import your addresbook like mentioned in my blog.
The addressbook looks like

[{"fname":"anton","lname":"whatever","phone":"","mobile":"","email":"","note":"","subject":"","mail":""},
{"fname":"fake","lname":"","phone":"","mobile":"","email":"fake@2.com","note":"","subject":"","mail":""},
{"fname":"jane doe","lname":"last name","phone":"","mobile":"","email":"","note":"","subject":"","mail":""},
{"fname":"john","lname":"doe","phone":"","mobile":"","email":"","note":"","subject":"","mail":""},
{"fname":"maurice","lname":"van kruchten","phone":"","mobile":"","email":"mauricevankruchten@gmail.com","note":"","subject":"","mail":""},
{"fname":"john","lname":"Whatson","phone":"","mobile":"","email":"","note":"","subject":"","mail":""}]



Copy and paste it in an empty textfile and put in your names phone numbers etc. to add more addresses just copy the full address string


{"fname":"","lname":"","phone":"","mobile":"","email":"","note":"","subject":"","mail":""}


And paste it below the others, but be sure the entire address book is surounded by [ ]. These should only appear once in the address book.
Now upload your txt file somewhere and be sure to know the direct link to it. You have to put the direct link into the my gmail address book config page and press the restore button.

A tutorial for uploading the txt file to google pages can be found here http://my.opera.com/maurice118/blog/ste ... ook-backup
Maurice 8)
foxblock
Archos User
Archos User
Posts: 143
Joined: Tue Apr 22, 2008 10:04 pm
Location: Ederen, GER
Contact:

Post by foxblock »

yeah, I read that - and forgot it, sorry for the inconvenience :(

the problem is you still have to somewhat rewrite the google-csv-file because it looks like (ignore the word wrap)

Code: Select all

Name,E-mail Address,Notes,E-mail 2 Address,E-mail 3 Address,Mobile Phone,Pager,Company,Job Title,Home Phone,Home Phone 2,Home Fax,Home Address,Business Phone,Business Phone 2,Business Fax,Business Address,Other Phone,Other Fax,Other Address
Fake Guy, ieat@sh.it, 34 Fake Street, bla, bla,,,,,,
,noname@online.com,,,,,,,
George Bush, gbush@penthouse.com,,,,,, 
and for your widget we need it to look like what you've posted before... it should still be very time consuming to rewrite that (I have like 150 contacts), so I might write a script for this - but don't take this as a promise ;)

thanks for the info though
Image
Didier
Archos Novice
Archos Novice
Posts: 7
Joined: Tue Apr 22, 2008 6:03 pm

little problem

Post by Didier »

Hello,
I have a little problem with the french xml file of the widget :
there is a small error in the translation of the restore message(<alertTitle_13>).
i correct the file francais.xml and put it in a new zip file but, when i try the 'new' widget', it doesn't work :
all is right except that the configuration is not save; and i have do reenter the login etc... each time i launch the widget !
can you explain this ?

Didier
divx118
Archos Guru
Archos Guru
Posts: 595
Joined: Tue Dec 04, 2007 9:48 pm
Contact:

Post by divx118 »

Strange..
Did you change the name of the zip file or changed the config.xml?

Could you send me the changed plugin?

Maurice 8)
Didier
Archos Novice
Archos Novice
Posts: 7
Joined: Tue Apr 22, 2008 6:03 pm

Post by Didier »

Hello Maurice,
I have send you a MP with the changed plugin.

Didier
divx118
Archos Guru
Archos Guru
Posts: 595
Joined: Tue Dec 04, 2007 9:48 pm
Contact:

Post by divx118 »

BTW did you press the save button when you entered your config info on the config page? The little diskette button I mean else your config is not saved.

If it isn't the above I will take a look at it tomorrow.

Maurice 8)
Didier
Archos Novice
Archos Novice
Posts: 7
Joined: Tue Apr 22, 2008 6:03 pm

Post by Didier »

yes i put the save button after entering the login and passwd

good night
foxblock
Archos User
Archos User
Posts: 143
Joined: Tue Apr 22, 2008 10:04 pm
Location: Ederen, GER
Contact:

Post by foxblock »

well, a question came to my mind yesterday:
As you said the widget does only store up to 10 mails and automatically deletes old ones when new ones are downloaded.
So what happens when there are more than 10 unread mails in your inbox, does it download them all and deletes some of them (the first ones that were loaded) so you only have 10 mails or does it download them in 'packs' of 10 mails? or does it do something completely different?

I would like to know that, because I really like the widget, but I am somewhat afraid that I might miss some mails when I use it while travelling and only checking my mails every now and then...
Image
divx118
Archos Guru
Archos Guru
Posts: 595
Joined: Tue Dec 04, 2007 9:48 pm
Contact:

Post by divx118 »

Well it doesn't delete the mails on your mail account, so you won't loose any mail it only deletes them on your archos.
How it works, because I was afraid to overfill the temporary internetfiles/cookies/widget data I limmited the amount of mails to 10 The 10 newest ones will it download. It can however easily be expanded by editing the javascript file jscript.js in the folder script.
When you open the file in notepad or any other editor you will see in the variable declarations var mailMax=9; The 9 is the number of maximum mails -1 . So if you fill in var mailMax=19; it will download the last 20 newest mails.

Maurice 8)
Post Reply

Return to “Widgets and Games”