Browse Source

Fork for micropoc

master
Bandie 4 years ago
parent
commit
38f657f753
Signed by: Bandie GPG Key ID: C1E133BC65A822DD
  1. 15
      README.md
  2. 4
      micropoc_xml2vcard

15
README.md

@ -1,16 +1,11 @@
# 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
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`.
2. If not already done, set executable rights for the program through `chmod +x epvpn_xml2vcard`.
3. Run `./epvpn_xml2vcard -i phonebook.xml -o epvpn.vcf`.
4. Now you have a file named `epvpn.vcf` ready to import to Android™®©đ€¶@ŋŧ¶ or somewhere else.
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 micropoc_xml2vcard`.
3. Run `./micropoc_xml2vcard -i phonebook.xml -o micropoc.vcf`.
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.

4
epvpn_xml2vcard → micropoc_xml2vcard

@ -51,9 +51,9 @@ def doEet(infile, outfile):
counter+=1
tel = c.find('extension').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)
Loading…
Cancel
Save