test.py 717 B

123456789101112131415161718192021222324252627282930313233
  1. # coding: utf8
  2. import logging
  3. import re
  4. from collections import Counter
  5. from core import OrderAnalyser
  6. from neurons.tasker_autoremote.tasker_autoremote import Tasker_autoremote
  7. logging.basicConfig()
  8. logger = logging.getLogger("kalliope")
  9. logger.setLevel(logging.DEBUG)
  10. # # This does not work because of different encoding when using accent
  11. # from core import OrderAnalyser
  12. # # order = "kalliope régle le réveil pour sept heures et vingt minutes"
  13. # # order = "mais nous de la musique"
  14. #
  15. # order = "arrête la musique"
  16. # # order = order.decode('utf-8')
  17. # # print type(order)
  18. # oa = OrderAnalyser(order)
  19. #
  20. # oa.start()
  21. key = "mykey"
  22. message = "lost my phone"
  23. tk = Tasker_autoremote(key=key, message=message)