Banana Pi - Bananian Linux

hardware info on main page.

I am using a 4 GB Lexar SDHC class 4 card for testing.

OS: Bananian 16.04 (was: 15.04, was: 15.01)

Links

armbian, Bananian Linux, Extellisys - Python on Debian Wheezy, R-Pi Tellstick core,

more links

Raspberry Pi and 433 MHz: Howto: Raspberry Pi GPIO 433MHz Remote Sockets (Domoticz), Super simple Raspberry Pi 433MHz home automation, Decode 433 MHz signals w/ Raspberry Pi & 433 MHz Receiver, Send & Receive 433MHz Signals For Home Automation (Pi forums), 433MHz RF Communication from a Raspberry Pi, 433MHz receiver on Raspberry Pi (Home Assistant community), rpi-rf (Python), Pilight,

local links

TellStick Duo,

hints: dpkg -l name - list packages, dpkg -L name - list files of package,

Work log

2017-05-16: Home Assistant - try to start it:

tingo@kg-bpi:~$ hass --open-ui
Config directory: /home/tingo/.homeassistant
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): maps.googleapis.com
WARNING:homeassistant.config:Incomplete core config. Auto detected elevation: 11
INFO:homeassistant.core:Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_off>
[...]

it worked.

2017-05-16: bananian - disk space root@kg-bpi ~ # df -h Filesystem Size Used Avail Use% Mounted on /dev/root 3.7G 3.2G 311M 92% / devtmpfs 486M 0 486M 0% /dev tmpfs 98M 208K 97M 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 195M 0 195M 0% /run/shm low on space. Can we use apt-get to free some? apt-get clean root@kg-bpi ~ # apt-get clean root@kg-bpi ~ # df -h
Filesystem Size Used Avail Use% Mounted on /dev/root 3.7G 2.9G 622M 83% / devtmpfs 486M 0 486M 0% /dev tmpfs 98M 208K 97M 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 195M 0 195M 0% /run/shm helped a bit apt-get autoclean root@kg-bpi ~ # apt-get autoclean Reading package lists... Done Building dependency tree
Reading state information... Done apt-get autoclean 11.27s user 1.12s system 16% cpu 1:15.53 total root@kg-bpi ~ # df -h / Filesystem Size Used Avail Use% Mounted on /dev/root 3.7G 3.0G 580M 84% / oops, worked the wrong way. root@kg-bpi ~ # apt-get autoremove Reading package lists... Done Building dependency tree
Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. autoremove did nothing. 2017-05-16: bananian - a reboot later and we have Bananian 16.04: tingo@kg-bpi:~$ cat /etc/bananian_version 160401 tingo@kg-bpi:~$ uname -a Linux kg-bpi.kg4.no 3.4.113-bananian #9 SMP PREEMPT Sat May 6 12:20:11 UTC 2017 armv7l GNU/Linux finally. check services tingo@kg-bpi:~$ pgrep -lf nginx 1367 nginx 1369 nginx tingo@kg-bpi:~$ pgrep -lf php-fpm 1353 php5-fpm 1354 php5-fpm 1355 php5-fpm tingo@kg-bpi:~$ pgrep -lf telldusd 1321 telldusd they are running - ok. 2017-05-16: bananian - upgrade again root@kg-bpi ~ # bananian-update [...]


You are using Bananian 15.08 r01 This script will upgrade your installation to Bananian 16.04 r01


The following files will be modified:

boot partition: /uImage

root filesystem: /lib/modules/ /lib/firmware/ /usr/local/bin/bananian-config (del) /usr/local/bin/bananian-hardware (del) /usr/local/bin/bananian-update (del) /usr/local/bin/bin2fex (del) /usr/local/bin/fex2bin (del) /usr/local/bin/fexc (del) /usr/local/bin/pmutemp (del) /usr/local/bin/raspi-config (del) /usr/local/bin/soctemp (del) /etc/apt/sources.list.d/bananian.list /etc/kbd/config /etc/rc.local /etc/rsyslog.conf

Packages to be installed:

bananian-etc bananian-tools linux-image-3.4-bananian AND/OR linux-image-4.4-bananian

Bananian packages to be upgraded:

u-boot-bananian OR u-boot-pro-bananian OR u-boot-m2-bananian

Important changes:

  • 0000199: [Userland] Introduce bananian-settings to replace all entries in /etc/rc.local
  • 0000198: [Hardware] bananian-hardware does not work on Linux 4.x
  • 0000152: [Kernel] Switch between kernel 3.x and 4.x
  • 0000124: [Userland] package bananian-update as a .deb file
  • 0000012: [General] Kernel Update Script and other stuff as an apt repository
  • 0000182: [Network] WIFI driver ap6210 not found under Kernel 4.3
  • 0000194: [Kernel] Update Kernel 3.4.x
  • 0000197: [Kernel] provide Linux 4.4.x packages
  • 0000055: [Kernel] Division by zero in kernel. (3.4.90+)
  • 0000183: [Hardware] update FAQ, pmutemp and soctemp related to Kernel 4.x
  • 0000166: [General] Update U-Boot
  • 0000176: [Kernel] Removing 4.2 kernel packages result in unbootable system
  • 0000157: [Userland] rsyslog spams logs
  • 0000184: [Kernel] HDMI output turns off on inactivity
  • 0000175: [Kernel] Support for 8 channels hdmi
  • 0000200: [Kernel] enable audio on Linux 4.x

For a list of all changes see our changelog: https://dev.bananian.org/changelog_page.php?version_id=13

Incompatible changes:

  • All Bananian tools have been moved from /usr/local/bin to /usr/sbin. Adjust your scripts!

Do you want to continue (yes/no)? yes [...] deleting old files in /usr/local/bin...


cleaning up /etc/rc.local...


replacing /etc/rsyslog.conf...


adjusting screen blanking...


done! please reboot your system now! (shutdown -r now)

bananian-update 142.46s user 42.99s system 24% cpu 12:42.07 total ok, reboot now. 2017-05-16: bananian - a reboot later and we have Bananian 15.08: tingo@kg-bpi:~$ cat /etc/bananian_version 150801 tingo@kg-bpi:~$ uname -a Linux kg-bpi.kg4.no 3.4.108-bananian #2 SMP PREEMPT Thu Aug 13 06:08:25 UTC 2015 armv7l GNU/Linux so, update again 2017-05-16: bananian - upgrade kg-bpi# bananian-update [...]


You are using Bananian 15.04 r01 This script will upgrade your installation to Bananian 15.08 r01


The following files will be modified:

boot partition: /uImage /boot.cmd /boot.scr /uEnv.* (del)

root filesystem: /lib/modules/ /lib/firmware/ /usr/local/bin/bananian-config /usr/local/bin/raspi-config /usr/local/bin/soctemp /usr/sbin/swconfig (del) /usr/local/bin/swconfig (del) /sbin/swconfig /etc/apt/preferences.d/systemd /etc/apt/sources.list.d/bananian.list /etc/kernel/postinst.d/install-bananian-kernel (del) /etc/kernel/postinst.d/bananian-kernel-postinst /etc/kernel/postinst.d/ /etc/ssh/sshd_config /etc/rc.local /etc/skel/.zshrc /root/.zshrc

Packages to be installed:

swconfig

Important changes:

  • 0000151: [Hardware] LCD support is broken with mainline U-Boot 2015.07
  • 0000149: [Kernel] prepare for mainline Kernel 4.x
  • 0000135: [Userland] add 15.08 release to bananian-update
  • 0000146: [General] Keep SysVinit instead of systemd
  • 0000134: [Userland] update Debian packages and clean up before release
  • 0000127: [General] RFE: rebase Bananian to Debian 8
  • 0000106: [Kernel] Request to patch Realtek driver for 8192cu / 8188cu devices
  • 0000118: [Userland] package swconfig as a .deb file
  • 0000145: [Network] When SSH host key generation gets interrupted SSH is broken
  • 0000138: [General] create repository for jessie
  • 0000144: [Security] Adjust the SSH (sshd_config) configuration for Debian Jessie
  • 0000143: [General] expanding the filesystem does not work on Debian 8/Jessie
  • 0000133: [Kernel] enable CONFIG_BLK_DEV_THROTTLING in the kernel
  • 0000141: [Userland] Lost colors and command prompt in zsh shell after update
  • 0000142: [Kernel] Update Linux Kernel to 3.4.108
  • 0000136: [Userland] error handling in soctemp

For a list of all changes see our changelog: https://dev.bananian.org/changelog_page.php?version_id=15

Incompatible changes:

  • switching from uEnv.txt to boot.cmd/boot.scr will break SATA installations
  • swconfig will be moved to /sbin/swconfig. Adjust your scripts!
  • /root/.zshrc will be overwritten

Do you want to continue (yes/no)? yes [...]


adding/updating Bananian repository...

OK

installing kernel postinst hook script...


installing kernel and modules...

Selecting previously unselected package linux-image-3.4.108-bananian. (Reading database ... 25744 files and directories currently installed.) Preparing to unpack linux-image-3.4.108-bananian_15.08.01_armhf.deb ... Unpacking linux-image-3.4.108-bananian (15.08.01) ... [...] Setting up sysvinit-core (2.88dsf-59) ... Not restarting sysvinit

systemd will be removed on next reboot...


configuring z-shell (zsh)...


setting new version number...


done! please reboot your system now! (shutdown -r now) ok, I reboot. 2017-05-16: bananian - after a reboot, the machine runs Debian Jessie, but Bananian 15.04. tingo@kg-core1$ ssh bpi tingo@kg-bpi.kg4.no's password:


Welcome to Bananian Linux! For news and updates check: https://www.bananian.org Any questions? Read the FAQ first: https://www.bananian.org/faq

Run 'bananian-config' to set up Bananian Linux Run 'bananian-update' to check for distribution updates


Last login: Tue May 16 21:02:07 2017 from 10.1.150.50 tingo@kg-bpi:~$ cat /etc/bananian_version 150401 tingo@kg-bpi:~$ cat /etc/debian_version 8.8 Debian 8.8 is nice. But it says Bananian 15.04 here. Hmm... tingo@kg-bpi:~$ uname -a Linux kg-bpi.kg4.no 3.4.104-bananian #1 SMP PREEMPT Mon Apr 6 18:25:40 UTC 2015 armv7l GNU/Linux but why isn't the kernel upgraded? Ah ok, I have upgraded to Jessie, but not to latest Bananian. more info tingo@kg-bpi:~$ date;/sbin/swapon -s;tvlm;df -h;uptime Tue May 16 22:20:02 CEST 2017 Filename Type Size Used Priority /swapfile1 file 524284 0 -1 May 16 22:16:12 kg-bpi kernel: [ 22.453934] Freeing init memory: 224K May 16 22:16:12 kg-bpi kernel: [ 24.937745] 8021q: 802.1Q VLAN Support v1.8 May 16 22:16:12 kg-bpi kernel: [ 27.361697] Adding 524284k swap on /swapfile1. Priority:-1 extents:8 across:868348k SS May 16 22:16:12 kg-bpi kernel: [ 36.968085] eth0: device MAC address 02:d2:06:42:73:cf May 16 22:16:12 kg-bpi kernel: [ 36.992407] sunxi_gmac: probed May 16 22:16:12 kg-bpi kernel: [ 37.005925] eth0: PHY ID 001cc915 at 0 IRQ 0 (sunxi_gmac-0:00) active May 16 22:16:12 kg-bpi kernel: [ 37.022323] eth0: PHY ID 001cc915 at 1 IRQ 0 (sunxi_gmac-0:01) May 16 22:16:12 kg-bpi kernel: [ 43.032182] PHY: sunxi_gmac-0:00 - Link is Up - 1000/Full May 16 22:16:13 kg-bpi telldusd: Connecting to TellStick (1781/C31) with serial A6028ED8 May 16 22:16:20 kg-bpi kernel: [ 62.044022] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered Filesystem Size Used Avail Use% Mounted on /dev/root 3.7G 3.0G 510M 86% / devtmpfs 486M 0 486M 0% /dev tmpfs 486M 0 486M 0% /dev/shm tmpfs 486M 6.6M 479M 2% /run tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 486M 0 486M 0% /sys/fs/cgroup 22:20:02 up 4 min, 1 user, load average: 0.06, 0.27, 0.14 check running processes tingo@kg-bpi:~$ pgrep -lf nginx 353 nginx 354 nginx nginx ok tingo@kg-bpi:~$ pgrep -lf php-fpm 421 php5-fpm 422 php5-fpm 423 php5-fpm php ok. tingo@kg-bpi:~$ pgrep -lf telldusd 358 telldusd and telldusd. Nice. 2017-05-16: bananian - upgrade to latest version for real. root@kg-bpi ~ # bananian-update [...] You are using Bananian 15.04 r01 on Debian Wheezy


Bananian 15.04 was the last release based on Debian 7/Wheezy.

Now you have two options:

1.) Upgrade to Debian 8/Jessie 2.) Stay at Debian 7/Wheezy

Bananian 15.08 (and later versions) will only be available for Debian 8/Jessie. Debian 7/Wheezy is still supported and will receive kernel and security updates.

Upgrade instructions:

1.) sed -i 's/wheezy/jessie/g' /etc/apt/sources.list 2.) apt-get update 3.) apt-get upgrade 4.) apt-get dist-upgrade 5.) shutdown -r now

More detailed instructions on debian.org: https://www.debian.org/releases/jessie/armhf/release-notes/ch-upgrading.en.html ok. Let's go jessie. root@kg-bpi ~ # sed -i 's/wheezy/jessie/g' /etc/apt/sources.list update repository root@kg-bpi ~ # apt-get update [...] Fetched 19.7 MB in 1min 5s (302 kB/s)
W: GPG error: http://nginx.org jessie Release: The following signatures were invalid: KEYEXPIRED 1471427554 W: Failed to fetch http://nginx.org/packages/debian/dists/jessie/nginx/binary-armhf/Packages 404 Not Found [IP: 95.211.80.227 80]

E: Some index files failed to download. They have been ignored, or old ones used instead. apt-get update 45.77s user 4.93s system 75% cpu 1:07.46 total hmmm,. no nginx? Ah ok, I see from my old notes that I need to compile it from sources. upgrade root@kg-bpi ~ # apt-get upgrade [...] 179 upgraded, 0 newly installed, 0 to remove and 77 not upgraded. Need to get 63.8 MB of archives. After this operation, 29.9 MB of additional disk space will be used. Do you want to continue [Y/n]? y [...] Updating certificates in /etc/ssl/certs... 0 added, 0 removed; done. Running hooks in /etc/ca-certificates/update.d....done. apt-get upgrade 148.88s user 65.09s system 11% cpu 31:13.40 total tingo has logged on pts/4 from 10.1.150.50.
dist-upgrade root@kg-bpi ~ # apt-get dist-upgrade [...] 77 upgraded, 66 newly installed, 1 to remove and 0 not upgraded. Need to get 76.6 MB of archives. After this operation, 124 MB of additional disk space will be used. Do you want to continue [Y/n]? y [...] update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults Setting up haveged (1.9.1-1) ... Processing triggers for libc-bin (2.19-18+deb8u9) ... Processing triggers for php5-fpm (5.6.30+dfsg-0+deb8u1) ... [ ok ] Restarting PHP5 FastCGI Process Manager: php5-fpm. Processing triggers for systemd (215-17+deb8u7) ... apt-get dist-upgrade 114.98s user 56.85s system 4% cpu 57:31.04 total that was it. Now only a reboot remains. root@kg-bpi ~ # shutdown -r now

Broadcast message from tingo@kg-bpi.kg4.no on pts/1 (Tue 2017-05-16 22:14:36 CEST):

The system is going down for reboot NOW!

root@kg-bpi ~ # Connection to kg-bpi.kg4.no closed by remote host. Connection to kg-bpi.kg4.no closed. ok. 2017-05-16: testing - after writing the image (I ended up using the v7 machine), I plug the card into the second Banana Pi, connect a network cable and power (which is to the left of the sata connector on the side of the board, not next to the SDcard slot). The BanaPi boots (red power LED) and a green LED starts blinking. I check my DHCP server, and figure out the ip address. Then I ssh to the Banana Pi and change the root password. tingo@kg-core1$ ssh root@10.1.161.21 root@10.1.161.21's password: Linux bananapi 3.4.111-bananian #5 SMP PREEMPT Fri Mar 25 17:24:42 UTC 2016 armv7l


Welcome to Bananian Linux! For news and updates check: https://www.bananian.org Any questions? Read the FAQ first: https://www.bananian.org/faq

Run 'bananian-config' to set up Bananian Linux Run 'bananian-update' to check for distribution updates


Last login: Tue May 16 18:01:41 2017 from 10.1.150.50 root@bananapi ~ # kernel root@bananapi ~ # uname -a Linux bananapi 3.4.111-bananian #5 SMP PREEMPT Fri Mar 25 17:24:42 UTC 2016 armv7l GNU/Linux more root@bananapi ~ # cat /etc/bananian_version 160401 root@bananapi ~ # cat /etc/debian_version 8.4 ok. run bananian-config, change timezone to Europe/Oslo, locale to nn_NO.UTF-8, expand root file system, then I rebbot via shutdown -r now. That worked nicely. next, try bananian-update root@bananapi ~ # bananian-update [...] You are already using Bananian 16.04 r01

No upgrades available... ok. So kernel root@bananapi ~ # uname -a Linux bananapi 3.4.111-bananian #5 SMP PREEMPT Fri Mar 25 17:24:42 UTC 2016 armv7l GNU/Linux is the currently the latest with Bananian. 2017-05-16: testing - test environment - I use my second Banana Pi, a dual charger (36-5757) from Clas Ohlson, a usb A - usb microB cable and a Lexar 4 GB class 4 SDHC SDcard. 2017-05-16: my Banana Pi still runs Bananian 15.04: tingo@kg-bpi:~$ cat /etc/bananian_version 150401 which is Debian 7.11 tingo@kg-bpi:~$ cat /etc/debian_version 7.11 it has been running for a while now tingo@kg-bpi:~$ date;/sbin/swapon -s;tvlm;df -h;uptime Tue May 16 18:28:41 CEST 2017 Filename Type Size Used Priority /swapfile1 file 524284 0 -1 May 14 06:25:04 kg-bpi rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="1722" x-info="http://www.rsyslog.com"] rsyslogd was HUPed May 15 06:25:03 kg-bpi rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="1722" x-info="http://www.rsyslog.com"] rsyslogd was HUPed May 16 06:25:03 kg-bpi rsyslogd: [origin software="rsyslogd" swVersion="5.8.11" x-pid="1722" x-info="http://www.rsyslog.com"] rsyslogd was HUPed Filesystem Size Used Avail Use% Mounted on rootfs 3.7G 3.1G 475M 87% / /dev/root 3.7G 3.1G 475M 87% / devtmpfs 486M 0 486M 0% /dev tmpfs 98M 212K 97M 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 195M 0 195M 0% /run/shm 18:28:41 up 221 days, 10:23, 3 users, load average: 0.12, 0.23, 0.22 ok.

2017-04-02: Bananian announced the end - Bananian 16.04 was the last release. It is suggested to move to armbian.

2016-11-06: Home Assistant - I upgraded my router (access point, ASus RT-N16) and the http_id changed. Update HA configuration: tingo@kg-bpi:~$ grep http_id .homeassistant/configuration.yaml # http_id is needed for Tomato routers only #http_id: TID47cec4395463b70c http_id: TID7c1dcbedd6ca3a4e then I restart HA.

2016-09-28: I bought 2 x 36-4744 temperature sensors (it reads "prologue" on the package, and from recent forum threads it is probably a "YT6981 EX" model) at Clas Ohlson today, they were only NOK 79.90 each. Perhaps I can set up a Raspberry Pi with a cheap 433 MHz transmitter and receiver as a way to read them? I have 2 x 149252 433 MHz receiver and 2 x 149254 433 MHz transmitter from DX, and I have Arduinios and Raspberry Pi's so I should be all set. 2016-09-28: bolt - upgrade to Bolt 2.2.23. in bolt directory, check ownership, permissions and so on: root@kg-bpi ~ # cd /usr/local/www/logb root@kg-bpi /usr/local/www/logb # ll .. total 4 drwxr-sr-x 9 www-data www-data 4096 Apr 4 20:13 logb root@kg-bpi /usr/local/www/logb # ll total 240 drwxr-xr-x 8 501 staff 4096 Apr 4 20:13 app -rw-r--r-- 1 501 staff 43199 Mar 11 2016 changelog.md -rw-r--r-- 1 501 staff 3116 Mar 11 2016 composer.json.dist -rw-r--r-- 1 501 staff 150073 Mar 11 2016 composer.lock.dist drwxrwxrwx 3 501 staff 4096 Nov 29 2014 extensions drwxrwxrwx 2 501 staff 4096 Apr 4 20:13 files -rw-r--r-- 1 501 staff 1490 Mar 11 2016 index.php -rw-r--r-- 1 501 staff 1078 Nov 26 2015 LICENSE.md -rw-r--r-- 1 501 staff 4031 Mar 11 2016 README.md -rw-r--r-- 1 501 staff 789 Dec 14 2014 serve drwxr-xr-x 22 501 staff 4096 Apr 4 20:13 src drwxrwxrwx 4 501 staff 4096 Mar 11 2016 theme drwxr-xr-x 33 501 staff 4096 Apr 4 20:13 vendor -rw-r--r-- 1 501 staff 3826 Jan 26 2016 web.config root@kg-bpi /usr/local/www/logb # ll .ht -rw-r--r-- 1 501 staff 1684 Jan 26 2016 .htaccess ok. Backup of .htaccess: root@kg-bpi /usr/local/www/logb # cp .htaccess .htaccess.bak ok. Du upgrade: root@kg-bpi /usr/local/www/logb # tar xvf /home/tingo/dl/bolt-2.2.23.tar.gz --strip-components=1 [...] bolt-git-2016-07-19-91da3fe/app/cache/index.html bolt-git-2016-07-19-91da3fe/.github/CONTRIBUTING.md bolt-git-2016-07-19-91da3fe/.github/ISSUE_TEMPLATE.md bolt-git-2016-07-19-91da3fe/.github/PULL_REQUEST_TEMPLATE.md tar xvf /home/tingo/dl/bolt-2.2.23.tar.gz --strip-components=1 2.04s user 4.56s system 82% cpu 8.011 total fix permissions root@kg-bpi /usr/local/www/logb # chmod -R 777 files/ app/database/ app/cache/ app/config/ theme/ extensions/ check permissions again: root@kg-bpi /usr/local/www/logb # ll ..
total 4 drwxr-sr-x 9 www-data www-data 4096 Sep 28 15:19 logb root@kg-bpi /usr/local/www/logb # ll
total 308 drwxr-xr-x 8 501 staff 4096 Sep 28 15:19 app -rw-r--r-- 1 501 staff 45575 Jul 19 14:36 changelog.md -rw-r--r-- 1 501 staff 3107 Jul 19 14:36 composer.json.dist -rw-r--r-- 1 501 staff 214748 Jul 19 14:36 composer.lock.dist drwxrwxrwx 3 501 staff 4096 Nov 29 2014 extensions drwxrwxrwx 2 501 staff 4096 Sep 28 15:19 files -rw-r--r-- 1 501 staff 1490 Jul 19 14:36 index.php -rw-r--r-- 1 501 staff 1078 Apr 18 20:21 LICENSE.md -rw-r--r-- 1 501 staff 4031 Jul 19 14:36 README.md -rw-r--r-- 1 501 staff 789 Jul 19 14:36 serve drwxr-xr-x 22 501 staff 4096 Sep 28 15:19 src drwxrwxrwx 4 501 staff 4096 Jul 19 14:36 theme drwxr-xr-x 33 501 staff 4096 Sep 28 15:19 vendor -rw-r--r-- 1 501 staff 3826 Jul 19 14:36 web.config root@kg-bpi /usr/local/www/logb # ll .ht

-rw-r--r-- 1 501 staff 1684 Apr 18 20:21 .htaccess -rw-r--r-- 1 root www-data 1684 Sep 28 15:14 .htaccess.bak looks ok. Afterwards I do Configuration / Check database - it is already up to date - from within Bolt. 2016-09-28: bolt - newest bolt is 3.1.4, but upgrading from 2.2.x is comlicated. Getting lates bolt 2.2, which is 2.2.23: tingo@kg-bpi:~/dl$ wget https://bolt.cm/distribution/bolt-2.2.23.tar.gz --2016-09-28 15:03:28-- https://bolt.cm/distribution/bolt-2.2.23.tar.gz Resolving bolt.cm (bolt.cm)... 82.196.12.59, 2a03:b0c0:0:1010::20f:5001 Connecting to bolt.cm (bolt.cm)|82.196.12.59|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 10111380 (9.6M) [application/x-gzip] Saving to: `bolt-2.2.23.tar.gz'

100%[===========================================================================>] 10,111,380 3.71M/s in 2.6s

