Git Product home page Git Product logo

pi-temperature's People

Contributors

dwiechert avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

pi-temperature's Issues

Add Pretty Printing

When #9 was implemented, it took away pretty-printing of the Alert information. Add pretty-printing of the JSON.

Make Sensors Directory Overriddable

Currently the sensors director is hard-coded to be /sys/bus/w1/devices/w1_bus_master1/. Make it a property that can be overridden for easier testing. Property name:

sensorsMasterDirectory

Sys.Out Alert

We should add a simple Alert that prints the sensor information to Sys.Out.

Fix Clearing Sensor Names

Currently, clearing the sensors name map on each read of the sensors. This is done in case there is a new sensor or one is deleted so we don't have to keep track of that - we just make a new map on each read. Though, while making a new map each time, the names are being lost. Need to check to see if the sensor previously had a name and if so, put the name back in the map after the current read.

CSV Alert

It would be nice to have an Alert that records the temperature data to a csv file.

Excel Alert

It would be nice to have an Alert that records the data in Excel so we can track the temperatures over time.

Add Alert.getInfo

Add method public String getInfo() to Alert so each alert can provide information about itself.

When implemented, the old way of getting info should be removed and use getInfo() instead.

Should Alerts Have A Configuration Class?

Currently, Alert.update takes a String input parameter. Should it take in some kind of ConfigurationClass and then the Alert itself would be updated to return that class?

public Class<T> getConfigurationClass();

The benefit of using a configuration class is that it'd be easier to see the input to the Alert and we would have a standard way to pass in the data - json. The downside is that each Alert would need to support this ConfigurationClass idea.

However, the AbstractAlert could have a default to just return String to keep it simple if a certain Alert only wanted String input.

Add /alerts/list/{name}

Currently users can only list all of the Alerts. Add /alerts/list/{name} which returns List<String> of all of the Alerts that have the same name of that which is provided.

Add /sensors/list/{name}

Currently users can only list all of the Alerts. Add /sensors/list/{name} which returns List<String> of all of the Sensors that have the same name of that which is provided.

Calibration

Investigate on how to calibrate the sensor / if there needs to be calibration.

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.