Commit Graph

376 Commits

Author SHA1 Message Date
Daniel Markstedt
278b01c1a4 Show hostname instead of RaSCSI 2021-10-28 13:29:06 -07:00
Daniel Markstedt
52dbfdb44a Remove version to reduce clutter 2021-10-28 11:00:31 -07:00
Daniel Markstedt
5d304e4eaf Show IP above RaSCSI version 2021-10-28 10:39:21 -07:00
Daniel Markstedt
861f4a4327 Show IP address on OLED screen 2021-10-28 10:36:31 -07:00
Daniel Markstedt
58ba087476 More user friendly netatalk connection status messages 2021-10-28 09:52:45 -07:00
Daniel Markstedt
500048ee70 Do chunked downloads to avoid running out of memory 2021-10-28 06:19:58 -07:00
Daniel Markstedt
08c2295832
Shut down splash in the same style as the boot one (#386) 2021-10-27 21:22:29 -05:00
Daniel Markstedt
508bf83292
Fix unzipping individual files in subdirs (#387)
* Fix unzipping individual files in subdirs

* Escape member file name before extracting
2021-10-27 21:21:43 -05:00
Eric Helgeson
61e596aedf
Merge pull request #390 from akuker/rdmark_kill_other_oled
Pkill other oled monitor scripts before starting new one
2021-10-27 13:49:48 -05:00
Eric Helgeson
c638127614
Merge pull request #389 from akuker/fix_typo_and_multiline
Fix typo and the multiline strings.
2021-10-27 13:48:47 -05:00
Daniel Markstedt
19bee3654e Cleanup 2021-10-27 11:13:30 -07:00
Daniel Markstedt
7ec7d45c48 Use the requests library to fetch files 2021-10-27 11:11:37 -07:00
Daniel Markstedt
46698c7b05 Use wget to download files instead of urllib; reducing code duplication and fixing a bug 2021-10-26 21:50:00 -07:00
Daniel Markstedt
9240ce974a Pkill other oled monitor scripts before starting new one 2021-10-26 18:21:39 -07:00
Daniel Markstedt
1b8a0c341d Fix typo and the multiline strings. 2021-10-26 15:51:57 -07:00
Daniel Markstedt
e5f58bb967
Capture files being extracted as well (#381) 2021-10-26 15:05:49 -05:00
Daniel Markstedt
28de92a00c
Enable unzipping of individual archive members (#385)
* Enable unzipping of individual archive members

* Add code comments
2021-10-26 15:05:15 -05:00
Daniel Markstedt
3546764722
Better error handling in ISO image creation (#379) 2021-10-26 15:03:29 -05:00
Uwe Seimet
79c5da9432
Use long long instead of long for image size (#383) 2021-10-26 06:41:17 -07:00
Daniel Markstedt
87640a7c2c
More verbose unzipping; don't overwrite existing files (#378) 2021-10-25 20:58:16 -05:00
Uwe Seimet
cc1783c1cd
Improved remote connection error handling (#376)
* Improved remote connection error handling

* Improved error handling by adding a magic string to each message

* Interface comment update

* Interface comment update

* Improve error messages

* Clients send the magic word to authenticate

Co-authored-by: Daniel Markstedt <markstedt@gmail.com>
2021-10-25 16:04:10 -07:00
Daniel Markstedt
7725556626
Use Type Writer font on the OLED screen (Author: Mandy Smith) (#377)
* Use Type Writer font on the OLED screen

* Add README crediting Mandy Smith + note on permission
2021-10-25 17:41:36 -05:00
Daniel Markstedt
e3794619b4
OLED screen: Clean exit on error; proper handling of removable devices; signal handling; splash screen (#364)
* Clean exit on errors

* Avoid unnecessary scrolling

* Fix bug where removable media wasn't updated

* Add signal handler, solution from https://stackoverflow.com/questions/1112343/how-do-i-capture-sigint-in-python

* Display a splash screen on startup

* Introduce stop splash

* Add parameters to enable the SIGTERM handling to take effect

* Change to a less busy stop splash

* Less busy start splash

* Iterate on splash bitmaps

* Iterate on splash bitmap

* Add check for libopenjp2-7-dev in the start script

* Iterate on splash bitmap

* Iterate on splash bitmap
2021-10-24 21:13:32 -05:00
Daniel Markstedt
960cc91168
Iterate on webapp config UX (#371)
* Iterate on webapp config ux

* Labels were only adding clutter

* Add confirmation modals
2021-10-24 21:09:35 -05:00
Pacjunk
d334669722
Update drive_properties.json (#372)
Add RZ22, RZ23, RZ24, RZ26L, RZ28M, RZ29B & RZ56
2021-10-24 18:33:33 -07:00
Daniel Markstedt
dd6d289395 Fix incorrect path to zip file to unzip; improve error handling 2021-10-24 11:07:26 -07:00
Daniel Markstedt
ea0d4cc4b6 Fix zipfile handling 2021-10-24 10:27:44 -07:00
Daniel Markstedt
df12ceb028 Add missing endif, and clean up indentation 2021-10-24 10:19:07 -07:00
Daniel Markstedt
17fc99d0fc
Merge branch 'develop' into rdmark_inline_prop 2021-10-24 09:57:08 -07:00
Eric Helgeson
e2f6ce8bc2
Merge pull request #365 from akuker/issue_356
Clean up config files after error
2021-10-24 11:53:47 -05:00
Eric Helgeson
1b17b8272c
Merge pull request #368 from akuker/manual_unzip
Bring back manual unzip
2021-10-24 11:53:14 -05:00
Uwe Seimet
dcbee64750
Do not consider NONE operation an error (#369)
* Do not consider NONE operation an error

* Cleanup

* Code cleanup from other PR
2021-10-23 23:10:31 -07:00
Daniel Markstedt
6c60dcf550 Display image properties inline in the image list, and remove the previous UI 2021-10-23 23:00:40 -07:00
Daniel Markstedt
7d21a284cd Use href to go back to index page 2021-10-23 10:39:16 -07:00
Troy
40432c9de0
All Sense/ASC/ASCQ data is cleared properly (#367)
* All Sense/ASC/ASCQ data is cleared properly

* Forgot to guard the status clear for REQUEST SENSE

Co-authored-by: Troy <jokker@gmail.com>
2021-10-22 20:16:37 +02:00
Daniel Markstedt
39bd6b7ee9 Bring back manual unzip, remove automatic unzip on upload, and show only relevant controls for zip files 2021-10-22 06:42:28 -07:00
Uwe Seimet
ac4abbbe73
Unlink created image file if fallocate() or copying failed (#363)
* Unlink created image file if fallocate() failed

* Also delete destination file after copying if something goes wrong
2021-10-21 18:17:58 -07:00
Daniel Markstedt
e059432402 Clean up config files after error 2021-10-21 17:10:25 -07:00
Daniel Markstedt
269b718ec7
Configurable OLED screen rotation (#359)
* Read rotation from the 1st command line arg

* Configure screen rotation during installation

* Better argument validation + use human readable arguments

* Cleanup
2021-10-20 21:33:06 -05:00
Uwe Seimet
dbaf5dcd30
rasctl output update (#357) 2021-10-20 19:55:48 -05:00
Daniel Markstedt
a47588ab22
Scroll the OLED screen output vertically when overflowing (#358)
* Show only the two last chars of type to save space

* Display rascsi version

* Show more relevant info on removable and bridge devices; Also cleanup

* MO is also removable

* Special handling for BR device

* OLED screen output scrolls vertically when overflowing
2021-10-20 19:55:09 -05:00
Daniel Markstedt
3856fd853b
Remove legacy device status logging (#355) 2021-10-20 18:21:08 -05:00
Daniel Markstedt
cbe3642054
OLED Monitor: use venv and leverage start script in systemd service (#347)
* Add start script for oled monitor

* systemd service definition for oled monitor

* Remove superfluous file

* Bump library versions to avoid erroring out

* Revert mistaken changes

* Revert mistaken changes
2021-10-19 20:01:32 -05:00
Daniel Markstedt
e10a99c24c
OLED Screen: Inquire device status over the protobuf interface (#349)
* Inquire device status over the protobuf interface

* Correct docstring

* Direct URL to make website

* Add protobuf lib to gitignore
2021-10-19 19:59:04 -05:00
Daniel Markstedt
8ab16a1fb2
Restart monitor_rascsi from the Web UI (#341) 2021-10-19 17:58:30 -07:00
Daniel Markstedt
1cae11bcac
Tweak help text and disk status message in Web UI (#337)
* Bring back data important to the user to a more prominent location

* Tweak labels

* More help text

* Tweak messages shown in UI to better align with current develop
2021-10-19 19:44:16 -05:00
Daniel Markstedt
84ba78327b
Feature afpshare in rascsi-web (#333)
* Define afp_dir

* Implement generic download_to_dir() method

* Display AFP share download only when netatalk is running

* Make url input required

* Better help text

* Fix server error

* Better error handling

* Typo fix

* Tweak helptext

* Show number of afpd processes running

* Tweak label
2021-10-19 19:43:15 -05:00
Uwe Seimet
00e8855e41
Fixed capacity calculation for small drives (#346) 2021-10-19 08:45:41 -07:00
Daniel Markstedt
b8722efe0b
Graceful shutdown of rascsi in the systemd service (#338) 2021-10-18 08:43:57 -07:00
Uwe Seimet
62a104f75d
Added SHUT_DOWN command, split rascsi.cpp (#334)
* Added TERMINATE command

* Help text update

* Created ras_util namespace

* Created protobuf_util namespace

* Extracted RascsiImage from rascsi for better modularity

* Fixed wrong filenames (class name differed)

* No need for response handler to be a singleton

* Class renaming

* Renaming

* Moved code

* Moved code

* Image folder handling optimizations

* Updated device factory handling

* DeviceFactory constructor should be private (singleton)

* Renamed TERMINATE to SHUT_DOWN

* Fixed capacity calculation for INQUIRY data

* ATTACH and DETACH return the resulting device list for convenience

* Interface comment update

* Moved code, check fd

* Use new command when returning result for ATTACH/DETACH

* Updated interface comments
2021-10-17 08:51:14 +02:00