-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
butler : still not ok with utf8 inputs #172
Comments
Interesting. I will include the newly rivescript release in Domogik 0.5. |
Notice : rivescript 1.8.0 introduces a new way to handle [...] blocks... some triggers (a lot sadly) are not ok anymore... More informations here : aichaos/rivescript-js#48 |
RiveScript v1.8.1 fixes the issue described in aichaos/rivescript-js#48 |
without changes :(
fore test I use simple script (from python_get_sensor_value.rive) # -*- coding: utf-8 -*-
from domogik.butler.brain import get_sensor_value
dt_type = 'DT_Temp'
unit = 'degres'
args=raw_input('key_input: ')
device_name = args
value = get_sensor_value(dt_type, device_name)
# if value == None:
# print (u"неизвестнo")
print (u"{0} {1}".format(value, unit)) response is OK
|
@fritz-smh in the default Python RiveScript module when an object raises an exception at run-time, the exception message is printed to standard error. I'm not sure what your app does with this but it may be something to look into making more visible to the user. For example
|
@kirsle indeed, I have in my todo to find a way to properly log rivescript side issues in our application logs (and the application runs in background). I use a lot of python functions for advanced usages and it may happen that for some reasons it crashes and sadly we have to restart the component in a terminal to check what is not going fine. If you have any idea I would be glad to ear them :) The only option I have in mind for now is to tweak rivescript.py file to use my application logger when an error occurs (as we can add some item to rivescript object easily I can easily add my logger in it. By the way, another question : is there a roadmap about the next rivescript releases ? |
@axboct it should be ok now. Please check. |
missed unicode
|
can be closed. everything is working |
Great :) |
Example with : "свет"
Butler responds : ERR: No Reply Matched
The text was updated successfully, but these errors were encountered: