Domoticz on Orange Pi zero

Quote

Having played a lot with Raspberry Pi, I decided it is time for something else: the Orange Pi.

The Orange Pi Zero plus to be precise. The Zero is a potent, very small, Raspberry like machine with Ethernet, Wifi and standard USB port out of the box. They can be bought for some 12 EUR, for instance at Banggood.

Here is my manual for getting the Orange up and running and installing Domoticz, Mosquitto, Homekit and more.

For getting things started you can use this excellent tutorial:

Install Domoticz on an Orange Pi Lite (WiFi) under Armbian

Basically this is what you do:
first get Armbian for the Zero plus
https://dl.armbian.com/orangepizeroplus/Debian_stretch_next.7z

Put the image on an micro Sd-card, using Etcher.

Load the SD-card in the your Zero.

The first step is a bit of a nuisance. You have to get the Zero connected to your Wifi network and log in through SSH.
Luc Small has a good tutorial for this.

One way of getting in the Zero, is by connecting it to an ethernet cable connecting to your router.
Luc writes:

To boot your Orange Pi Zero for the first time:

  • Insert your micro SD card imaged with Armbian into the micro SD slot on the Orange Pi Zero.
  • Connect your Orange Pi Zero using an Ethernet cable to your router.
  • Connect your 5V power supply to the Orange Pi Zero via the micro USB connection.
  • Plug your 5V power supply into the mains.
  • Within a minute or two the LEDs on the ethernet port of the Orange Pi Zero should start to flash, indicating network activity. Assuming your router is configured for DHCP, the Orange Pi Zero should automatically obtain an IP address on your network.

    In order to log into the Orange Pi Zero, we need to know the IP address it has been assigned. Probably the easiest way to obtain this is to login to the administration interface of your router (usually provided as a web interface). It varies from model to model, but many routers will provide a screen which lists DHCP leases. With any luck it will be possible to identify the Orange Pi Zero in the list of DHCP leases and see which IP address it has been allocated. One approach is to take note of the IP addresses in the list before connecting your Orange Pi Zero to the network. Then connect your Orange Pi Zero to the network and to power, wait for it to boot (a minute or two) and refresh the list of DCHP leases. It should now have an extra entry and that entry should correspond to the IP address assigned to your Orange Pi Zero.

    Once you have the Zero’s IP address you can log in using SSH or PuTTY.
    On a Mac open a terminal window. (applications->terminal)

    type
    ssh root@IPADDRESS
    You will be asked for the password for user root. By default the password is 1234

    You will immediately be asked to change your password. To do so:

    Enter your (current) UNIX password as 1234 and press enter.

    At the Enter new UNIX password prompt, enter a new password and press enter.
    At the Retype new UNIX password prompt, enter the new password again and press enter.
    Next you will be asked to create a new account. This is a less privileged account for everyday use:

    At the Creating new account. Please provide a username (eg. your forename) prompt, enter a username for the new account and press enter.

    (Creating a user domoticz
    Even if it is not necessary, it is better to create a user domoticz

    adduser domoticz
    The new user is added to the sudo group to allow it to use this command.

    adduser domoticz sudo
    Change current user

    su domoticz)

    At the Enter new UNIX password prompt, enter a password for this account and press enter.
    At the Retype new UNIX password prompt, enter the password again and press enter.
    You will be asked to enter your Full Name and few other details. Enter them, if applicable, or simply press enter for blank.
    When asked Is the information correct? [Y/n], press the y key and then press enter.
    Within a few seconds you should be presented with a welcome message and a prompt:
    Congratulations – you have logged into your Orange Pi Zero for the first time.

    (we follow this site below:

    Install Domoticz on an Orange Pi Lite (WiFi) under Armbian


    )
    Before we go into the installation of Domoticz on the Orange Pi, let’s start by updating the system.

    sudo apt-get update
    sudo apt-get upgrade

    Now we can install domoticz

    sudo curl -L install.domoticz.com | bash
    Follow the instructions presented on screen.

    Due to a change in the libraries, this is not the version we can use. We have to switch to the beta version. First we need to update to the current beta.

    cd

    Domoticz should now work. Test this by surfing to the address provided in the setup.

    Time to install
    Node Red and Mosquitto

    bash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered) apt-get install mosquitto

    P1-wifi gateway

    Image

    Wil je slimme meter uitlezen, maar vind je een kabel van meterkast naar PC of Rapsberry Pi onhandig?

    Kies dan voor de P1-wifi gateway.

    Deze kleine module wordt via een kort kabeltje aan je slimme meter (Landis + Gyr E350 DSMR4, Kamstrup, ISKRA, kafia, enz) gekoppeld.

    Power adapter inpluggen en gaan. De meterwaarden worden nu iedere 10 seconden via WiFi verstuurd naar waar je maar wilt. De meterwaarden kunnen ook via een webinterface worden uitgelezen.

    Typische toepassing van dit setje is in een Domoticz installatie. Onmisbaar in elk domotica project! Alle slimme meters worden ondersteund.

    Zie romix.macuser.nl voor meer informatie.

    p1-wifi gateway

    Limesurvey on a Raspberry Pi (3b)

    Image

    TILT’s application server, Vortex, might give up after years of trusty service. So, I thought it an interesting experiment to if we could move our stuff to a Raspberry PI.
    It took some effort, but I’ve managed to get it up and running. Amazingly cool.

    Here are the rough instructions. I have just installed limesurvey250plus-build160228.zip on a brand new Raspberry Pi 3b. Works like a charm.

    start with NOOBS on a new SD card
    Boot up the Raspberry and have it install NOOBS.

    Once up and running start up the terminal

    sudo apt-get install apache2 -y —force-yes
    cd /var/www/html
    sudo chmod 777
    .

    sudo apt-get install php5 libapache2-mod-php5 -y —force-yes
    sudo apt-get install mysql-server php5-mysql php5-gd —force-yes

    create MySQL root passwd when asked for by the installer
    (you will need this when installing Limesurvey)

    sudo apt-get install php5-mysqlnd -y —force-yes

    download limesurvey from limesurvey.org
    (My version is limesurvey250plus-build160228.zip. Replace by whatever you actually download)
    mv /home/pi/Downloads/limesurvey250plus-build160228.zip /var/www/html
    unzip limesurvey250plus-build160228.zip

    cd /var/www/html
    chmod -R 755 /limesurvey/tmp/
    sudo chown -R www-data /limesurvey/tmp/
    chmod -R 755 /limesurvey/upload/
    sudo chown -R www-data /limesurvey/upload/
    chmod -R 755 /limesurvey/application/config/
    sudo chown -R www-data /limesurvey/application/config/

    cd /var/www/limesurvey/application/commands
    php console.php install limeadmin pwd123 Admin admin@mydomain.com

    replace pwd123 and mailaddress with your own data

    In a browser window goto
    localhost/limesurvey

    The Limesurvey installer should now run

    Presto. Enjoy!

    Raspberry Pi Zero

    Image

    I’ve neglected the site for a while. That will change, starting now.

    Raspberry org dropped the bomb 2 days ago, it’s called the Raspberry Pi Zero. I have ordered one immediately. The price indeed is 4 pounds sterling! (Including cable set (required only for the my first one) and shipping to the Netherlands, it cost me 19 Eur).

    Start of the real computer revolution? Maybe. Computers sure are coming down in size.

    Schermafbeelding 2015-11-28 om 18.01.47

    Generic brand advertising

    Quote

    THIS IS A GENERIC BRAND VIDEO.

    BY KENDRA EASH

    – – – –
    We think first
    Of vague words that are synonyms for progress
    And pair them with footage of a high-speed train.

    Science
    Is doing lots of stuff
    That may or may not have anything to do with us.

    See how this guy in a lab coat holds up a beaker?
    That means we do research.
    Here’s a picture of DNA.

    There are a shitload of people in the world
    Especially in India
    See how we’re part of the global economy?
    Look at these farmers in China.

    But we also do business in the U.S.A.
    Or want you to think we do.
    Check out this wind energy thing in Indiana,
    And this blue collar guy with dirt on his face.
    Phew.

    Also, we care about the environment, loosely.
    Here’s some powerful, rushing water
    And people planting trees.
    Our policies could be related to these panoramic views of Costa Rica.

    In today’s high speed environment,
    Stop motion footage of a city at night
    With cars turning quickly
    Makes you think about doing things efficiently
    And time passing.

    Lest you think we’re a faceless entity,
    Look at all these attractive people.
    Here’s some of them talking and laughing
    And close-ups of hands passing canned goods to each other
    In a setting that evokes community service.

    Equality,
    Innovation,
    Honesty
    And advancement
    Are all words we chose from a list.

    Our profits
    are awe-inspiring.
    Like this guy who’s looking up and pointing
    At a skyscraper or a kite
    While smiling and explaining something to his child.

    Using a specific ratio
    of Asian people to Black people to Women to White men
    We want to make sure we represent your needs and interests
    Or at least a version of your skin color
    In our ads.

    Did we put a baby in here?
    What about an ethnic old man whose wrinkled smile represents
    the happiness and wisdom of the poor?
    Yep.

    SUGGESTED READS

    Welcome to Our Branding House
    by Frank Ferri (6/29/2009)

    List: Pre-Internet Companies Rebranded as Modern-Day Start-Ups
    by Mike Lacher (7/19/2012)

    We Are a Creative Agency Specializing in All Your Branding Needs
    by Jamie Allen (7/16/2013)

    RECENTLY

    Fantasy Fantasy Baseball
    by Pete Reynolds (3/28/2014)

    Interviews with the Authors of McSweeney’s 46: The Latin American Crime Issue: Bernardo Carvalho
    by McSweeney’s (3/28/2014)

    Reviews of Self-Help Books by Professional Athletes: Love Means Nothing: A Review of Serving From the Hip by Venus and Serena Williams
    by Miles Wray (3/28/2014)

    POPULAR

    This is a Generic Brand Video
    by Kendra Eash (2/6/2014)

    Kafka’s Joke Book
    by John McNamee (3/19/2014)

    Confessions of an Upworthy Editor
    by Wayne Gladstone (3/4/2014)

    ARCHIVE | BROWSE BY AUTHOR | ALL COLUMNS | LISTS