2016-09-28 15:03:42 (3.71 MB/s) - `bolt-2.2.23.tar.gz' saved [10111380/10111380] ok 2016-09-28: Home Assistant - configuration fixes. in ~/.homeassistant/configuration.yaml the following changes were made: under homeassistant: I removed temperature_unit: C and replaced it with unit_system: metric I also added name: Hjemme that's it. 2016-09-28: Home Assistant - first start of version 0.28.2. tingo@kg-bpi:~$ hass --open-ui Config directory: /home/tingo/.homeassistant WARNING:homeassistant.config:Found deprecated temperature unit in core config, expected unit system. Replace 'temperature_unit: °C' with 'unit_system: metric' INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): maps.googleapis.com WARNING:homeassistant.config:Incomplete core config. Auto detected elevation: 11 INFO:homeassistant.config:Upgrading config directory from 0.16.1 to 0.28.2 INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.bootstrap:Home Assistant core initialized INFO:homeassistant.loader:Loaded http from homeassistant.components.http INFO:homeassistant.loader:Loaded history from homeassistant.components.history INFO:homeassistant.loader:Loaded recorder from homeassistant.components.recorder INFO:homeassistant.loader:Loaded frontend from homeassistant.components.frontend INFO:homeassistant.loader:Loaded api from homeassistant.components.api INFO:homeassistant.loader:Loaded sensor from homeassistant.components.sensor INFO:homeassistant.loader:Loaded discovery from homeassistant.components.discovery INFO:homeassistant.loader:Loaded device_tracker from homeassistant.components.device_tracker INFO:homeassistant.loader:Loaded zone from homeassistant.components.zone INFO:homeassistant.loader:Loaded sun from homeassistant.components.sun INFO:homeassistant.util.package:Attempting install of sqlalchemy==1.0.14 INFO:homeassistant.core:Bus:Handling INFO:homeassistant.util.package:Attempting install of cherrypy==7.1.0 INFO:homeassistant.util.package:Attempting install of static3==0.7.0 INFO:homeassistant.util.package:Attempting install of Werkzeug==0.11.11 INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.loader:Loaded sensor.tellstick from homeassistant.components.sensor.tellstick INFO:homeassistant.util.package:Attempting install of tellcore-py==1.1.2

INFO:homeassistant.util.package:Attempting install of netdisco==0.7.1

INFO:homeassistant.util.package:Attempting install of astral==1.2

INFO:homeassistant.util.package:Attempting install of pychromecast==0.7.2 and more. A second start verified that all dependencies has been installed. 2016-09-28: Home Assistant - upgrade to latest version (currently 0.28.2). First I stopped the running HA, then I do: tingo@kg-bpi:~$ sudo -i pip3 install --upgrade homeassistant Collecting homeassistant [...] Requirement already up-to-date: MarkupSafe in /usr/local/opt/python-3.4.3/lib/python3.4/site-packages (from jinja2>=2.8->homeassistant) Installing collected packages: pip, setuptools, voluptuous, pyyaml, requests, typing, pytz, homeassistant Found existing installation: pip 8.1.1 Uninstalling pip-8.1.1: Successfully uninstalled pip-8.1.1 Found existing installation: setuptools 12.0.5 Uninstalling setuptools-12.0.5: Successfully uninstalled setuptools-12.0.5 Running setup.py install for voluptuous ... done Found existing installation: PyYAML 3.11 Uninstalling PyYAML-3.11: Successfully uninstalled PyYAML-3.11 Running setup.py install for pyyaml ... done Found existing installation: requests 2.9.1 Uninstalling requests-2.9.1: Successfully uninstalled requests-2.9.1 Running setup.py install for typing ... done Found existing installation: pytz 2016.3 Uninstalling pytz-2016.3: Successfully uninstalled pytz-2016.3 Found existing installation: homeassistant 0.16.1 Uninstalling homeassistant-0.16.1: Successfully uninstalled homeassistant-0.16.1 Successfully installed homeassistant-0.28.2 pip-8.1.2 pytz-2016.6.1 pyyaml-3.12 requests-2.11.1 setuptools-28.0.0 typing-3.5.2.2 voluptuous-0.9.2 ok, so the upgrade worked. 2016-09-28: check if we can get PATH to work under sudo. tingo@kg-bpi:~$ sudo which pip tingo@kg-bpi:~$ sudo -i which pip /usr/local/opt/python-3.4.3/bin/pip ok, so 'sudo -i ...' seems to do the right thing.

2016-09-27: fixing $PATH for root. user root runs zsh, so I created ~/.zshenv, like this: root@kg-bpi ~ # cat ~/.zshenv typeset -U path path=(/usr/local/opt/python-3.4.3/bin $path) and this results in PATH being: root@kg-bpi ~ # echo $PATH /usr/local/opt/python-3.4.3/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin or, in zsh-speak: root@kg-bpi ~ # echo $path /usr/local/opt/python-3.4.3/bin /usr/local/sbin /usr/local/bin /usr/sbin /usr/bin /sbin /bin nice.

2016-09-26: sensors - the new 36-1797 sensor is a WT450H, labeled "ESIC" on the front, it uses 2 x AA batteries. Inside the battery compartment is a "SET" button (used to select house code and channel) and a "C/F" button, for Celsius / Fahrenheit. Inserting batteries, pressing "SET" twice (while information is blinking selecty HC01, CH01. The sensor defaults to Celsius. But then it conflicts with the old fridge senor, so I switch it to HC01, CH02. This makes it show up as ID 12 in telldus. tingo@kg-bpi:~$ tellcore_tool --list-sensors Number of sensors: 6

PROTOCOL MODEL ID TEMP HUMIDITY RAIN WIND LAST UPDATED fineoffset temperature 206 17.4 C 2016-09-26 20:32:12 fineoffset temperature 186 5.9 C 2016-09-26 20:31:49 mandolyn temperaturehumidity 11 18.2 C 0 % 2016-09-26 20:32:28 fineoffset temperaturehumidity 22 26.1 C 40 % 2016-09-26 17:44:26 fineoffset temperature 156 34.9 C 2016-09-26 08:35:23 mandolyn temperaturehumidity 12 28.4 C 58 % 2016-09-26 20:32:14 it even shows humidity - nice. Range - the new sensor have a bad range - If I place it in the kitchen the TellStick Duo can't see it. Update: it works in the kitchen, depends on placement. Will it work in the freezer? Looks like it: tingo@kg-bpi:~$ tellcore_tool --list-sensors Number of sensors: 6

PROTOCOL MODEL ID TEMP HUMIDITY RAIN WIND LAST UPDATED fineoffset temperature 206 17.4 C 2016-09-26 21:17:00 fineoffset temperature 186 4.7 C 2016-09-26 21:17:25 mandolyn temperaturehumidity 11 5.8 C 0 % 2016-09-26 21:16:41 fineoffset temperaturehumidity 22 17.1 C 59 % 2016-09-26 21:15:39 fineoffset temperature 156 34.9 C 2016-09-26 08:35:23 mandolyn temperaturehumidity 12 -13.4 C 41 % 2016-09-26 21:17:13 I will check tomorrow if it still works. 2016-09-26: sensors - my existing fridge sensor is a Clas Ohlson article no. 36-2953, aka WT450, the front of the sensor also says "UPM". It runs on 2 x AA batteries. 2016-09-26: sensors - I bought 2 x temperature sensors (36-4441) NOK 99.90 each, and 1 x temperature / hygro sensor (36-1797) NOK 109.- at Clas Ohlson today. The 36-4441 sensors have a channel selector inside the battery compartment (2 x AAA batteries), allowing you to set channel 1, 2 or 3.. On the back of the 36-4441 sensors is printed "TW003", which is probably the name for it. Testing - channel 1 - the TellStick Duo doesn't see the senor, nor does it on channel 2 or 3. According to this forum thread, the sensor is not supported. I opened it up - everything is on the PCB, no separate transmitter that I could see. Oh well. It s supported by RFXTRX433, if I ever get one of those.

2016-09-24: sensors - for some reason, the freezer sensor (11) isn't detected inside the freezer anymore. If I take it out: tingo@kg-bpi:~$ tellcore_tool --list-sensors Number of sensors: 3

PROTOCOL MODEL ID TEMP HUMIDITY RAIN WIND LAST UPDATED fineoffset temperature 206 17.0 C 2016-09-24 20:24:10 fineoffset temperature 186 5.2 C 2016-09-24 20:22:56 mandolyn temperaturehumidity 11 13.9 C 0 % 2016-09-24 20:24:16 with tdtool tingo@kg-bpi:~$ tdtool --list Number of devices: 1 1 Example device ON

SENSORS:

PROTOCOL MODEL ID TEMP HUMIDITY RAIN WIND LAST UPDATED
fineoffset temperature 206 17.0° 2016-09-24 20:31:22 fineoffset temperature 186 4.7° 2016-09-24 20:30:08 mandolyn temperaturehumidity 11 16.2° 0% 2016-09-24 20:31:16 I wonder why. Battery level of the sensor is 2.5 volts, which should be enough. 2016-09-24: Tellstick info: tingo@kg-bpi:~$ tellcore_controllers TellStick Duo name: serial: A6028ED8 firmware: 12 available: 1

Found 1 controller(s) ok. BTW, telldus-core was installed from source: tingo@kg-bpi:~$ ls -ld work/tell* drwxr-xr-x 12 tingo tingo 4096 Mar 11 2015 work/telldus-core-2.1.2 good to know.

2016-09-23: interface info: tingo@kg-bpi:~$ sudo mii-tool eth0: negotiated 1000baseT-FD flow-control, link ok ok. 2016-09-23: after another reboot, services are running: tingo@kg-bpi:~$ sudo service telldusd status [sudo] password for tingo: [ ok ] telldusd is running. tingo@kg-bpi:~$ sudo service php5-fpm status [ ok ] php5-fpm is running. tingo@kg-bpi:~$ sudo service nginx status [ ok ] nginx is running. cool. 2016-09-23: after a reboot, we're running Bananian 15.04: tingo@kg-bpi:~$ ls -l /etc/bananian_version /etc/debian_version /etc/os-release -rw-r--r-- 1 root root 7 Sep 23 20:13 /etc/bananian_version -rw-r--r-- 1 root root 5 May 22 12:44 /etc/debian_version -rw-r--r-- 1 root root 250 Jul 7 2014 /etc/os-release tingo@kg-bpi:~$ cat /etc/bananian_version 150401 tingo@kg-bpi:~$ cat /etc/debian_version 7.11 tingo@kg-bpi:~$ uname -a Linux kg-bpi.kg4.no 3.4.104-bananian #1 SMP PREEMPT Mon Apr 6 18:25:40 UTC 2015 armv7l GNU/Linux good. Check services that should be running: tingo@kg-bpi:~$ sudo service telldusd status [ ok ] telldusd is running. tingo@kg-bpi:~$ sudo service php5-fpm status [ ok ] php5-fpm is running. tingo@kg-bpi:~$ sudo service nginx status [FAIL] nginx is not running ... failed! Hmm, why does nginx fail? tingo@kg-bpi:~$ sudo service nginx start Starting nginx: nginx. tingo@kg-bpi:~$ sudo service nginx status [ ok ] nginx is running. starting it works. Ok, it doesn't look like nginx is in the startup directories: tingo@kg-bpi:~$ l /etc/rc?.d/nginx ls: cannot access /etc/rc?.d/nginx: No such file or directory compare with php5-fpm: tingo@kg-bpi:~$ l /etc/rc?.d/php5 /etc/rc0.d/K02php5-fpm@ /etc/rc2.d/S01php5-fpm@ /etc/rc4.d/S01php5-fpm@ /etc/rc6.d/K02php5-fpm@ /etc/rc1.d/K02php5-fpm@ /etc/rc3.d/S01php5-fpm@ /etc/rc5.d/S01php5-fpm@ but that means it must never have worked. Oh well. Fix: tingo@kg-bpi:~$ sudo update-rc.d nginx defaults update-rc.d: using dependency based boot sequencing verify: tingo@kg-bpi:~$ l /etc/rc?.d/nginx /etc/rc0.d/K01nginx@ /etc/rc2.d/S04nginx@ /etc/rc4.d/S04nginx@ /etc/rc6.d/K01nginx@ /etc/rc1.d/K01nginx@ /etc/rc3.d/S04nginx@ /etc/rc5.d/S04nginx@ looks better. do a reboot now to test that it works. 2016-09-23: let me try to run bananian-update: tingo@kg-bpi:~$ sudo bananian-update


Welcome to bananian-update!

This script upgrades your Bananian installation.

For news and updates check: http://www.bananian.org

Don't panic, you will be asked to confirm before applying any updates!


receiving/updating public key...

gpg: requesting key 24BFF712 from hkp server keys.gnupg.net gpg: key 24BFF712: "Nico Isenbeck (Bananian Linux) download@bananian.org" not changed gpg: Total number processed: 1 gpg: unchanged: 1


downloading latest upgrade from dl.bananian.org... (this might take a while)

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 19.4M 100 19.4M 0 0 6182k 0 0:00:03 0:00:03 --:--:-- 6459k % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 819 100 819 0 0 1564 0 --:--:-- --:--:-- --:--:-- 1678


verifying signature...

gpg: Signature made Wed 08 Apr 2015 04:38:45 PM CEST using RSA key ID 24BFF712 gpg: checking the trustdb gpg: 3 marginal(s) needed, 1 complete(s) needed, PGP trust model gpg: depth: 0 valid: 1 signed: 0 trust: 0-, 0q, 0n, 0m, 0f, 1u gpg: Good signature from "Nico Isenbeck (Bananian Linux) download@bananian.org"

signature okay.


extracting upgrade...


You are using Bananian 15.01 r01 This script will upgrade your installation to Bananian 15.04 r01


The following files will be modified:

boot partition: /uImage /script.bin /fex/*

root filesystem: /lib/modules/ /lib/firmware/ /usr/local/bin/bananian-config /usr/local/bin/bananian-update /etc/rsyslog.conf /etc/apt/sources.list.d/bananian.list /etc/kernel/postinst.d/install-bananian-kernel /etc/zsh/zshrc /etc/skel/.zshrc

Packages to be installed:

fake-hwclock

Important changes:

  • 0000122: [Userland] zsh configuration
  • 0000121: [Userland] set BANANIAN_PLATFORM variable in bananian-update
  • 0000103: [Kernel] Missing headers for 3.4.x kernel
  • 0000119: [Hardware] support Banana Pi M1+
  • 0000100: [General] ttyS4 und usbc0 overlapping in fex
  • 0000038: [General] Attempt to change keyboard layout through bananian-config on an headless installation fails silently
  • 0000045: [General] rsyslog: do not sync to the disk immediately
  • 0000114: [Userland] add the Bananian repository to sources.list
  • 0000097: [General] Bananian-update throws ssl-error (wrong date/time)
  • 0000113: [Hardware] add support for Orange Pi
  • 0000098: [Hardware] BPi-R1: Power on SATA not sufficient for HDD
  • 0000111: [Kernel] ft5x_ts: Touchscreen does not work reliable (i2c)
  • 0000112: [Kernel] merge LeMaker kernel sources

For a list of all changes see our changelog: https://dev.bananian.org/changelog_page.php?version_id=7

Do you want to continue (yes/no)? Hmm, try or not? - go for it Do you want to continue (yes/no)? yes


replacing files on mmcblk0p1...


installing kernel postinst hook script...


installing kernel and modules... Selecting previously unselected package linux-image-3.4.104-bananian. (Reading database ... 20774 files and directories currently installed.) Unpacking linux-image-3.4.104-bananian (from linux-image-3.4.104-bananian_15.04.01_armhf.deb) ... Setting up linux-image-3.4.104-bananian (15.04.01) ... Installing Bananian kernel 3.4.104-bananian...


installing firmware...

Selecting previously unselected package linux-firmware-image. (Reading database ... 22526 files and directories currently installed.) Unpacking linux-firmware-image (from linux-firmware-image_15.04.01_armhf.deb) ... Setting up linux-firmware-image (15.04.01) ...


upgrading software... (Get a coffee, this might take some time.)

Get: 1 http://security.debian.org wheezy/updates Release.gpg [1,554 B] Get: 2 http://ftp.de.debian.org wheezy Release.gpg [2,373 B]
Get: 3 http://security.debian.org wheezy/updates Release [39.0 kB] Get: 4 http://nginx.org wheezy Release.gpg [287 B]
Get: 5 http://ftp.de.debian.org wheezy Release [191 kB]
Get: 6 http://nginx.org wheezy Release [2,322 B]
Err http://nginx.org wheezy Release
Get: 7 http://ftp.de.debian.org wheezy/main Sources [5,993 kB] Get: 8 http://security.debian.org wheezy/updates/main Sources [282 kB] Get: 9 http://security.debian.org wheezy/updates/contrib Sources [14 B] Get: 10 http://security.debian.org wheezy/updates/non-free Sources [14 B]
Get: 11 http://security.debian.org wheezy/updates/main armhf Packages [419 kB] Get: 12 http://security.debian.org wheezy/updates/contrib armhf Packages [14 B]
Get: 13 http://security.debian.org wheezy/updates/non-free armhf Packages [14 B] Get: 14 http://security.debian.org wheezy/updates/contrib Translation-en [14 B] Get: 15 http://security.debian.org wheezy/updates/main Translation-en [237 kB] Get: 16 http://security.debian.org wheezy/updates/non-free Translation-en [14 B]
Get: 17 http://ftp.de.debian.org wheezy/non-free Sources [93.4 kB] Get: 18 http://ftp.de.debian.org wheezy/contrib Sources [47.7 kB] Get: 19 http://ftp.de.debian.org wheezy/main armhf Packages [5,685 kB] Get: 20 http://ftp.de.debian.org wheezy/non-free armhf Packages [55.8 kB]
Get: 21 http://ftp.de.debian.org wheezy/contrib armhf Packages [33.1 kB]
Get: 22 http://ftp.de.debian.org wheezy/contrib Translation-en [34.8 kB]
Get: 23 http://ftp.de.debian.org wheezy/main Translation-en [3,846 kB]
Get: 24 http://ftp.de.debian.org wheezy/main Translation-de_DE [830 B]
Get: 25 http://ftp.de.debian.org wheezy/non-free Translation-en [66.1 kB]
Fetched 17.0 MB in 1min 26s (198 kB/s)
W: A error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://nginx.org wheezy Release: The following signatures were invalid: KEYEXPIRED 1471427554

W: Failed to fetch http://nginx.org/packages/debian/dists/wheezy/Release: W: Some index files failed to download. They have been ignored, or old ones used instead.

Current status: 74 updates [+56], 166 new [+159]. The following packages will be upgraded: base-files binutils cpio curl dpkg dpkg-dev e2fslibs e2fsprogs file fontconfig-config git git-man gnupg gpgv isc-dhcp-client isc-dhcp-common libarchive12 libc-bin libc-dev-bin libc6 libc6-dev libcomerr2 libcurl3 libcurl3-gnutls libdbus-1-3 libdpkg-perl libexpat1 libexpat1-dev libfontconfig1 libfreetype6 libgcrypt11 libgd2-xpm libgnutls26 libgssapi-krb5-2 libidn11 libk5crypto3 libkrb5-3 libkrb5support0 libldap-2.4-2 libmagic1 libnettle4 libpng12-0 libsqlite3-0 libsqlite3-dev libss2 libssh2-1 libssl-dev libssl1.0.0 libtasn1-3 libx11-6 libx11-data libxapian22 libxml2 linux-libc-dev locales multiarch-support ntp openssh-client openssh-server openssl perl perl-base perl-modules php5-common php5-curl php5-fpm php5-gd php5-sqlite screen ssh sudo tzdata wget wpasupplicant The following packages are RECOMMENDED but will NOT be installed: dbus fakeroot gnupg-curl krb5-locales libalgorithm-merge-perl libfile-fcntllock-perl libssl-doc manpages-dev ncurses-term openssh-blacklist openssh-blacklist-extra xauth xml-core 74 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 64.0 MB of archives. After unpacking 5,777 kB will be freed. Do you want to continue? [Y/n/?] y [...]


upgrading bananian-config...


upgrading bananian-update...


replacing /etc/rsyslog.conf...


adding Bananian repository...

OK

configuring z-shell (zsh)...

The file /root/.zshrc is no longer required and can be cleared. Do you want to continue? (Y/n) y


setting new version number...


done! please reboot your system now! (shutdown -r now) check: tingo@kg-bpi:~$ grep client-identifier /etc/dhcp/dhclient.conf send dhcp-client-identifier "kg-bpi.kg4.no";

send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;

looks ok. do a reboot.

2016-09-21: after a power glitch, the nginx server didn't start, had to start iot manually: tingo@kg-bpi:~$ sudo service nginx status [FAIL] nginx is not running ... failed! tingo@kg-bpi:~$ sudo service nginx start Starting nginx: nginx. tingo@kg-bpi:~$ sudo service nginx status [ ok ] nginx is running. that's all.

2016-08-26: after a scheduled power outage (power company maintenance), the machine started ok, but nginx failed: tingo@kg-bpi:~$ sudo service nginx status [FAIL] nginx is not running ... failed! try to start it tingo@kg-bpi:~$ sudo service nginx start Starting nginx: nginx. that worked: tingo@kg-bpi:~$ sudo service nginx status [ ok ] nginx is running. ok. Still running: tingo@kg-bpi:~$ uname -a Linux kg-bpi.kg4.no 3.4.104+ #1 SMP PREEMPT Thu Jan 8 15:40:40 CET 2015 armv7l GNU/Linux tingo@kg-bpi:~$ cat /etc/bananian_version 150101 tingo@kg-bpi:~$ cat /etc/debian_version 7.8 ok.

2016-08-25: uptime status: tingo@kg-bpi:~$ date;uptime Thu Aug 25 23:12:02 CEST 2016 23:12:02 up 537 days, 16 min, 3 users, load average: 0.01, 0.02, 0.08 ok.

2016-05-13: check for the local privilege escalation "knob": tingo@kg-bpi:~$ ls -l /proc/sunxi_debug/sunxi_debug ls: cannot access /proc/sunxi_debug/sunxi_debug: No such file or directory tingo@kg-bpi:~$ sudo ls -l /proc/sunxi_debug/sunxi_debug ls: cannot access /proc/sunxi_debug/sunxi_debug: No such file or directory no, does not exist.

2016-05-12: Since this is an Allwinner device, and uses a 3.4 kernel, the security alert for Allwinner sun8i might be relevant.

2016-04-10: Home Assistant - I add the new sensor (206) to ~/.homeassistant/configuration.yaml and restart Home Assistant. This is the current Tellstick sensor setup in configuration.yaml: sensor: platform: tellstick datatype_mask: 127 only_named: 1 11: freezer 186: fridge 206: kjellerbod

ok. datatype_mask 127 means "all sensor types". Values are:

Sensor value types

TELLSTICK_TEMPERATURE = 1 TELLSTICK_HUMIDITY = 2 TELLSTICK_RAINRATE = 4 TELLSTICK_RAINTOTAL = 8 TELLSTICK_WINDDIRECTION = 16 TELLSTICK_WINDAVERAGE = 32 TELLSTICK_WINDGUST = 64

ok. 2016-04-10: tellstick - set up a new sensor. The new sensor is a Temperature sensor, made by Termometerfabriken Viking in Sweden (Art.no 02811 - extra sensor for 02035 and 02037). It take 2 x AAA batteries, and comes with a plastic wall mount. I insert the batteries and list sensors again: tingo@kg-bpi:~$ tdtool -l Number of devices: 1 1 Example device ON

SENSORS:

PROTOCOL MODEL ID TEMP HUMIDITY RAIN WIND LAST UPDATED
fineoffset temperature 255 -204.7° 2015-03-15 00:47:04 fineoffset temperature 186 5.1° 2016-04-10 13:38:30 fineoffset temperaturehumidity 22 8.1° 53% 2016-04-09 22:01:09 fineoffset temperaturehumidity 62 1.8° 36% 2015-03-14 03:25:10 fineoffset temperaturehumidity 10 0.8° 39% 2015-03-14 07:00:22 fineoffset temperature 93 1.8° 2015-03-14 06:49:21 fineoffset temperaturehumidity 54 18.8° 22% 2015-03-14 13:39:35 fineoffset temperature 254 57.5° 2015-03-14 17:44:34 mandolyn temperaturehumidity 11 -21.5° 0% 2015-12-13 20:06:09 fineoffset temperaturehumidity 0 0.0° 0% 2016-04-09 19:21:21 fineoffset temperature 111 -204.7° 2015-04-12 21:11:17 fineoffset temperature 116 10.9° 2016-03-19 18:51:14 fineoffset temperaturehumidity 176 102.4° 0% 2015-10-17 12:03:58 fineoffset temperaturehumidity 44 50.4° 45% 2016-03-19 16:19:41 fineoffset temperature 206 24.4° 2016-04-10 13:37:55 ok, so the new sensor is number 206. I place it in my basement storage room ("kjellerbod") as a experiment, to see if the Tellstick reads the sensor from there. Testing: fineoffset temperature 206 15.3° 2016-04-10 14:10:43 Yes, it reads fine. 2016-04-10: tellstick - list all sensors currently seen: tingo@kg-bpi:~$ tdtool -l Number of devices: 1 1 Example device ON

SENSORS:

PROTOCOL MODEL ID TEMP HUMIDITY RAIN WIND LAST UPDATED
fineoffset temperature 255 -204.7° 2015-03-15 00:47:04 fineoffset temperature 186 5.7° 2016-04-10 13:20:06 fineoffset temperaturehumidity 22 8.1° 53% 2016-04-09 22:01:09 fineoffset temperaturehumidity 62 1.8° 36% 2015-03-14 03:25:10 fineoffset temperaturehumidity 10 0.8° 39% 2015-03-14 07:00:22 fineoffset temperature 93 1.8° 2015-03-14 06:49:21 fineoffset temperaturehumidity 54 18.8° 22% 2015-03-14 13:39:35 fineoffset temperature 254 57.5° 2015-03-14 17:44:34 mandolyn temperaturehumidity 11 -21.5° 0% 2015-12-13 20:06:09 fineoffset temperaturehumidity 0 0.0° 0% 2016-04-09 19:21:21 fineoffset temperature 111 -204.7° 2015-04-12 21:11:17 fineoffset temperature 116 10.9° 2016-03-19 18:51:14 fineoffset temperaturehumidity 176 102.4° 0% 2015-10-17 12:03:58 fineoffset temperaturehumidity 44 50.4° 45% 2016-03-19 16:19:41 and I know that 11 = freezer and 186 = fridge.

2016-04-04: Home Assistant - first start of version 0.16.1: tingo@kg-bpi:~$ hass --open-ui Config directory: /home/tingo/.homeassistant WARNING:homeassistant.bootstrap:Colorlog package not found, console coloring disabled INFO:homeassistant.bootstrap:Upgrading config directory from 0.7.7 to 0.16.1 INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.bootstrap:Home Assistant core initialized INFO:homeassistant.loader:Loaded history from homeassistant.components.history INFO:homeassistant.loader:Loaded recorder from homeassistant.components.recorder INFO:homeassistant.loader:Loaded http from homeassistant.components.http INFO:homeassistant.loader:Loaded discovery from homeassistant.components.discovery INFO:homeassistant.loader:Loaded device_tracker from homeassistant.components.device_tracker INFO:homeassistant.loader:Loaded zone from homeassistant.components.zone INFO:homeassistant.loader:Loaded frontend from homeassistant.components.frontend INFO:homeassistant.loader:Loaded api from homeassistant.components.api INFO:homeassistant.loader:Loaded sun from homeassistant.components.sun INFO:homeassistant.loader:Loaded sensor from homeassistant.components.sensor INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.util.package:Attempting install of netdisco==0.5.5 INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling

INFO:homeassistant.components.recorder:Database migrated to version 5 INFO:netdisco.service:Scanning INFO:homeassistant.components.recorder:Closing database not sure about that pychromecast thing. But HA appears to work as before. 2016-04-04: Home Assistant - upgrade to latest version (0.16.1). I first stopped the running HA, then I do tingo@kg-bpi:~$ which pip3 /usr/local/opt/python-3.4.3/bin/pip3 tingo@kg-bpi:~$ sudo /usr/local/opt/python-3.4.3/bin/pip3 install --upgrade homeassistant Collecting homeassistant Downloading homeassistant-0.16.1-py2.py3-none-any.whl (1.2MB) [...] Requirement already up-to-date: pyyaml<4,>=3.11 in /usr/local/opt/python-3.4.3/lib/python3.4/site-packages (from homeassistant) Collecting pytz>=2015.4 (from homeassistant) Downloading pytz-2016.3-py2.py3-none-any.whl (479kB) [...] Collecting requests<3,>=2 (from homeassistant) Downloading requests-2.9.1-py2.py3-none-any.whl (501kB) [...] Collecting jinja2>=2.8 (from homeassistant) Downloading Jinja2-2.8-py2.py3-none-any.whl (263kB) [...] Collecting pip>=7.0.0 (from homeassistant) Downloading pip-8.1.1-py2.py3-none-any.whl (1.2MB) [...] Collecting vincenty==0.1.3 (from homeassistant) Downloading vincenty-0.1.3.tar.gz Collecting MarkupSafe (from jinja2>=2.8->homeassistant) Downloading MarkupSafe-0.23.tar.gz Installing collected packages: pytz, requests, MarkupSafe, jinja2, pip, vincenty, homeassistant Found existing installation: pytz 2015.7 Uninstalling pytz-2015.7: Successfully uninstalled pytz-2015.7 Found existing installation: requests 2.8.1 Uninstalling requests-2.8.1: Successfully uninstalled requests-2.8.1 Running setup.py install for MarkupSafe Found existing installation: pip 7.1.2 Uninstalling pip-7.1.2: Successfully uninstalled pip-7.1.2 Found existing installation: vincenty 0.1.2 Uninstalling vincenty-0.1.2: Successfully uninstalled vincenty-0.1.2 Running setup.py install for vincenty Found existing installation: homeassistant 0.7.7 Uninstalling homeassistant-0.7.7: Successfully uninstalled homeassistant-0.7.7 Successfully installed MarkupSafe-0.23 homeassistant-0.16.1 jinja2-2.8 pip-8.1.1 pytz-2016.3 requests-2.9.1 vincenty-0.1.3 ok. 2016-04-04: bolt - upgrade to Bolt 2.2.19. change to bolt directory root@kg-bpi ~ # cd /usr/local/www/logb check directory permissions and so on root@kg-bpi /usr/local/www/logb # ll .. total 4 drwxr-sr-x 8 www-data www-data 4096 Dec 30 17:50 logb/ root@kg-bpi /usr/local/www/logb # ll total 228 drwxr-xr-x 8 501 staff 4096 Dec 30 17:50 app/ -rw-r--r-- 1 501 staff 40256 Dec 29 15:11 changelog.md -rw-r--r-- 1 501 staff 2951 Dec 29 15:12 composer.json.dist -rw-r--r-- 1 501 staff 140139 Dec 29 15:12 composer.lock.dist drwxrwxrwx 3 501 staff 4096 Nov 29 2014 extensions/ drwxrwxrwx 2 501 staff 4096 Dec 30 17:50 files/ -rw-r--r-- 1 501 staff 1490 Dec 29 15:11 index.php -rw-r--r-- 1 501 staff 1078 Nov 26 11:48 LICENSE.md -rw-r--r-- 1 501 staff 3541 Dec 29 15:11 README.md -rw-r--r-- 1 501 staff 789 Dec 14 2014 serve drwxr-xr-x 22 501 staff 4096 Dec 30 17:50 src/ drwxrwxrwx 4 501 staff 4096 Dec 29 15:11 theme/ drwxr-xr-x 31 501 staff 4096 Dec 30 17:50 vendor/ -rw-r--r-- 1 501 staff 3737 May 27 2015 web.config and .htaccess root@kg-bpi /usr/local/www/logb # ll .ht -rw-r--r-- 1 501 staff 1245 Dec 29 15:04 .htaccess ok. Do upgrade root@kg-bpi /usr/local/www/logb # tar xvf /home/tingo/dl/bolt-2.2.19.tar.gz --strip-components=1 [...] bolt-git-2016-03-11-375bb6d/app/cache/index.html bolt-git-2016-03-11-375bb6d/.github/CONTRIBUTING.md bolt-git-2016-03-11-375bb6d/.github/ISSUE_TEMPLATE.md bolt-git-2016-03-11-375bb6d/.github/PULL_REQUEST_TEMPLATE.md tar xvf /home/tingo/dl/bolt-2.2.19.tar.gz --strip-components=1 1.69s user 4.14s system 79% cpu 7.292 total fix permissions root@kg-bpi /usr/local/www/logb # chmod -R 777 files/ app/database/ app/cache/ app/config/ theme/ extensions/ check directory again root@kg-bpi /usr/local/www/logb # ll ..
total 4 drwxr-sr-x 9 www-data www-data 4096 Apr 4 20:13 logb/ root@kg-bpi /usr/local/www/logb # ll
total 240 drwxr-xr-x 8 501 staff 4096 Apr 4 20:13 app/ -rw-r--r-- 1 501 staff 43199 Mar 11 15:11 changelog.md -rw-r--r-- 1 501 staff 3116 Mar 11 15:12 composer.json.dist -rw-r--r-- 1 501 staff 150073 Mar 11 15:12 composer.lock.dist drwxrwxrwx 3 501 staff 4096 Nov 29 2014 extensions/ drwxrwxrwx 2 501 staff 4096 Apr 4 20:13 files/ -rw-r--r-- 1 501 staff 1490 Mar 11 15:11 index.php -rw-r--r-- 1 501 staff 1078 Nov 26 11:48 LICENSE.md -rw-r--r-- 1 501 staff 4031 Mar 11 15:11 README.md -rw-r--r-- 1 501 staff 789 Dec 14 2014 serve drwxr-xr-x 22 501 staff 4096 Apr 4 20:13 src/ drwxrwxrwx 4 501 staff 4096 Mar 11 15:11 theme/ drwxr-xr-x 33 501 staff 4096 Apr 4 20:13 vendor/ -rw-r--r-- 1 501 staff 3826 Jan 26 20:45 web.config root@kg-bpi /usr/local/www/logb # ll .ht

-rw-r--r-- 1 501 staff 1684 Jan 26 20:45 .htaccess looks ok. Afterwards I do Configuration / Check database - it is already up to date - from within Bolt. 2016-04-04: bolt - fetch newest bolt, which is Bolt 2.2.19: tingo@kg-bpi:~$ cd dl tingo@kg-bpi:~/dl$ wget http://bolt.cm/distribution/bolt-2.2.19.tar.gz --2016-04-04 20:02:13-- http://bolt.cm/distribution/bolt-2.2.19.tar.gz Resolving bolt.cm (bolt.cm)... 46.17.0.55 Connecting to bolt.cm (bolt.cm)|46.17.0.55|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 10242549 (9.8M) [application/x-gzip] Saving to: `bolt-2.2.19.tar.gz'

