A base to implement Jeedom daemon in python
Project description
jeedom-daemon-py
Description
This library provide everything needed to build a daemon for a plugin for Jeedom in python. It's possible to get a daemon skeleton by typing literally less than 5 lines of code.
Requirements
- Python 3.9+
How to install
Make sure to add it in your requirements
Manually
pip3 install jeedomdaemon
Via Jeedom core packages.json
{
"pre-install": {},
"apt": {
"python3-pip": {}
},
"pip3": {
"jeedomdaemon": {}
},
"npm": {},
"yarn": {},
"plugin": {},
"post-install": {}
}
Via requirements.txt
jeedomdaemon~=0.7.3
Create a daemon skeleton
Create a file myDaemon.py
and copy/past the 4 lines of code below and that's it, nothing else to do, your daemon is good to start.
from jeedomdaemon.base_daemon import BaseDaemon
class myDaemon(BaseDaemon):
pass
myDaemon().run()
Of course, this does nothing so far except starting, accepting incoming requests from your php code and stopping when it is needed.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jeedomdaemon-0.7.3.tar.gz
(7.4 kB
view hashes)
Built Distribution
Close
Hashes for jeedomdaemon-0.7.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1aecbfcfc23ddd532f22cdae2bdaacec3b7c054adaca6ebcc9269042d02e7437 |
|
MD5 | 967fea6deefc4a5b7bfe5baef416b70c |
|
BLAKE2b-256 | 4a6e9b865cb1bed21420bc520120ebd624daf994ab59b5f00689b3629cd5a784 |