Coder Social home page Coder Social logo

sys2mqtt's Issues

v0.3.0 Needs testing on all platforms before merging to master

Requires testing on Debian 10, Ubuntu 18.04, Ubuntu 20.04, CentOS 8, Sangoma Linux 7 and OpenSUSE using the install.sh script with systemd unit file.

Requires testing on Windows 10 and FreeBSD - separate install instructions need producing for these platforms.

Logging

Add logging, this will be easy enough using systemd service but not on other platforms, try to create universal logging option.

Use YAML file for configuration

Using a Python script to manage configuration is not optimal, the formatting is not easy to manage.

Using a config.yaml file and parsing this with pyyaml would make it easy to read and manage for users.

main.py to be renamed sys2mqtt.py

To clarify what the file does to anyone who sees it outside of its directory such as in search results, system resource monitors etc.

Does not run as FreeBSD service.

systemd files are included for Ubuntu, Debian, CentOS and Sangoma Enterprise Linux.

A method of running as a service in FreeBSD should be included.

Installation Instructions

With the systemd unit file being put to use, detailed installation instructions will be needed for Windows and FreeBSD users.

Integrate getting statistics and publising statistics into functions.

The getting of statistics and the publishing of statistics should be moved together into the already existing functions.

For example

def function
    get cpu-util
    publish cpu-util

def function2
    get mem-util
    publish mem-util

This will require checking MQTT connection status at the start of each loop as part of an if statement eg.

if mqtt is disconnected
then
    connect to mqtt
elif mqtt is connected
then
    pass

No exception handling.

main.py has no exception handling past defining the system hostname.

Before v0.3 release, exception handling should be added.

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.