Git Product home page Git Product logo

Comments (16)

janrueth avatar janrueth commented on September 28, 2024

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.

XdiomedesX avatar XdiomedesX commented on September 28, 2024

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.

janrueth avatar janrueth commented on September 28, 2024

does the application has enough rights to read the file?

from siriserverplugins.

XdiomedesX avatar XdiomedesX commented on September 28, 2024

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.

XdiomedesX avatar XdiomedesX commented on September 28, 2024

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.

janrueth avatar janrueth commented on September 28, 2024

could you please post what the following commands yield (run them from the siri server folder)

ls -lisah plugins/*
cat plugins.conf

from siriserverplugins.

XdiomedesX avatar XdiomedesX commented on September 28, 2024

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.

XdiomedesX avatar XdiomedesX commented on September 28, 2024

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.

janrueth avatar janrueth commented on September 28, 2024

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.

XdiomedesX avatar XdiomedesX commented on September 28, 2024

the problem is my Synology does not know "sudo"

-ash: sudo: not found

from siriserverplugins.

XdiomedesX avatar XdiomedesX commented on September 28, 2024

But I tried the "chown" command anyway. No effect. :(

from siriserverplugins.

XdiomedesX avatar XdiomedesX commented on September 28, 2024

even if I login as admin.... no effect. :(

from siriserverplugins.

janrueth avatar janrueth commented on September 28, 2024

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.

XdiomedesX avatar XdiomedesX commented on September 28, 2024

It is Python 2.6

from siriserverplugins.

LoghamLogan avatar LoghamLogan commented on September 28, 2024

I am also having this issue on an Ubuntu 10.04 server. Sudo and chmod 777 didn't help.

from siriserverplugins.

LoghamLogan avatar LoghamLogan commented on September 28, 2024

Solved: Accidentally deleted the default startRequestHandler and init.py folder/files sitting in the plugin/ root.

from siriserverplugins.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.