{"id":22352088,"url":"https://github.com/bertreb/pimatic-save","last_synced_at":"2025-03-26T12:10:48.232Z","repository":{"id":57324314,"uuid":"234157349","full_name":"bertreb/pimatic-save","owner":"bertreb","description":"Plugin for saving files to backup media","archived":false,"fork":false,"pushed_at":"2022-01-20T18:57:29.000Z","size":41,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T13:15:33.435Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"CoffeeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bertreb.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-01-15T19:33:49.000Z","updated_at":"2022-01-20T18:54:28.000Z","dependencies_parsed_at":"2022-08-25T21:11:34.598Z","dependency_job_id":null,"html_url":"https://github.com/bertreb/pimatic-save","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertreb%2Fpimatic-save","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertreb%2Fpimatic-save/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertreb%2Fpimatic-save/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bertreb%2Fpimatic-save/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bertreb","download_url":"https://codeload.github.com/bertreb/pimatic-save/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245650496,"owners_count":20650105,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-04T12:17:06.173Z","updated_at":"2025-03-26T12:10:48.212Z","avatar_url":"https://github.com/bertreb.png","language":"CoffeeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pimatic-save\nPlugin for saving files to backup media\n\nWith this plugin you can save files from the system Pimatic is running to a backup medium. The supported media in this release are FTP and mail.\n\nThe save of a file is done via an action rule. The medium independent action syntax is\n```\nsave \"[localpath/]filename\" [with timestamp] to SaveFtpDevice | SaveMailDevice\n```\n\nThe optional 'with timestamp' adds a timestamp in front of the filename.\nThe 24-hour timestamp format is \"yyyy-mm-dd_hhmmss\". With 24-hour format.\nThe filename can hold a local path and should follow the local operating system conventions (linux, windows). When adding an action the existance of the file is checked. The file needs to exist for the rule to be saved.\nThe base of the filename is the home directory of Pimatic. For rpi thats mostly the /home/pi/pimatic-app directory. You could use directory navigation like \"../..\" in the filename to select files outside the base directory.\n\nTo make a daily backup during the night at 1:00 of your config.json the rule is\n\n```\nwhen 'its 1:00' then 'save \"config.json\" with timestamp to \u003cyour FtpOrMail Device\u003e'\n```\n\n# The SaveFtpDevice\n\nWith this device files will be saved to a Ftp server.\nThe following device config.\n\n```\nhost:\n  description: \"Url to the backup server\"\n  type: \"string\"\nport:\n  description: \"Port of the backup server\"\n  type: \"number\"\n  default: 21\nusername:\n  description: \"Username of the backup server\"\n  type: \"string\"\npassword:\n  description: \"Password of the backup server\"\n  type: \"string\"\npath:\n  description: \"Remote path of the backup server where the config should be saved\"\n  type: \"string\"\n```\n\nThe path is the path from the login root that is specific for your ftp account. The path needs to exist on the ftp server! When a file already exists, the old version will be overwritten!\n\nThe FTP connection is made only when a file is saved. So the presence dot will only be presence on saving a file.\n\n# The SaveDropboxDevice (NOT AVAILABLE ANYMORE)\n\n\n# The SaveMailDevice\n\nWith this device a file (attachement) will be saved (sent) to an email address.\nThe following device config.\n\n```\naddress:\n  description: \"Your email address\"\n  type: \"string\"\npassword:\n  description: \"The password for your email\"\n  type: \"string\"\nserver:\n  description: \"The mailserver smtp address\"\n  type: \"string\"\nport:\n  description: \"The smtp port used, default 587\"\n  type: \"number\"\nto:\n  description: \"The email address the mail is sent to. If empty the 'from' email is used (=address)\"\n  type: \"string\"\nsubject:\n  description: \"The optional subject for the save mail\"\n  type: \"string\"\ntext:\n  description: \"The optional text for the save mail\"\n  type: \"boolean\"\n```\n\n\nThe presence dot goes present after first successful save and absent after an error in save.\n\n---\nThe plugin is in development. You could backup Pimatic before you are using this plugin!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertreb%2Fpimatic-save","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbertreb%2Fpimatic-save","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbertreb%2Fpimatic-save/lists"}