瀏覽代碼

Add notification and events in config.py

Olivier Marty 8 年之前
父節點
當前提交
34f68e25a9
共有 1 個文件被更改,包括 22 次插入0 次删除
  1. 22 0
      config.py

+ 22 - 0
config.py

@@ -3,3 +3,25 @@
 api_key = {
   'jcdecaux' : ''
 }
+
+
+# EVENEMENTS A SURVEILLER
+
+events = {
+  'ratp_traffic' : ['ligne_metro_7'],
+  'jcdecaux_vls' : ['42703']
+}
+
+# NOTIFICATIONS
+
+notification = {
+  'method' : 'print', # ou "free" ou "sendmail"
+  'free' : { # méthode "free" (sms api voir http://mobile.free.fr/ )
+    'user' : '123456789',
+    'pass' : 'wwwwwwwww'
+  },
+  'sendmail' : { # méthode "sendmail"
+    'to' : 'example@example.com',
+    'object' : 'Notification traffic'
+  }
+}