100%[===========================================================================>] 10,242,549 5.56M/s in 1.8s

2016-04-04 20:02:16 (5.56 MB/s) - `bolt-2.2.19.tar.gz' saved [10242549/10242549] ok.

2015-12-30: bolt - upgrade to Bolt 2.2.15. change to bolt directory root@kg-bpi ~ # cd /usr/local/www/logb check how the directory looks before upgrade: root@kg-bpi /usr/local/www/logb # ll .. total 4 drwxr-sr-x 8 www-data www-data 4096 Sep 12 15:13 logb/ root@kg-bpi /usr/local/www/logb # l total 216 drwxr-xr-x 8 501 staff 4096 Sep 12 15:14 app/ -rw-r--r-- 1 501 staff 36016 Sep 1 08:59 changelog.md -rw-r--r-- 1 501 staff 3003 Sep 1 08:59 composer.json.dist -rw-r--r-- 1 501 staff 137591 Sep 1 08:59 composer.lock.dist drwxrwxrwx 3 501 staff 4096 Nov 29 2014 extensions/ drwxrwxrwx 2 501 staff 4096 Sep 12 15:14 files/ -rw-r--r-- 1 501 staff 1490 Sep 1 08:59 index.php -rw-r--r-- 1 501 staff 3541 Sep 1 08:59 README.md -rw-r--r-- 1 501 staff 789 Dec 14 2014 serve drwxr-xr-x 22 501 staff 4096 Sep 12 15:14 src/ drwxrwxrwx 4 501 staff 4096 Jan 18 2015 theme/ drwxr-xr-x 31 501 staff 4096 Sep 12 15:13 vendor/ -rw-r--r-- 1 501 staff 3737 May 27 2015 web.config ok. Do upgrade: root@kg-bpi /usr/local/www/logb # tar xvf /home/tingo/dl/bolt-2.2.15.tar.gz --strip-components=1 [...] bolt-git-2015-12-29-a131d2e/app/config/config.yml.dist bolt-git-2015-12-29-a131d2e/app/config/contenttypes.yml.dist bolt-git-2015-12-29-a131d2e/app/config/extensions/ bolt-git-2015-12-29-a131d2e/app/config/menu.yml.dist bolt-git-2015-12-29-a131d2e/app/config/permissions.yml.dist bolt-git-2015-12-29-a131d2e/app/config/routing.yml.dist bolt-git-2015-12-29-a131d2e/app/config/taxonomy.yml.dist bolt-git-2015-12-29-a131d2e/app/config/extensions/index.html bolt-git-2015-12-29-a131d2e/app/cache/index.html tar xvf /home/tingo/dl/bolt-2.2.15.tar.gz --strip-components=1 1.80s user 4.68s system 78% cpu 8.287 total fix permissions: root@kg-bpi /usr/local/www/logb # chmod -R 777 files/ app/database/ app/cache/ app/config/ theme/ extensions/ verify directory: root@kg-bpi /usr/local/www/logb # ll ..
total 4 drwxr-sr-x 8 www-data www-data 4096 Dec 30 17:50 logb/ root@kg-bpi /usr/local/www/logb # l
total 228 drwxr-xr-x 8 501 staff 4096 Dec 30 17:50 app/ -rw-r--r-- 1 501 staff 40256 Dec 29 15:11 changelog.md -rw-r--r-- 1 501 staff 2951 Dec 29 15:12 composer.json.dist -rw-r--r-- 1 501 staff 140139 Dec 29 15:12 composer.lock.dist drwxrwxrwx 3 501 staff 4096 Nov 29 2014 extensions/ drwxrwxrwx 2 501 staff 4096 Dec 30 17:50 files/ -rw-r--r-- 1 501 staff 1490 Dec 29 15:11 index.php -rw-r--r-- 1 501 staff 1078 Nov 26 11:48 LICENSE.md -rw-r--r-- 1 501 staff 3541 Dec 29 15:11 README.md -rw-r--r-- 1 501 staff 789 Dec 14 2014 serve drwxr-xr-x 22 501 staff 4096 Dec 30 17:50 src/ drwxrwxrwx 4 501 staff 4096 Dec 29 15:11 theme/ drwxr-xr-x 31 501 staff 4096 Dec 30 17:50 vendor/ -rw-r--r-- 1 501 staff 3737 May 27 2015 web.config ok. Afterwards I do Configuration / Check database - it is already up to date - from within Bolt. 2015-12-30: bolt - get Bolt 2.2.15: tingo@kg-bpi:~$ cd ~/dl tingo@kg-bpi:~/dl$ wget http://bolt.cm/distribution/bolt-2.2.15.tar.gz --2015-12-30 17:43:33-- http://bolt.cm/distribution/bolt-2.2.15.tar.gz Resolving bolt.cm (bolt.cm)... 46.17.0.55 Connecting to bolt.cm (bolt.cm)|46.17.0.55|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 9952230 (9.5M) [application/x-gzip] Saving to: `bolt-2.2.15.tar.gz'

100%[===========================================================================>] 9,952,230 3.34M/s in 2.8s

2015-12-30 17:43:36 (3.34 MB/s) - `bolt-2.2.15.tar.gz' saved [9952230/9952230] ok. I had already cleared the cache in Bolt.

2015-11-19: Bananian - it is still Bananian Linux 15.01 running on this machine. tingo@kg-bpi:~$ cat /etc/bananian_version 150101 tingo@kg-bpi:~$ cat /etc/debian_version 7.8 tingo@kg-bpi:~$ cat /etc/os-release PRETTY_NAME="Debian GNU/Linux 7 (wheezy)" NAME="Debian GNU/Linux" VERSION_ID="7" VERSION="7 (wheezy)" ID=debian ANSI_COLOR="1;31" HOME_URL="http://www.debian.org/" SUPPORT_URL="http://www.debian.org/support/" BUG_REPORT_URL="http://bugs.debian.org/" that's all.

2015-11-03: Home Assistant 0.7.7 - first start: tingo@kg-bpi:~$ hass --open-ui Config directory: /home/tingo/.homeassistant WARNING:homeassistant.bootstrap:Colorlog package not found, console coloring disabled INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.bootstrap:Home Assistant core initialized INFO:homeassistant.loader:Loaded device_tracker from homeassistant.components.device_tracker INFO:homeassistant.loader:Loaded zone from homeassistant.components.zone INFO:homeassistant.loader:Loaded http from homeassistant.components.http INFO:homeassistant.loader:Loaded discovery from homeassistant.components.discovery INFO:homeassistant.loader:Loaded sun from homeassistant.components.sun INFO:homeassistant.loader:Loaded frontend from homeassistant.components.frontend INFO:homeassistant.loader:Loaded api from homeassistant.components.api INFO:homeassistant.loader:Loaded history from homeassistant.components.history INFO:homeassistant.loader:Loaded recorder from homeassistant.components.recorder INFO:homeassistant.loader:Loaded sensor from homeassistant.components.sensor INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling


INFO:homeassistant.components.http:"GET /api/bootstrap HTTP/1.1" 200 - Exception happened during processing of request from ('10.1.150.50', 12644) Traceback (most recent call last): INFO:homeassistant.components.http:"GET /api/bootstrap HTTP/1.1" 200 - INFO:netdisco.service:Scanning INFO:homeassistant.components.http:"GET /static/webcomponents-lite.min.js HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/splash.png HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/frontend-beb922c55bb26ea576581b453f6d7c04.html HTTP/1.1" 200 - File "/usr/local/opt/python-3.4.3/lib/python3.4/socketserver.py", line 617, in process_request_thread self.finish_request(request, client_address) File "/usr/local/opt/python-3.4.3/lib/python3.4/socketserver.py", line 344, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/opt/python-3.4.3/lib/python3.4/site-packages/homeassistant/components/http.py", line 166, in init SimpleHTTPRequestHandler.init(self, req, client_addr, server) File "/usr/local/opt/python-3.4.3/lib/python3.4/socketserver.py", line 673, in init self.handle() File "/usr/local/opt/python-3.4.3/lib/python3.4/http/server.py", line 398, in handle self.handle_one_request() File "/usr/local/opt/python-3.4.3/lib/python3.4/http/server.py", line 386, in handle_one_request method() File "/usr/local/opt/python-3.4.3/lib/python3.4/site-packages/homeassistant/components/http.py", line 276, in do_GET self._handle_request('GET') File "/usr/local/opt/python-3.4.3/lib/python3.4/site-packages/homeassistant/components/http.py", line 260, in _handle_request handle_request_method(self, path_match, data) File "/usr/local/opt/python-3.4.3/lib/python3.4/site-packages/homeassistant/components/frontend/init.py", line 76, in _handle_get_root handler.wfile.write(template_html.encode("UTF-8")) File "/usr/local/opt/python-3.4.3/lib/python3.4/socket.py", line 394, in write return self._sock.send(b) BrokenPipeError: [Errno 32] Broken pipe


INFO:homeassistant.components.http:"GET /api/bootstrap HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/stream?api_password=*&restrict=state_changed,component_loaded,service_registered HTTP/1.1" 200 - INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.1.161.17 INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.1.161.17 INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.1.161.2 INFO:homeassistant.components.sensor:Updating sensor entities INFO:homeassistant.components.device_tracker.tomato.Tomato:Scanning INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): kg-rtn16.kg4.no INFO:homeassistant.components.discovery:Found new service: DLNA http://10.1.161.17:80/dms/device.xml INFO:homeassistant.components.discovery:Found new service: google_cast ('10.1.161.2', 8009) INFO:homeassistant.loader:Loaded media_player from homeassistant.components.media_player INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.loader:Loaded media_player.cast from homeassistant.components.media_player.cast INFO:pychromecast:Querying device status INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.1.161.2 INFO:pychromecast.controllers:Receiver:Updating status INFO:homeassistant.core:Bus:Handling > INFO:homeassistant.components.http:"GET /api/history/period/2015-11-2 HTTP/1.1" 200 - INFO:homeassistant.components.device_tracker.tomato.Tomato:Scanning INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): kg-rtn16.kg4.no INFO:homeassistant.components.sensor:Updating sensor entities INFO:homeassistant.core:Bus:Handling , new_state=\> INFO:homeassistant.components.device_tracker.tomato.Tomato:Scanning INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): kg-rtn16.kg4.no INFO:homeassistant.components.device_tracker.tomato.Tomato:Scanning INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): kg-rtn16.kg4.no seems to work ok. 2015-11-03: Home Assistant - upgrade to latest version (0.7.7). First I stopped the running HA, then I do: tingo@kg-bpi:~$ which pip3 /usr/local/opt/python-3.4.3/bin/pip3 tingo@kg-bpi:~$ sudo /usr/local/opt/python-3.4.3/bin/pip3 install --upgrade homeassistant Collecting homeassistant Downloading homeassistant-0.7.7-py3-none-any.whl (698kB) [...] Collecting vincenty==0.1.2 (from homeassistant) Downloading vincenty-0.1.2.tar.gz Collecting requests<3,>=2 (from homeassistant) Downloading requests-2.8.1-py2.py3-none-any.whl (497kB) [...] Collecting pytz>=2015.4 (from homeassistant) Downloading pytz-2015.7-py2.py3-none-any.whl (476kB) [...] Requirement already up-to-date: pip>=7.0.0 in /usr/local/opt/python-3.4.3/lib/python3.4/site-packages (from homeassistant) Requirement already up-to-date: pyyaml<4,>=3.11 in /usr/local/opt/python-3.4.3/lib/python3.4/site-packages (from homeassistant) Installing collected packages: vincenty, requests, pytz, homeassistant Running setup.py install for vincenty Found existing installation: requests 2.7.0 Uninstalling requests-2.7.0: Successfully uninstalled requests-2.7.0 Found existing installation: pytz 2015.4 Uninstalling pytz-2015.4: Successfully uninstalled pytz-2015.4 Found existing installation: homeassistant 0.7.2 Uninstalling homeassistant-0.7.2: Successfully uninstalled homeassistant-0.7.2 Successfully installed homeassistant-0.7.7 pytz-2015.7 requests-2.8.1 vincenty-0.1.2 ok.

2015-09-12: Bolt - upgrade to Bolt 2.2.10: change to bolt directory root@kg-bpi ~ # cd /usr/local/www/logb before upgrade, the directory looks like this: root@kg-bpi /usr/local/www/logb # l total 188 drwxr-xr-x 8 501 staff 4096 May 16 19:43 app/ -rw-r--r-- 1 501 staff 20773 Apr 30 20:24 changelog.md -rw-r--r-- 1 501 staff 2423 Apr 30 20:24 composer.json.dist -rw-r--r-- 1 501 staff 123732 Apr 30 20:24 composer.lock.dist drwxrwxrwx 3 501 staff 4096 Apr 30 20:24 extensions/ drwxrwxrwx 2 501 staff 4096 May 16 19:43 files/ -rw-r--r-- 1 501 staff 414 Apr 30 20:24 index.php -rw-r--r-- 1 501 staff 3484 Apr 30 20:24 README.md -rw-r--r-- 1 501 staff 789 Apr 30 20:24 serve drwxr-xr-x 19 501 staff 4096 May 16 19:43 src/ drwxrwxrwx 4 501 staff 4096 Apr 30 20:24 theme/ drwxr-xr-x 28 501 staff 4096 Apr 30 20:24 vendor/ and root@kg-bpi /usr/local/www/logb # ll .. total 4 drwxr-sr-x 8 www-data www-data 4096 May 16 19:43 logb/ good. Do the upgrade root@kg-bpi /usr/local/www/logb # tar xvf /home/tingo/dl/bolt-2.2.10.tar.gz --strip-components=1 [...] bolt-git-2015-09-01-ca8eace/app/config/config.yml.dist bolt-git-2015-09-01-ca8eace/app/config/contenttypes.yml.dist bolt-git-2015-09-01-ca8eace/app/config/extensions/ bolt-git-2015-09-01-ca8eace/app/config/menu.yml.dist bolt-git-2015-09-01-ca8eace/app/config/permissions.yml.dist bolt-git-2015-09-01-ca8eace/app/config/routing.yml.dist bolt-git-2015-09-01-ca8eace/app/config/taxonomy.yml.dist bolt-git-2015-09-01-ca8eace/app/config/extensions/index.html bolt-git-2015-09-01-ca8eace/app/cache/index.html tar xvf /home/tingo/dl/bolt-2.2.10.tar.gz --strip-components=1 2.12s user 4.14s system 98% cpu 6.354 total fix permissions: root@kg-bpi /usr/local/www/logb # chmod -R 777 files/ app/database/ app/cache/ app/config/ theme/ extensions/ the directory now looks like this: root@kg-bpi /usr/local/www/logb # ll total 216 drwxr-xr-x 8 501 staff 4096 Sep 12 15:14 app/ -rw-r--r-- 1 501 staff 36016 Sep 1 08:59 changelog.md -rw-r--r-- 1 501 staff 3003 Sep 1 08:59 composer.json.dist -rw-r--r-- 1 501 staff 137591 Sep 1 08:59 composer.lock.dist drwxrwxrwx 3 501 staff 4096 Nov 29 2014 extensions/ drwxrwxrwx 2 501 staff 4096 Sep 12 15:14 files/ -rw-r--r-- 1 501 staff 1490 Sep 1 08:59 index.php -rw-r--r-- 1 501 staff 3541 Sep 1 08:59 README.md -rw-r--r-- 1 501 staff 789 Dec 14 2014 serve drwxr-xr-x 22 501 staff 4096 Sep 12 15:14 src/ drwxrwxrwx 4 501 staff 4096 Jan 18 2015 theme/ drwxr-xr-x 31 501 staff 4096 Sep 12 15:13 vendor/ -rw-r--r-- 1 501 staff 3737 May 27 17:17 web.config root@kg-bpi /usr/local/www/logb # ll .. total 4 drwxr-sr-x 8 www-data www-data 4096 Sep 12 15:13 logb/ good. Afterwards I do Configuration / Check database / update database from within Bolt. 2015-09-12: Bolt - get Bolt 2.2.10 tingo@kg-bpi:~$ cd ~/dl tingo@kg-bpi:~/dl$ wget http://bolt.cm/distribution/bolt-2.2.10.tar.gz --2015-09-12 15:04:34-- http://bolt.cm/distribution/bolt-2.2.10.tar.gz Resolving bolt.cm (bolt.cm)... 46.17.0.55 Connecting to bolt.cm (bolt.cm)|46.17.0.55|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 9843363 (9.4M) [application/x-gzip] Saving to: `bolt-2.2.10.tar.gz'

100%[===========================================================================>] 9,843,363 789K/s in 10s

