For information on how to install it or use it, see (it is in french by default but you can translate it using the google translate toolbar on the right) : [url=http://pascal-mietlicki.fr/blog/domotique-event2gcal-ou-recevoir-des-alertes-sms-gratuitement-depuis-la-vera]http://pascal-mietlicki.fr/blog/domotique-event2gcal-ou-recevoir-des-alertes-sms-gratuitement-depuis-la-vera[/url]
[b]
Update 01/24 : new version without problem with Lua Engine (24 of january) → waiting for approval but the link will be : MiOS Apps
Update 07/16 : new version providing the ability to change the parameters inside luup code. If you want to install it, see my post from today (16 of July)
To change an event description :
luup.call_action(“urn:event2gcal:serviceId:Event2GCal1”,“SetEventDesc”, {NewEventDesc= “Test”},device_id)
MAJ 16/07 : nouvelle version permettant de changer les paramètres ? la volée ? l’intérieur du code luup. Pour récupérer les fichiers d’installation, voir mon message du 16 juillet.
Pour changer la description d’un évènement :
luup.call_action(“urn:event2gcal:serviceId:Event2GCal1”,“SetEventDesc”, {NewEventDesc= “Test”},device_id)
[/b]
[b]Update 04/22 : I changed the plugin in order to remove the “google.lua” file. I had some problems with the new merged implementation file. The last version (one from 22/04) should not have any problems, please re-download it or reinstall it.
MAJ 22/04 : Suppression du fichier google.lua et intégration du code lua dans le fichier d’implémentation. Ayant eu quelques problèmes de syntaxe du code lua, ceux ayant téléchargé le fichier I_Event2GCal.xml doivent télécharger la dernière version (celle supérieure au 22/04) ou réinstaller le plugin.
[/b]
Hi all,
A small topic to announce a new plugin I created : Event2GCal.
The goal is simple : add a new event into your google calendar account inside scenes. Thus you can benefit of all the advantages in google calendar (like sending an sms to your cellphone).
I’ve created a new plugin on MIOS Marketplace which id is 2078 (sorry I am not allowed to post external links ???) and created a new release 1.0 Beta 4
How to install (in case you can’t install it from the marketplace)
- Download the files D_Event2GCal.xml and I_Event2GCal.xml
- On Vera, go to MiOS Developers, Luup files, and upload the files
- Create a new device – use D_Event2GCal.xml and I_Event2GCal.xml. Save. Refresh your browser to reload web interface
How to use
- Install the plugin (or download the files D_Event2GCal.xml I_Event2GCal.xml)
- Inside the plugin parameters in the “Advanced” tab, inside the “Variables” part, you will see :
- Email : put your email address → mandatory
- Password : put your password → mandatory
- CalendarName : name of the calendar you want to add your events to → optional
- EventName : put the name of the event you want to create (ex : Intrusion!) → mandatory
- EventDesc : description of the event that will be added as the meeting place inside your calendar (in order to appear inside the sms) → optional
I’ve made some tests and it works fine. So please test it and tell me if it works for you.
The plugin make the connexion by using the version 2 of google api (with JSON). I had some problems using OAuth for the connexion (I’m really not an expert) and thus I had to do it the old way with ClientLogin (with username and password).
I’m working on it and I’m trying to implement OAuth.
I’m waiting for your comments, remarks, ideas of improvements.
Any help would be greatly appreciated. If you know how I could create a project space on code.mios.com, I would be really grateful.
Thanks to googleapi-lua and to WebCall Dialer plugin (My example to create the implementation file)
Best regards,
Pascal
[size=12pt]En français :[/size]
Bonjour ? tous,
Juste un petit message pour vous annoncer la sortie du plugin : Event2GCal.
But : créer un événement dans votre calendrier google que vous pourrez utiliser dans vos scènes. L’intérêt principal (pour ma part) est de pouvoir être alerté par sms.
Pour l’instant il est en version 1.0 Beta 4, le plugin est accessible sur MIOS Marketplace, son id est le 2078 (désolé je n’ai pas le droit de poster de liens externes… ???)
Installation (au cas où vous n’arrivez pas ? l’installer depuis le marketplace)
- Téléchargez les fichiers D_Event2GCal.xml et I_Event2GCal.xml
- Sous Vera, allez dans la partie Développeur, fichiers Luup et uploadez les fichiers
- Créer une nouvelle interface (device?) en utilisant D_Event2GCal.xml et I_Event2GCal.xml
- Sauver et rafraichissez la page
Comment l’utiliser ?
- Installer le plugin (les fichiers fournis sont : D_Event2GCal.xml I_Event2GCal.xml)
- Dans les paramètres du plugin, onglet “Avancé”, dans la partie “Variables”, vous verrez :
- Email : votre adresse email → obligatoire
- Password : votre mot de passe → obligatoire
- CalendarName : nom du calendrier → optionnelle (prend le principal par défaut)
- EventName : nom de l’événement ? créer (ex : Intrusion!) → obligatoire
- EventDesc : description de l’événement, il apparaitra en tant que “lieu” dans votre calendrier (pour un affichage correct des sms) → optionnelle
L’authentification se fait en utilisant le “ClientLogin” de l’api google. J’essaie de travailler sur une version OAuth mais je ne vois pas bien comment ça fonctionne (tout aide est la bienvenue).
J’utilise la version 2 de l’api google (format JSON).
J’attends vos remarques, idées, commentaires, etc.
Merci ? googleapi-lua et au plugin WebCall (dont je me suis inspiré pour les fichiers XML luup)
Bien ? vous,
Pascal