معرفی شرکت ها


SensorNet-1.0.post0.dev5


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

Daemon that will pull sensor data from a network of sensor hosting a micro HTTP API.
ویژگی مقدار
سیستم عامل POSIX :: Linux
نام فایل SensorNet-1.0.post0.dev5
نام SensorNet
نسخه کتابخانه 1.0.post0.dev5
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Hana Burtin
ایمیل نویسنده hana@hanaburtin.net
آدرس صفحه اصلی https://github.com/HanaPoulpe/SensorNet
آدرس اینترنتی https://pypi.org/project/SensorNet/
مجوز GPLv3
SensorNet ========= Lightweight sensor status pulling daemon. |PythonSupport| |PyPI| |VersionStatus| |codecov| |Checks| |Docker Image Version (tag latest semver)| |Documentation Status| Installation: ------------- ``pip install SensorNet`` Run instructions: ----------------- 1) Run once: ``sensornet -c <path/to/config.yaml>`` 2) Run daemon: ``sensornet -d - c <path/to/config.yaml>`` Configuration: -------------- Create a configuration file in ``/etc/sensornet/sensor.yaml`` .. code:: yaml daemon_name: SensorNetDaemon backend: driver: sqlalchemy url: "engine://username:password@host:port/dbname" networks: - name: network0 ip_addresses: - 10.0.0.1/32 - 10.0.1.10 - 10.0.1.20 sensor_prefix: sn0 api_port: 80 api_location: "/" cron: "* * * * * *" daemon_name ~~~~~~~~~~~ Name for the daemon that will be sent to the backend. backend ~~~~~~~ *driver:* name of the backend module to use. Modules should be installed in ``/lib/sensor_net/backend_driver/module.py`` This section will contain the module configuration, and will be passed as a dict to the get_driver function. .. code:: python SensorData = namedtuple('SensorData', ["name", "value", "datetime_utc"]) class BackendDriver(Protocol): def write(self, network_name: str, network_prefix: str, sensor_address: str, data: list[SensorData]): """Writes all data to the backend""" ... def get_driver(name: str, configuration: dict) -> BackendDriver: """Instantiate a new BackendDriver from the given configuration""" raise NotImplementedError("get_backend is not implemented.") *Note: get_driver* **MUST** *have parameters types annotations.* networks: ~~~~~~~~~ Defines the networks to pull. A pull is a simple HTTP GET request to ``http://endpoint/api_location`` It expects a JSON body containing: .. code:: json { "data": [ { "name": str, "value": number, "epoch": number }, ... ] } - *network_name:* the name of the network - *ip_addresses:* IP address with mask or range of IP addresses - *sensor_prefix:* prefix for the sensor, it’s recommended to use the sensor prefix for deduplication in the backend. - *api_port:* port the API is listening to. - *api_location:* location of the sensor API - *cron:* interval between polling for this network .. |PythonSupport| image:: https://img.shields.io/static/v1?label=Python&message=3.10&color=blue&style=flat&logo=python .. |PyPI| image:: https://img.shields.io/pypi/v/SensorNet :target: https://pypi.org/project/SensorNet/ .. |VersionStatus| image:: https://img.shields.io/pypi/status/SensorNet .. |codecov| image:: https://codecov.io/gh/HanaPoulpe/SensorNet/branch/master/graph/badge.svg?token=9B5E336IZW :target: https://codecov.io/gh/HanaPoulpe/SensorNet .. |Checks| image:: https://img.shields.io/github/checks-status/hanapoulpe/SensorNet/master .. |Docker Image Version (tag latest semver)| image:: https://img.shields.io/docker/v/hanapoulpe/sensor_net/latest?label=Docker&logo=docker :target: https://hub.docker.com/repository/docker/hanapoulpe/sensor_net .. |Documentation Status| image:: https://readthedocs.org/projects/sensornet/badge/?version=latest :target: https://sensornet.readthedocs.io/en/latest/?badge=latest


زبان مورد نیاز

مقدار نام
>=3.10 Python


نحوه نصب


نصب پکیج whl SensorNet-1.0.post0.dev5:

    pip install SensorNet-1.0.post0.dev5.whl


نصب پکیج tar.gz SensorNet-1.0.post0.dev5:

    pip install SensorNet-1.0.post0.dev5.tar.gz