2015-09-12 15:04:45 (940 KB/s) - `bolt-2.2.10.tar.gz' saved [9843363/9843363] ok. I cleared the cache from within Bolt before starting the upgrade, 2015-09-12: Home Assistant - fix the configuration: tingo@kg-bpi:~$ mv ~/.homeassistant/configuration.yaml ~/.homeassistant/configuration.yaml.example tingo@kg-bpi:~$ cp ~/progs/home-assistant/config/configuration.yaml ~/.homeassistant/ tingo@kg-bpi:~$ cp ~/progs/home-assistant/config/known_devices.csv ~/.homeassistant/ Then restart HA with hass --open-ui from another shell, yes that works. I had to change the tellstick configuration in configuration.yaml from: sensor: platform: tellstick datatype_mask: 127 only_named: 0 11: freezer 186: fridge to sensor: platform: tellstick datatype_mask: 127 only_named: 1 11: freezer 186: fridge and restart HA, because I had lots of other sensors showing up. 2015-09-12: Home Assistant - with HA 0.7 installed: tingo@kg-bpi:~$ which hass /usr/local/opt/python-3.4.3/bin/hass tingo@kg-bpi:~$ hass --help usage: hass [-h] [--version] [-c path_to_config_dir] [--demo-mode] [--open-ui] [--skip-pip] [-v] [--pid-file path_to_pid_file] [--log-rotate-days LOG_ROTATE_DAYS] [--daemon]

Home Assistant: Observe, Control, Automate.

optional arguments: -h, --help show this help message and exit --version show program's version number and exit -c path_to_config_dir, --config path_to_config_dir Directory that contains the Home Assistant configuration --demo-mode Start Home Assistant in demo mode --open-ui Open the webinterface in a browser --skip-pip Skips pip install of required packages on startup -v, --verbose Enable verbose logging to file. --pid-file path_to_pid_file Path to PID file useful for running as daemon --log-rotate-days LOG_ROTATE_DAYS Enables daily log rotation and keeps up to the specified days --daemon Run Home Assistant as daemon ok. tingo@kg-bpi:~$ hass --version 0.7.2 try to start it: tingo@kg-bpi:~$ hass --open-ui Unable to find configuration. Creating default one in /home/tingo/.homeassistant Config directory: /home/tingo/.homeassistant WARNING:homeassistant.bootstrap:Colorlog package not found, console coloring disabled INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.bootstrap:Home Assistant core initialized INFO:homeassistant.loader:Loaded history from homeassistant.components.history INFO:homeassistant.loader:Loaded recorder from homeassistant.components.recorder INFO:homeassistant.loader:Loaded http from homeassistant.components.http INFO:homeassistant.loader:Loaded introduction from homeassistant.components.introduction INFO:homeassistant.loader:Loaded discovery from homeassistant.components.discovery INFO:homeassistant.loader:Loaded frontend from homeassistant.components.frontend INFO:homeassistant.loader:Loaded api from homeassistant.components.api INFO:homeassistant.loader:Loaded conversation from homeassistant.components.conversation INFO:homeassistant.loader:Loaded sun from homeassistant.components.sun INFO:homeassistant.loader:Loaded logbook from homeassistant.components.logbook INFO:homeassistant.components.introduction:

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

    Hello, and welcome to Home Assistant!

    We'll hope that we can make all your dreams come true.

    Here are some resources to get started:

     - Configuring Home Assistant:
       https://home-assistant.io/getting-started/configuration.html

     - Available components:
       https://home-assistant.io/components/

     - Troubleshooting your configuration:
       https://home-assistant.io/getting-started/troubleshooting-configuration.html

     - Getting help:
       https://home-assistant.io/help/

    This message is generated by the introduction component. You can
    disable it in configuration.yaml.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.util.package:Attempting install of netdisco==0.3 INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.util.package:Attempting install of astral==0.8.1 INFO:homeassistant.components.sun:Retrieved elevation from Google: 109 INFO:homeassistant.core:Bus:Handling , entity_id=sun.sun> INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Starting Home Assistant (12 threads) INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.components.http:Starting web interface at http://0.0.0.0:8123 INFO:homeassistant.core:Timer:starting INFO:homeassistant.components.http:"GET /api/stream?api_password=white12 HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/stream?api_password=white12 HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/bootstrap HTTP/1.1" 200 - INFO:netdisco.service:Scanning INFO:homeassistant.components.http:"GET /api/bootstrap HTTP/1.1" 200 - INFO:homeassistant.components.recorder:Running query CREATE TABLE recorder_runs ( run_id integer primary key, start integer, end integer, closed_incorrect integer default 0, created integer)

INFO:homeassistant.components.recorder:Running query CREATE TABLE events ( event_id integer primary key, event_type text, event_data text, origin text, created integer)

INFO:homeassistant.components.recorder:Running query CREATE INDEX events__event_type ON events(event_type) INFO:homeassistant.components.recorder:Running query CREATE TABLE states ( state_id integer primary key, entity_id text, state text, attributes text, last_changed integer, last_updated integer, created integer)

INFO:homeassistant.components.recorder:Running query CREATE INDEX states__entity_id ON states(entity_id) INFO:homeassistant.components.recorder:Database migrated to version 1 INFO:homeassistant.components.recorder:Running query ALTER TABLE events ADD COLUMN time_fired integer

INFO:homeassistant.components.recorder:Running query UPDATE events SET time_fired=created INFO:homeassistant.components.recorder:Database migrated to version 2 INFO:homeassistant.components.recorder:Running query ALTER TABLE recorder_runs ADD COLUMN utc_offset integer

INFO:homeassistant.components.recorder:Running query ALTER TABLE events ADD COLUMN utc_offset integer

INFO:homeassistant.components.recorder:Running query ALTER TABLE states ADD COLUMN utc_offset integer

INFO:homeassistant.components.recorder:Running query UPDATE recorder_runs SET utc_offset=? INFO:homeassistant.components.recorder:Running query UPDATE events SET utc_offset=? INFO:homeassistant.components.recorder:Running query UPDATE states SET utc_offset=? INFO:homeassistant.components.recorder:Database migrated to version 3 INFO:homeassistant.components.recorder:Running query UPDATE recorder_runs SET utc_offset=? WHERE utc_offset IS NULL INFO:homeassistant.components.recorder:Running query ALTER TABLE states ADD COLUMN event_id integer

INFO:homeassistant.components.recorder:Database migrated to version 4 INFO:homeassistant.components.recorder:Running query UPDATE recorder_runs SET end=?, closed_incorrect=1 WHERE end IS NULL INFO:homeassistant.components.recorder:Running query INSERT INTO recorder_runs (start, created, utc_offset) VALUES (?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO states (entity_id, state, attributes, last_changed, last_updated,created, utc_offset, event_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.1.161.2 INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.1.161.17 INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.1.161.17 INFO:homeassistant.components.discovery:Found new service: google_cast ('10.1.161.2', 8009) INFO:homeassistant.loader:Loaded media_player from homeassistant.components.media_player INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.core:Bus:Handling INFO:homeassistant.components.discovery:Found new service: DLNA http://10.1.161.17:80/dms/device.xml INFO:homeassistant.loader:Loaded media_player.cast from homeassistant.components.media_player.cast INFO:homeassistant.util.package:Attempting install of pychromecast==0.6.12 INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.http:"GET / HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/splash.png HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /static/frontend-35ecb5457a9ff0f4142c2605b53eb843.html HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/bootstrap HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/stream?api_password=no_password_set HTTP/1.1" 200 - INFO:pychromecast:Querying device status INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.1.161.2 INFO:pychromecast.controllers:Receiver:Updating status INFO:homeassistant.core:Bus:Handling , entity_id=media_player.chromecast5997> INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created, time_fired, utc_offset) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.api:Found broken event stream to 10.1.150.50, cleaning up INFO:homeassistant.components.recorder:Running query INSERT INTO states (entity_id, state, attributes, last_changed, last_updated,created, utc_offset, event_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?) INFO:homeassistant.components.http:"GET /states HTTP/1.1" 200 - INFO:homeassistant.components.http:"GET /api/stream?api_password=no_password_set HTTP/1.1" 200 - Can I quit it with Ctrl-C? Yes, that works as before. 2015-09-12: Home Assistant - as of version 0.7 it uses PyPi for installation and upgrade. I stopped Ha from the shell it was running in, now let's see if I can upgraded to 0.7. I start from a normal shell, without Python virtualenv: tingo@kg-core1$ ssh bpi tingo@bpi's password: Linux kg-bpi.kg4.no 3.4.104+ #1 SMP PREEMPT Thu Jan 8 15:40:40 CET 2015 armv7l


Welcome to Bananian Linux! For news and updates check: https://www.bananian.org Any questions? Read the FAQ first: https://www.bananian.org/faq

Run 'bananian-config' to set up Bananian Linux Run 'bananian-update' to check for distribution updates


Last login: Mon Jul 6 21:18:01 2015 from 10.1.150.23 tingo@kg-bpi:~$ which pip3 /usr/local/opt/python-3.4.3/bin/pip3 ok, does this work? tingo@kg-bpi:~$ pip3 install --upgrade homeassistant You are using pip version 6.0.8, however version 7.1.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Collecting homeassistant Downloading homeassistant-0.7.2-py3-none-any.whl (616kB) 100% |################################| 618kB 105kB/s Collecting pyyaml<4,>=3.11 (from homeassistant) Using cached PyYAML-3.11.tar.gz Collecting requests<3,>=2 (from homeassistant) Using cached requests-2.7.0-py2.py3-none-any.whl Collecting pytz>=2015.4 (from homeassistant) Using cached pytz-2015.4-py2.py3-none-any.whl Collecting pip>=7.0.0 (from homeassistant) Downloading pip-7.1.2-py2.py3-none-any.whl (1.1MB) 100% |################################| 1.1MB 63kB/s Installing collected packages: pip, pytz, requests, pyyaml, homeassistant Found existing installation: pip 6.0.8 Uninstalling pip-6.0.8: Exception: Traceback (most recent call last): File "/usr/local/opt/python-3.4.3/lib/python3.4/shutil.py", line 523, in move os.rename(src, real_dst) PermissionError: [Errno 13] Permission denied: '/usr/local/opt/python-3.4.3/bin/pip3' -> '/tmp/pip-_qq80vco-uninstall/usr/local/opt/python-3.4.3/bin/pip3'

  During handling of the above exception, another exception occurred:

  Traceback (most recent call last):
    File "/usr/local/opt/python-3.4.3/lib/python3.4/site-packages/pip/basecommand.py", line 232, in main
      status = self.run(options, args)
    File "/usr/local/opt/python-3.4.3/lib/python3.4/site-packages/pip/commands/install.py", line 347, in run
      root=options.root_path,
    File "/usr/local/opt/python-3.4.3/lib/python3.4/site-packages/pip/req/req_set.py", line 543, in install
      requirement.uninstall(auto_confirm=True)
    File "/usr/local/opt/python-3.4.3/lib/python3.4/site-packages/pip/req/req_install.py", line 667, in uninstall
      paths_to_remove.remove(auto_confirm)
    File "/usr/local/opt/python-3.4.3/lib/python3.4/site-packages/pip/req/req_uninstall.py", line 126, in remove
      renames(path, new_path)
    File "/usr/local/opt/python-3.4.3/lib/python3.4/site-packages/pip/utils/__init__.py", line 316, in renames
      shutil.move(old, new)
    File "/usr/local/opt/python-3.4.3/lib/python3.4/shutil.py", line 536, in move
      os.unlink(src)
  PermissionError: [Errno 13] Permission denied: '/usr/local/opt/python-3.4.3/bin/pip3'

Nope, with sudo then? tingo@kg-bpi:~$ sudo pip3 install --upgrade homeassistant sudo: pip3: command not found tingo@kg-bpi:~$ which pip3 /usr/local/opt/python-3.4.3/bin/pip3 retry tingo@kg-bpi:~$ sudo /usr/local/opt/python-3.4.3/bin/pip3 install --upgrade homeassistant You are using pip version 6.0.8, however version 7.1.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Collecting homeassistant Downloading homeassistant-0.7.2-py3-none-any.whl (616kB) 100% |################################| 618kB 32kB/s Collecting pyyaml<4,>=3.11 (from homeassistant) Downloading PyYAML-3.11.tar.gz (248kB) 100% |################################| 249kB 250kB/s Collecting pytz>=2015.4 (from homeassistant) Downloading pytz-2015.4-py2.py3-none-any.whl (475kB) 100% |################################| 475kB 150kB/s Collecting pip>=7.0.0 (from homeassistant) Downloading pip-7.1.2-py2.py3-none-any.whl (1.1MB) 100% |################################| 1.1MB 54kB/s Collecting requests<3,>=2 (from homeassistant) Downloading requests-2.7.0-py2.py3-none-any.whl (470kB) 100% |################################| 471kB 143kB/s Installing collected packages: requests, pip, pytz, pyyaml, homeassistant

Found existing installation: pip 6.0.8 Uninstalling pip-6.0.8: Successfully uninstalled pip-6.0.8

Running setup.py install for pyyaml checking if libyaml is compilable gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/local/opt/python-3.4.3/include/python3.4m -c build/temp.linux-armv7l-3.4/check_libyaml.c -o build/temp.linux-armv7l-3.4/check_libyaml.o build/temp.linux-armv7l-3.4/check_libyaml.c:2:18: fatal error: yaml.h: No such file or directory compilation terminated. libyaml is not found or a compiler error: forcing --without-libyaml (if libyaml is installed correctly, you may need to specify the option --include-dirs or uncomment and modify the parameter include_dirs in setup.cfg)

Successfully installed homeassistant-0.7.2 pip-7.1.2 pytz-2015.4 pyyaml-3.11 requests-2.7.0 Ok, did that work? tingo@kg-bpi:~$ pip --version pip 7.1.2 from /usr/local/opt/python-3.4.3/lib/python3.4/site-packages (python 3.4) pip is ok Fix pyyaml. First uninstall it: tingo@kg-bpi:~$ sudo /usr/local/opt/python-3.4.3/bin/pip3 uninstall pyyaml Uninstalling PyYAML-3.11: /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/PyYAML-3.11-py3.4.egg-info /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/init.py /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/pycache/init.cpython-34.pyc /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/pycache/composer.cpython-34.pyc /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/pycache/constructor.cpython-34.pyc /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/pycache/cyaml.cpython-34.pyc /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/pycache/dumper.cpython-34.pyc /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/pycache/emitter.cpython-34.pyc /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/pycache/error.cpython-34.pyc /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/pycache/events.cpython-34.pyc /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/pycache/loader.cpython-34.pyc /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/pycache/nodes.cpython-34.pyc /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/pycache/parser.cpython-34.pyc /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/pycache/reader.cpython-34.pyc /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/pycache/representer.cpython-34.pyc /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/pycache/resolver.cpython-34.pyc /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/pycache/scanner.cpython-34.pyc /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/pycache/serializer.cpython-34.pyc /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/pycache/tokens.cpython-34.pyc /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/composer.py /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/constructor.py /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/cyaml.py /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/dumper.py /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/emitter.py /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/error.py /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/events.py /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/loader.py /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/nodes.py /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/parser.py /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/reader.py /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/representer.py /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/resolver.py /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/scanner.py /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/serializer.py /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/yaml/tokens.py Proceed (y/n)? y Successfully uninstalled PyYAML-3.11 Next install libyaml-dev tingo@kg-bpi:~$ sudo apt-get install libyaml-dev Reading package lists... Done Building dependency tree
Reading state information... Done The following extra packages will be installed: libyaml-0-2 The following NEW packages will be installed: libyaml-0-2 libyaml-dev 0 upgraded, 2 newly installed, 0 to remove and 18 not upgraded. Need to get 108 kB of archives. After this operation, 314 kB of additional disk space will be used. Do you want to continue [Y/n]? Get:1 http://ftp.de.debian.org/debian/ wheezy/main libyaml-0-2 armhf 0.1.4-2+deb7u5 [48.1 kB] Get:2 http://ftp.de.debian.org/debian/ wheezy/main libyaml-dev armhf 0.1.4-2+deb7u5 [60.3 kB] Fetched 108 kB in 0s (242 kB/s)
Selecting previously unselected package libyaml-0-2:armhf. (Reading database ... 20760 files and directories currently installed.) Unpacking libyaml-0-2:armhf (from .../libyaml-0-2_0.1.4-2+deb7u5_armhf.deb) ... Selecting previously unselected package libyaml-dev:armhf. Unpacking libyaml-dev:armhf (from .../libyaml-dev_0.1.4-2+deb7u5_armhf.deb) ... Setting up libyaml-0-2:armhf (0.1.4-2+deb7u5) ... Setting up libyaml-dev:armhf (0.1.4-2+deb7u5) ... and reinstall pyyaml: tingo@kg-bpi:~$ sudo /usr/local/opt/python-3.4.3/bin/pip3 install pyyaml Collecting pyyaml Using cached PyYAML-3.11.tar.gz Installing collected packages: pyyaml Running setup.py install for pyyaml Successfully installed pyyaml-3.11 looks better now.

2015-06-13: Home Assistant - I did get a segfault after starting Home Assistant the first time after upgrade. But after logging out from the web interface and in again, it works. Temperature sensors now have graphs! 2015-06-13: Home Assistant - the update script looks like this: tingo@kg-bpi:~/progs/home-assistant$ more scripts/update

If current pwd is scripts, go 1 up.

if [ ${PWD##*/} == "scripts" ]; then cd .. fi

git pull --recurse-submodules=yes git submodule update --init --recursive python3 -m pip install -r requirements.txt What happens if I just activate the virtual env first and then run the pyhon line? tingo@kg-bpi:~/progs/home-assistant$ source ../homeassistant/bin/activate (homeassistant) tingo@kg-bpi:~/progs/home-assistant$ (homeassistant) tingo@kg-bpi:~/progs/home-assistant$ python3 -m pip install -r requirements.txt You are using pip version 6.0.8, however version 7.0.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Requirement already satisfied (use --upgrade to upgrade): requests>=2.0 in /home/tingo/progs/homeassistant/lib/python3.4/site-packages (from -r requirements.txt (line 2)) Requirement already satisfied (use --upgrade to upgrade): pyyaml>=3.11 in /home/tingo/progs/homeassistant/lib/python3.4/site-packages (from -r requirements.txt (line 3)) Collecting pytz>=2015.2 (from -r requirements.txt (line 4)) Using cached pytz-2015.4-py2.py3-none-any.whl Requirement already satisfied (use --upgrade to upgrade): zeroconf>=0.16.0 in /home/tingo/progs/homeassistant/lib/python3.4/site-packages (from -r requirements.txt (line 9)) Requirement already satisfied (use --upgrade to upgrade): pyephem>=3.7 in /home/tingo/progs/homeassistant/lib/python3.4/site-packages (from -r requirements.txt (line 12)) Requirement already satisfied (use --upgrade to upgrade): phue>=0.8 in /home/tingo/progs/homeassistant/lib/python3.4/site-packages (from -r requirements.txt (line 15)) Collecting ledcontroller>=1.0.7 (from -r requirements.txt (line 18)) Using cached ledcontroller-1.1.0-py2.py3-none-any.whl Collecting pychromecast>=0.6.6 (from -r requirements.txt (line 21)) Using cached PyChromecast-0.6.6.tar.gz Requirement already satisfied (use --upgrade to upgrade): pyuserinput>=0.1.9 in /home/tingo/progs/homeassistant/lib/python3.4/site-packages (from -r requirements.txt (line 24)) Requirement already satisfied (use --upgrade to upgrade): tellcore-py>=1.0.4 in /home/tingo/progs/homeassistant/lib/python3.4/site-packages (from -r requirements.txt (line 27)) Requirement already satisfied (use --upgrade to upgrade): python-libnmap>=0.6.2 in /home/tingo/progs/homeassistant/lib/python3.4/site-packages (from -r requirements.txt (line 30)) Requirement already satisfied (use --upgrade to upgrade): pushbullet.py>=0.7.1 in /home/tingo/progs/homeassistant/lib/python3.4/site-packages (from -r requirements.txt (line 33)) Requirement already satisfied (use --upgrade to upgrade): python-nest>=2.3.1 in /home/tingo/progs/homeassistant/lib/python3.4/site-packages (from -r requirements.txt (line 36)) Requirement already satisfied (use --upgrade to upgrade): pydispatcher>=2.0.5 in /home/tingo/progs/homeassistant/lib/python3.4/site-packages (from -r requirements.txt (line 39)) Collecting PyISY>=1.0.2 (from -r requirements.txt (line 42)) Using cached PyISY-1.0.5.tar.gz Requirement already satisfied (use --upgrade to upgrade): psutil>=2.2.1 in /home/tingo/progs/homeassistant/lib/python3.4/site-packages (from -r requirements.txt (line 45)) Collecting python-pushover>=0.2 (from -r requirements.txt (line 48)) Using cached python-pushover-0.2.tar.gz Collecting transmissionrpc>=0.11 (from -r requirements.txt (line 51)) Using cached transmissionrpc-0.11.tar.gz Collecting pyowm>=2.2.0 (from -r requirements.txt (line 54)) Using cached pyowm-2.2.1.zip Collecting sleekxmpp>=1.3.1 (from -r requirements.txt (line 57)) Using cached sleekxmpp-1.3.1.tar.gz Collecting blockchain>=1.1.2 (from -r requirements.txt (line 60)) Using cached blockchain-1.1.2.zip Collecting python-mpd2>=0.5.4 (from -r requirements.txt (line 63)) Using cached python-mpd2-0.5.4.tar.bz2 Collecting hikvision>=0.4 (from -r requirements.txt (line 66)) Using cached hikvision-0.5.tar.gz Collecting colorlog>=2.6.0 (from -r requirements.txt (line 69)) Using cached colorlog-2.6.0-py2.py3-none-any.whl Requirement already satisfied (use --upgrade to upgrade): six in /home/tingo/progs/homeassistant/lib/python3.4/site-packages (from zeroconf>=0.16.0->-r requirements.txt (line 9)) Requirement already satisfied (use --upgrade to upgrade): netifaces in /home/tingo/progs/homeassistant/lib/python3.4/site-packages (from zeroconf>=0.16.0->-r requirements.txt (line 9)) Requirement already satisfied (use --upgrade to upgrade): enum34 in /home/tingo/progs/homeassistant/lib/python3.4/site-packages (from zeroconf>=0.16.0->-r requirements.txt (line 9)) Collecting protobuf>=3.0.0a3 (from pychromecast>=0.6.6->-r requirements.txt (line 21)) Using cached protobuf-3.0.0a3.tar.gz Requirement already satisfied (use --upgrade to upgrade): websocket-client in /home/tingo/progs/homeassistant/lib/python3.4/site-packages (from pushbullet.py>=0.7.1->-r requirements.txt (line 33)) Requirement already satisfied (use --upgrade to upgrade): python-magic in /home/tingo/progs/homeassistant/lib/python3.4/site-packages (from pushbullet.py>=0.7.1->-r requirements.txt (line 33)) Collecting VarEvents (from PyISY>=1.0.2->-r requirements.txt (line 42)) Using cached VarEvents-1.0.0.tar.gz Requirement already satisfied (use --upgrade to upgrade): setuptools in /home/tingo/progs/homeassistant/lib/python3.4/site-packages (from protobuf>=3.0.0a3->pychromecast>=0.6.6->-r requirements.txt (line 21)) Installing collected packages: VarEvents, protobuf, colorlog, hikvision, python-mpd2, blockchain, sleekxmpp, pyowm, transmissionrpc, python-pushover, PyISY, pychromecast, ledcontroller, pytz Running setup.py install for VarEvents Running setup.py install for protobuf Skipping installation of /home/tingo/progs/homeassistant/lib/python3.4/site-packages/google/init.py (namespace package) Installing /home/tingo/progs/homeassistant/lib/python3.4/site-packages/protobuf-3.0.0a3-py3.4-nspkg.pth

Running setup.py install for hikvision Running setup.py install for python-mpd2 Running setup.py install for blockchain Running setup.py install for sleekxmpp Running setup.py install for pyowm Running setup.py install for transmissionrpc Running setup.py install for python-pushover Fixing build/lib/pushover.py Fixing build/lib/pushover.py Installing pushover script to /home/tingo/progs/homeassistant/bin Running setup.py install for PyISY Found existing installation: PyChromecast 0.5.1.1 Uninstalling PyChromecast-0.5.1.1: Successfully uninstalled PyChromecast-0.5.1.1 Running setup.py install for pychromecast

Successfully installed PyISY-1.0.5 VarEvents-1.0.0 blockchain-1.1.2 colorlog-2.6.0 hikvision-0.5 ledcontroller-1.1.0 protobuf-3.0.0a3 pychromecast-0.6.6 pyowm-2.2.1 python-mpd2-0.5.4 python-pushover-0.2 pytz-2015.4 sleekxmpp-1.3.1 transmissionrpc-0.11 Yep, that looks better. 2015-06-13: Home Assistant - updating to the latest (June 10th, 2015) release. First I stop Home Assistant. Then I run scripts/update: tingo@kg-bpi:~/progs/home-assistant$ scripts/update remote: Counting objects: 3857, done. remote: Compressing objects: 100% (68/68), done. remote: Total 3857 (delta 757), reused 737 (delta 737), pack-reused 3052 Receiving objects: 100% (3857/3857), 3.78 MiB | 507 KiB/s, done. Resolving deltas: 100% (2612/2612), completed with 126 local objects. From https://github.com/balloob/home-assistant ea200de..187da3a master -> origin/master * [new branch] chore-improve-config -> origin/chore-improve-config * [new branch] chore-platform-dependencies -> origin/chore-platform-dependencies ec557f8..0f2a50c dev -> origin/dev * [new branch] feature-recorder-states-store-eventid -> origin/feature-recorder-states-store-eventid 99bfcd4..7b44ce4 gh-pages -> origin/gh-pages * [new branch] media-player-muting -> origin/media-player-muting * [new branch] polymer-9 -> origin/polymer-9 * [new branch] pychromecast-fixing-fixing -> origin/pychromecast-fixing-fixing * [new branch] refactor-utc -> origin/refactor-utc Fetching submodule homeassistant/components/frontend/www_static/polymer/home-assistant-js remote: Counting objects: 176, done. remote: Total 176 (delta 76), reused 76 (delta 76), pack-reused 100 Receiving objects: 100% (176/176), 180.91 KiB | 301 KiB/s, done. Resolving deltas: 100% (122/122), completed with 33 local objects. From https://github.com/balloob/home-assistant-js e048bf6..015edf9 master -> origin/master Fetching submodule homeassistant/external/netdisco remote: Counting objects: 12, done. remote: Total 12 (delta 6), reused 6 (delta 6), pack-reused 6 Unpacking objects: 100% (12/12), done. From https://github.com/balloob/netdisco 6e712dd..b2cad7c master -> origin/master Fetching submodule homeassistant/external/noop remote: Counting objects: 3, done. remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 3 Unpacking objects: 100% (3/3), done. From https://github.com/balloob/noop 45fae73..4eaeb33 master -> origin/master Fetching submodule homeassistant/external/pynetgear Fetching submodule homeassistant/external/pywemo remote: Counting objects: 41, done. remote: Total 41 (delta 10), reused 10 (delta 10), pack-reused 31 Unpacking objects: 100% (41/41), done. From https://github.com/balloob/pywemo 7f6c383..ca94e41 master -> origin/master Fetching submodule homeassistant/external/vera remote: Counting objects: 3, done. remote: Total 3 (delta 2), reused 2 (delta 2), pack-reused 1 Unpacking objects: 100% (3/3), done. From https://github.com/jamespcole/home-assistant-vera-api fedbb5c..30c5978 master -> origin/master Updating ea200de..187da3a Fast-forward .coveragerc | 40 +- .gitignore | 4 +- .gitmodules | 3 + CONTRIBUTING.md | 57 +- README.md | 22 +- config/configuration.yaml.example | 7 +- config/custom_components/example.py | 21 +- config/custom_components/hello_world.py | 8 + homeassistant/init.py | 156 +- homeassistant/main.py | 38 +- homeassistant/bootstrap.py | 163 +- homeassistant/components/api.py | 46 +- homeassistant/components/demo.py | 12 +- homeassistant/components/device_sun_light_trigger.py | 5 +- homeassistant/components/device_tracker/init.py | 176 +- homeassistant/components/device_tracker/ddwrt.py | 191 + homeassistant/components/device_tracker/luci.py | 42 +- homeassistant/components/device_tracker/netgear.py | 35 +- homeassistant/components/device_tracker/nmap_tracker.py | 83 +- homeassistant/components/device_tracker/tomato.py | 39 +- homeassistant/components/discovery.py | 4 +- homeassistant/components/frontend/index.html.template | 8 +- homeassistant/components/frontend/version.py | 2 +- homeassistant/components/frontend/www_static/favicon-apple-180x180.png | Bin 0 -> 15269 bytes homeassistant/components/frontend/www_static/frontend.html |26980 ++++++++++++++++++++++++++++++++- homeassistant/components/frontend/www_static/polymer/bower.json | 61 +- .../frontend/www_static/polymer/cards/state-card-configurator.html | 30 +- .../components/frontend/www_static/polymer/cards/state-card-content.html | 64 +- .../components/frontend/www_static/polymer/cards/state-card-display.html | 44 +- .../frontend/www_static/polymer/cards/state-card-media_player.html | 91 + .../components/frontend/www_static/polymer/cards/state-card-scene.html | 36 +- .../frontend/www_static/polymer/cards/state-card-thermostat.html | 46 +- .../components/frontend/www_static/polymer/cards/state-card-toggle.html | 64 +- homeassistant/components/frontend/www_static/polymer/cards/state-card.html | 38 +- .../components/frontend/www_static/polymer/components/display-time.html | 25 + .../components/frontend/www_static/polymer/components/domain-icon.html | 37 +- .../components/frontend/www_static/polymer/components/entity-list.html | 81 +- .../components/frontend/www_static/polymer/components/events-list.html | 82 +- .../components/frontend/www_static/polymer/components/ha-logbook.html | 32 + .../frontend/www_static/polymer/components/ha-notifications.html | 37 - .../components/frontend/www_static/polymer/components/loading-box.html | 30 +- .../components/frontend/www_static/polymer/components/logbook-entry.html | 69 + .../components/frontend/www_static/polymer/components/recent-states.html | 50 - .../frontend/www_static/polymer/components/relative-ha-datetime.html | 83 +- .../components/frontend/www_static/polymer/components/services-list.html | 107 +- .../components/frontend/www_static/polymer/components/state-badge.html | 176 +- .../components/frontend/www_static/polymer/components/state-cards.html | 94 +- .../frontend/www_static/polymer/components/state-history-chart-line.html | 196 + .../components/{state-timeline.html => state-history-chart-timeline.html} | 95 +- .../frontend/www_static/polymer/components/state-history-charts.html | 145 + .../components/frontend/www_static/polymer/components/state-info.html | 95 +- .../components/frontend/www_static/polymer/components/stream-status.html | 45 +- .../components/frontend/www_static/polymer/dialogs/ha-dialog.html | 18 - .../components/frontend/www_static/polymer/dialogs/more-info-dialog.html | 234 +- homeassistant/components/frontend/www_static/polymer/home-assistant-js | 2 +- homeassistant/components/frontend/www_static/polymer/home-assistant.html | 80 +- homeassistant/components/frontend/www_static/polymer/html-minifier.conf | 11 + .../frontend/www_static/polymer/layouts/home-assistant-main.html | 522 +- .../components/frontend/www_static/polymer/layouts/login-form.html | 172 +- .../components/frontend/www_static/polymer/layouts/partial-base.html | 57 +- .../frontend/www_static/polymer/layouts/partial-dev-call-service.html | 157 +- .../frontend/www_static/polymer/layouts/partial-dev-fire-event.html | 135 +- .../frontend/www_static/polymer/layouts/partial-dev-set-state.html | 176 +- .../components/frontend/www_static/polymer/layouts/partial-history.html | 73 +- .../components/frontend/www_static/polymer/layouts/partial-logbook.html | 63 + .../components/frontend/www_static/polymer/layouts/partial-states.html | 202 +- .../polymer/{components/ha-modals.html => managers/modal-manager.html} | 19 +- .../frontend/www_static/polymer/managers/notification-manager.html | 47 + .../frontend/www_static/polymer/more-infos/more-info-configurator.html | 120 +- .../frontend/www_static/polymer/more-infos/more-info-content.html | 102 +- .../frontend/www_static/polymer/more-infos/more-info-default.html | 51 +- .../components/frontend/www_static/polymer/more-infos/more-info-group.html | 72 +- .../components/frontend/www_static/polymer/more-infos/more-info-light.html | 143 +- .../frontend/www_static/polymer/more-infos/more-info-media_player.html | 212 + .../frontend/www_static/polymer/more-infos/more-info-script.html | 42 +- .../components/frontend/www_static/polymer/more-infos/more-info-sun.html | 85 +- .../frontend/www_static/polymer/more-infos/more-info-thermostat.html | 204 +- .../frontend/www_static/polymer/resources/home-assistant-icons.html | 31 +- .../frontend/www_static/polymer/resources/home-assistant-js.html | 68 +- .../frontend/www_static/polymer/resources/home-assistant-style.html | 123 +- .../components/frontend/www_static/polymer/resources/moment-js.html | 15 + .../frontend/www_static/polymer/resources/store-listener-behavior.html | 21 + homeassistant/components/frontend/www_static/webcomponents-lite.min.js | 13 + homeassistant/components/frontend/www_static/webcomponents.min.js | 14 - homeassistant/components/group.py | 105 +- homeassistant/components/history.py | 29 +- homeassistant/components/http.py | 150 +- homeassistant/components/isy994.py | 225 + homeassistant/components/keyboard.py | 8 +- homeassistant/components/light/init.py | 3 +- homeassistant/components/light/demo.py | 8 +- homeassistant/components/light/isy994.py | 38 + homeassistant/components/light/limitlessled.py | 111 + homeassistant/components/light/vera.py | 2 +- homeassistant/components/logbook.py | 185 + homeassistant/components/media_player/init.py | 402 +- homeassistant/components/media_player/cast.py | 264 +- homeassistant/components/media_player/demo.py | 351 +- homeassistant/components/media_player/mpd.py | 206 + homeassistant/components/modbus.py | 101 + homeassistant/components/notify/init.py | 4 +- homeassistant/components/notify/instapush.py | 161 + homeassistant/components/notify/nma.py | 97 + homeassistant/components/notify/pushbullet.py | 19 + homeassistant/components/notify/pushover.py | 5 +- homeassistant/components/notify/smtp.py | 164 + homeassistant/components/notify/syslog.py | 110 + homeassistant/components/notify/xmpp.py | 127 + homeassistant/components/recorder.py | 138 +- homeassistant/components/scheduler/init.py | 25 +- homeassistant/components/scheduler/time.py | 20 +- homeassistant/components/script.py | 5 +- homeassistant/components/sensor/init.py | 3 +- homeassistant/components/sensor/bitcoin.py | 250 + homeassistant/components/sensor/demo.py | 8 +- homeassistant/components/sensor/isy994.py | 93 + homeassistant/components/sensor/modbus.py | 136 + homeassistant/components/sensor/mysensors.py | 158 + homeassistant/components/sensor/openweathermap.py | 189 + homeassistant/components/sensor/sabnzbd.py | 14 +- homeassistant/components/sensor/swiss_public_transport.py | 132 + homeassistant/components/sensor/systemmonitor.py | 43 +- homeassistant/components/sensor/time_date.py | 112 + homeassistant/components/sensor/transmission.py | 182 + homeassistant/components/sensor/vera.py | 47 +- homeassistant/components/simple_alarm.py | 2 +- homeassistant/components/sun.py | 168 +- homeassistant/components/switch/init.py | 3 +- homeassistant/components/switch/command_switch.py | 81 + homeassistant/components/switch/demo.py | 10 +- homeassistant/components/switch/hikvisioncam.py | 139 + homeassistant/components/switch/isy994.py | 85 + homeassistant/components/switch/modbus.py | 124 + homeassistant/components/switch/tellstick.py | 11 +- homeassistant/components/switch/transmission.py | 135 + homeassistant/components/switch/vera.py | 15 +- homeassistant/components/switch/wemo.py | 13 +- homeassistant/components/switch/wink.py | 7 +- homeassistant/components/thermostat/demo.py | 5 +- homeassistant/components/thermostat/nest.py | 16 +- homeassistant/components/wink.py | 7 +- homeassistant/config.py | 173 + homeassistant/const.py | 13 +- homeassistant/external/netdisco | 2 +- homeassistant/external/noop | 2 +- homeassistant/external/nzbclients | 2 +- homeassistant/external/pymysensors | 1 + homeassistant/external/pywemo | 2 +- homeassistant/external/vera | 2 +- homeassistant/helpers/init.py | 4 +- homeassistant/helpers/entity.py | 65 +- homeassistant/helpers/entity_component.py | 29 +- homeassistant/helpers/state.py | 4 +- homeassistant/remote.py | 2 +- homeassistant/{util.py => util/init.py} | 70 +- homeassistant/util/dt.py | 114 + requirements.txt | 62 +- scripts/build_frontend | 18 +- scripts/get_entities.py | 97 + scripts/homeassistant-pi.sh | 78 + scripts/run_tests | 6 +- tests/config/custom_components/device_tracker/test.py | 4 + tests/helpers.py | 64 +- tests/test_component_demo.py | 43 - tests/test_component_device_sun_light_trigger.py | 127 + .../{test_component_device_scanner.py => test_component_device_tracker.py} | 18 +- tests/test_component_group.py | 6 +- tests/test_component_history.py | 137 + tests/test_component_logbook.py | 98 + tests/test_component_media_player.py | 10 +- tests/test_component_recorder.py | 70 + tests/test_component_sun.py | 25 +- tests/test_config.py | 180 + tests/test_core.py | 10 +- tests/test_helper_entity.py | 63 + tests/test_util.py | 11 - tests/test_util_dt.py | 137 + 177 files changed, 37319 insertions(+), 3060 deletions(-) create mode 100644 homeassistant/components/device_tracker/ddwrt.py create mode 100644 homeassistant/components/frontend/www_static/favicon-apple-180x180.png create mode 100644 homeassistant/components/frontend/www_static/polymer/cards/state-card-media_player.html create mode 100644 homeassistant/components/frontend/www_static/polymer/components/display-time.html create mode 100644 homeassistant/components/frontend/www_static/polymer/components/ha-logbook.html delete mode 100644 homeassistant/components/frontend/www_static/polymer/components/ha-notifications.html create mode 100644 homeassistant/components/frontend/www_static/polymer/components/logbook-entry.html delete mode 100644 homeassistant/components/frontend/www_static/polymer/components/recent-states.html create mode 100644 homeassistant/components/frontend/www_static/polymer/components/state-history-chart-line.html rename homeassistant/components/frontend/www_static/polymer/components/{state-timeline.html => state-history-chart-timeline.html} (62%) create mode 100644 homeassistant/components/frontend/www_static/polymer/components/state-history-charts.html delete mode 100644 homeassistant/components/frontend/www_static/polymer/dialogs/ha-dialog.html create mode 100644 homeassistant/components/frontend/www_static/polymer/html-minifier.conf create mode 100644 homeassistant/components/frontend/www_static/polymer/layouts/partial-logbook.html rename homeassistant/components/frontend/www_static/polymer/{components/ha-modals.html => managers/modal-manager.html} (68%) create mode 100644 homeassistant/components/frontend/www_static/polymer/managers/notification-manager.html create mode 100644 homeassistant/components/frontend/www_static/polymer/more-infos/more-info-media_player.html create mode 100644 homeassistant/components/frontend/www_static/polymer/resources/store-listener-behavior.html create mode 100644 homeassistant/components/frontend/www_static/webcomponents-lite.min.js delete mode 100644 homeassistant/components/frontend/www_static/webcomponents.min.js create mode 100644 homeassistant/components/isy994.py create mode 100644 homeassistant/components/light/isy994.py create mode 100644 homeassistant/components/light/limitlessled.py create mode 100644 homeassistant/components/logbook.py create mode 100644 homeassistant/components/media_player/mpd.py create mode 100644 homeassistant/components/modbus.py create mode 100644 homeassistant/components/notify/instapush.py create mode 100644 homeassistant/components/notify/nma.py create mode 100644 homeassistant/components/notify/smtp.py create mode 100644 homeassistant/components/notify/syslog.py create mode 100644 homeassistant/components/notify/xmpp.py create mode 100644 homeassistant/components/sensor/bitcoin.py create mode 100644 homeassistant/components/sensor/isy994.py create mode 100644 homeassistant/components/sensor/modbus.py create mode 100644 homeassistant/components/sensor/mysensors.py create mode 100644 homeassistant/components/sensor/openweathermap.py create mode 100644 homeassistant/components/sensor/swiss_public_transport.py create mode 100644 homeassistant/components/sensor/time_date.py create mode 100644 homeassistant/components/sensor/transmission.py create mode 100644 homeassistant/components/switch/command_switch.py create mode 100644 homeassistant/components/switch/hikvisioncam.py create mode 100644 homeassistant/components/switch/isy994.py create mode 100644 homeassistant/components/switch/modbus.py create mode 100644 homeassistant/components/switch/transmission.py create mode 100644 homeassistant/config.py create mode 160000 homeassistant/external/pymysensors rename homeassistant/{util.py => util/init.py} (91%) create mode 100644 homeassistant/util/dt.py create mode 100755 scripts/get_entities.py create mode 100755 scripts/homeassistant-pi.sh create mode 100644 tests/test_component_device_sun_light_trigger.py rename tests/{test_component_device_scanner.py => test_component_device_tracker.py} (95%) create mode 100644 tests/test_component_history.py create mode 100644 tests/test_component_logbook.py create mode 100644 tests/test_component_recorder.py create mode 100644 tests/test_config.py create mode 100644 tests/test_helper_entity.py create mode 100644 tests/test_util_dt.py Submodule 'homeassistant/components/frontend/www_static/polymer/home-assistant-js' () registered for path 'homeassistant/components/frontend/www_static/polymer/home-assistant-js' Submodule 'homeassistant/external/netdisco' () registered for path 'homeassistant/external/netdisco' Submodule 'homeassistant/external/noop' () registered for path 'homeassistant/external/noop' Submodule 'homeassistant/external/nzbclients' (https://github.com/jamespcole/home-assistant-nzb-clients.git) registered for path 'homeassistant/external/nzbclients' Submodule 'homeassistant/external/pymysensors' (https://github.com/theolind/pymysensors) registered for path 'homeassistant/external/pymysensors' Submodule 'homeassistant/external/pynetgear' (https://github.com/theolind/pymysensors) registered for path 'homeassistant/external/pynetgear' Submodule 'homeassistant/external/pywemo' (https://github.com/theolind/pymysensors) registered for path 'homeassistant/external/pywemo' Submodule 'homeassistant/external/vera' (https://github.com/theolind/pymysensors) registered for path 'homeassistant/external/vera' Submodule path 'homeassistant/components/frontend/www_static/polymer/home-assistant-js': checked out '015edf9c28a63122aa8f6bc153f0c0ddfaad1caa' Submodule path 'homeassistant/external/netdisco': checked out 'b2cad7c2b959efa8eee9b5ac62d87232bf0b5176' Submodule path 'homeassistant/external/noop': checked out '4eaeb3367f9ada05dae3319cf24ab1da5de1aa89' Cloning into 'homeassistant/external/nzbclients'... remote: Counting objects: 11, done. remote: Total 11 (delta 0), reused 0 (delta 0), pack-reused 11 Unpacking objects: 100% (11/11), done. Submodule path 'homeassistant/external/nzbclients': checked out 'f01997498fe190d6ac2a2c375a739024843bd44d' Cloning into 'homeassistant/external/pymysensors'... remote: Counting objects: 163, done. remote: Total 163 (delta 0), reused 0 (delta 0), pack-reused 162 Receiving objects: 100% (163/163), 31.26 KiB, done. Resolving deltas: 100% (97/97), done. Submodule path 'homeassistant/external/pymysensors': checked out 'cd5ef892eeec0ad027727f7e8f757e7f2927da97' Submodule path 'homeassistant/external/pywemo': checked out 'ca94e41faa48c783f600a2efd550c6b7dae01b0d' Submodule path 'homeassistant/external/vera': checked out '30c59781d63322db2160ff00a4b99f16ead40b85' You are using pip version 6.0.8, however version 7.0.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command. Collecting requests>=2.0 (from -r requirements.txt (line 2)) Downloading requests-2.7.0-py2.py3-none-any.whl (470kB) 100% |################################| 471kB 133kB/s Collecting pyyaml>=3.11 (from -r requirements.txt (line 3)) Using cached PyYAML-3.11.tar.gz Collecting pytz>=2015.2 (from -r requirements.txt (line 4)) Downloading pytz-2015.4-py2.py3-none-any.whl (475kB) 100% |################################| 475kB 140kB/s Collecting zeroconf>=0.16.0 (from -r requirements.txt (line 9)) Downloading zeroconf-0.17.1-py2.py3-none-any.whl Collecting pyephem>=3.7 (from -r requirements.txt (line 12)) Using cached pyephem-3.7.5.3.tar.gz Collecting phue>=0.8 (from -r requirements.txt (line 15)) Using cached phue-0.8.tar.gz Collecting ledcontroller>=1.0.7 (from -r requirements.txt (line 18)) Downloading ledcontroller-1.1.0-py2.py3-none-any.whl Collecting pychromecast>=0.6.6 (from -r requirements.txt (line 21)) Downloading PyChromecast-0.6.6.tar.gz Collecting pyuserinput>=0.1.9 (from -r requirements.txt (line 24)) Using cached PyUserInput-0.1.9.tar.gz Missing dependency, could not import this module: Xlib Requirement already satisfied (use --upgrade to upgrade): tellcore-py>=1.0.4 in /usr/local/opt/python-3.4.3/lib/python3.4/site-packages (from -r requirements.txt (line 27)) Collecting python-libnmap>=0.6.2 (from -r requirements.txt (line 30)) Using cached python-libnmap-0.6.2.tar.gz Collecting pushbullet.py>=0.7.1 (from -r requirements.txt (line 33)) Using cached pushbullet.py-0.8.1-py2.py3-none-any.whl Collecting python-nest>=2.3.1 (from -r requirements.txt (line 36)) Using cached python-nest-2.3.1.tar.gz Collecting pydispatcher>=2.0.5 (from -r requirements.txt (line 39)) Using cached PyDispatcher-2.0.5.tar.gz Collecting PyISY>=1.0.2 (from -r requirements.txt (line 42)) Downloading PyISY-1.0.5.tar.gz Collecting psutil>=2.2.1 (from -r requirements.txt (line 45)) Using cached psutil-2.2.1.tar.gz Collecting python-pushover>=0.2 (from -r requirements.txt (line 48)) Downloading python-pushover-0.2.tar.gz Collecting transmissionrpc>=0.11 (from -r requirements.txt (line 51)) Downloading transmissionrpc-0.11.tar.gz (96kB) 100% |################################| 98kB 529kB/s Collecting pyowm>=2.2.0 (from -r requirements.txt (line 54)) Downloading pyowm-2.2.1.zip (1.3MB) 100% |################################| 1.3MB 46kB/s Collecting sleekxmpp>=1.3.1 (from -r requirements.txt (line 57)) Downloading sleekxmpp-1.3.1.tar.gz (831kB) 100% |################################| 831kB 79kB/s Collecting blockchain>=1.1.2 (from -r requirements.txt (line 60)) Downloading blockchain-1.1.2.zip Collecting python-mpd2>=0.5.4 (from -r requirements.txt (line 63)) Downloading python-mpd2-0.5.4.tar.bz2 Collecting hikvision>=0.4 (from -r requirements.txt (line 66)) Downloading hikvision-0.5.tar.gz Collecting colorlog>=2.6.0 (from -r requirements.txt (line 69)) Downloading colorlog-2.6.0-py2.py3-none-any.whl Collecting netifaces (from zeroconf>=0.16.0->-r requirements.txt (line 9)) Using cached netifaces-0.10.4.tar.gz Collecting enum34 (from zeroconf>=0.16.0->-r requirements.txt (line 9)) Using cached enum34-1.0.4.tar.gz Collecting six (from zeroconf>=0.16.0->-r requirements.txt (line 9)) Using cached six-1.9.0-py2.py3-none-any.whl Collecting protobuf>=3.0.0a3 (from pychromecast>=0.6.6->-r requirements.txt (line 21)) Downloading protobuf-3.0.0a3.tar.gz (88kB) 100% |################################| 90kB 548kB/s Collecting python-magic (from pushbullet.py>=0.7.1->-r requirements.txt (line 33)) Using cached python-magic-0.4.6.tar.gz Collecting websocket-client (from pushbullet.py>=0.7.1->-r requirements.txt (line 33)) Downloading websocket_client-0.32.0.tar.gz (192kB) 100% |################################| 192kB 315kB/s Collecting VarEvents (from PyISY>=1.0.2->-r requirements.txt (line 42)) Downloading VarEvents-1.0.0.tar.gz Requirement already satisfied (use --upgrade to upgrade): setuptools in /usr/local/opt/python-3.4.3/lib/python3.4/site-packages (from protobuf>=3.0.0a3->pychromecast>=0.6.6->-r requirements.txt (line 21)) Installing collected packages: VarEvents, websocket-client, python-magic, protobuf, six, enum34, netifaces, colorlog, hikvision, python-mpd2, blockchain, sleekxmpp, pyowm, transmissionrpc, python-pushover, psutil, PyISY, pydispatcher, python-nest, pushbullet.py, python-libnmap, pyuserinput, pychromecast, ledcontroller, phue, pyephem, zeroconf, pytz, pyyaml, requests Running setup.py install for VarEvents error: could not create '/usr/local/opt/python-3.4.3/lib/python3.4/site-packages/VarEvents': Permission denied Complete output from command /usr/local/opt/python-3.4.3/bin/python3 -c "import setuptools, tokenize;file='/tmp/pip-build-qhn27xqm/VarEvents/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-joanvr6v-record/install-record.txt --single-version-externally-managed --compile: running install

running build

running build_py

creating build

creating build/lib

creating build/lib/VarEvents

copying VarEvents/__init__.py -> build/lib/VarEvents

running egg_info

writing VarEvents.egg-info/PKG-INFO

writing dependency_links to VarEvents.egg-info/dependency_links.txt

writing top-level names to VarEvents.egg-info/top_level.txt

warning: manifest_maker: standard file '-c' not found



reading manifest file 'VarEvents.egg-info/SOURCES.txt'

writing manifest file 'VarEvents.egg-info/SOURCES.txt'

running install_lib

creating /usr/local/opt/python-3.4.3/lib/python3.4/site-packages/VarEvents

error: could not create '/usr/local/opt/python-3.4.3/lib/python3.4/site-packages/VarEvents': Permission denied

----------------------------------------
Command "/usr/local/opt/python-3.4.3/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-qhn27xqm/VarEvents/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-joanvr6v-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-qhn27xqm/VarEvents

Ok, I'll have to fix that last part.

2015-06-13: Home Assistant - remember that you need to active the Python3 virtual environment before starting Home Assistant for the first time (in a new shell): tingo@kg-bpi:~/progs/home-assistant$ source ../homeassistant/bin/activate then you can start it: (homeassistant) tingo@kg-bpi:~/progs/home-assistant$ python3 -m homeassistant that is all.

2015-05-16: Bolt - get Bolt 2.1.8: tingo@kg-bpi:~/dl$ wget http://bolt.cm/distribution/bolt-2.1.8.tar.gz --2015-05-16 19:34:57-- http://bolt.cm/distribution/bolt-2.1.8.tar.gz Resolving bolt.cm (bolt.cm)... 46.17.0.55 Connecting to bolt.cm (bolt.cm)|46.17.0.55|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 9234927 (8.8M) [application/x-gzip] Saving to: `bolt-2.1.8.tar.gz'

