cedbv / SiriServer

Ce projet a pour but de recréer un serveur pour Siri en python.
5 stars 2 forks source link

Plugin Update #4

Closed SimonTurp closed 12 years ago

SimonTurp commented 12 years ago

Hi, Can you please update the twitter & facebook plugins to work with SiriServerCore. I tried to use the server "SiriServer2" on your github, but the plugins do not work.

Thanks.

SimonTurp commented 12 years ago

Any news on this...?

SimonTurp commented 12 years ago

Any news?????

cedbv commented 12 years ago

I just found how to make buttons work again. I will update soon the plugins in https://github.com/cedbv/SiriServer2.

cedbv commented 12 years ago

Fixed in https://github.com/cedbv/SiriServer2/commit/32e162b463a2bef6eb13f6a7a855c50951c00859

SimonTurp commented 12 years ago

I got the following error:

           'views': [{'class': 'AssistantUtteranceView',
                       'group': 'com.apple.ace.assistant',
                       'properties': {'speakableText': u'Your Facebook account is not configured. Connect with the following button:',
                                      'text': u'Your Facebook account is not configured. Connect with the following button:'}}]},

'refId': 'E884ACC4-8730-4B10-9857-2BB9D620626F'} ERROR Unexpected error during plugin processing Traceback (most recent call last): File "/root/SiriServerCore/plugin.py", line 151, in run self.method(self, self.speech, self.lang, self.method.dict[criteria_key][self.lang].match(self.speech)) File "/root/SiriServerCore/plugins/facebook/init.py", line 79, in post url = webaddons_url+"/facebook.php?id=" + self.assistant.accountIdentifier TypeError: cannot concatenate 'str' and 'NoneType' objects DEBUG Sending packet with class: AddViews DEBUG packet with content: {'aceId': '7ADF83BC-178D-4873-A141-98B526870954', 'class': 'AddViews', 'group': 'com.apple.ace.assistant', 'properties': {'callbacks': [], 'views': [{'class': 'AssistantUtteranceView', 'group': 'com.apple.ace.assistant', 'properties': {'speakableText': 'There was an error during the processing of your request!', 'text': 'There was an error during the processing of your request!'}}]}, 'refId': 'E884ACC4-8730-4B10-9857-2BB9D620626F'} DEBUG Sending packet with class: RequestCompleted DEBUG packet with content: {'aceId': '27D96535-CDA3-4A16-B4B5-0D2BA244FE5F', 'class': 'RequestCompleted', 'group': 'com.apple.ace.system', 'properties': {'callbacks': []}, 'refId': 'E884ACC4-8730-4B10-9857-2BB9D620626F'}

SimonTurp commented 12 years ago

Don't worry, it does work haha. Is there any way you can make a version for the Official SiriServerCore too?

(This one only works on your SiriServer2)

SimonTurp commented 12 years ago

Following Error for Twitter plugin on server boot:

Traceback (most recent call last): File "/usr/lib/python2.7/logging/init.py", line 842, in emit msg = self.format(record) File "/usr/lib/python2.7/logging/init.py", line 719, in format return fmt.format(record) File "/usr/lib/python2.7/logging/init.py", line 482, in format s = s + record.exc_text.decode(sys.getfilesystemencoding()) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 260: ordinal not in range(128) Logged from file PluginManager.py, line 36

cedbv commented 12 years ago

SiriServerCore doesn't have accountIdentifier (the unique ID used in facebook/twitter to identify the users) but it's only a 5-6 lines change (My SiriServer2 is basically SiriServerCore + this change + plugins).

Facebook works and not Twitter ? Strange. A copy/paste error (file encoding, tab instead of spaces) ? Both work for me.

SimonTurp commented 12 years ago

Sorry, my bad. I did a wget on the raw file, and it works now. Thanks a lot for you're help!!