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
Quick start
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.
What's next
I suggest you to take a look at this demo plugin which implement this library
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.4.tar.gz
(7.6 kB
view hashes)
Built Distribution
Close
Hashes for jeedomdaemon-0.7.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 94031bccdbf36917e81a6d21f2349f64d8f99f898d82eaa2892ac3ff7b157b1b |
|
MD5 | f830c7fd9689948a6410877880e34072 |
|
BLAKE2b-256 | 4017e905afc4fd77bd9d7d61b2fbcb330df2d2b3c971b1560f9135338dbd112f |