100%[===========================================================================>] 9,234,927 4.49M/s in 2.0s

2015-05-16 19:34:59 (4.49 MB/s) - `bolt-2.1.8.tar.gz' saved [9234927/9234927] and upgrade. Before upgrade, the Bolt directory looks like this: root@kg-bpi /usr/local/www/logb # pwd /usr/local/www/logb root@kg-bpi /usr/local/www/logb # ll total 48 drwxr-xr-x 8 501 staff 4096 Mar 8 20:53 app/ -rw-r--r-- 1 501 staff 11053 Feb 6 11:13 changelog.md drwxrwxrwx 3 501 staff 4096 May 7 23:01 extensions/ drwxrwxrwx 2 501 staff 4096 Mar 8 20:53 files/ -rw-r--r-- 1 501 staff 404 Feb 6 11:13 index.php -rw-r--r-- 1 501 staff 3484 Feb 6 11:13 README.md -rw-r--r-- 1 501 staff 789 Feb 6 11:13 serve drwxr-xr-x 15 501 staff 4096 Mar 8 20:53 src/ drwxrwxrwx 4 501 staff 4096 May 7 23:01 theme/ drwxr-xr-x 23 501 staff 4096 Feb 6 11:14 vendor/ root@kg-bpi /usr/local/www/logb # ll .. total 4 drwxr-sr-x 8 www-data www-data 4096 Mar 8 20:53 logb/ good to know. Do the upgrade, per the update instructions: root@kg-bpi /usr/local/www/logb # tar xvf /home/tingo/dl/bolt-2.1.8.tar.gz --strip-components=1 [...] bolt-git-2015-04-30-290fcc1/app/config/config.yml.dist bolt-git-2015-04-30-290fcc1/app/config/contenttypes.yml.dist bolt-git-2015-04-30-290fcc1/app/config/extensions/ bolt-git-2015-04-30-290fcc1/app/config/menu.yml.dist bolt-git-2015-04-30-290fcc1/app/config/permissions.yml.dist bolt-git-2015-04-30-290fcc1/app/config/routing.yml.dist bolt-git-2015-04-30-290fcc1/app/config/taxonomy.yml.dist bolt-git-2015-04-30-290fcc1/app/config/extensions/index.html bolt-git-2015-04-30-290fcc1/app/cache/index.html tar xvf /home/tingo/dl/bolt-2.1.8.tar.gz --strip-components=1 1.73s user 3.53s system 74% cpu 7.062 total fix permissions: root@kg-bpi /usr/local/www/logb # chmod -R 777 files/ app/database/ app/cache/ app/config/ theme/ extensions/ done. The bolt directory now looks like this: root@kg-bpi /usr/local/www/logb # ll
total 188 drwxr-xr-x 8 501 staff 4096 May 16 19:43 app/ -rw-r--r-- 1 501 staff 20773 Apr 30 20:24 changelog.md -rw-r--r-- 1 501 staff 2423 Apr 30 20:24 composer.json.dist -rw-r--r-- 1 501 staff 123732 Apr 30 20:24 composer.lock.dist drwxrwxrwx 3 501 staff 4096 Apr 30 20:24 extensions/ drwxrwxrwx 2 501 staff 4096 May 16 19:43 files/ -rw-r--r-- 1 501 staff 414 Apr 30 20:24 index.php -rw-r--r-- 1 501 staff 3484 Apr 30 20:24 README.md -rw-r--r-- 1 501 staff 789 Apr 30 20:24 serve drwxr-xr-x 19 501 staff 4096 May 16 19:43 src/ drwxrwxrwx 4 501 staff 4096 Apr 30 20:24 theme/ drwxr-xr-x 28 501 staff 4096 Apr 30 20:24 vendor/ Afterwards, I use the Dashboard and do Check Database / Update the database. And Bolt works.

2015-03-22: Home Assistant, after the update, named sensors works. Nice. 2015-03-22: Home Assistant, update to latest development branch: (homeassistant) tingo@kg-bpi:~/progs/home-assistant$ git pull remote: Counting objects: 455, done. remote: Compressing objects: 100% (149/149), done. remote: Total 455 (delta 153), reused 110 (delta 110), pack-reused 172 Receiving objects: 100% (455/455), 698.67 KiB | 479 KiB/s, done. Resolving deltas: 100% (222/222), done. From https://github.com/balloob/home-assistant 5f734f4..ea200de master -> origin/master 36feb7f..ec557f8 dev -> origin/dev 2bc2180..99bfcd4 gh-pages -> origin/gh-pages * [new branch] ha-config -> origin/ha-config Updating 5f734f4..ea200de Fast-forward .coveragerc | 6 +- .gitmodules | 3 + Dockerfile | 2 +- config/configuration.yaml.example | 41 ++++++- homeassistant/init.py | 120 +++++++++++++++++++-- homeassistant/bootstrap.py | 80 ++++++++++++-- homeassistant/components/api.py | 6 +- homeassistant/components/configurator.py | 4 +- homeassistant/components/demo.py | 60 ++++++++--- homeassistant/components/device_sun_light_trigger.py | 2 +- homeassistant/components/device_tracker/init.py | 6 +- homeassistant/components/discovery.py | 11 +- homeassistant/components/frontend/init.py | 2 +- homeassistant/components/frontend/version.py | 2 +- homeassistant/components/frontend/www_static/frontend.html | 32 +++--- .../frontend/www_static/polymer/cards/state-card-configurator.html | 16 +-- .../components/frontend/www_static/polymer/cards/state-card-content.html | 1 + .../components/frontend/www_static/polymer/cards/state-card-scene.html | 27 +++++ .../components/frontend/www_static/polymer/components/events-list.html | 2 +- .../frontend/www_static/polymer/components/ha-notifications.html | 8 +- .../components/frontend/www_static/polymer/components/services-list.html | 4 +- homeassistant/components/frontend/www_static/polymer/home-assistant-js | 2 +- .../frontend/www_static/polymer/layouts/home-assistant-main.html | 66 +++++++++--- .../frontend/www_static/polymer/layouts/partial-dev-call-service.html | 2 +- .../components/frontend/www_static/polymer/layouts/partial-states.html | 32 +++--- .../frontend/www_static/polymer/more-infos/more-info-content.html | 1 + .../frontend/www_static/polymer/more-infos/more-info-script.html | 22 ++++ .../frontend/www_static/polymer/resources/home-assistant-icons.html | 6 ++ .../frontend/www_static/polymer/resources/home-assistant-js.html | 16 ++- homeassistant/components/http.py | 2 +- homeassistant/components/light/init.py | 6 +- homeassistant/components/light/demo.py | 9 +- homeassistant/components/light/hue.py | 7 +- homeassistant/components/light/tellstick.py | 4 +- homeassistant/components/media_player/init.py | 8 +- homeassistant/components/media_player/demo.py | 5 + homeassistant/components/notify/demo.py | 31 ++++++ homeassistant/components/notify/pushover.py | 98 +++++++++++++++++ homeassistant/components/recorder.py | 2 +- homeassistant/components/scene.py | 190 +++++++++++++++++++++++++++++++++ homeassistant/components/scheduler/init.py | 9 +- homeassistant/components/script.py | 140 ++++++++++++++++++++++++ homeassistant/components/sensor/init.py | 4 +- homeassistant/components/sensor/demo.py | 32 ++++-- homeassistant/components/sensor/sabnzbd.py | 163 ++++++++++++++++++++++++++++ homeassistant/components/sensor/systemmonitor.py | 17 ++- homeassistant/components/sensor/tellstick.py | 28 ++--- homeassistant/components/sensor/vera.py | 4 +- homeassistant/components/sensor/wink.py | 35 +++++- homeassistant/components/sensor/zwave.py | 28 +++-- homeassistant/components/sun.py | 12 +-- homeassistant/components/switch/init.py | 4 +- homeassistant/components/switch/demo.py | 9 +- homeassistant/components/switch/tellstick.py | 4 +- homeassistant/components/switch/vera.py | 4 +- homeassistant/components/switch/wemo.py | 4 +- homeassistant/components/thermostat/init.py | 20 ++-- homeassistant/components/thermostat/demo.py | 5 + homeassistant/components/wink.py | 47 +------- homeassistant/components/zwave.py | 9 +- homeassistant/const.py | 3 + homeassistant/external/nzbclients | 1 + homeassistant/helpers/init.py | 25 +---- homeassistant/helpers/device.py | 122 ++------------------- homeassistant/helpers/device_component.py | 143 ++----------------------- homeassistant/helpers/entity.py | 139 ++++++++++++++++++++++++ homeassistant/helpers/entity_component.py | 149 ++++++++++++++++++++++++++ homeassistant/helpers/state.py | 58 ++++++++++ homeassistant/loader.py | 23 ++-- homeassistant/remote.py | 14 ++- requirements.txt | 3 + scripts/build_python_openzwave | 22 ++-- tests/helpers.py | 6 +- tests/test_component_demo.py | 12 ++- tests/test_component_device_scanner.py | 2 +- tests/test_component_light.py | 6 +- tests/test_component_sun.py | 46 ++------ tests/test_core.py | 4 +- 78 files changed, 1645 insertions(+), 655 deletions(-) create mode 100644 homeassistant/components/frontend/www_static/polymer/cards/state-card-scene.html create mode 100644 homeassistant/components/frontend/www_static/polymer/more-infos/more-info-script.html create mode 100644 homeassistant/components/notify/demo.py create mode 100644 homeassistant/components/notify/pushover.py create mode 100644 homeassistant/components/scene.py create mode 100644 homeassistant/components/script.py create mode 100644 homeassistant/components/sensor/sabnzbd.py create mode 160000 homeassistant/external/nzbclients create mode 100644 homeassistant/helpers/entity.py create mode 100644 homeassistant/helpers/entity_component.py create mode 100644 homeassistant/helpers/state.py (homeassistant) tingo@kg-bpi:~/progs/home-assistant$ that was not so difficult.

2015-03-19: Home Assistant, to get tellstick sensors working the sensor section in config/configuration.yaml has to look like this: sensor: platform: tellstick datatype_mask: 127 note, this will get you all sensors. 2015-03-19: Home Assistant, the config file now looks like this: homeassistant: # Location required to calculate the time the sun rises and sets latitude: 59.919347 longitude: 10.758688

sun:

frontend:

discovery:

history:

http: api_password: PASSWORD-API # Set to 1 to enable development mode # development: 1

device_tracker: # The following types are available: netgear, tomato, luci, nmap_tracker platform: tomato host: kg-rtn16.kg4.no username: admin password: PASSWORD-ROUTER # http_id is needed for Tomato routers only http_id: TID47cec4395463b70c # For nmap_tracker, only the IP addresses to scan are needed: # hosts: 192.168.1.1/24 # netmask prefix notation or # hosts: 192.168.1.1-255 # address range

sensor: platform: tellstick

sensors (tellstick) doesn't work yet. I don not (yet) know why they don't work.

2015-03-16: Home Assistant, initial config file: tingo@kg-bpi:~/progs/home-assistant$ more config/configuration.yaml frontend:

discovery:

history:

not much. If I change it, I will have to restart Home Assistant. 2015-03-16: install Home Assistant on the Banana Pi: tingo@kg-bpi:~$ mkdir progs tingo@kg-bpi:~$ cd progs tingo@kg-bpi:~/progs$ get software tingo@kg-bpi:~/progs$ git clone --recursive https://github.com/balloob/home-assistant.git Cloning into 'home-assistant'... remote: Counting objects: 8698, done. remote: Compressing objects: 100% (23/23), done. remote: Total 8698 (delta 0), reused 0 (delta 0), pack-reused 8675 Receiving objects: 100% (8698/8698), 11.51 MiB | 2.49 MiB/s, done. [...] remote: Counting objects: 10, done. remote: Total 10 (delta 0), reused 0 (delta 0), pack-reused 10 Unpacking objects: 100% (10/10), done. Submodule path 'homeassistant/external/vera': checked out 'fedbb5c3af1e5f36b7008d894e9fc1ecf3cc2ea8' done. Create virtual Python environment: tingo@kg-bpi:~/progs$ /usr/local/opt/python-3.4.3/bin/pyvenv homeassistant set virtual environment tingo@kg-bpi:~/progs$ cd home-assistant/ tingo@kg-bpi:~/progs/home-assistant$ source ../homeassistant/bin/activate (homeassistant) tingo@kg-bpi:~/progs/home-assistant$ finish install: (homeassistant) tingo@kg-bpi:~/progs/home-assistant$ python3 -m pip install -r requirements.txt Collecting requests>=2.0 (from -r requirements.txt (line 2)) Downloading requests-2.6.0-py2.py3-none-any.whl (469kB) 100% |################################| 471kB 115kB/s Collecting pyyaml>=3.11 (from -r requirements.txt (line 3)) Downloading PyYAML-3.11.tar.gz (248kB) 100% |################################| 249kB 239kB/s Collecting zeroconf>=0.16.0 (from -r requirements.txt (line 8)) Downloading zeroconf-0.17.0-py2.py3-none-any.whl Collecting pyephem>=3.7 (from -r requirements.txt (line 11)) Downloading pyephem-3.7.5.3.tar.gz (735kB) 100% |################################| 737kB 93kB/s Collecting phue>=0.8 (from -r requirements.txt (line 14)) Downloading phue-0.8.tar.gz Collecting pychromecast>=0.5 (from -r requirements.txt (line 17)) Downloading PyChromecast-0.5.1.1.tar.gz Collecting pyuserinput>=0.1.9 (from -r requirements.txt (line 20)) Downloading PyUserInput-0.1.9.tar.gz Missing dependency, could not import this module: Xlib Collecting tellcore-py>=1.0.4 (from -r requirements.txt (line 23)) Downloading tellcore-py-1.1.0.tar.gz (41kB) 100% |################################| 45kB 834kB/s Collecting python-libnmap>=0.6.2 (from -r requirements.txt (line 26)) Downloading python-libnmap-0.6.2.tar.gz Collecting pushbullet.py>=0.7.1 (from -r requirements.txt (line 29)) Downloading pushbullet.py-0.8.1-py2.py3-none-any.whl Collecting python-nest>=2.1 (from -r requirements.txt (line 32)) Downloading python-nest-2.3.1.tar.gz Collecting pydispatcher>=2.0.5 (from -r requirements.txt (line 35)) Downloading PyDispatcher-2.0.5.tar.gz Collecting psutil>=2.2.1 (from -r requirements.txt (line 38)) Downloading psutil-2.2.1.tar.gz (223kB) 100% |################################| 225kB 251kB/s Collecting netifaces (from zeroconf>=0.16.0->-r requirements.txt (line 8)) Downloading netifaces-0.10.4.tar.gz Collecting six (from zeroconf>=0.16.0->-r requirements.txt (line 8)) Downloading six-1.9.0-py2.py3-none-any.whl Collecting enum34 (from zeroconf>=0.16.0->-r requirements.txt (line 8)) Downloading enum34-1.0.4.tar.gz Collecting ws4py (from pychromecast>=0.5->-r requirements.txt (line 17)) Downloading ws4py-0.3.4.tar.gz Collecting websocket-client (from pushbullet.py>=0.7.1->-r requirements.txt (line 29)) Downloading websocket_client-0.26.0.tar.gz (189kB) 100% |################################| 192kB 289kB/s Collecting python-magic (from pushbullet.py>=0.7.1->-r requirements.txt (line 29)) Downloading python-magic-0.4.6.tar.gz Installing collected packages: python-magic, websocket-client, ws4py, enum34, six, netifaces, psutil, pydispatcher, python-nest, pushbullet.py, python-libnmap, tellcore-py, pyuserinput, pychromecast, phue, pyephem, zeroconf, pyyaml, requests Running setup.py install for python-magic Running setup.py install for websocket-client changing mode of build/scripts-3.4/wsdump.py from 644 to 755 changing mode of /home/tingo/progs/homeassistant/bin/wsdump.py to 755 Running setup.py install for ws4py Running setup.py install for enum34

Running setup.py install for netifaces checking for getifaddrs...found. checking for getnameinfo...found. checking for optional header files...netash/ash.h netatalk/at.h netax25/ax25.h neteconet/ec.h netipx/ipx.h netpacket/packet.h linux/irda.h linux/atm.h linux/llc.h linux/tipc.h linux/dn.h. checking whether struct sockaddr has a length field...no. checking which sockaddr_xxx structs are defined...at ax25 in in6 ipx un ash ec ll atmpvc atmsvc dn irda llc. checking for routing socket support...no. checking for sysctl(CTL_NET...) support...no. checking for netlink support...yes. will use netlink to read routing table building 'netifaces' extension gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DNETIFACES_VERSION=0.10.4 -DHAVE_GETIFADDRS=1 -DHAVE_GETNAMEINFO=1 -DHAVE_NETASH_ASH_H=1 -DHAVE_NETATALK_AT_H=1 -DHAVE_NETAX25_AX25_H=1 -DHAVE_NETECONET_EC_H=1 -DHAVE_NETIPX_IPX_H=1 -DHAVE_NETPACKET_PACKET_H=1 -DHAVE_LINUX_IRDA_H=1 -DHAVE_LINUX_ATM_H=1 -DHAVE_LINUX_LLC_H=1 -DHAVE_LINUX_TIPC_H=1 -DHAVE_LINUX_DN_H=1 -DHAVE_SOCKADDR_AT=1 -DHAVE_SOCKADDR_AX25=1 -DHAVE_SOCKADDR_IN=1 -DHAVE_SOCKADDR_IN6=1 -DHAVE_SOCKADDR_IPX=1 -DHAVE_SOCKADDR_UN=1 -DHAVE_SOCKADDR_ASH=1 -DHAVE_SOCKADDR_EC=1 -DHAVE_SOCKADDR_LL=1 -DHAVE_SOCKADDR_ATMPVC=1 -DHAVE_SOCKADDR_ATMSVC=1 -DHAVE_SOCKADDR_DN=1 -DHAVE_SOCKADDR_IRDA=1 -DHAVE_SOCKADDR_LLC=1 -DHAVE_PF_NETLINK=1 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c netifaces.c -o build/temp.linux-armv7l-3.4/netifaces.o gcc -pthread -shared build/temp.linux-armv7l-3.4/netifaces.o -o build/lib.linux-armv7l-3.4/netifaces.cpython-34m.so Running setup.py install for psutil building '_psutil_linux' extension gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DPSUTIL_VERSION=221 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c psutil/_psutil_linux.c -o build/temp.linux-armv7l-3.4/psutil/_psutil_linux.o psutil/_psutil_linux.c: In function ‘PyInit__psutil_linux’: psutil/_psutil_linux.c:571:5: warning: overflow in implicit constant conversion [-Woverflow] gcc -pthread -shared build/temp.linux-armv7l-3.4/psutil/_psutil_linux.o -o build/lib.linux-armv7l-3.4/_psutil_linux.cpython-34m.so building '_psutil_posix' extension gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c psutil/_psutil_posix.c -o build/temp.linux-armv7l-3.4/psutil/_psutil_posix.o gcc -pthread -shared build/temp.linux-armv7l-3.4/psutil/_psutil_posix.o -o build/lib.linux-armv7l-3.4/_psutil_posix.cpython-34m.so Running setup.py install for pydispatcher Running setup.py install for python-nest Installing nest script to /home/tingo/progs/homeassistant/bin

Running setup.py install for python-libnmap Running setup.py install for tellcore-py changing mode of build/scripts-3.4/tellcore_tool from 644 to 755 changing mode of build/scripts-3.4/tellcore_events from 644 to 755 changing mode of build/scripts-3.4/tellcore_controllers from 644 to 755 changing mode of /home/tingo/progs/homeassistant/bin/tellcore_events to 755 changing mode of /home/tingo/progs/homeassistant/bin/tellcore_controllers to 755 changing mode of /home/tingo/progs/homeassistant/bin/tellcore_tool to 755 Running setup.py install for pyuserinput Missing dependency, could not import this module: Xlib Running setup.py install for pychromecast Running setup.py install for phue Running setup.py install for pyephem building 'ephem._libastro' extension gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c extensions/_libastro.c -o build/temp.linux-armv7l-3.4/extensions/_libastro.o extensions/_libastro.c:728:18: warning: ‘getf_rd’ defined but not used [-Wunused-function] extensions/_libastro.c:733:12: warning: ‘setf_rd’ defined but not used [-Wunused-function] extensions/_libastro.c:757:18: warning: ‘getf_mjd’ defined but not used [-Wunused-function] extensions/_libastro.c:762:12: warning: ‘setf_mjd’ defined but not used [-Wunused-function] gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c extensions/dtoa.c -o build/temp.linux-armv7l-3.4/extensions/dtoa.o extensions/dtoa.c:3649:1: warning: ‘dtoa’ defined but not used [-Wunused-function] gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/earthsat.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/earthsat.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/reduce.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/reduce.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/libration.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/libration.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/sphcart.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/sphcart.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/moonnf.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/moonnf.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/rings.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/rings.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/precess.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/precess.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/plans.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/plans.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/magdecl.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/magdecl.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/comet.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/comet.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/vsop87_data.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/vsop87_data.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/riset.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/riset.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/sun.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/sun.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/ap_as.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/ap_as.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/mooncolong.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/mooncolong.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/marsmoon.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/marsmoon.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/riset_cir.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/riset_cir.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/atlas.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/atlas.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/refract.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/refract.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/plshadow.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/plshadow.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/chap95.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/chap95.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/vsop87.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/vsop87.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/twobody.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/twobody.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/dbfmt.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/dbfmt.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/utc_gst.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/utc_gst.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/umoon.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/umoon.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/misc.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/misc.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/parallax.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/parallax.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/moon.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/moon.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/chap95_data.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/chap95_data.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/airmass.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/airmass.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/thetag.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/thetag.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/mjd.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/mjd.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/plmoon.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/plmoon.o libastro-3.7.5/plmoon.c: In function ‘plmoon_cir’: libastro-3.7.5/plmoon.c:126:2: warning: case value ‘11’ not in enumerated type ‘PLCode’ [-Wswitch] libastro-3.7.5/plmoon.c:141:2: warning: case value ‘12’ not in enumerated type ‘PLCode’ [-Wswitch] libastro-3.7.5/plmoon.c:142:2: warning: case value ‘13’ not in enumerated type ‘PLCode’ [-Wswitch] libastro-3.7.5/plmoon.c:143:2: warning: case value ‘14’ not in enumerated type ‘PLCode’ [-Wswitch] libastro-3.7.5/plmoon.c:144:2: warning: case value ‘15’ not in enumerated type ‘PLCode’ [-Wswitch] libastro-3.7.5/plmoon.c:161:2: warning: case value ‘16’ not in enumerated type ‘PLCode’ [-Wswitch] libastro-3.7.5/plmoon.c:162:2: warning: case value ‘17’ not in enumerated type ‘PLCode’ [-Wswitch] libastro-3.7.5/plmoon.c:163:2: warning: case value ‘18’ not in enumerated type ‘PLCode’ [-Wswitch] libastro-3.7.5/plmoon.c:164:2: warning: case value ‘19’ not in enumerated type ‘PLCode’ [-Wswitch] libastro-3.7.5/plmoon.c:165:2: warning: case value ‘20’ not in enumerated type ‘PLCode’ [-Wswitch] libastro-3.7.5/plmoon.c:166:2: warning: case value ‘21’ not in enumerated type ‘PLCode’ [-Wswitch] libastro-3.7.5/plmoon.c:167:2: warning: case value ‘22’ not in enumerated type ‘PLCode’ [-Wswitch] libastro-3.7.5/plmoon.c:168:2: warning: case value ‘23’ not in enumerated type ‘PLCode’ [-Wswitch] libastro-3.7.5/plmoon.c:185:2: warning: case value ‘24’ not in enumerated type ‘PLCode’ [-Wswitch] libastro-3.7.5/plmoon.c:186:2: warning: case value ‘25’ not in enumerated type ‘PLCode’ [-Wswitch] libastro-3.7.5/plmoon.c:187:2: warning: case value ‘26’ not in enumerated type ‘PLCode’ [-Wswitch] libastro-3.7.5/plmoon.c:188:2: warning: case value ‘27’ not in enumerated type ‘PLCode’ [-Wswitch] libastro-3.7.5/plmoon.c:189:2: warning: case value ‘28’ not in enumerated type ‘PLCode’ [-Wswitch] gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/sdp4.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/sdp4.o In file included from libastro-3.7.5/sdp4.c:7:0: libastro-3.7.5/satspec.h:16:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/anomaly.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/anomaly.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/sgp4.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/sgp4.o In file included from libastro-3.7.5/sgp4.c:6:0: libastro-3.7.5/satspec.h:16:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/jupmoon.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/jupmoon.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/deep.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/deep.o In file included from libastro-3.7.5/deep.c:5:0: libastro-3.7.5/satspec.h:16:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes] libastro-3.7.5/deep.c: In function ‘dpinit’: libastro-3.7.5/deep.c:165:51: warning: variable ‘ZMO’ set but not used [-Wunused-but-set-variable] gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/formats.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/formats.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/obliq.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/obliq.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/eq_gal.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/eq_gal.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/auxil.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/auxil.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/satmoon.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/satmoon.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/constel.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/constel.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/bdl.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/bdl.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/circum.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/circum.o libastro-3.7.5/circum.c: In function ‘obj_hyperbolic’: libastro-3.7.5/circum.c:427:9: warning: variable ‘a’ set but not used [-Wunused-but-set-variable] gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/eq_ecl.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/eq_ecl.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/aberration.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/aberration.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/aa_hadec.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/aa_hadec.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/parallactic.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/parallactic.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/actan.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/actan.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/deltat.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/deltat.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/helio.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/helio.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c libastro-3.7.5/nutation.c -o build/temp.linux-armv7l-3.4/libastro-3.7.5/nutation.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c extensions/data/jupiter.9910.c -o build/temp.linux-armv7l-3.4/extensions/data/jupiter.9910.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c extensions/data/jupiter.1020.c -o build/temp.linux-armv7l-3.4/extensions/data/jupiter.1020.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c extensions/data/mars.9910.c -o build/temp.linux-armv7l-3.4/extensions/data/mars.9910.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c extensions/data/mars.1020.c -o build/temp.linux-armv7l-3.4/extensions/data/mars.1020.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c extensions/data/uranus.9910.c -o build/temp.linux-armv7l-3.4/extensions/data/uranus.9910.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c extensions/data/uranus.1020.c -o build/temp.linux-armv7l-3.4/extensions/data/uranus.1020.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c extensions/data/saturne.1020.c -o build/temp.linux-armv7l-3.4/extensions/data/saturne.1020.o gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Ilibastro-3.7.5 -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c extensions/data/saturne.9910.c -o build/temp.linux-armv7l-3.4/extensions/data/saturne.9910.o gcc -pthread -shared build/temp.linux-armv7l-3.4/extensions/_libastro.o build/temp.linux-armv7l-3.4/extensions/dtoa.o build/temp.linux-armv7l-3.4/libastro-3.7.5/earthsat.o build/temp.linux-armv7l-3.4/libastro-3.7.5/reduce.o build/temp.linux-armv7l-3.4/libastro-3.7.5/libration.o build/temp.linux-armv7l-3.4/libastro-3.7.5/sphcart.o build/temp.linux-armv7l-3.4/libastro-3.7.5/moonnf.o build/temp.linux-armv7l-3.4/libastro-3.7.5/rings.o build/temp.linux-armv7l-3.4/libastro-3.7.5/precess.o build/temp.linux-armv7l-3.4/libastro-3.7.5/plans.o build/temp.linux-armv7l-3.4/libastro-3.7.5/magdecl.o build/temp.linux-armv7l-3.4/libastro-3.7.5/comet.o build/temp.linux-armv7l-3.4/libastro-3.7.5/vsop87_data.o build/temp.linux-armv7l-3.4/libastro-3.7.5/riset.o build/temp.linux-armv7l-3.4/libastro-3.7.5/sun.o build/temp.linux-armv7l-3.4/libastro-3.7.5/ap_as.o build/temp.linux-armv7l-3.4/libastro-3.7.5/mooncolong.o build/temp.linux-armv7l-3.4/libastro-3.7.5/marsmoon.o build/temp.linux-armv7l-3.4/libastro-3.7.5/riset_cir.o build/temp.linux-armv7l-3.4/libastro-3.7.5/atlas.o build/temp.linux-armv7l-3.4/libastro-3.7.5/refract.o build/temp.linux-armv7l-3.4/libastro-3.7.5/plshadow.o build/temp.linux-armv7l-3.4/libastro-3.7.5/chap95.o build/temp.linux-armv7l-3.4/libastro-3.7.5/vsop87.o build/temp.linux-armv7l-3.4/libastro-3.7.5/twobody.o build/temp.linux-armv7l-3.4/libastro-3.7.5/dbfmt.o build/temp.linux-armv7l-3.4/libastro-3.7.5/utc_gst.o build/temp.linux-armv7l-3.4/libastro-3.7.5/umoon.o build/temp.linux-armv7l-3.4/libastro-3.7.5/misc.o build/temp.linux-armv7l-3.4/libastro-3.7.5/parallax.o build/temp.linux-armv7l-3.4/libastro-3.7.5/moon.o build/temp.linux-armv7l-3.4/libastro-3.7.5/chap95_data.o build/temp.linux-armv7l-3.4/libastro-3.7.5/airmass.o build/temp.linux-armv7l-3.4/libastro-3.7.5/thetag.o build/temp.linux-armv7l-3.4/libastro-3.7.5/mjd.o build/temp.linux-armv7l-3.4/libastro-3.7.5/plmoon.o build/temp.linux-armv7l-3.4/libastro-3.7.5/sdp4.o build/temp.linux-armv7l-3.4/libastro-3.7.5/anomaly.o build/temp.linux-armv7l-3.4/libastro-3.7.5/sgp4.o build/temp.linux-armv7l-3.4/libastro-3.7.5/jupmoon.o build/temp.linux-armv7l-3.4/libastro-3.7.5/deep.o build/temp.linux-armv7l-3.4/libastro-3.7.5/formats.o build/temp.linux-armv7l-3.4/libastro-3.7.5/obliq.o build/temp.linux-armv7l-3.4/libastro-3.7.5/eq_gal.o build/temp.linux-armv7l-3.4/libastro-3.7.5/auxil.o build/temp.linux-armv7l-3.4/libastro-3.7.5/satmoon.o build/temp.linux-armv7l-3.4/libastro-3.7.5/constel.o build/temp.linux-armv7l-3.4/libastro-3.7.5/bdl.o build/temp.linux-armv7l-3.4/libastro-3.7.5/circum.o build/temp.linux-armv7l-3.4/libastro-3.7.5/eq_ecl.o build/temp.linux-armv7l-3.4/libastro-3.7.5/aberration.o build/temp.linux-armv7l-3.4/libastro-3.7.5/aa_hadec.o build/temp.linux-armv7l-3.4/libastro-3.7.5/parallactic.o build/temp.linux-armv7l-3.4/libastro-3.7.5/actan.o build/temp.linux-armv7l-3.4/libastro-3.7.5/deltat.o build/temp.linux-armv7l-3.4/libastro-3.7.5/helio.o build/temp.linux-armv7l-3.4/libastro-3.7.5/nutation.o build/temp.linux-armv7l-3.4/extensions/data/jupiter.9910.o build/temp.linux-armv7l-3.4/extensions/data/jupiter.1020.o build/temp.linux-armv7l-3.4/extensions/data/mars.9910.o build/temp.linux-armv7l-3.4/extensions/data/mars.1020.o build/temp.linux-armv7l-3.4/extensions/data/uranus.9910.o build/temp.linux-armv7l-3.4/extensions/data/uranus.1020.o build/temp.linux-armv7l-3.4/extensions/data/saturne.1020.o build/temp.linux-armv7l-3.4/extensions/data/saturne.9910.o -o build/lib.linux-armv7l-3.4/ephem/_libastro.cpython-34m.so

Running setup.py install for pyyaml checking if libyaml is compilable gcc -pthread -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/tingo/progs/homeassistant/include -I/usr/local/opt/python-3.4.3/include/python3.4m -c build/temp.linux-armv7l-3.4/check_libyaml.c -o build/temp.linux-armv7l-3.4/check_libyaml.o build/temp.linux-armv7l-3.4/check_libyaml.c:2:18: fatal error: yaml.h: No such file or directory compilation terminated. libyaml is not found or a compiler error: forcing --without-libyaml (if libyaml is installed correctly, you may need to specify the option --include-dirs or uncomment and modify the parameter include_dirs in setup.cfg)

Successfully installed enum34-1.0.4 netifaces-0.10.4 phue-0.8 psutil-2.2.1 pushbullet.py-0.8.1 pychromecast-0.5.1.1 pydispatcher-2.0.5 pyephem-3.7.5.3 python-libnmap-0.6.2 python-magic-0.4.6 python-nest-2.3.1 pyuserinput-0.1.9 pyyaml-3.11 requests-2.6.0 six-1.9.0 tellcore-py-1.1.0 websocket-client-0.26.0 ws4py-0.3.4 zeroconf-0.17.0 Wow, long install. Start it: (homeassistant) tingo@kg-bpi:~/progs/home-assistant$ python3 -m homeassistant INFO:homeassistant:Bus:Handling INFO:homeassistant:Bus:Handling INFO:homeassistant.bootstrap:Home Assistant core initialized INFO:homeassistant.loader:Loaded group from homeassistant.components.group INFO:homeassistant.loader:Loaded recorder from homeassistant.components.recorder INFO:homeassistant.loader:Loaded frontend from homeassistant.components.frontend INFO:homeassistant.loader:Loaded api from homeassistant.components.api INFO:homeassistant.loader:Loaded http from homeassistant.components.http INFO:homeassistant.loader:Loaded history from homeassistant.components.history INFO:homeassistant.loader:Loaded discovery from homeassistant.components.discovery INFO:homeassistant:Bus:Handling INFO:homeassistant:Bus:Handling INFO:homeassistant:Bus:Handling INFO:homeassistant:Bus:Handling INFO:homeassistant:Bus:Handling INFO:homeassistant:Bus:Handling INFO:homeassistant:Starting Home Assistant (8 threads) INFO:homeassistant:Bus:Handling INFO:homeassistant:Bus:Handling INFO:homeassistant.components.http:Starting web interface at http://0.0.0.0:8123 INFO:homeassistant:Timer:starting INFO:homeassistant.external.netdisco.netdisco.service:Scanning INFO:homeassistant.components.recorder:Database migrated to version 1 INFO:homeassistant.components.recorder:Running query UPDATE recorder_runs SET end=?, closed_incorrect=1 WHERE end IS NULL INFO:homeassistant.components.recorder:Running query INSERT INTO recorder_runs (start, created) VALUES (?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.1.161.2 INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.1.161.17 INFO:homeassistant.components.discovery:Found new service: DLNA http://10.1.161.17:80/dms/device.xml INFO:homeassistant:Bus:Handling INFO:homeassistant.components.discovery:Found new service: google_cast ('10.1.161.2', 8009) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant.loader:Loaded media_player from homeassistant.components.media_player INFO:homeassistant:Bus:Handling INFO:homeassistant:Bus:Handling INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant:Bus:Handling INFO:homeassistant:Bus:Handling INFO:homeassistant:Bus:Handling INFO:homeassistant:Bus:Handling INFO:homeassistant:Bus:Handling INFO:homeassistant:Bus:Handling INFO:homeassistant:Bus:Handling INFO:homeassistant:Bus:Handling INFO:homeassistant:Bus:Handling INFO:homeassistant:Bus:Handling INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant.loader:Loaded media_player.cast from homeassistant.components.media_player.cast INFO:pychromecast:Querying device status INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 10.1.161.2 INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:pychromecast:Refreshing app status INFO:homeassistant:Bus:Handling > INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO states (entity_id, state, attributes, last_changed, last_updated,created) VALUES (?, ?, ?, ?, ?, ?) INFO:homeassistant.components.recorder:Running query INSERT INTO events (event_type, event_data, origin, created) VALUES (?, ?, ?, ?) INFO:homeassistant.components.media_player:Updating media_player states Hmm, looks like this runs in the shell, not as a service. Oh, well. 2015-03-16: install git: tingo@kg-bpi:~$ sudo apt-get install git [sudo] password for tingo: Reading package lists... Done Building dependency tree
Reading state information... Done The following extra packages will be installed: git-man liberror-perl Suggested packages: gettext-base git-daemon-run git-daemon-sysvinit git-doc git-el git-arch git-cvs git-svn git-email git-gui gitk gitweb The following NEW packages will be installed: git git-man liberror-perl 0 upgraded, 3 newly installed, 0 to remove and 18 not upgraded. Need to get 6,581 kB of archives. After this operation, 10.2 MB of additional disk space will be used. Do you want to continue [Y/n]? [...] Processing triggers for man-db ... Setting up liberror-perl (0.17-1) ... Setting up git-man (1:1.7.10.4-1+wheezy1) ... Setting up git (1:1.7.10.4-1+wheezy1) ... done. 2015-03-13: Telldus - test tellcore-py, first basic testing. tellcore_tool tingo@kg-bpi:~$ tellcore_tool --help usage: tellcore_tool [-h] (-l | --list-devices | --list-sensors | --on DEVICE | --off DEVICE | --learn DEVICE | --remove DEVICE)

Telldus administration tool

optional arguments: -h, --help show this help message and exit -l, --list List all configured devices and discovered sensors --list-devices List all configured devices --list-sensors List all discovered sensors --on DEVICE Turn on device --off DEVICE Turn off device --learn DEVICE Send learn command to device --remove DEVICE Remove device

DEVICE can be either device id or name test some commands: tingo@kg-bpi:~$ tellcore_tool --list-devices Number of devices: 1

ID NAME STATE PROTOCOL MODEL PARAMETERS Traceback (most recent call last): File "/usr/local/opt/python-3.4.3/bin/tellcore_tool", line 133, in print_devices(core.devices()) File "/usr/local/opt/python-3.4.3/bin/tellcore_tool", line 43, in print_devices for name, value in device.parameters().iteritems(): AttributeError: 'dict' object has no attribute 'iteritems' oops, that one didn't work. tingo@kg-bpi:~$ tellcore_tool --list-sensors Number of sensors: 9

PROTOCOL MODEL ID TEMP HUMIDITY RAIN WIND LAST UPDATED fineoffset temperature 255 -204.7 C 2015-03-13 20:21:14 fineoffset temperature 186 5.7 C 2015-03-13 20:21:19 fineoffset temperature 93 2.1 C 2015-03-13 07:26:54 fineoffset temperaturehumidity 22 8.2 C 30 % 2015-03-13 20:01:10 fineoffset temperaturehumidity 118 5.0 C 49 % 2015-03-13 00:41:08 fineoffset temperaturehumidity 93 -204.2 C 63 % 2015-03-13 07:02:54 fineoffset temperaturehumidity 0 0.0 C 0 % 2015-03-13 07:39:11 fineoffset temperaturehumidity 6 17.3 C 30 % 2015-03-13 15:48:21 fineoffset temperaturehumidity 10 8.0 C 30 % 2015-03-13 20:08:22 but this one worked. How about list then? tingo@kg-bpi:~$ tellcore_tool --list Number of devices: 1

ID NAME STATE PROTOCOL MODEL PARAMETERS Traceback (most recent call last): File "/usr/local/opt/python-3.4.3/bin/tellcore_tool", line 129, in print_devices(core.devices()) File "/usr/local/opt/python-3.4.3/bin/tellcore_tool", line 43, in print_devices for name, value in device.parameters().iteritems(): AttributeError: 'dict' object has no attribute 'iteritems' tingo@kg-bpi:~$ tellcore_tool -l Number of devices: 1

ID NAME STATE PROTOCOL MODEL PARAMETERS Traceback (most recent call last): File "/usr/local/opt/python-3.4.3/bin/tellcore_tool", line 129, in print_devices(core.devices()) File "/usr/local/opt/python-3.4.3/bin/tellcore_tool", line 43, in print_devices for name, value in device.parameters().iteritems(): AttributeError: 'dict' object has no attribute 'iteritems' nope, both forms fail. tellcore_controllers tingo@kg-bpi:~$ tellcore_controllers --help TellStick Duo name: serial: A6028ED8 firmware: 5 available: 1

Found 1 controller(s) tingo@kg-bpi:~$ tellcore_controllers -? TellStick Duo name: serial: A6028ED8 firmware: 5 available: 1

Found 1 controller(s) it doesn't look like it takes arguments. tellcore_events tingo@kg-bpi:~$ tellcore_events --help usage: tellcore_events [-h] [--all] [--device] [--change] [--raw] [--sensor] [--controller]

Listen for Telldus events.

optional arguments: -h, --help show this help message and exit --all Trace all events --device Trace device events --change Trace device change events --raw Trace raw events --sensor Trace sensor events --controller Trace controller events good. 2015-03-13: Telldus - install tellcore-py: tingo@kg-bpi:~$ sudo su - [sudo] password for tingo: root@kg-bpi ~ # pip3 install tellcore-py Collecting tellcore-py Downloading tellcore-py-1.1.0.tar.gz (41kB) 100% |################################| 45kB 283kB/s Installing collected packages: tellcore-py Running setup.py install for tellcore-py changing mode of build/scripts-3.4/tellcore_tool from 644 to 755 changing mode of build/scripts-3.4/tellcore_events from 644 to 755 changing mode of build/scripts-3.4/tellcore_controllers from 644 to 755 changing mode of /usr/local/opt/python-3.4.3/bin/tellcore_events to 755 changing mode of /usr/local/opt/python-3.4.3/bin/tellcore_controllers to 755 changing mode of /usr/local/opt/python-3.4.3/bin/tellcore_tool to 755 Successfully installed tellcore-py-1.1.0 pip3 install tellcore-py 7.71s user 0.66s system 74% cpu 11.221 total nice. 2015-03-13: I added /usr/local/opt/python-3.4.3/bin to PATH in /etc/profile, so I can easily get to Python (python3, python3.4). Test it: tingo@kg-bpi:~$ echo $PATH /usr/local/opt/python-3.4.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games tingo@kg-bpi:~$ python3 --version Python 3.4.3 nice. What does pip3 look like? tingo@kg-bpi:~$ pip3 --help

Usage:
pip [options]

Commands: install Install packages. uninstall Uninstall packages. freeze Output installed packages in requirements format. list List installed packages. show Show information about installed packages. search Search PyPI for packages. wheel Build wheels from your requirements. zip DEPRECATED. Zip individual packages. unzip DEPRECATED. Unzip individual packages. help Show help for commands.

General Options: -h, --help Show help. --isolated Run pip in an isolated mode, ignoring environment variables and user configuration. -v, --verbose Give more output. Option is additive, and can be used up to 3 times. -V, --version Show version and exit. -q, --quiet Give less output. --log Path to a verbose appending log. --proxy Specify a proxy in the form [user:passwd@]proxy.server:port. --retries Maximum number of retries each connection should attempt (default 5 times). --timeout Set the socket timeout (default 15 seconds). --exists-action Default action when a path already exists: (s)witch, (i)gnore, (w)ipe, (b)ackup. --trusted-host Mark this host as trusted, even though it does not have valid or any HTTPS. --cert Path to alternate CA bundle. --client-cert Path to SSL client certificate, a single file containing the private key and the certificate in PEM format. --cache-dir

Store the cache data in . --no-cache-dir Disable the cache. --disable-pip-version-check Don't periodically check PyPI to determine whether a new version of pip is available for download. Implied with --no-index. aha.

2015-03-12: Telldus Core - ok, fixed it. Changing user in /etc/tellstick.conf from "nobody" to "root": root@kg-bpi ~ # grep user /etc/tellstick.conf user = "root" and now the daemon says: root@kg-bpi ~ # /usr/local/sbin/telldusd --nodaemon telldusd daemon starting up Connecting to TellStick (1781/C31) with serial A6028ED8 when started. How about when started correctly? root@kg-bpi ~ # service telldusd status [FAIL] telldusd is not running ... failed! 3 root@kg-bpi ~ # service telldusd start :( root@kg-bpi ~ # service telldusd status [ ok ] telldusd is running. and /var/log/messages shows: Mar 12 21:51:36 kg-bpi telldusd: telldusd daemon starting up Mar 12 21:51:36 kg-bpi telldusd: Connecting to TellStick (1781/C31) with serial A6028ED8 Nice. now, test tdtool: tingo@kg-bpi:~$ tdtool -l Number of devices: 1 1 Example device OFF

SENSORS:

PROTOCOL MODEL ID TEMP HUMIDITY RAIN WIND LAST UPDATED
fineoffset temperature 255 -204.7° 2015-03-12 21:55:38 good. 2015-03-12: Telldus Core - various udev testing: root@kg-bpi ~ # udevadm monitor --help Usage: udevadm monitor [--property] [--kernel] [--udev] [--help] --property print the event properties --kernel print kernel uevents --udev print udev events --subsystem-match= filter events by subsystem --tag-match= filter events by tag --help monitor usb root@kg-bpi ~ # udevadm monitor --subsystem-match=usb monitor will print the received events for: UDEV - the event which udev sends out after rule processing KERNEL - the kernel uevent

KERNEL[428594.194961] remove /devices/platform/sw-ohci.2/usb4/4-1/4-1:1.0 (usb) UDEV [428594.195145] remove /devices/platform/sw-ohci.2/usb4/4-1/4-1:1.0 (usb) KERNEL[428594.197723] remove /devices/platform/sw-ohci.2/usb4/4-1 (usb) UDEV [428594.197891] remove /devices/platform/sw-ohci.2/usb4/4-1 (usb) KERNEL[428631.074191] add /devices/platform/sw-ohci.1/usb2/2-1 (usb) KERNEL[428631.079287] add /devices/platform/sw-ohci.1/usb2/2-1/2-1:1.0 (usb) UDEV [428631.110416] add /devices/platform/sw-ohci.1/usb2/2-1 (usb) UDEV [428631.125309] add /devices/platform/sw-ohci.1/usb2/2-1/2-1:1.0 (usb) ^C# root@kg-bpi ~ # udevadm monitor --udev
monitor will print the received events for: UDEV - the event which udev sends out after rule processing

UDEV [428729.569618] remove /devices/platform/sw-ohci.1/usb2/2-1/2-1:1.0 (usb) UDEV [428729.571363] remove /devices/platform/sw-ohci.1/usb2/2-1/usb_device/usbdev2.4 (usb_device) UDEV [428729.571970] remove /devices/platform/sw-ohci.1/usb2/2-1 (usb) UDEV [428773.384503] add /devices/platform/sw-ohci.1/usb2/2-1 (usb) UDEV [428773.387233] add /devices/platform/sw-ohci.1/usb2/2-1/usb_device/usbdev2.5 (usb_device) UDEV [428773.395970] add /devices/platform/sw-ohci.1/usb2/2-1/2-1:1.0 (usb) ^C# query root@kg-bpi ~ # udevadm info --query=all --name=/dev/usbdev2.5 P: /devices/platform/sw-ohci.1/usb2/2-1 N: bus/usb/002/005 E: BUSNUM=002 E: DEVNAME=/dev/bus/usb/002/005 E: DEVNUM=005 E: DEVPATH=/devices/platform/sw-ohci.1/usb2/2-1 E: DEVTYPE=usb_device E: DRIVER=usb E: MAJOR=189 E: MINOR=132 E: PRODUCT=1781/c31/600 E: SUBSYSTEM=usb E: TYPE=0/0/0 E: UDEV_LOG=3 not sure how to see rules processing.

2015-03-11: Telldus Core - attaching a Tellstick Duo: from /var/log/messages: Mar 11 23:31:31 kg-bpi kernel: [351356.562182] usb 2-1: new full-speed USB device number 2 using sw-ohci Mar 11 23:31:31 kg-bpi kernel: [351356.764543] usb 2-1: New USB device found, idVendor=1781, idProduct=0c31 Mar 11 23:31:31 kg-bpi kernel: [351356.777741] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 Mar 11 23:31:31 kg-bpi kernel: [351356.788471] usb 2-1: Product: TellStick Duo Mar 11 23:31:31 kg-bpi kernel: [351356.796001] usb 2-1: Manufacturer: Telldus Mar 11 23:31:31 kg-bpi kernel: [351356.803523] usb 2-1: SerialNumber: A6028ED8 Hmm, let's see if we can connect it to the daemon: we have the tdadmin tool: tingo@kg-bpi:~/work/telldus-core-2.1.2$ sudo tdadmin --help Usage: tdadmin [OPTION...] COMMAND ACTION TellStick admin tool -- a command line utility to edit devices and controllers for Telldus TellStick

COMMAND: controller, ACTION: connect/disconnect Tells the daemon to add or remove a TellStick (duo) --pid=PID The product id (0c30 or 0c31) --serial=SERIAL The usb serial number --vid=VID The vendor id (1781)

-?, --help Give this help list --usage Give a short usage message -V, --version Print program version

Report bugs to info.tech@telldus.com. ok, try it: tingo@kg-bpi:~/work/telldus-core-2.1.2$ sudo tdadmin --pid=0c31 controller connect Missing parameter vid or pid tingo@kg-bpi:~/work/telldus-core-2.1.2$ sudo tdadmin --serial=A6028ED8 controller connect Missing parameter vid or pid tingo@kg-bpi:~/work/telldus-core-2.1.2$ sudo tdadmin --pid=0c31 --vid=1781 controller connect Ok, now how do we check that it is connected? 2015-03-11: Telldus Core - unpack: tingo@kg-bpi:~/work$ tar xvf ~/dl/telldus-core-2.1.2.tar.gz [...] tingo@kg-bpi:~/work$ cd telldus-core-2.1.2/ configure tingo@kg-bpi:~/work/telldus-core-2.1.2$ cmake . -- The C compiler identification is GNU 4.6.3 -- The CXX compiler identification is GNU 4.6.3 -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for include file pthread.h -- Looking for include file pthread.h - found -- Looking for pthread_create -- Looking for pthread_create - not found. -- Looking for pthread_create in pthreads -- Looking for pthread_create in pthreads - not found -- Looking for pthread_create in pthread -- Looking for pthread_create in pthread - found -- Found Threads: TRUE -- Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) -- checking for one of the modules 'libftdi' -- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) -- Configuring done -- Generating done -- Build files have been written to: /home/tingo/work/telldus-core-2.1.2 build it: tingo@kg-bpi:~/work/telldus-core-2.1.2$ make [...] [ 98%] Built target tdtool Scanning dependencies of target tdadmin [100%] Building CXX object tdadmin/CMakeFiles/tdadmin.dir/main.cpp.o Linking CXX executable tdadmin [100%] Built target tdadmin install tingo@kg-bpi:~/work/telldus-core-2.1.2$ sudo make install [ 15%] Built target TelldusCommon [ 88%] Built target telldusd [ 96%] Built target telldus-core [ 98%] Built target tdtool [100%] Built target tdadmin Install the project... -- Install configuration: "" -- Installing: /usr/local/sbin/telldusd -- Installing: /etc/tellstick.conf -- Installing: /var/state/telldus-core.conf -- Installing: /usr/local/lib/libtelldus-core.so.2.1.2 -- Installing: /usr/local/lib/libtelldus-core.so.2 -- Installing: /usr/local/lib/libtelldus-core.so -- Installing: /usr/local/include/telldus-core.h -- Installing: /usr/local/bin/tdtool -- Removed runtime path from "/usr/local/bin/tdtool" -- Installing: /usr/local/sbin/tdadmin -- Removed runtime path from "/usr/local/sbin/tdadmin" -- Installing: /etc/udev/rules.d/05-tellstick.rules -- Installing: /usr/local/share/telldus-core/helpers/udev.sh done. update library cache tingo@kg-bpi:~/work/telldus-core-2.1.2$ sudo ldconfig create a init script tingo@kg-bpi:~/work/telldus-core-2.1.2$ sudo su - root@kg-bpi ~ # cd /etc/init.d root@kg-bpi /etc/init.d # cp skeleton telldusd edited the script, make it executable root@kg-bpi /etc/init.d # chmod +x telldusd done. Test the script: (after fixing a few obvious errors) root@kg-bpi ~ # service telldusd start root@kg-bpi ~ # service telldusd status [ ok ] telldusd is running. good. make it start on boot: tingo@kg-bpi:~/work/telldus-core-2.1.2$ sudo update-rc.d telldusd defaults update-rc.d: using dependency based boot sequencing done. 2015-03-11: Telldus Core (for Tellstick Duo) - download it: tingo@kg-bpi:~/dl$ wget http://download.telldus.se/TellStick/Software/telldus-core/telldus-core-2.1.2.tar.gz --2015-03-11 22:40:00-- http://download.telldus.se/TellStick/Software/telldus-core/telldus-core-2.1.2.tar.gz Resolving download.telldus.se (download.telldus.se)... 194.30.169.113 Connecting to download.telldus.se (download.telldus.se)|194.30.169.113|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 169850 (166K) [application/x-gzip] Saving to: `telldus-core-2.1.2.tar.gz'

