Format based on Keep a Changelog.
- Remove forgotten debugging messages in
save_espresso_to_history_hook
that could produce a runtime error if running SDB without DYE. Reported by Alan Leung.
- Better handling of
target_drink_weight
. - Read flush settings variables
flush_seconds
andflush_flow
from shots inproc load_shot
. Needed for DYE v2.42.
- Insert, update and load the new shot field
target_drink_weight
.
- Update "sync" symbol name that has changed in Font Awesome 6 (in SDB settings button)
- Add
espresso_resistance
to the vars read by::plugins::SDB::load_shot
. Needed for DYE v2.33.
- Reverse bug introduced in last version in
proc shots
that was no longer correctly creating each array item as a list.
- DSx2 workflow variable is now stored in the database, as column
workflow
in theshot
table, so it can be retrieved from past shots. Only filled if the shot is done while using the DSx2 skin. - New column
target_drink_weight
added to theshot
table to store the shot target yield/SAW in addition to the final actual drink weight that is in columndrink_weight
. Not filled at the moment, in preparetion to changes in DYE. - New proc
shots_by
, needed in the forthcoming DYE favorites.
- Initialize
$columns
in procupdate_shot_description
as otherwise it could trigger a runtime error under some scenarios. - Fix
proc shots
to accept "*" inreturn_columns
and to not cast column values as lists.
- Change the default for
sync_on_startup
to 0 (disabled) for new users, in preparation for DE1 app v1.39, as it's producing long startups for some users.
- Change the default for
sync_on_startup
to 0 (disabled) for new users, in preparation for DE1 app v1.39, as it's producing long startups for some users.
- Ensure that the
advanced_shot
and other parameters of profiles are correct and consistent by invoking::profile::read_legacy
onload_shot
whenread_profile=1
, instead of just reading the profile variables. - Bug fix: command
load_shot
was wrongly setting the globalsettings_profile_type
instead of the loaded shot variable in some cases.
- Make all text columns searching case-insensitive (COLLATE NOCASE). This is done on table creation, so only affects if the database is rebuilt. Note that this does NOT work on Androwish 2019 on tablet for doing case-insensitive searches on
V_shot.shot_desc
. - Treat
grinder_setting
as a numeric value (even if defined as a "category" in app_metadata.tcl) inload_shot
, so that zero is turned into an empty string. Do this to prevent empty values (normally when "Clear shot data" was used) in the grinder setting field in DYE.
load_shot
now prefixes chart series variables withgraph_
, otherwiseespresso_pressure
chart seriew was being overwritten by the profileespresso_presure
variable when bothread_series=1
andread_profile=1
.shots
gets a new argumentorder_by
.
- Ensure in proc
plugins::SDB::modify_shot_file
that chart series in modified shot files are saved in exactly the same order as in the original shot byshot::create_legacy
. This may be related to the duplicated Visualizer shots reported by Ricco Rosini.
- Add
filelist.txt
.
- Avoid errors when shots log longer
espresso_elapsed
charts than other series (reported by Jimmy Leow1). Now only stores in the DB to the shortest length betweenespresso_elapsed
,espresso_pressure
andespresso_flow
in procpersist_shot
, and ensures any empty value is set to NULL.
- Add chart series
espresso_resistance
andespresso_resistance_weight
in procmodify_shot_series
, so they can be uploaded to Visualizer, preventing duplicated shot files (as regular Visualizer auto-upload includes them).
- Proc
load_shot
now can load profiles
- Proc
load_shot
has 3 new optional arguments for what to load (chart series, description and/on profile)
- Fix saving of
drink_weight
under MimojaCafe insave_espresso_to_history_hook
- If there is no bluetooth scale connected, so that
settings(drink_weight)
is zero at the end of a shot, save the targetdrink_weight
in the shot, as defined in the skin (DSx & MimojaCafe) or in the DYE extension (next_drink_weight
). Also updates$::DSx_settings(live_graph_weight)
on DSx.
- Ensure empty numeric values are set to 0 in
modify_shot_file
.
get_shot_file_path
now searches the database first to match a clock value to a filename, as different systems (e.g. Android vs Windows 10) may format clock values differently.- The SDB_settings page now has type "fpdialog".
- Increase TDS maximum value to 25%.
load_shot
now uses new metadata package.- Ensure NULL values on all series in case they're shorter than elapsed.
- Don't raise a runtime error if parsing a shot file fails while synchronizing. Only log an error and show the total number of errors in a new line in the settings page
- Sort categories in FSH page by most recently used first
- Move package dependencies to preload to avoid problems when downgrading versions
- Set DYE_settings page through 'dui page add' instead of inside setup
- Change the Fontawesome symbol names to standard names.
- Ensure the required minimum version of the DE1app is used (v1.36 for this plugin version)
- Use DUI instead of DGUI to setup the settings page.
- Copy shots.db from the DSx plugin on first install.
- Data dictionary functions are back, now that the DGUI plugin is obsolete.
- Patch bug when $::settings(repository_links) was not initialized.
- Use Jeff K's new events system to hook when a shot is finished.
- Adapt to new plugins and logging systems in 1.34.14
- Define symbols used in the plugin on preload (new DGUI proc set_symbols)
- Data dictionary functions moved to DGUI plugin, to avoid circular dependencies.
init
proc moved tomain
.- Handle dependencies using the proposed changes to the extensions system.
- New proc
db_path
returns the path to the database (previously hardcoded).
- Initial code split off the DB namespace from the DSx DYE plugin.
- Added structure to work as a DE1app plugin instead of a DSx plugin.
- Remade
db_close
to prevent runtime errors if called more than once. - Define which procs are namespace-exported.
- New settings
sync_on_startup
andlog_sql_statements
. - Added settings page.