Comments (7)
+1 - wer machts :)
from smarthome.
I suggest the following changes:
- Move folder
/plugins/skeleton/
to/dev/plugin_skeleton/
. - Replace the moved
/dev/plugin_skeleton/__init__.py
by/dev/skeleton.py
. This is the current version based on SmartPlugin and IMHO theres nothing relevant in init.py that's not in skeleton.py. - Change paths in /dev/README.md.
I would left unchanged the rest of the two READMEs. The one in /plugins/skeleton/
is actually a skeleton for new plugins and the one in /dev/
is the how-to for developpping a plugin.
If you agree to that i make the changes.
from smarthome.
I did not check the code in both folders, but I think we should only have one skeleton for plugin and one documentation/howto.
But I prefer to put documentation and howtos into the wiki instead into the codebase. Skeleton seems to be OK in the code, but could also be moved into the wiki, so the whole stuff is in the wiki and not in the codebase. Just another idea.
from smarthome.
Ok, just integrated the two and created a new dir dev/sample_plugin
. I really did not like the word skeleton. The both +.py were different not only in documentation but also in code. I think I saved the most of it but I would feel better if someone has a look over it and maybe has some improvement here or there.
If I do not get any more input, I will close this issue on Sunday evening.
from smarthome.
@Bxmp: Looks good. I am gonna make a few additions and push it to develop too.
- The SmartPlugin Object defines the logger already, so we can remove it from the sample. (I'll test that)
- The SmartPlugin Object defines __sh (with double '_') and has a method to set it. It's not clear to me if this ist just unfinished work (It is not initialized automatically)
from smarthome.
In plugin.py __sh should be set but neither self.__sh nor the predefined self.logger from SmartPlugin Object do work. So the sample_plugin can stay as it is for the time being.
If some has lots of time, he can try to find out why self.__sh and self.logger don't work by inheritance.
from smarthome.
@bmxp You didn't close the issue on last sunday... Just close it on next sunday π
from smarthome.
Related Issues (20)
- Startup problems on v1.9.4 HOT 23
- Admin interface: support new log levels HOT 1
- HTTP Module: improve handling of page length and responsive design HOT 2
- CherryPy ValueError on restart HOT 2
- cache value not converted to current item type
- Issues with (re)loading logics from the editor page of the admin gui HOT 7
- structs not checked for wrong configurations? HOT 1
- Issue with smartdeviceplugin with UTF-8 response HOT 1
- Requirements von Logiken und Userfunctions installieren beim Start? HOT 7
- Websocket crashed HOT 4
- Vorschlag zum besseren Handling von Items mit Datentyp 'dict' oder 'list' HOT 25
- Websocket Exceptions HOT 4
- struct names are applied to items including the struct
- Visu subscription of a memory log activates sending of env.core.log HOT 5
- smarthome/doc/user/source/beispiele/eval.rst Beispiel "Enumeration ΓΌber Liste" funktioniert nicht HOT 1
- Log configuration: allow placeholders for filename and rotate correctly HOT 1
- Delay in scenes HOT 4
- Problem when Item has the same name as a class Item method HOT 5
- Http module cannot bind on all interfaces
- Incompability to paho-mqtt-2.0.0 HOT 1
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 smarthome.