100%[============================================================================>] 169,850 --.-K/s in 0.1s

2015-03-11 22:40:00 (1.34 MB/s) - `telldus-core-2.1.2.tar.gz' saved [169850/169850] ok. build requirements: build-essential is already installed, install the rest: tingo@kg-bpi:~/dl$ sudo apt-get install libftdi-dev libftdi1 libconfuse-dev libconfuse0 cmake [sudo] password for tingo: Reading package lists... Done Building dependency tree
Reading state information... Done The following extra packages will be installed: cmake-data emacsen-common libarchive12 libconfuse-common libnettle4 libusb-dev libxmlrpc-core-c3 The following NEW packages will be installed: cmake cmake-data emacsen-common libarchive12 libconfuse-common libconfuse-dev libconfuse0 libftdi-dev libftdi1 libnettle4 libusb-dev libxmlrpc-core-c3 0 upgraded, 12 newly installed, 0 to remove and 18 not upgraded. Need to get 6,374 kB of archives. After this operation, 14.8 MB of additional disk space will be used. Do you want to continue [Y/n]? [...] Processing triggers for man-db ... Setting up libnettle4:armhf (2.4-3) ... Setting up libarchive12:armhf (3.0.4-3+wheezy1) ... Setting up libconfuse-common (2.7-4) ... Setting up libconfuse0:armhf (2.7-4) ... Setting up libftdi1:armhf (0.20-1+b1) ... Setting up libxmlrpc-core-c3 (1.16.33-3.2) ... Setting up emacsen-common (2.0.5) ... Setting up cmake-data (2.8.9-1) ... Install cmake-data for emacs Setting up cmake (2.8.9-1) ... Setting up libconfuse-dev (2.7-4) ... Setting up libusb-dev (2:0.1.12-20+nmu1) ... Setting up libftdi-dev (0.20-1+b1) ... that was easy.

2015-03-08: after fixing the nginx.conf file, I get a fatal error when running bolt - sqlite is not installed. Fix it: root@kg-bpi /usr/local/www/logb # apt-get install php5-sqlite Reading package lists... Done Building dependency tree
Reading state information... Done The following NEW packages will be installed: php5-sqlite 0 upgraded, 1 newly installed, 0 to remove and 18 not upgraded. Need to get 22.1 kB of archives. After this operation, 93.2 kB of additional disk space will be used. Get:1 http://security.debian.org/ wheezy/updates/main php5-sqlite armhf 5.4.36-0+deb7u3 [22.1 kB] Fetched 22.1 kB in 0s (34.8 kB/s)
Selecting previously unselected package php5-sqlite. (Reading database ... 19108 files and directories currently installed.) Unpacking php5-sqlite (from .../php5-sqlite_5.4.36-0+deb7u3_armhf.deb) ... Processing triggers for php5-fpm ... [ ok ] Restarting PHP5 FastCGI Process Manager: php5-fpm. Setting up php5-sqlite (5.4.36-0+deb7u3) ...

Creating config file /etc/php5/mods-available/sqlite3.ini with new version

Creating config file /etc/php5/mods-available/pdo_sqlite.ini with new version Processing triggers for php5-fpm ... [ ok ] Restarting PHP5 FastCGI Process Manager: php5-fpm. apt-get install php5-sqlite 6.27s user 1.53s system 20% cpu 38.071 total does it work now? Yes it does. Nice! 2015-03-08: install bolt in the directory by following the installation instructions: tingo@kg-bpi:~/dl$ pwd /home/tingo/dl tingo@kg-bpi:~/dl$ sudo su - root@kg-bpi ~ # cd /usr/local/www/logb root@kg-bpi /usr/local/www/logb # root@kg-bpi /usr/local/www/logb # tar xvf /home/tingo/dl/bolt-2-0-6.tar.gz --strip-components=1 [...] bolt-git-2015-02-06-45dc7b3/app/config/extensions/index.html bolt-git-2015-02-06-45dc7b3/app/cache/index.html how does it look? root@kg-bpi /usr/local/www/logb # l total 48 drwxr-xr-x 8 501 staff 4096 Mar 8 20:53 app/ -rw-r--r-- 1 501 staff 11053 Feb 6 11:13 changelog.md drwxr-xr-x 2 501 staff 4096 Feb 6 11:14 extensions/ drwxrwxrwx 2 501 staff 4096 Mar 8 20:53 files/ -rw-r--r-- 1 501 staff 404 Feb 6 11:13 index.php -rw-r--r-- 1 501 staff 3484 Feb 6 11:13 README.md -rw-r--r-- 1 501 staff 789 Feb 6 11:13 serve drwxr-xr-x 15 501 staff 4096 Mar 8 20:53 src/ drwxrwxrwx 3 501 staff 4096 Mar 8 20:53 theme/ drwxr-xr-x 23 501 staff 4096 Feb 6 11:14 vendor/ ok, 2015-03-08: make us a www directory: tingo@kg-bpi:~/dl$ sudo mkdir /usr/local/www [sudo] password for tingo: tingo@kg-bpi:~/dl$ ll /usr/local/www total 8 drwxr-sr-x 2 root staff 4096 Mar 8 20:45 ./ drwxrwsr-x 12 root staff 4096 Mar 8 20:45 ../ good. make a directory for the bolt blog: tingo@kg-bpi:~/dl$ sudo mkdir /usr/local/www/logb tingo@kg-bpi:~/dl$ sudo chown www-data:www-data /usr/local/www/logb verify tingo@kg-bpi:~/dl$ ll /usr/local/www total 12 drwxr-sr-x 3 root staff 4096 Mar 8 20:47 ./ drwxrwsr-x 12 root staff 4096 Mar 8 20:45 ../ drwxr-sr-x 2 www-data www-data 4096 Mar 8 20:47 logb/ looks good. 2015-03-08: download latest bolt: tingo@kg-bpi:~/dl$ wget http://bolt.cm/distribution/bolt-2-0-6.tar.gz --2015-03-08 19:53:05-- http://bolt.cm/distribution/bolt-2-0-6.tar.gz Resolving bolt.cm (bolt.cm)... 46.17.0.55 Connecting to bolt.cm (bolt.cm)|46.17.0.55|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 8935984 (8.5M) [application/x-gzip] Saving to: `bolt-2-0-6.tar.gz'

