Comments (16)
So just to clarify,
plugins.conf you add the name of the folder or file in plugins/ directory. Please don't make any spaces or additional lines in that file and I suggest not editing it with a windows editor that makes crappy line endings. (there is no real parsing of the plugins.conf file, just a quick and dirty hack)
So example:
plugins/weather/__init__.py
or
plugins/weather.py
Will both work if you insert
weather
in a single line in plugins.conf
I prefere the folder method as it has a clearer structure and gives more overview.
Are you using SiriServerCore or SiriServer the old version?
Can you confirm (case sensitivity is also important) that it does not work with the latest SiriServerCore version to load a plugin called weather that is in the format above?
from siriserverplugins.
Hi,
thanks for replying.
I confirm that neither cases do work for me. I use the latest SiriServerCore. I took your plugins.conf and replaced the word "examplePlugin" by "weather" using vi via ssh. So I didn't use any windows notepad.
I don't get it, it should work!?
from siriserverplugins.
does the application has enough rights to read the file?
from siriserverplugins.
Even if I set the whole Siri folder to 777 it does not work.
I guess it is something about the paths in the PluginManager.py? I need to go through the code (I am not familiar with python yet...).
from siriserverplugins.
This is the error I get:
ERROR Plugin loading failed Traceback (most recent call last): File "/volume1/homes/admin/Siri/PluginManager.py", line 30, in load_plugins import(pluginPath+"."+line, globals(), locals(), [], -1) ImportError: No module named plugins.yahooWeather INFO Server is running and listening for connections
from siriserverplugins.
could you please post what the following commands yield (run them from the siri server folder)
ls -lisah plugins/*
cat plugins.conf
from siriserverplugins.
This is what I get:
DiskStation> ls -lisah plugins/*
plugins/help:
3803774 4 drwxr-xr-x 3 root root 4.0K Apr 12 20:58 .
3682523 4 drwxr-xr-x 4 admin users 4.0K Apr 12 20:40 ..
3803775 4 drwxr-xr-x 2 root root 4.0K Apr 12 20:32 @eadir
3803777 4 -rwxr-xr-x 1 root root 1.8K Apr 12 20:32 init.py
plugins/yahooWeather:
3803778 4 drwxr-xr-x 2 root root 4.0K Apr 12 20:32 .
3682523 4 drwxr-xr-x 4 admin users 4.0K Apr 12 20:40 ..
3803779 192 -rwxr-xr-x 1 root root 190.5K Apr 12 20:32 init.py
DiskStation> cat plugins.conf
here you can configure which plugins are loaded
The order in which they appear defines the order in which they are queried for responses to speech
The plugin must be in the plugins folder
help
yahooWeather
from siriserverplugins.
sorry for the weird formatting. here again...
here you can configure which plugins are loaded
The order in which they appear defines the order in which they are queried for responses to speech
The plugin must be in the plugins folder
help
yahooWeather
from siriserverplugins.
Do you have the problem if you start siri server with sudo?
If the problem disappears, it is because the files are owned by root:root and everything else seems to be owned by admin:users.
If sudoing solves the problem do a:
chown -R admin:users .
if the siriserver folder this should solve the problem
from siriserverplugins.
the problem is my Synology does not know "sudo"
-ash: sudo: not found
from siriserverplugins.
But I tried the "chown" command anyway. No effect. :(
from siriserverplugins.
even if I login as admin.... no effect. :(
from siriserverplugins.
thats all very odd, I can't see why it should not work, which version of python are you using?
I suppose as you said Synology, you are doing this on a NAS or something similar. You can also get root by just typing su
, then you are asked for password and brought to a root console which you can exit with exit
. You might try starting siri server there for a test.
I don't have a synology NAS here right now, my father got one but I can't access it from remote I think so I cannot test it myself if it is due to some limitations on the NAS...
from siriserverplugins.
It is Python 2.6
from siriserverplugins.
I am also having this issue on an Ubuntu 10.04 server. Sudo and chmod 777 didn't help.
from siriserverplugins.
Solved: Accidentally deleted the default startRequestHandler and init.py folder/files sitting in the plugin/ root.
from siriserverplugins.
Related Issues (11)
- getWebsite on yahooWeather plugin HOT 1
- iMessage Compatibility HOT 1
- yahooWeather conditionCode & conditionCodeIndex
- i need help modding chatbot to run from computer for siri server. NO NETBOT. YOUR OWN A.I. FOR SIRI
- Error with plugins, from am3yrus HOT 4
- Object issue in smsObjects HOT 8
- phoneCall not working with latest core? HOT 3
- Open url HOT 6
- timestamp out of range for platform time_t - shortMessage HOT 2
- Changing Sorry I Don't Understand
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from siriserverplugins.