Friday, September 9, 2016

IoT for Swimming pools: Zwave temperature sensor


Temperature sensor DS18B20 is a great product! It's cheap and internet is full of cheap waterproof cables with DS18B20 sensors. The sensor works in wide range of temperatures, from -55C to +125C. That happens to be the normal operating temperature of Finnish people. I need temperature sensor for yard temperature and in Helsinki area the lowest temperatures can be -25C. The lowest I've been in was around -40C( in northern Finland). And the Finns have sauna's. The highest temperatures in sauna can be +110C, DS18B20 should handle that as well. The I need to be able to measure the temps of my swimming pool. DS18B20 cables are mostly waterproof, so it works there also. Great product!


The sensor uses 1-wire-protocol that only needs two or three wires. One for ground, one for data and additional third wire for extra power for more cable length. You can add several 1-wire sensors in one network. Every 1-wire device has an unique address.

Fibaro Universal Sensor (Zwave) can read up to four DS18B20 1-wire sensors. The product is only a board, without any case or power (battery or transformer ).


The device is powered with two wires at the bottom, GNP & P. I bought simple 9V transformer and soldered a DC connector for it to GND and P wires.

For 1-wire I decided to use simple 3,5mm stereo plugs. GND was ground of course and I used tip connector for data and middle for power. It doesn't matter of course which ones you use, just be consistent ;)

Using stereo plugs for connecting 1-wire also made connecting three temperature sensors a lot easier. You don't have to solder 3+3 stereo plugs. Just solder 3+1 and then simply buy stereo plug dividers.



My current "case", a plastic bag. The Universal sensor is inside the bag and it has two connectors outside, the power and stereo audio.