100%[===========================================================================>] 8,935,984 870K/s in 10s

2015-03-08 19:53:15 (850 KB/s) - `bolt-2-0-6.tar.gz' saved [8935984/8935984] ok. 2015-03-08: php built-in modules: tingo@kg-bpi:~$ /usr/sbin/php5-fpm -m [PHP Modules] bcmath bz2 calendar cgi-fcgi Core ctype date dba dom ereg exif fileinfo filter ftp gettext hash iconv json libxml mbstring mhash openssl pcre PDO Phar posix Reflection session shmop SimpleXML soap sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter zip zlib

[Zend Modules] PDO - check, but I need cUrl and GD too. tingo@kg-bpi:~$ apt-cache search php5-curl php5-curl - CURL module for php5 tingo@kg-bpi:~$ apt-cache search php5-gd php5-gdcm - Grassroots DICOM PHP5 bindings php5-gd - GD module for php5 install them: tingo@kg-bpi:~$ sudo apt-get install php5-curl php5-gd [sudo] password for tingo: Reading package lists... Done Building dependency tree
Reading state information... Done The following extra packages will be installed: fontconfig-config libfontconfig1 libfreetype6 libgd2-xpm libjpeg8 libpng12-0 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxpm4 ttf-dejavu-core Suggested packages: libgd-tools The following NEW packages will be installed: fontconfig-config libfontconfig1 libfreetype6 libgd2-xpm libjpeg8 libpng12-0 libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxpm4 php5-curl php5-gd ttf-dejavu-core 0 upgraded, 15 newly installed, 0 to remove and 18 not upgraded. Need to get 3,616 kB of archives. After this operation, 8,518 kB of additional disk space will be used. Do you want to continue [Y/n]? [...] Processing triggers for man-db ... Processing triggers for php5-fpm ... [ ok ] Restarting PHP5 FastCGI Process Manager: php5-fpm. Setting up libfreetype6:armhf (2.4.9-1.1) ... Setting up ttf-dejavu-core (2.33-3) ... Setting up fontconfig-config (2.9.0-7.1) ... Setting up libfontconfig1:armhf (2.9.0-7.1) ... Setting up libjpeg8:armhf (8d-1+deb7u1) ... Setting up libpng12-0:armhf (1.2.49-1) ... Setting up libxau6:armhf (1:1.0.7-1) ... Setting up libxdmcp6:armhf (1:1.1.1-1) ... Setting up libxcb1:armhf (1.8.1-2+deb7u1) ... Setting up libx11-data (2:1.5.0-1+deb7u1) ... Setting up libx11-6:armhf (2:1.5.0-1+deb7u1) ... Setting up libxpm4:armhf (1:3.5.10-1) ... Setting up libgd2-xpm:armhf (2.0.36~rc1~dfsg-6.1) ... Setting up php5-curl (5.4.36-0+deb7u3) ...

Creating config file /etc/php5/mods-available/curl.ini with new version Setting up php5-gd (5.4.36-0+deb7u3) ...

Creating config file /etc/php5/mods-available/gd.ini with new version Processing triggers for php5-fpm ... [ ok ] Restarting PHP5 FastCGI Process Manager: php5-fpm. done. Now curl and gd show up: tingo@kg-bpi:~$ /usr/sbin/php5-fpm -m [PHP Modules] bcmath bz2 calendar cgi-fcgi Core ctype curl date dba dom ereg exif fileinfo filter ftp gd gettext hash iconv json libxml mbstring mhash openssl pcre PDO Phar posix Reflection session shmop SimpleXML soap sockets SPL standard sysvmsg sysvsem sysvshm tokenizer wddx xml xmlreader xmlwriter zip zlib

[Zend Modules] good. 2015-03-08: install php-fpm 5.4.36: tingo@kg-bpi:~$ sudo apt-get install php5-fpm Reading package lists... Done Building dependency tree
Reading state information... Done The following extra packages will be installed: libmagic1 libonig2 libqdbm14 libxml2 lsof mime-support php5-common ucf Suggested packages: file php-pear Recommended packages: xml-core The following NEW packages will be installed: libmagic1 libonig2 libqdbm14 libxml2 lsof mime-support php5-common php5-fpm ucf 0 upgraded, 9 newly installed, 0 to remove and 18 not upgraded. Need to get 4,623 kB of archives. After this operation, 12.5 MB of additional disk space will be used. Do you want to continue [Y/n]? [...] Processing triggers for man-db ... Setting up libmagic1:armhf (5.11-2+deb7u7) ... Setting up libxml2:armhf (2.8.0+dfsg1-7+wheezy3) ... Setting up lsof (4.86+dfsg-1) ... Setting up ucf (3.0025+nmu3) ... Setting up php5-common (5.4.36-0+deb7u3) ...

Creating config file /etc/php5/mods-available/pdo.ini with new version Setting up libonig2 (5.9.1-1) ... Setting up libqdbm14 (1.8.78-2) ... Setting up mime-support (3.52-1+deb7u1) ... Setting up php5-fpm (5.4.36-0+deb7u3) ...

Creating config file /etc/php5/fpm/php.ini with new version done. Test it: tingo@kg-bpi:~$ /usr/sbin/php5-fpm -v PHP 5.4.36-0+deb7u3 (fpm-fcgi) (built: Jan 9 2015 09:38:45) Copyright (c) 1997-2014 The PHP Group Zend Engine v2.4.0, Copyright (c) 1998-2014 Zend Technologies nice. Help output: tingo@kg-bpi:~$ /usr/sbin/php5-fpm -h Usage: php5-fpm [-n] [-e] [-h] [-i] [-m] [-v] [-t] [-p ] [-g ] [-c ] [-d foo[=bar]] [-y ] [-D] [-F] -c | Look for php.ini file in this directory -n No php.ini file will be used -d foo[=bar] Define INI entry foo with value 'bar' -e Generate extended information for debugger/profiler -h This help -i PHP information -m Show compiled in modules -v Version number -p, --prefix

Specify alternative prefix path to FastCGI process manager (default: /usr). -g, --pid Specify the PID file location. -y, --fpm-config Specify alternative path to FastCGI process manager config file. -t, --test Test FPM configuration and exit -D, --daemonize force to run in background, and ignore daemonize option from config file -F, --nodaemonize force to stay in foreground, and ignore daemonize option from config file -R, --allow-to-run-as-root Allow pool to run as root (disabled by default) done. 2015-03-08: I used this nginx startup script and modified it:

! /bin/sh

BEGIN INIT INFO

Provides: nginx

Required-Start: $all

Required-Stop: $all

Default-Start: 2 3 4 5

Default-Stop: 0 1 6

Short-Description: starts the nginx web server

Description: starts nginx using start-stop-daemon

END INIT INFO

PATH=/usr/local/opt/nginx-1.6.2/sbin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin DAEMON=/usr/local/opt/nginx-1.6.2/sbin/nginx NAME=nginx DESC=nginx NDIR=/usr/local/opt/nginx-1.6.2

test -x $DAEMON || exit 0

Include nginx defaults if available

if [ -f /etc/default/nginx ] ; then . /etc/default/nginx fi

set -e

. /lib/lsb/init-functions

case "$1" in start) echo -n "Starting $DESC: " start-stop-daemon --start --quiet --pidfile $NDIR/logs/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS || true echo "$NAME." ;; stop) echo -n "Stopping $DESC: " start-stop-daemon --stop --quiet --pidfile $NDIR/logs/$NAME.pid --exec $DAEMON || true echo "$NAME." ;; restart|force-reload) echo -n "Restarting $DESC: " start-stop-daemon --stop --quiet --pidfile $NDIR/logs/$NAME.pid --exec $DAEMON || true sleep 1 start-stop-daemon --start --quiet --pidfile $NDIR/logs/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS || true echo "$NAME." ;; reload) echo -n "Reloading $DESC configuration: " start-stop-daemon --stop --signal HUP --quiet --pidfile $NDIR/logs/$NAME.pid --exec $DAEMON || true echo "$NAME." ;; status) status_of_proc -p $NDIR/logs/$NAME.pid "$DAEMON" nginx && exit 0 || exit $? ;; *) N=/etc/init.d/$NAME echo "Usage: $N {start|stop|restart|reload|force-reload|status}" >&2 exit 1 ;; esac

exit 0 make it executable: root@kg-bpi ~ # chmod +x /etc/init.d/nginx test it: root@kg-bpi ~ # service nginx status [FAIL] nginx is not running ... failed! 3 root@kg-bpi ~ # service nginx start :( Starting nginx: start-stop-daemon: --start needs --exec or --startas Try 'start-stop-daemon --help' for more information. Ok, after fixing the start-stop-daemon lines so that they are not broken, thing work better: root@kg-bpi ~ # service nginx start
Starting nginx: nginx. root@kg-bpi ~ # service nginx status
[ ok ] nginx is running. root@kg-bpi ~ # service nginx stop Stopping nginx: nginx. root@kg-bpi ~ # service nginx status [FAIL] nginx is not running ... failed! 3 root@kg-bpi ~ # service nginx start :( Starting nginx: nginx. and nginx also works. 2015-03-08: build nginx 1.6.2 from source: unpack tingo@kg-bpi:~/work$ pwd /home/tingo/work tingo@kg-bpi:~/work$ tar xvf ~/dl/nginx-1.6.2.tar.gz [...] build tingo@kg-bpi:~/work$ cd nginx-1.6.2/ tingo@kg-bpi:~/work/nginx-1.6.2$ ./configure --prefix=/usr/local/opt/nginx-1.6.2 [...] ./configure: error: the HTTP rewrite module requires the PCRE library. You can either disable the module by using --without-http_rewrite_module option, or install the PCRE library into the system, or build the PCRE library statically from the source with nginx by using --with-pcre= option. ok, install missing libraries: tingo@kg-bpi:~/work/nginx-1.6.2$ sudo apt-get install libpcre3 libpcre3-dev Reading package lists... Done Building dependency tree
Reading state information... Done The following extra packages will be installed: libpcrecpp0 The following NEW packages will be installed: libpcre3 libpcre3-dev libpcrecpp0 0 upgraded, 3 newly installed, 0 to remove and 18 not upgraded. Need to get 704 kB of archives. After this operation, 1,195 kB of additional disk space will be used. Do you want to continue [Y/n]? [...] Setting up libpcre3:armhf (1:8.30-5) ... Setting up libpcrecpp0:armhf (1:8.30-5) ... Setting up libpcre3-dev (1:8.30-5) ... re-run configure: tingo@kg-bpi:~/work/nginx-1.6.2$ ./configure --prefix=/usr/local/opt/nginx-1.6.2 [...] Configuration summary + using system PCRE library + OpenSSL library is not used + md5: using system crypto library + sha1: using system crypto library + using system zlib library

nginx path prefix: "/usr/local/opt/nginx-1.6.2" nginx binary file: "/usr/local/opt/nginx-1.6.2/sbin/nginx" nginx configuration prefix: "/usr/local/opt/nginx-1.6.2/conf" nginx configuration file: "/usr/local/opt/nginx-1.6.2/conf/nginx.conf" nginx pid file: "/usr/local/opt/nginx-1.6.2/logs/nginx.pid" nginx error log file: "/usr/local/opt/nginx-1.6.2/logs/error.log" nginx http access log file: "/usr/local/opt/nginx-1.6.2/logs/access.log" nginx http client request body temporary files: "client_body_temp" nginx http proxy temporary files: "proxy_temp" nginx http fastcgi temporary files: "fastcgi_temp" nginx http uwsgi temporary files: "uwsgi_temp" nginx http scgi temporary files: "scgi_temp" Next, make: tingo@kg-bpi:~/work/nginx-1.6.2$ make [...] make[1]: Entering directory /home/tingo/work/nginx-1.6.2' sed -e "s|%%PREFIX%%|/usr/local/opt/nginx-1.6.2|" \ -e "s|%%PID_PATH%%|/usr/local/opt/nginx-1.6.2/logs/nginx.pid|" \ -e "s|%%CONF_PATH%%|/usr/local/opt/nginx-1.6.2/conf/nginx.conf|" \ -e "s|%%ERROR_LOG_PATH%%|/usr/local/opt/nginx-1.6.2/logs/error.log|" \ < man/nginx.8 > objs/nginx.8 make[1]: Leaving directory/home/tingo/work/nginx-1.6.2' and make install: tingo@kg-bpi:~/work/nginx-1.6.2$ sudo make install make -f objs/Makefile install make[1]: Entering directory /home/tingo/work/nginx-1.6.2' test -d '/usr/local/opt/nginx-1.6.2' || mkdir -p '/usr/local/opt/nginx-1.6.2' test -d '/usr/local/opt/nginx-1.6.2/sbin' || mkdir -p '/usr/local/opt/nginx-1.6.2/sbin' test ! -f '/usr/local/opt/nginx-1.6.2/sbin/nginx' || mv '/usr/local/opt/nginx-1.6.2/sbin/nginx' '/usr/local/opt/nginx-1.6.2/sbin/nginx.old' cp objs/nginx '/usr/local/opt/nginx-1.6.2/sbin/nginx' test -d '/usr/local/opt/nginx-1.6.2/conf' || mkdir -p '/usr/local/opt/nginx-1.6.2/conf' cp conf/koi-win '/usr/local/opt/nginx-1.6.2/conf' cp conf/koi-utf '/usr/local/opt/nginx-1.6.2/conf' cp conf/win-utf '/usr/local/opt/nginx-1.6.2/conf' test -f '/usr/local/opt/nginx-1.6.2/conf/mime.types' || cp conf/mime.types '/usr/local/opt/nginx-1.6.2/conf' cp conf/mime.types '/usr/local/opt/nginx-1.6.2/conf/mime.types.default' test -f '/usr/local/opt/nginx-1.6.2/conf/fastcgi_params' || cp conf/fastcgi_params '/usr/local/opt/nginx-1.6.2/conf' cp conf/fastcgi_params '/usr/local/opt/nginx-1.6.2/conf/fastcgi_params.default' test -f '/usr/local/opt/nginx-1.6.2/conf/fastcgi.conf' || cp conf/fastcgi.conf '/usr/local/opt/nginx-1.6.2/conf' cp conf/fastcgi.conf '/usr/local/opt/nginx-1.6.2/conf/fastcgi.conf.default' test -f '/usr/local/opt/nginx-1.6.2/conf/uwsgi_params' || cp conf/uwsgi_params '/usr/local/opt/nginx-1.6.2/conf' cp conf/uwsgi_params '/usr/local/opt/nginx-1.6.2/conf/uwsgi_params.default' test -f '/usr/local/opt/nginx-1.6.2/conf/scgi_params' || cp conf/scgi_params '/usr/local/opt/nginx-1.6.2/conf' cp conf/scgi_params '/usr/local/opt/nginx-1.6.2/conf/scgi_params.default' test -f '/usr/local/opt/nginx-1.6.2/conf/nginx.conf' || cp conf/nginx.conf '/usr/local/opt/nginx-1.6.2/conf/nginx.conf' cp conf/nginx.conf '/usr/local/opt/nginx-1.6.2/conf/nginx.conf.default' test -d '/usr/local/opt/nginx-1.6.2/logs' || mkdir -p '/usr/local/opt/nginx-1.6.2/logs' test -d '/usr/local/opt/nginx-1.6.2/logs' || mkdir -p '/usr/local/opt/nginx-1.6.2/logs' test -d '/usr/local/opt/nginx-1.6.2/html' || cp -R html '/usr/local/opt/nginx-1.6.2' test -d '/usr/local/opt/nginx-1.6.2/logs' || mkdir -p '/usr/local/opt/nginx-1.6.2/logs' make[1]: Leaving directory/home/tingo/work/nginx-1.6.2' hmm, how to start it? tingo@kg-bpi:~/work/nginx-1.6.2$ l /usr/local/opt/nginx-1.6.2/* /usr/local/opt/nginx-1.6.2/conf: ./ fastcgi.conf.default koi-utf mime.types.default scgi_params uwsgi_params.default ../ fastcgi_params koi-win nginx.conf scgi_params.default win-utf fastcgi.conf fastcgi_params.default mime.types nginx.conf.default uwsgi_params

/usr/local/opt/nginx-1.6.2/html: ./ ../ 50x.html index.html

/usr/local/opt/nginx-1.6.2/logs: ./ ../

/usr/local/opt/nginx-1.6.2/sbin: ./ ../ nginx* no - no startup script to be seen. 2015-03-08: install nginx add the repository: tingo@kg-bpi:~$ sudo add-apt-repository ppa:nginx/stable [sudo] password for tingo: sudo: add-apt-repository: command not found ok, so Debian (or this Debian) doesn't have that command. I add the needed lines to /etc/apt/sources.list instead: deb http://nginx.org/packages/debian/ wheezy nginx deb-src http://nginx.org/packages/debian/ wheezy nginx then I need the signing key: root@kg-bpi ~ # wget -O - http://nginx.org/keys/nginx_signing.key | apt-key add - --2015-03-08 00:52:34-- http://nginx.org/keys/nginx_signing.key Resolving nginx.org (nginx.org)... 206.251.255.63 Connecting to nginx.org (nginx.org)|206.251.255.63|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 1559 (1.5K) [text/plain] Saving to: `STDOUT'

