Skip to content

adding optional other sensor values #17

@cweinhofer

Description

@cweinhofer

Hi György,

I like the recent changes to module. Both functional and attractive. Seeing them inspired me to rethink my pull request from a few months ago.

Your assertion about very few people ever needing to display both Celsius and Fahrenheit was quite true. But I realized that my my original proposal may not have been bad but simply too narrow in scope. I think the idea could be sound if it could be expanded for a wider variety of uses.

Here's my new idea: What if we added an option in the code to have two extra values displayed directly below temp and humidity and above your new battery and update time? They would use essentially the same code as temp and humidity with just new names.

And like humidity, they would only appear if data was sent to the module. For many users they would be unused -- "out of sight, out of mind" as the say. But for people who have remote units capable of sending other values (for example atmospheric pressure, wind speed, solar radiation level, etc.) they would be available for use.

To help keep things simple and broadly usable, they could be coded as just generic number values and the user would then add symbols/units (like atm or m/s) after the numbers using CSS.

I would be happy to cobble together a pull request for both the code and the readme. Code-wise the changes would be somewhat similar to my pull request from a few months ago, so I don't think it would be too hard to do. But I figured I'd see what you thought of the idea first.

Thanks,
Colby

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