Showing posts with label Raspberry Pi 2. Show all posts
Showing posts with label Raspberry Pi 2. Show all posts

07 March, 2016

rtl_433: simple text monitoring panel

There is this really nice rtl_433 "application using librtlsdr to decode the temperature from a wireless temperature sensor (433.92MHz)"  https://github.com/merbanan/rtl_433 which does exactly what is says. 

I just thought that I can write a simple script that will keep showing only the latest decoded data.
As one can see in the example output, further below, some of the sensors sends the data 3 times and if you have couple of them the data starts to get a bit difficult to read. With a small awk script (tailored for my needs) I can get this simple output that contains only the interesting data and few colors to prettify it:

===================================================================================
|        Time         |               Name             |  ID  |  Temp |   %  | Bat
===================================================================================
| 2016-03-07 10:26:19 | Gym - WT450                    |   61 |   5.4 |  84% | OK
| 2016-03-07 10:26:13 | Outdoor - Nexus                |   92 |   1.5 |  90% | OK
| 2016-03-07 10:25:51 | Indoor  - WT450                |  131 |  20.1 |  27% | OK
| 2016-03-07 10:25:45 | Outdoor - WT450                |  151 |   2.0 |  94% | OK
| 2016-03-07 10:25:37 | Ventilation - Nexus            | 1281 |  17.8 |   0% | OK
===================================================================================

01 May, 2015

Tellstick Duo revisited

For one or another reason I have replaced/upgraded my first Raspberry Pi (RPi) /256MB RAM/ with the latest RPi2 - the advantages are kind of obvious. I used to run the old telldus-core and now it was perfect time to upgrade it and rewrite my programs written in python with bash script using the new features in telldus-core-2.1.2.

I have tried before but failed with the device recognition and lost my patience to find the cause for the problem i.e. missing controller configuration - here is the solution.

There is really nice way to compile everything in a very clean way: instructions written in Swedish (perhaps here as well ). I got tempted to try the GUI suggested there but the repository was 5 years old which was clear NO to me.

Anyway, before I had python program running as a daemon to log selected device events and automate different switches + poor man's security monitoring solution. The only reason I was using python is to catch device and sensors triggered interrupts.

07 February, 2015

Raspberry Pi 2: tigervnc - the easy way

For a long time I wanted to use a Raspberry Pi (RPi) as a VNC client to my linux machines. The first RPi was a bit too slow for all the tests I have done, so I simply gave up on it.

With the new version, I thought this might work... Unfortunately, the VNC clients packed with the Raspbian image repositories are performing poorly, with one exception - ssvnc (after some tweaking), but the programs last update was in 2011... and I want to change F8 to something else...

Then, here is the long story short.

I remembered that Thinlinc is using TigerVNC in their product and they have ARMv7 hard-fload version on their download page: https://www.cendio.com/thinlinc/download . I have downloaded the Linux Dynamic package for this purpose. After extracting the package, one simply needs to run this binary:


tl-4.3.0-4538-client-linux-dynamic-armhf/lib/tlclient/vncviewer

Enjoy!
Thanks to the ThinLinc team.

Update 2015.03.27: RealVNC binaries for Raspberry PI can be downloaded from the software developer's page http://www.realvnc.com/download/viewer/