100%[===========================================================================>] 1,559 --.-K/s in 0s

2015-03-08 00:52:34 (26.4 MB/s) - written to stdout [1559/1559]

OK and update info: root@kg-bpi ~ # apt-get update [...] Fetched 682 kB in 25s (26.3 kB/s)
W: Failed to fetch http://nginx.org/packages/debian/dists/wheezy/Release Unable to find expected entry 'nginx/binary-armhf/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used instead. apt-get update 21.04s user 0.65s system 83% cpu 26.048 total ah, ok. No arm packages?

2015-03-07: install Python 3.4.3: tingo@kg-bpi:~/work/Python-3.4.3$ sudo make install [...] Ignoring indexes: https://pypi.python.org/simple Collecting setuptools Collecting pip Installing collected packages: pip, setuptools

Successfully installed pip-6.0.8 setuptools-12.0.5 cool. tingo@kg-bpi:~/work/Python-3.4.3$ /usr/local/opt/python-3.4.3/bin/python3.4 --version Python 3.4.3 it works. 2015-03-07: build Python 3.4.3: tingo@kg-bpi:~/work$ cd Python-3.4.3/ tingo@kg-bpi:~/work/Python-3.4.3$ ./configure --prefix=/usr/local/opt/python-3.4.3 [...] configure: creating ./config.status config.status: creating Makefile.pre config.status: creating Modules/Setup.config config.status: creating Misc/python.pc config.status: creating Misc/python-config.sh config.status: creating Modules/ld_so_aix config.status: creating pyconfig.h creating Modules/Setup creating Modules/Setup.local creating Makefile tingo@kg-bpi:~/work/Python-3.4.3$ make [...] /usr/bin/install -c -m 644 ./Tools/gdb/libpython.py python-gdb.py gcc -pthread -c -Wno-unused-result -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Werror=declaration-after-statement -I. -IInclude -I./Include -DPy_BUILD_CORE -o Modules/_testembed.o ./Modules/_testembed.c gcc -pthread -Xlinker -export-dynamic -o Modules/_testembed Modules/_testembed.o libpython3.4m.a -lpthread -ldl -lutil -lm

Substitution happens here, as the completely-expanded BINDIR

is not available in configure

sed -e "s,@EXENAME@,/usr/local/opt/python-3.4.3/bin/python3.4m," < ./Misc/python-config.in >python-config.py

Replace makefile compat. variable references with shell script compat. ones; ->

sed -e 's,\$(([A-Za-z0-9_]*)),\${\1},g' < Misc/python-config.sh >python-config

On Darwin, always use the python version of the script, the shell

version doesn't use the compiler customizations that are provided

in python (_osx_support.py).

if test uname -s = Darwin; then \ cp python-config.py python-config; \ fi which took a while. 2015-03-07: download latest Python 3.4: tingo@kg-bpi:~/dl$ wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz --2015-03-07 23:14:19-- https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz Resolving www.python.org (www.python.org)... 185.31.17.223 Connecting to www.python.org (www.python.org)|185.31.17.223|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 14421964 (14M) [application/octet-stream] Saving to: `Python-3.4.3.tar.xz'

100%[===========================================================================>] 14,421,964 3.87M/s in 4.4s

2015-03-07 23:14:27 (3.16 MB/s) - `Python-3.4.3.tar.xz' saved [14421964/14421964] done. Unpack it: tingo@kg-bpi:~/dl$ cd tingo@kg-bpi:~$ mkdir work tingo@kg-bpi:~$ cd work tingo@kg-bpi:~/work$ tar xvf ~/dl/Python-3.4.3.tar.xz [...] Python-3.4.3/Misc/vgrindefs Python-3.4.3/Misc/python.man Python-3.4.3/Misc/README Python-3.4.3/Misc/indent.pro done. 2015-03-07: install prerequisites (before installing Python 3.4): tingo@kg-bpi:~$ sudo apt-get install build-essential libncurses5-dev libncursesw5-dev libreadline6-dev libdb5.1-dev libgdbm-dev libsqlite3-dev libssl-dev libbz2-dev libexpat1-dev liblzma-dev zlib1g-dev Reading package lists... Done Building dependency tree
Reading state information... Done The following extra packages will be installed: binutils bzip2 cpp cpp-4.6 dpkg-dev g++ g++-4.6 gcc gcc-4.6 gcc-4.6-base libc-dev-bin libc6-dev libclass-isa-perl libdpkg-perl libexpat1 libgmp10 libgomp1 libmpc2 libmpfr4 libstdc++6-4.6-dev libswitch-perl libtimedate-perl libtinfo-dev linux-libc-dev make patch perl perl-modules Suggested packages: binutils-doc bzip2-doc cpp-doc gcc-4.6-locales debian-keyring gcc-4.6-doc libstdc++6-4.6-dbg gcc-multilib manpages-dev autoconf automake1.9 libtool flex bison gdb gcc-doc libmudflap0-4.6-dev libgcc1-dbg libgomp1-dbg libquadmath-dbg libmudflap0-dbg binutils-gold glibc-doc db5.1-doc liblzma-doc ncurses-doc sqlite3-doc libstdc++6-4.6-doc make-doc ed diffutils-doc perl-doc libterm-readline-gnu-perl libterm-readline-perl-perl libpod-plainer-perl Recommended packages: fakeroot libalgorithm-merge-perl libfile-fcntllock-perl libssl-doc The following NEW packages will be installed: binutils build-essential bzip2 cpp cpp-4.6 dpkg-dev g++ g++-4.6 gcc gcc-4.6 gcc-4.6-base libbz2-dev libc-dev-bin libc6-dev libclass-isa-perl libdb5.1-dev libdpkg-perl libexpat1 libexpat1-dev libgdbm-dev libgmp10 libgomp1 liblzma-dev libmpc2 libmpfr4 libncurses5-dev libncursesw5-dev libreadline6-dev libsqlite3-dev libssl-dev libstdc++6-4.6-dev libswitch-perl libtimedate-perl libtinfo-dev linux-libc-dev make patch perl perl-modules zlib1g-dev 0 upgraded, 40 newly installed, 0 to remove and 0 not upgraded. Need to get 38.0 MB of archives. After this operation, 102 MB of additional disk space will be used. Do you want to continue [Y/n]? [...] update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode Setting up libtimedate-perl (1.2000-1) ... Setting up libdpkg-perl (1.16.15) ... Setting up dpkg-dev (1.16.15) ... Setting up build-essential (11.5+b1) ... did it take much space? tingo@kg-bpi:~$ df -h Filesystem Size Used Avail Use% Mounted on rootfs 3.7G 1.1G 2.5G 30% / /dev/root 3.7G 1.1G 2.5G 30% / devtmpfs 486M 0 486M 0% /dev tmpfs 98M 204K 97M 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 195M 0 195M 0% /run/shm nope. 2015-03-07: before installing anything more: tingo@kg-bpi:~$ df -h Filesystem Size Used Avail Use% Mounted on rootfs 3.7G 922M 2.6G 26% / /dev/root 3.7G 922M 2.6G 26% / devtmpfs 486M 0 486M 0% /dev tmpfs 98M 204K 97M 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 195M 0 195M 0% /run/shm mounts tingo@kg-bpi:~$ mount /dev/root on / type ext4 (rw,noatime,data=ordered) devtmpfs on /dev type devtmpfs (rw,relatime,size=496784k,nr_inodes=124196,mode=755) tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=99380k,mode=755) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=198760k) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) ready. 2015-03-07: add the magic to turn off the blinking green LED to the /etc/rc.local script:

turn off the blinking green led

echo none > /sys/class/leds/green\:ph24\:led1/trigger good. 2015-03-07: change hostname: root@bananapi ~ # cat /etc/hostname kg-bpi.kg4.no after a reboot, it will change. 2015-03-07: change sshd config from: root@bananapi ~ # grep ^PermitRootLogin /etc/ssh/sshd_config PermitRootLogin yes to "no" by editing the file: root@bananapi ~ # grep ^PermitRootLogin /etc/ssh/sshd_config PermitRootLogin no and then restart the service: root@bananapi ~ # invoke-rc.d ssh restart [ ok ] Restarting OpenBSD Secure Shell server: sshd. Test it by trying a root ssh from a different shell: tingo@kg-core1$ ssh root@10.1.161.3 root@10.1.161.3's password: Permission denied, please try again. root@10.1.161.3's password: Permission denied, please try again. root@10.1.161.3's password: Permission denied (publickey,password). it works - good. 2015-03-07: is sudo available? root@bananapi ~ # apt-cache search ^sudo gnome-sudoku - Sudoku puzzle game for GNOME gosa-plugin-sudo - sudo plugin for GOsa² ksudoku - Sudoku puzzle game and solver kdesudo - sudo frontend for KDE sudo - Provide limited super user privileges to specific users sudo-ldap - Provide limited super user privileges to specific users sudoku - console based sudoku yep. Install it: root@bananapi ~ # apt-get install sudo Reading package lists... Done Building dependency tree
Reading state information... Done The following NEW packages will be installed: sudo 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 820 kB of archives. After this operation, 1,714 kB of additional disk space will be used. Get:1 http://ftp.de.debian.org/debian/ wheezy/main sudo armhf 1.8.5p2-1+nmu1 [820 kB] Fetched 820 kB in 1s (433 kB/s) Selecting previously unselected package sudo. (Reading database ... 13885 files and directories currently installed.) Unpacking sudo (from .../sudo_1.8.5p2-1+nmu1_armhf.deb) ... Processing triggers for man-db ... Setting up sudo (1.8.5p2-1+nmu1) ... apt-get install sudo 4.98s user 1.37s system 20% cpu 30.883 total Check /etc/sudoers to see if everything is set up. Ok, I need to add my uer to the 'sudo' group: root@bananapi ~ # adduser tingo sudo Adding user tingo' to groupsudo' ... Adding user tingo to group sudo Done. heh. 2015-03-07: add a user: root@bananapi ~ # adduser tingo Adding user tingo' ... Adding new grouptingo' (1000) ... Adding new user tingo' (1000) with grouptingo' ... Creating home directory /home/tingo' ... Copying files from/etc/skel' ... Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Changing the user information for tingo Enter the new value, or press ENTER for the default Full Name []: Torfinn Ingolfsen (BPi) Room Number []: Work Phone []: Home Phone []: Other []: Is the information correct? [Y/n] root@bananapi ~ # done. 2015-03-07: adding to /ec/dhcp/dhclient.conf: send dhcp-client-identifier "kg-bpi.kg4.no"; (I have already prepared dns and dhcp server, so I will get a "static" ip address).

2015-03-02: turning off the blinking green LED (from the Bananian FAQ): root@bananapi ~ # echo none > /sys/class/leds/green\:ph24\:led1/trigger nice. 2015-03-02: login again: tingo@kg-core1$ ssh root@10.1.161.3 root@10.1.161.3's password: Linux bananapi 3.4.104+ #1 SMP PREEMPT Thu Jan 8 15:40:40 CET 2015 armv7l


Welcome to Bananian Linux! For news and updates check: https://www.bananian.org Any questions? Read the FAQ first: https://www.bananian.org/faq

Run 'bananian-config' to set up Bananian Linux Run 'bananian-update' to check for distribution updates


Last login: Mon Mar 2 21:57:25 2015 root@bananapi ~ # and check stuff: root@bananapi ~ # uname -a Linux bananapi 3.4.104+ #1 SMP PREEMPT Thu Jan 8 15:40:40 CET 2015 armv7l GNU/Linux root@bananapi ~ # lsb_release -a zsh: command not found: lsb_release ok, version files then? root@bananapi ~ # ls -l /etc/version :( -rw-r--r-- 1 root root 7 Jan 8 20:37 /etc/bananian_version -rw-r--r-- 1 root root 4 Dec 24 14:40 /etc/debian_version root@bananapi ~ # root@bananapi ~ # cat /etc/bananian_version 150101 root@bananapi ~ # cat /etc/debian_version 7.8 ok. disk layout and so on: root@bananapi ~ # df -h Filesystem Size Used Avail Use% Mounted on rootfs 3.7G 919M 2.6G 26% / /dev/root 3.7G 919M 2.6G 26% / devtmpfs 486M 0 486M 0% /dev tmpfs 98M 244K 97M 1% /run tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 195M 0 195M 0% /run/shm root@bananapi ~ # mount /dev/root on / type ext4 (rw,noatime,data=ordered) devtmpfs on /dev type devtmpfs (rw,relatime,size=496784k,nr_inodes=124196,mode=755) tmpfs on /run type tmpfs (rw,nosuid,noexec,relatime,size=99380k,mode=755) tmpfs on /run/lock type tmpfs (rw,nosuid,nodev,noexec,relatime,size=5120k) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) tmpfs on /run/shm type tmpfs (rw,nosuid,nodev,noexec,relatime,size=198760k) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000) boot (ms-dos) partition doesn't seem to be mounted. lsusb output: root@bananapi ~ # lsusb Bus 002 Device 002: ID 046a:0001 Cherry GmbH My3000 Keyboard Bus 004 Device 002: ID 045e:077a Microsoft Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub (Cherry keyboard, Microsoft Express mouse) 2015-03-02: testing: I insert the SDcard into the Banana Pi, connect the HDMI cable, ethernet cable, usb mouse, usb keyboard. Finally, I connect the usb charger to the micro usb connector (next to the SATA connector). A red LED turns on, and after a while a green LED starts blinking and the machine boots. As soon as the login shows, I login and change the root password. Network login: tingo@kg-core1$ ssh root@10.1.161.3 The authenticity of host '10.1.161.3 (10.1.161.3)' can't be established. RSA key fingerprint is 9c:01:be:6f:52:a5:6b:d6:2d:4e:ae:58:a3:26:39:48. Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added '10.1.161.3' (RSA) to the list of known hosts. root@10.1.161.3's password: Linux bananapi 3.4.104+ #1 SMP PREEMPT Thu Jan 8 15:40:40 CET 2015 armv7l


Welcome to Bananian Linux! For news and updates check: https://www.bananian.org Any questions? Read the FAQ first: https://www.bananian.org/faq

Run 'bananian-config' to set up Bananian Linux Run 'bananian-update' to check for distribution updates


Last login: Mon Mar 2 20:39:27 2015 root@bananapi ~ # ok, run bananian-config then. I changed keybaord layout (to Norwegian), timezone to Europe/Oslo, locale to nn_NO.UTF-8, expand root file system, then I rebbot via shutdown -r now.

2015-03-02: writing the latest Bananian Linux(15.01) to a 4 GB Lexar SDHC class 4 card (recommended: class 10, minimum 2 GB). I'm using the v7 machine:

tingo@kg-v7$ uname -a
FreeBSD kg-v7.kg4.no 10.1-STABLE FreeBSD 10.1-STABLE #0 r278322: Fri Feb  6 21:36:01 CET 2015     root@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

the image:

tingo@kg-v7$ pwd
/home/tingo/dl
tingo@kg-v7$ ls -lh ban*
-rw-r-----  1 tingo  users   149M Mar  2 20:21 bananian-15.01.zip
-rw-r--r--  1 tingo  users   1.9G Jan 11 13:02 bananian-1501.img

the SDcard shows up as:

tingo@kg-v7$ l /dev/da*
/dev/da0    /dev/da0s1  /dev/da1    /dev/da2

ok, so da0 it is. Write the image:

root@kg-v7# dd if=./bananian-1501.img of=/dev/da0 bs=1M
1938+1 records in
1938+1 records out
2032664576 bytes transferred in 287.276410 secs (7075640 bytes/sec)

that was about 2 mins 47 seconds. What does the card look like now?

root@kg-v7# ll /dev/da0*
crw-r-----  1 root  operator  - 0xdf Mar  2 20:43 /dev/da0
crw-r-----  1 root  operator  - 0xe1 Mar  2 20:43 /dev/da0s1
crw-r-----  1 root  operator  - 0xe4 Mar  2 20:43 /dev/da0s2

disktype output:

root@kg-v7# disktype /dev/da0*

--- /dev/da0
Character device, size 3.733 GiB (4008706048 bytes)
DOS/MBR partition map
Partition 1: 20 MiB (20971520 bytes, 40960 sectors from 2048)
  Type 0x83 (Linux)
  FAT16 file system (hints score 5 of 5)
    Volume size 19.94 MiB (20912128 bytes, 10211 clusters of 2 KiB)
Partition 2: 1.873 GiB (2010644480 bytes, 3927040 sectors from 43008)
  Type 0x83 (Linux)
  Ext3 file system
    UUID 1AF97748-34B7-4A6E-A16D-29C409D9C367 (DCE, v4)
    Last mounted at "/"
    Volume size 1.873 GiB (2010644480 bytes, 490880 blocks of 4 KiB)

--- /dev/da0s1
Character device, size 20 MiB (20971520 bytes)
FAT16 file system (hints score 5 of 5)
  Volume size 19.94 MiB (20912128 bytes, 10211 clusters of 2 KiB)

--- /dev/da0s2
Character device, size 1.873 GiB (2010644480 bytes)
Ext3 file system
  UUID 1AF97748-34B7-4A6E-A16D-29C409D9C367 (DCE, v4)
  Last mounted at "/"
  Volume size 1.873 GiB (2010644480 bytes, 490880 blocks of 4 KiB)

ok, let's mount da0s1 and check out contents:

root@kg-v7# mount -t msdosfs /dev/da0s1 /mnt
root@kg-v7# df -h /mnt
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/da0s1     20M    5.1M     15M    25%    /mnt

list contents:

root@kg-v7# ll /mnt
total 4710
drwxr-xr-x   1 root  wheel  -       16384 Jan  1  1980 ./
drwxr-xr-x  19 root  wheel  -        1024 Feb 15 14:27 ../
drwxr-xr-x   1 root  wheel  -        2048 Jan  8 20:31 fex/
-rwxr-xr-x   1 root  wheel  uarch   51000 Nov 19 09:53 script.bin*
-rwxr-xr-x   1 root  wheel  uarch     378 Sep  5 22:36 uEnv.txt*
-rwxr-xr-x   1 root  wheel  uarch     378 Sep  5 22:36 uEnv.txt.video-acc-off*
-rwxr-xr-x   1 root  wheel  uarch     331 Sep  3 21:48 uEnv.txt.video-acc-on*
-rwxr-xr-x   1 root  wheel  uarch 4741296 Jan  8 20:33 uImage*
root@kg-v7# ll /mnt/fex
total 30
drwxr-xr-x  1 root  wheel  -  2048 Jan  8 20:31 ./
drwxr-xr-x  1 root  wheel  - 16384 Jan  1  1980 ../
drwxr-xr-x  1 root  wheel  -  2048 Jan  8 21:19 BPI-R1/
drwxr-xr-x  1 root  wheel  -  2048 Jan  8 20:31 BananaPi/
drwxr-xr-x  1 root  wheel  -  2048 Jan  8 20:31 BananaPi-OTG/
drwxr-xr-x  1 root  wheel  -  2048 Jan  8 20:31 BananaPro/
drwxr-xr-x  1 root  wheel  -  2048 Jan  8 20:31 BananaPro-OTG/
drwxr-xr-x  1 root  wheel  -  2048 Jan  8 20:31 OLinuXIno-LIME2/
root@kg-v7# ll /mnt/fex/BananaPi/
total 82
drwxr-xr-x  1 root  wheel  -      2048 Jan  8 20:31 ./
drwxr-xr-x  1 root  wheel  -      2048 Jan  8 20:31 ../
-rwxr-xr-x  1 root  wheel  uarch 51000 Jan  8 15:42 script.bin*
-rwxr-xr-x  1 root  wheel  uarch 28423 Jan  8 15:27 script.fex*

interesting. File output:

root@kg-v7# file /mnt/*
/mnt/fex:                    directory
/mnt/script.bin:             ps database
/mnt/uEnv.txt:               ASCII text
/mnt/uEnv.txt.video-acc-off: ASCII text
/mnt/uEnv.txt.video-acc-on:  ASCII text
/mnt/uImage:                 u-boot legacy uImage, Linux-3.4.104+, Linux/ARM, OS Kernel Image (Not compressed), 4741232 bytes, Thu Jan  8 15:40:43 2015, Load Address: 0x40008000, Entry Point: 0x40008000, Header CRC: 0x888CA9F1, Data CRC: 0x8402C9FF
root@kg-v7# file /mnt/fex/BananaPi/*
/mnt/fex/BananaPi/script.bin: ps database
/mnt/fex/BananaPi/script.fex: ASCII text

contents of files:

root@kg-v7# head /mnt/fex/BananaPi/script.fex
[product]
version = "100"
machine = "bananapi"

[platform]
eraseflag = 0

[target]
boot_clock = 912
dcdc2_vol = 1450

how about the other files?

root@kg-v7# more /mnt/uEnv.txt
bootargs=console=ttyS0,115200 console=tty0 sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0 disp.screen0_output_mode=EDID:1280x720p50 hdmi.audio=EDID:0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
aload_script=fatload mmc 0 0x43000000 script.bin;
aload_kernel=fatload mmc 0 0x48000000 uImage; bootm 0x48000000;
uenvcmd=run aload_script aload_kernel
root@kg-v7# more /mnt/uEnv.txt.video-acc-off
bootargs=console=ttyS0,115200 console=tty0 sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0 disp.screen0_output_mode=EDID:1280x720p50 hdmi.audio=EDID:0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
aload_script=fatload mmc 0 0x43000000 script.bin;
aload_kernel=fatload mmc 0 0x48000000 uImage; bootm 0x48000000;
uenvcmd=run aload_script aload_kernel
root@kg-v7# more /mnt/uEnv.txt.video-acc-on
bootargs=console=ttyS0,115200 console=tty0 disp.screen0_output_mode=EDID:1280x720p50 hdmi.audio=EDID:0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
aload_script=fatload mmc 0 0x43000000 script.bin;
aload_kernel=fatload mmc 0 0x48000000 uImage; bootm 0x48000000;
uenvcmd=run aload_script aload_kernel

ok, so that's just uBoot config. done poking around:

root@kg-v7# umount /mnt

now, go and try it.