github kizniche/Mycodo v7.7.0
7.7.0

latest releases: v8.15.13, v8.15.12, v8.15.11...
4 years ago

7.7.0 (2019.09.08)

This release changes how user-created Python code is executed. This affects Python Code Inputs and Conditional Functions. All effort was made to reformat user scripts during the upgrade process to adhere to the new formatting guidelines, however there are a few instances where scripts could not be updated properly and will need to be done manually by the user before they will work properly. After upgrading your system, ensure your code conforms to the following guidelines:

  1. Conditional Functions
    • Use 4-space indentation (not 2-space, tab, or other)
    • Change measure() to self.measure()
    • Change measure_dict() to self.measure_dict()
    • Change run_action() to self.run_action()
    • Change run_all_actions() to self.run_all_actions()
    • Change message to self.message
  2. Python Code Inputs
    • Use 4-space indentation (not 2-space, tab, or other)
    • Change store_measurement() to self.store_measurement()

Bugfixes

  • Fix sunrise/sunset calculation
  • Fix inability to use "," in Input custom options
  • Fix install dependencies for Ruuvitag Input (#638)
  • Fix reliability issue with Ruuvitag Input (crashing Mycodo daemon) (#638)
  • Fix storing of SHT31 Smart Gadget erroneous measurements
  • Prevent Pyro4 TimeoutErrors from stopping PID and Conditional controllers
  • Improve Controller reliability/stability
  • Fix path to pigpiod (#684)

Features

  • Add Pylint test for Python 3 Code Input
  • Add execute_at_creation option for Inputs
  • Add Measurement: Radiation Dose Rate
  • Add Units: Microsieverts per hour (µSv/hr), Counts per minute (cpm)
  • Add 'message' option for custom Inputs to display a message with the Input options in the web interface
  • Add more logs to view and consolidate "View Logs" page
  • Add automatic initialization of Input custom_options variables

Miscellaneous

  • Refactor how user-created Python code is executed (i.e. Python Code Inputs and Conditional Statements)
  • Refactor RPC by replacing RPyC with Pyro4 for improved system stability (#671, #679)
  • Increase Nginx file upload size
  • Reorganize menu layout
  • Modify linux_command exception-handling (#682)

Don't miss a new Mycodo release

NewReleases is sending notifications on new releases.