Fork for micropoc

This commit is contained in:
Bandie 2018-05-12 03:40:54 +02:00
parent f4cb402604
commit 38f657f753
Signed by: Bandie
GPG Key ID: C1E133BC65A822DD
2 changed files with 7 additions and 12 deletions

View File

@ -1,16 +1,11 @@
# epvpn\_xml2vcard # epvpn\_xml2vcard
For [EPVPN](https://www.eventphone.de): Takes the XML file you've downloaded before and generates a vCard (makes sense for Android and stuff). For [micropoc](https://micropoc.de): Takes the XML file you've downloaded before and generates a vCard (makes sense for Android and stuff).
## Usage ## Usage
1. Get your brandnew™ EPVPN-XML file from the [EPVPN Phonebook](https://www.eventphone.de/guru2/epvpn/phonebook?format=xml). Maybe save it as `phonebook.xml`. 1. Get your brandnew™ XML file from the [micropoc Phonebook](https://micropoc.de/phonebook.xml). Maybe save it as `phonebook.xml`.
2. If not already done, set executable rights for the program through `chmod +x epvpn_xml2vcard`. 2. If not already done, set executable rights for the program through `chmod +x micropoc_xml2vcard`.
3. Run `./epvpn_xml2vcard -i phonebook.xml -o epvpn.vcf`. 3. Run `./micropoc_xml2vcard -i phonebook.xml -o micropoc.vcf`.
4. Now you have a file named `epvpn.vcf` ready to import to Android™®©đ€¶@ŋŧ¶ or somewhere else. 4. Now you have a file named `micropoc.vcf` ready to import to Android™®©đ€¶@ŋŧ¶ or somewhere else.
## FAQ
- Q: Why?
- A: I am too impatient to wait for Eventphone changing things. They're busy enough.

View File

@ -51,9 +51,9 @@ def doEet(infile, outfile):
counter+=1 counter+=1
tel = c.find('extension').text tel = c.find('extension').text
name = c.find('name').text name = c.find('name').text
loc = c.find('location').text # loc = c.find('location').text
entry = "BEGIN:vCard\nVERSION:3.0\nN:{}\nTEL;type=voice:{}\nCATEGORIES:EPVPN\nNOTE:Location: {}\nEND:vCard\n\n".format(name, tel, loc) entry = "BEGIN:vCard\nVERSION:3.0\nN:{}\nTEL;type=voice:{}\nCATEGORIES:micropoc\nEND:vCard\n\n".format(name, tel)
f.write(entry) f.write(entry)