Active Topics

 


Reply
Thread Tools
Posts: 330 | Thanked: 860 times | Joined on May 2011
#1
Hi,

I recently switched with some tears from N900 to an Xperia XA2 with Sfos 4.3.0.12

The main reasons for me to abandon the n900 is that I need:
-Mms with pics (fmms not working for sending with me, sometimes receives)
-Sometimes easily internet surf while I am away
-Some android apps like whattsapp/telegram/signal/thema (because you can't change people...)
-Maybe a stock maps/gps app
-being able to show videos for work 'on the fly'

I guess that with time, I will have to import lots of things from the n900 to SFOS.
I am not the only one (am I?).
So I thought a thread to collect solutions was perhaps an idea.


First question: Calendar

I searched here, on Jolla forum, on the net but didn't find what urges mostly ATM for me:
How to import N900 calendar events to Sfos?

What I tried:
I exported the N900 datebook calendars in the n900 terminal with
Code:
for line in $(maecaltool --operation list |grep -v Available |cut -f 1 -d " " );do; maecaltool --operation export --calendar $line --file "/home/user/datebook_export/"$line".ics";done
Then, in Sfos, clicked on the created files within the preferences file manager. Is does as if it is importing into calendar, without complaining and that's it. But no events appear in the calendar.

Some trick I missed?
__________________
Toshiba Libretto 70ct -> Psion -> Palm -> Openmoko Freerunner -> gta02 -> gta04 -> n900 n900 n900 n900
...recycled devices, hack, arduino...
 

The Following 3 Users Say Thank You to ric9K For This Useful Post:
Posts: 330 | Thanked: 860 times | Joined on May 2011
#2
Contacts
This was not very hard, worked after some tries:
-Exported contacts from within the contacts app in the N900.
-Moved to PC
-Splited the file into several .vcf text files (I had approx 1500 contacts, recipes, notes... collected since my Palm Pilot)
-Moved files into Sfos
-Imported by clicking onto files from within the settings 'file manager'.
__________________
Toshiba Libretto 70ct -> Psion -> Palm -> Openmoko Freerunner -> gta02 -> gta04 -> n900 n900 n900 n900
...recycled devices, hack, arduino...
 

The Following 4 Users Say Thank You to ric9K For This Useful Post:
nonsuch's Avatar
Posts: 584 | Thanked: 1,550 times | Joined on Sep 2019
#3
^ I don't remember anymore how I moved contacts but it wasn't hard.

Originally Posted by ric9K View Post
I am not the only one (am I?).
I used the N900 briefly as my main device before switching to the XA2/SFOS.

Originally Posted by ric9K View Post
How to import N900 calendar events to Sfos?
Go to N900 calendar => Settings => Edit calendars => tap on Calendar => Export
will create an .ICS file (not tested).
IIRC you can tap on .ICS files in SFOS and they will get imported into the current default Calendar.
(SFOS has many such features that aren't selectable, labeled or documented, but simply happen when you "do the obvious thing".)

That said, I have long stopped using local calendars - CalDAV and CardDAV it is for me, all the way. I need the sync with my desktop, email client etc.
__________________
N900 in 2020
SFOS in 2021

Last edited by nonsuch; 2021-12-18 at 16:06.
 

The Following 2 Users Say Thank You to nonsuch For This Useful Post:
Posts: 330 | Thanked: 860 times | Joined on May 2011
#4
Thanks nonsuch for the fast answer.
Hm, I thought it was mandatory to do thinks in terminal to be a real member. ;--)
So simple...
Gonna try asap.
__________________
Toshiba Libretto 70ct -> Psion -> Palm -> Openmoko Freerunner -> gta02 -> gta04 -> n900 n900 n900 n900
...recycled devices, hack, arduino...
 

The Following User Says Thank You to ric9K For This Useful Post:
Posts: 330 | Thanked: 860 times | Joined on May 2011
#5
No, I tried to export from N900 datebook GUI as well as command line.
The .ics files are made correctly.
When clicking on the file in Sfos, calendar says it imported them correctly but nothing happens and events are not there. Also after a reboot.

I then tried to import the n900 generated files in Thunderbirds calendar.
Events are displayed correctly in thunderbird.
Then, export to .ics and import again in Sfos. No events.

Gonna explore the online way but it seems complicated to me.
__________________
Toshiba Libretto 70ct -> Psion -> Palm -> Openmoko Freerunner -> gta02 -> gta04 -> n900 n900 n900 n900
...recycled devices, hack, arduino...
 

The Following User Says Thank You to ric9K For This Useful Post:
Maemish's Avatar
Posts: 1,702 | Thanked: 4,752 times | Joined on Apr 2018 @ Helsinki, Finland.
#6
Maybe you can find answer searching the net about sfos not being able to get .ics files.


https://together.jolla.com/question/...fish-x-on-xa2/


It may not be a problem only from N900 to your sailfish device.
__________________
"I don't know how but I can try!" (active)

Master of not knowing (active)

For me it is possible to get lost in any case (active)

Learning to fall from high (DONE)

Learning to code with BASIC (WIP)
 

The Following 2 Users Say Thank You to Maemish For This Useful Post:
Maemish's Avatar
Posts: 1,702 | Thanked: 4,752 times | Joined on Apr 2018 @ Helsinki, Finland.
#7
Or can there be something like this in the file:


"Notes for some reason puts a lot of END:VCALENDAR and BEGIN:VCALENDAR statements throughout the .ics file. When iCal hits the first "END" statement it stops importing and ignores the rest of the file. I did a search and delete for all such statements (except those at the beginning and end of the file), and everything imported."


This is an apple product problem but could be the same with you.
__________________
"I don't know how but I can try!" (active)

Master of not knowing (active)

For me it is possible to get lost in any case (active)

Learning to fall from high (DONE)

Learning to code with BASIC (WIP)
 

The Following 2 Users Say Thank You to Maemish For This Useful Post:
Maemish's Avatar
Posts: 1,702 | Thanked: 4,752 times | Joined on Apr 2018 @ Helsinki, Finland.
#8
One solution maybe for contacts which you already got:



"From what I see in the People App in my Experia, there's a wizard that may let you import them directly from the files you already have.

These are the steps I followed:

Settings App --> Scroll Down to "Apps" --> Select "People" --> Either select "Start Import Wizard" or "From Contact File"

I guess the option "From contacts file" should work straight forward.....
__________________
"I don't know how but I can try!" (active)

Master of not knowing (active)

For me it is possible to get lost in any case (active)

Learning to fall from high (DONE)

Learning to code with BASIC (WIP)
 

The Following 2 Users Say Thank You to Maemish For This Useful Post:
Maemish's Avatar
Posts: 1,702 | Thanked: 4,752 times | Joined on Apr 2018 @ Helsinki, Finland.
#9
Another possible reason:

"Depending where the ICS file is located, this may be an issue with the application isolation. Sailjail is only authorizing the following directories:

$HOME/Documents and $HOME/android_storage/Documents,
$HOME/Downloads and $HOME/android_storage/Downloads,
$HOME/Music, $HOME/Playlists, $HOME/android_storage/Music and $HOME/android_storage/Podcasts,
$HOME/Pictures, $HOME/Images, $HOME/android_storage/Pictures and $HOME/android_storage/DCIM,
$HOME/Public,
$HOME/Videos and $HOME/android_storage/Movies.

Everything out of these directories will raise an error in the importation dialog."

More about this in here:

https://forum.sailfishos.org/t/bug-4...s-file/7988/14
__________________
"I don't know how but I can try!" (active)

Master of not knowing (active)

For me it is possible to get lost in any case (active)

Learning to fall from high (DONE)

Learning to code with BASIC (WIP)
 

The Following 2 Users Say Thank You to Maemish For This Useful Post:
Posts: 330 | Thanked: 860 times | Joined on May 2011
#10
Thank you Maemish for your researches.
The problem probably sat in some formats errors and file length.
I finally managed to import all the 7000 events.

Before to import the events, you can create several calendars following the instructions on this page:https://talk.maemo.org/showthread.php?t=92788
You can also change the calendars color as the available color variety within Sfos Calendar is poor enough.

Keep a terminal open while you import your calendar files to control the total number of entries:
Code:
devel-su sqlite3 /home/defaultuser/.local/share/system/privileged/Calendar/mkcal/db
Then, in sqlite3:
Code:
select count(*) from Components;
Now, export/import:
-Export .ics files from the N900 with one of the command line or calendar preferences method.
-Open these files in the PC and verify the encoding (I had to chose 8859-1 to avoid accents problems later)
-Split the file/each file to approx 15'000 lines (maybe working with bigger files, I didn't search for the limit)
-Import them to an online calendar service which can import/export ics files
-Export them from the online calendar service to the Sfos device (at this step, it seems the files can be bigger).
-Click on each file from within Settings -> Storage ... and they will import into the calendar.

I did not choose to sync the events through the network between Sfos and the web service. Doing so, the events are also written into the Calendar database but shown only if the account is active.
It seems to me too fragile. Too many dependencies. I prefer to have all in local, persistent even if I loose my account data and so on.

I also tried the same method but with Thunderbird Calendar instead of the web service. Files imported (said the phone) but no events in the database nor in the Calendar.
__________________
Toshiba Libretto 70ct -> Psion -> Palm -> Openmoko Freerunner -> gta02 -> gta04 -> n900 n900 n900 n900
...recycled devices, hack, arduino...
 

The Following 3 Users Say Thank You to ric9K For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 21:43.