Then I bought two pieces of (electrician's) 2m plastic pipe, so that the one with the smaller diameter could go inside the larger one. (I could not find straight pipe that was three meters long ). I filled the larger one with sand and made some bends so that it fits in the corner of my swimming pool. Painted the pipes with white epoxy water-resistant paint and waited for 6 days paint to dry. 



There are three sensors inside in different depths. The pipe is open because the sensors are water-proof. I might seal it later with silicon.


The measurements go to Raspberry Pi3 with Home Assistant python-based home automation system. The data is recorded to InfluxDB time-series database and Grafana is used for reporting graphs.

Right now the sensor temps are: 20,9C , 20,7C and 20,2C. I keep my pool water at about 21C because it nice to have it a bit chilly when you go swimming while having a sauna. Because I'm a Finn :)

Tuesday, August 23, 2016

Miltä näyttää oikea tiikki?

Pyöriessäni huuto.netin ihmeellisessä maailmassa huomasin että tiikkinä myydään kaikenlaista puuta.
Huonekaluvalmistajat tietenkin ovat sekaannuksen takana kun terassikalusteita myydään kovapuuna, mutta unohdetaan sanoa että se ei ole mikään standardi ts. sen alle on tuupattu parisenkymmentä eri puulajia. Tiikki puolestaan luokitellaan niistä parhaimmaksi, mistä johtuu että tiikki myydään tiikkinä ja muut kovapuuna. Kauppias joka siis myy aitoa tiikkiä kovapuuna on huono kauppias. Kauppias joka on saanut myytyä asiakkaalle kovapuuta tiikkinä on varmaan omasta mielestään hyvä kauppias.

Kun netistä yritin etsiä kuvaa tiikistä, niin yllättävän vaikea oli löytää edustavia kuvia tiikistä sellaisena kuin minä sen ymmärrän. Joten otin kuvat omasta tiikkisestä terassisetistäni.



Tiikkinen pieni taitettava kahvipöytä. En ole öljynnyt pariin vuoteen, ts. "pitäisi".


Yläkulmassa jokin ruskea tahra, muutoin arvokkaasti vanhentunut.


Lähempää tiikin pintakuviota.



Pintakuvio kertoo että selkeästi samaa puuta kuin pöytä. Puun pinta on miellyttävää sekä puun kovuudesta kertoo että reunat ovat vielä melko teräviä ts. eivät käytössä pyöristyneitä. Kun nyt selvittelin mitä kaikkea huuto.netissä yritetään myydä tiikkinä, kaivoin myös tämän setin ostopäivän esille ja yllätys oli suuri kun tajusin että ne ovat kulkeneet mukana jo 16 vuotta! Jokaisessa osassa on merkintä 'Isku Teak collection'. Tästä nähdään että kannattaa ostaa laatua. Se setti mitä minulle tarjottiin, näytti paljon nuhruisemalta vaikka ikää sillä oli vain 8 vuotta. Luulin että voin ostaa tiikkikalusteita huoletta mutta kaikilla ei taida olla käsitystä mitä on tiikki, ja miksi tiikki on arvostettu.

Wednesday, August 10, 2016

The "Hillary Clinton tongue cancer"-hoax


There seems to be some "alternative media" sites talking about pictures of a hole in Hillary Clinton's tongue.







Infowars:Hillary Clinton’s Health In Rapid Decline


Christian Times:BREAKING: Hillary has tongue cancer, doctor admits (they even consulted a doctor, how christian of them!)
Clapway:Hillary Clinton Got Cancer Because of Her Lesbian Past? (wow!)
Fellowship of the Minds:Is the hole in Hillary Clinton’s tongue from cancer surgery?

It took me 10-20 minutes to find pictures of 2016 Democratic National Convention where there's no hole in Hillary's tongue:



So somebody had some "fun" with Photoshop?

How hard it would be to check the facts before posting "news"?

Thursday, August 4, 2016

Eye-fi Mobi Pro 32 Gt SDHC WiFi memory card - works without internet access to cloud!


I read a lot of reviews before decided to buy Eye-fi memory card because I wanted to be sure the card works without internet access or access to Eye-fi cloud.


The card has "infrastructure mode" in which your card makes connection to your existing wifi network and downloads your pictures automatically to your pc. Or you can download the pictures also to Eye-fi's cloud. But what I was looking for was certainty that I could use infrastructure mode without needing access to Eye-fi. It seemed the infrastructure mode was what I was looking for.

After I bought the card it turned out the card still needs access to Eye-fi even if you don't use the cloud to store the pictures. The card needs to find the location of your pc (the IP address inside your home network ) and it acquires that by first connecting to Eye-fi's cloud. Your pc is also connected to same cloud (with same card key) and your card can then get your pc's internal IP.

Here's some conversation about this:
https://mobihelp.eyefi.com/hc/en-us/community/posts/206086143-Infrastructure-Support
I'm not quite sure about the explanation because there's something about WPS(wifi) keys and your card already has wifi keys before you connect to wifi...

But there you have it, you need the internet connection...

But...your card already has now your pc's IP after you have made the first connection. What if you now turn off your internet access? It can't connect to Eye-fi cloud but if you have static IP address for your PC, the card can connect using IP acquired earlier!

Tested! It works!
You just have to make sure your pc has static IP and make the first connection to Eye-fi cloud. After that the cloud connection is not needed. You can also give your Eye-fi card static IP and block it's outside internet access.

Friday, June 24, 2016

QuickLock - köysilukko

Kesän tuotepuffaus mutta tämä tulee kyllä tarpeeseen. Monessa paikassa tarvinnut yksinkertaista, halpaa, nopeaa köysilukkoa.

http://quicklock.fi/

Hienosti pistetty myös vetoluujuudet. Tannoin selvittelin rautakauppakaman vetolujuuksia niin kukaanhan ei koskaan myönnä mitään, jottei joudu vastuuseen. Veneilytarvikkeet ovat sitten erikseen vetolujuuksien suhteen mutta niissä on myös veneilytarvikkeiden hinnat.


Samantien ostin kasan noita ja puolet jo on mennyt erinäisiin lopullisiin tai keskeneräisiin viritelmiin.

En saa näistä mitään provikkaa. Tämän vain on juuri sitä mitä olen tarvinnut.

Friday, April 8, 2016

Osram Lightify Gardenspot Mini RGB: Color gamut and spectrum


Osram Lightify Gardenspot Mini RGB has, as its name says, only RGB leds so no W led to bring adjustable color temperatures and good CRI's.


Gardenspot RGB has almost the same gamut than Flex RGBW.

The primaries I picked were :



x y
Red 0,687217 0,312133
Green 0,191336 0,740145
Blue 0,172741 0,068225



Because these RGB leds create the white color combined, don't expect great CRI's. That spectrum means if you have in your garden a color of wavelength 580nm(orange), it is not shown properly because there's no light in that wavelength. It can create a light that shows in your eyes as orange but if you have something that is that pure 580nm wavelength orange, it does not get illuminated in these lights. These lights are only meant for outside effect light use.

Thursday, April 7, 2016

Osram Lightify Flex RGBW: Color gamut and spectrum


I have used Osram Lightify Flex RGBW for sometime now, and decided to finally measure it's light "quality".

First I selected primary colors from Osram's app's color circle. For measurements I used Colormunki Photo spectrophotometer and ArgyllCMS software. The selected colors were not precisely primary colors, "pure" one-led-only colors, but close enough.


Osram Flex RGBW has noticeably more saturated green than the Classic RGBW bulb. It even extends beyond AdobeRGB gamut.

The primaries I picked were :


x y
Red
0,686796
0,308212
Green
0,153725
0,716216
Blue
0,145073
0,107427

If you mix different lights and vendors, the problem will be, that they all may have different gamuts and if you want to have consistent colors in your lights, you would either have to have identical lights or have some kind of CMS for lights.

When you select the light color from color circle, Flex uses the RGB leds. When you select the color from color temperature circle, Flex uses primarily the W led and mixes it with a hint of R,G or B leds. But the W led has the best CRI, so the high CRI's can only be achieved by selecting the tone from color temperature circle.


As you can see, all RGB primaries are very spiky, and cannot be combined into high-CRI curve like the White led has.
The Blue color is not pure blue, it has some red in it but I was lazy and didn't want to remeasure.

Here are the measurements for white when I selected 6500K as a color temperature from Android App:

                                          CCT = 5982K (Delta E 17.543076)
 Closest Planckian temperature = 7047K (Delta E 14.935616)
 Closest Daylight temperature  = 7411K (Delta E 18.221274)
 Color Rendering Index (Ra) = 82.4