Skip to content

Separation of local statistics class from inbuilt library #18

@glenm-nz

Description

@glenm-nz

Not functionally broken, but just an idea to clear a few warnings in the IDE

.../selpi/statistics.py" is overriding the stdlib module "statistics"

Could it be considered to:

  • rename statistics.py to selpi_statistics.py
  • Modify from statistics import Statistics to from selpi_statistics import Statistics in the following files
  • http-select.py
  • http-py
  • stat-select.py
  • stat.py

The issue is occurring in Ubuntu 24.04 LTS, and in line with Ubuntu's apparent move away from PIP, I'm using the APT managed modules instead.

Just for context of what I was doing when I ran into the above - I have been running an adapted version of Justin's code for years (runs as a service) to Publish values to MQTT (For consumption by OpenHAB and EmonCMS). I was starting to refactor it for some minor improvements, but also having a look at your code as a possible alternative option (Adding a 'MQTT' command, which publishes the stats to MQTT topics on a predefined interval). Just a half-baked idea at this stage !!

Cheers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions