05 Dec

UPDATE TO: USB Automount Script for Raspberry Pi

HELLO EVERYONE!

OUR MEANING

What can you find?

This website will present and explain software, electronics and scripting solutions for everyones home.

We will show you solutions for

  • home automation
  • private clouds
  • data storage solutions

for your own use.

Why do we write?

The 21st century and all its powerful hardware and software grows more and more complex, while concepts of simple home solutions sound still trivial . We want to give you some of this solutions and even more we want to prove to you, that also solutions can be simple.

We want to share our knowledge and built devices or software entities with everyone, who is brave enough to simplify his/her life.

We want to bring you technological solutions, so the technology can more and more disappear into the background and life will gain more time and value.

What will come further?

In a near future we also present a shop to purchase simple solutions which can be used without or with only a little software and hardware knowledge for installation.

SEE OUR POSTS
  • Here an update to USB Automount Script for Raspberry Pi after some tests and some comments. The script now supports multiple partitions and those without labels.

    You can download it here mount_manager (253 downloads) or checkout the code below. I also updated the original post.

    regex='(/dev/sd[a-z][0-9]): (LABEL=\"([A-Za-z0-9_\-]+)\")?.*UUID=\"([a-zA-Z0-9\-]+)\".*TYPE=\"([a-zA-Z0-9]+)\"'
    while IFS= read -r line; do
            if [[ $line =~ $regex ]];then
                    name="${BASH_REMATCH[1]}"
                    label="${BASH_REMATCH[3]}"
                    uuid="${BASH_REMATCH[4]}"
                    type="${BASH_REMATCH[5]}"
                    if [ -z "${label}" ];then
                            label=${uuid}
                    fi
                    arr_plugged_in_path+=($name)
                    arr_plugged_in_label+=($label)
                    arr_plugged_in_type+=($type)
            fi
    done < <(blkid)

    Thanks to all who wrote me and enjoy!

  • 17 Apr

    Java Android application to send http commands via htaccess for remote control

    This is a quick one.  In our recent post Remote Control Raspberry via Apache2 Web Server we explained how to receive a command on an apache2 web server. And in JavaScript function to send http commands via htaccess for remote control we demonstrated how to send such a control command via JavaScrip. Now here is the minimal Java Android application to send http commands via htaccess for remote control e.g. your raspberry pi. So when you push a button on you android phone, your raspbery pi at home does whatever you want him to do.

    Read More

  • 17 Apr

    JavaScript function to send http commands via htaccess for remote control

    In our recent post Remote Control Raspberry via Apache2 Web Server we explained how to receive a command on an apache2 web server. If we want to send this command e.g. via an android app, we need some code to accomplish this task without any browser. Thus, we show how to write a JavaScript function to send http commands via htaccess for remote control a raspberry pi or any other web accessible http(s) server.

    You might think you find a typo and it should say Java instead of JavaScript. But we are aware of that. If you want to use Java, we will present a guide on that soon. This post applies JavaScript, because you can use the same come for a Web Bases Browser Application or e.g. an QT / QML App, as we did it so far.

    Read More

  • 27 Mar

    Remote Control Raspberry via Apache2 Web Server

    Control your raspberry pi and its GPIOs via apache2 Web Server from android app or web browser. Including SSL and htaccess security.

    remote control your raspberry pi

    Remote Control Raspberry via apache2 Web Server: This post guides you to remote control your raspberry pi via https (self-signed SSL certificate) from wherever you want. We show you how to add htaccess security and add commands via php.

    Introduction

    Let’s say you have some fancy Raspberry Pi setup at home which  does some home automation (e.g. via GPIOs) or other tasks for you. But how do you remote control your tasks if necessary? My suggestion is a web interface or a simple android smart phone or tablet app (these devices are usually at hand, so there is no need to access you pi directly).

    Read More