Bot releases are hidden (Show)
Published by kizniche over 2 years ago
Published by kizniche over 2 years ago
Published by kizniche over 2 years ago
Published by kizniche over 2 years ago
Published by kizniche over 2 years ago
Published by kizniche over 2 years ago
Published by kizniche over 2 years ago
Following the upgrade, you will need to reboot to complete the upgrade.
LCD and Math Controllers have been completely removed from Mycodo and replaced with Functions. If you were previously using an LCD or Math controller, you will need to add the corresponding Function and change any other parts of the system that referenced those devices.
Published by kizniche almost 3 years ago
Published by kizniche almost 3 years ago
Published by kizniche almost 3 years ago
This is a bugfix release that includes a fix to a severe security vulnerability. It is recommended that all users that have Mycodo exposed to the internet and allow guest access upgrade to patch this vulnerability. Users that only run Mycodo on a local network and/or don't allow unknown user (i.e. guest) access likely won't be affected.
Published by kizniche about 3 years ago
Published by kizniche about 3 years ago
Published by kizniche about 3 years ago
Published by kizniche about 3 years ago
This release changes the way settings are saved, which requires a change to any custom Inputs/Outputs/Functions you have in use. If your custom module includes the seldom-used execute_at_modification() function (such as Mycodo/mycodo/inputs/python_code.py), you will need to change the parameters as well as the return variables.
Before:
def execute_at_modification(
mod_entry,
request_form,
custom_options_dict_presave,
custom_options_channels_dict_presave,
custom_options_dict_postsave,
custom_options_channels_dict_postsave):
allow_saving = True # Allows saving of options to occur
return (allow_saving,
mod_entry,
custom_options_dict_postsave,
custom_options_channels_dict_postsave)
After:
def execute_at_modification(
messages,
mod_entry,
request_form,
custom_options_dict_presave,
custom_options_channels_dict_presave,
custom_options_dict_postsave,
custom_options_channels_dict_postsave):
# messages["page_refresh"] = True # Setting to True will cause the options on the user's page to refresh
# messages["error"].append("Some error") # Uncomment this line to prevent options saving
# messages["warning"].append("This will be a warning message")
# messages["info"].append("This will be an info message")
if not messages["error"]:
messages["success"].append("Successfully completed execute_at_modification()")
return (messages,
mod_entry,
custom_options_dict_postsave,
custom_options_channels_dict_postsave)
Additionally, if you are currently using the MQTT JSON Input and your topics contain any special characters, you will need to enclose the topic in quotes (e.g. sensor-1 to "sensor-1").
Published by kizniche over 3 years ago
Published by kizniche over 3 years ago