{"action":"created","issue":{"url":"https://api.github.com/repos/foosel/OctoPrint/issues/1030","labels_url":"https://api.github.com/repos/foosel/OctoPrint/issues/1030/labels{/name}","comments_url":"https://api.github.com/repos/foosel/OctoPrint/issues/1030/comments","events_url":"https://api.github.com/repos/foosel/OctoPrint/issues/1030/events","html_url":"https://github.com/foosel/OctoPrint/issues/1030","id":102149818,"number":1030,"title":"[Request] Warn user about disk space issues","user":{"login":"foosel","id":83657,"avatar_url":"https://avatars.githubusercontent.com/u/83657?v=3","gravatar_id":"","url":"https://api.github.com/users/foosel","html_url":"https://github.com/foosel","followers_url":"https://api.github.com/users/foosel/followers","following_url":"https://api.github.com/users/foosel/following{/other_user}","gists_url":"https://api.github.com/users/foosel/gists{/gist_id}","starred_url":"https://api.github.com/users/foosel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foosel/subscriptions","organizations_url":"https://api.github.com/users/foosel/orgs","repos_url":"https://api.github.com/users/foosel/repos","events_url":"https://api.github.com/users/foosel/events{/privacy}","received_events_url":"https://api.github.com/users/foosel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/foosel/OctoPrint/labels/difficulty:medium","name":"difficulty:medium","color":"bfdadc"},{"url":"https://api.github.com/repos/foosel/OctoPrint/labels/type:request","name":"type:request","color":"0052cc"},{"url":"https://api.github.com/repos/foosel/OctoPrint/labels/up-for-grabs","name":"up-for-grabs","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-20T14:17:39Z","updated_at":"2015-08-31T15:16:02Z","closed_at":null,"body":"OctoPrint should display a big red warning notification when the disk space for file uploads starts becoming a rare good (compare also #655). It should also detect when the disk space on the partition the configuration file is stored on runs low and refuse to even save settings from a certain point onward to prevent corruption of files.\r\n\r\n- [ ] add setting for warning and \"refuses to operate\" space thresholds\r\n- [ ] check available disk space on configuration partition and plugin data folder against \"refuses to operate\" threshold on startup, force warning overlay in UI when space is below threshold with button \"I understand I need to clear up my disk space\" or something similar\r\n- [ ] add new API to provide data (free vs total) for all the configurable folders (uploads, timelapses, timelapse temp, logs, watched, plugin data folder, ...) plus the location of the configuration file\r\n- [ ] utilze API from frontend to query data and display information next to folder paths in the settings\r\n- [ ] also display warning if user is admin when data anywhere falls below a certain threshold, include information how to free up space\r\n- [ ] optional: include new hook for plugins to provide additional space information"},"comment":{"url":"https://api.github.com/repos/foosel/OctoPrint/issues/comments/136403110","html_url":"https://github.com/foosel/OctoPrint/issues/1030#issuecomment-136403110","issue_url":"https://api.github.com/repos/foosel/OctoPrint/issues/1030","id":136403110,"user":{"login":"foosel","id":83657,"avatar_url":"https://avatars.githubusercontent.com/u/83657?v=3","gravatar_id":"","url":"https://api.github.com/users/foosel","html_url":"https://github.com/foosel","followers_url":"https://api.github.com/users/foosel/followers","following_url":"https://api.github.com/users/foosel/following{/other_user}","gists_url":"https://api.github.com/users/foosel/gists{/gist_id}","starred_url":"https://api.github.com/users/foosel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/foosel/subscriptions","organizations_url":"https://api.github.com/users/foosel/orgs","repos_url":"https://api.github.com/users/foosel/repos","events_url":"https://api.github.com/users/foosel/events{/privacy}","received_events_url":"https://api.github.com/users/foosel/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T15:16:02Z","updated_at":"2015-08-31T15:16:02Z","body":"Hm... Only by adding a setting of the average snapshot size. That depends on too many factors (resolution, quality, compressability which depends on the image itself etc) to reliably guess. "}}