config.py 823 B

1234567891011121314151617181920212223242526272829303132333435
  1. api_key = {
  2. 'jcdecaux_vls' : ''
  3. }
  4. # SOURCES D'EVENEMENTS A SURVEILLER
  5. # sources = {
  6. # 'ratp_trafic' : ['ligne_rer_B', 'ligne_metro_7'],
  7. # 'transilien' : ['RER-B', 'RER-C', 'Train-U'],
  8. # 'jcdecaux_vls' : ['paris_42707_full', 'paris_42707_empty', 'paris_42703_empty', 'paris_19001_full', 'paris_8038_empty', 'nantes_62_full']
  9. # }
  10. sources_params = {
  11. 'jcdecaux_vls' : {
  12. 'limit_full' : 4, # en dessous de cette limite, une notificaation est envoyée
  13. 'limit_empty': 4 # idem
  14. }
  15. }
  16. # NOTIFICATIONS
  17. notification = {
  18. 'methods' : ['print'], # "free", "sendmail"
  19. 'free' : { # méthode "free" (sms api voir http://mobile.free.fr/ )
  20. 'user' : '123456789',
  21. 'pass' : 'wwwwwwwww'
  22. },
  23. 'sendmail' : { # méthode "sendmail"
  24. 'to' : 'example@example.com',
  25. 'object' : 'Notification trafic'
  26. }
  27. }