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

USB hard drive #118

Open
nimda2 opened this issue Apr 3, 2022 · 5 comments
Open

USB hard drive #118

nimda2 opened this issue Apr 3, 2022 · 5 comments
Labels
enhancement New feature or request

Comments

@nimda2
Copy link

nimda2 commented Apr 3, 2022

Hi, would it be possible to read out a connected USB hard drive in addition to the SD card?

Unfortunately, so far you can only see the SD memory.

@Apollon77 Apollon77 added the enhancement New feature or request label Apr 3, 2022
@Apollon77
Copy link
Member

In fact all commands that are executed are listed in io.package file, e.g. for sd card https://github.com/iobroker-community-adapters/ioBroker.rpi2/blob/master/io-package.json#L299-L323

In fact find out the commands you need for a usb hard drive and we could add them

@nimda2
Copy link
Author

nimda2 commented Apr 3, 2022

For me its
df /dev/sda1
for mounted extern USB Hard Drive

@SirFlour
Copy link

SirFlour commented Apr 14, 2022

yes that would be great. i just changed from sd card to usb drive and so it would be cool to see the usb drive infos :) i am happy to test :)

PS: Actually i just reactivated the SD card info and it is showing me my USB drive. I guess, because i dont have a SD card anymore :)

@nimda2
Copy link
Author

nimda2 commented Apr 23, 2022

      "sdcard": {
  "sdcard_root_total": {
    "command": "df /",
    "regexp": "\\S+\\s+(\\d+).*\\/$",
    "post": "$1/1024",
    "multiline": true
  },
  "sdcard_boot_total": {
    "command": "df /boot",
    "regexp": "\\S+\\s+(\\d+).*\\/boot$",
    "post": "$1/1024",
    "multiline": true
  },
  "sdcard_usb_total": {
    "command": "df /media/usb3",
    "regexp": "\\S+\\s+(\\d+).*\\/media/usb3$",
    "post": "$1/1024",
    "multiline": true
  },
  "sdcard_root_used": {
    "command": "df /",
    "regexp": "\\S+\\s+\\d+\\s+(\\d+).*\\/$",
    "post": "$1/1024",
    "multiline": true
  },
  "sdcard_boot_used": {
    "command": "df /boot",
    "regexp": "\\S+\\s+\\d+\\s+(\\d+).*\\/boot$",
    "post": "$1/1024",
    "multiline": true
  },
  "sdcard_usb_used": {
    "command": "df /media/usb3",
    "regexp": "\\S+\\s+\\d+\\s+(\\d+).*\\/media/usb3$",
    "post": "$1/1024",
    "multiline": true
  }

now it works for me
Screenshot 2022-04-23 194112

@Damrak2022
Copy link

Damrak2022 commented Jun 8, 2022

Für mich wäre es eine SSD-Festplatte an df /dev/sda2
Das wäre super

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants