Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import/ Export cleanup #70

Merged
merged 9 commits into from
Nov 16, 2023
Merged

Conversation

CDuffers
Copy link

Cleanup of readme.md to include "cd backup" to ensure the user is in the correct directory first.

Changes to emoncms-export.sh, emoncms-import.sh and usb-import.sh to correct location of module.json, making config.cfg locations consistent as some output differs from the real location and change the script location to always show the full path even when triggered by ./emoncms-export.sh (approach copied from usb-import.sh)

I've tested the scripts without a config.cfg.

image

The other scripts provide effectively identical output.

And when config.cfg exists:
image

Again the other scripts provide an effectively identical output.

CDuffers added 9 commits February 26, 2023 10:22
config.ini changed depending upon lines, hence replaced with a variable
config.ini changed depending upon lines, hence replaced with a variable
config.ini changed depending upon lines, hence replaced with a variable
…e location rather than relative when run interactively
…annot see anything surrounding it to suggest that the script order should include this before the exit, hence its removal
Changed backup_filename to include the full path as this was used in all bar one place
Created an import_location variable to enforce consistency through the script
Changed the check for import directory to remove existing as a bland and simple means to clear all files including . prefixed files
Changed emonhub.conf code to check for emonhub config directory first and copy if exists or leave a warning message if not
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants