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

DB backup alternative - please include meter value on timestamp e-mail #467

Closed
gernotontheroad opened this issue Dec 17, 2020 · 4 comments
Closed

Comments

@gernotontheroad
Copy link

Hi everyone

Background Story:
I had been running Steve 3.4.3 on docker on Mac for 3 weeks and everything was running great until yesterday, when an update brought my Mac down and I had to restore it from a Time Machine backup. I had included the docker VM in time machine backup but when I restored the machine with the data from the night before the crash, the docker and Steve setup was there and running but without a single transaction data. I was also not able to locate the DB on the indicated location (/user/library/container/...) to have it recovered individually.

What I would like to achieve:
In order to avoid a 2nd data loss I would now like to export all transactions automatically by e-mail (and parse it into an Excel spreadsheet). I was hoping that the Steve e-mail notifications (Notify when.... a charging station starts/ends a transaction) would do the trick but they only contain the time stamp and no meter value related information.

Has anyone an idea how I could add the start and stop value of a transaction to the notification?

Thank you
Gernot

@goekay
Copy link
Member

goekay commented Dec 17, 2020

... export all transactions automatically by e-mail ...

i understand from this that you do not want to use the functionality on transactions page to export and download the data as csv manually?

@gernotontheroad
Copy link
Author

gernotontheroad commented Dec 17, 2020 via email

@goekay
Copy link
Member

goekay commented Dec 17, 2020

got it. i can easily modify the mail bodies of current notifications (start and stop) to include these values.

you should keep in mind: it would be best to have an automated backup strategy of the database in regular intervals (e.g. daily) instead of relying these mails/events. a lost database contains other valuable information besides transactions.

@gernotontheroad
Copy link
Author

gernotontheroad commented Dec 17, 2020 via email

@goekay goekay closed this as completed in 91eca19 Dec 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants