Skip to main content

singaporen geeks unite

This post is a tribute to all you singaporean linux geeks out there. You will definately have strong feeling about this post, either good or bad.

Blog search "linux singapore" and you might come in contact with this article

http://fossplanet.osdir.com/Article6702.phtml which links to
http://www.linuxworld.com.au/index.php/id;1512589723;fp;2;fpid;1

dated 03/08/2005 15:11:17 Ok, so this is is real recent right? Beat this comment.

"The Infocomm Development Authority of Singapore (IDA) Technology Group has positioned Linux as a medium term technology bet, which means one to three years to mass adoption." Read on for more marketing.

For those new to linux this might actually mean something good to you, but for those who already know linux and the culture that developed it. Its basically putting it into a box and sticking a label on it. Well looking on the bright side, to some extent there is some focus on it now, although it doesn't sound right how its being brought across.

(clause: Linux isn't equal to open source, but i'm using it as an example.)

No doubt the culture of "Ai Pi, Ai Chi" (sorry about the spelling, feel free to correct me) Think that means want cheap, want "something or other" appeals to the corporate culture, but that isn't what it means for me (a person that sticks a linux box in and run opensource software whenever I can). To me, its FREEDOM. The unclutter from the corporate world dominated by the anal CIO and flashy salespitch.

Linux and open sourse is a break out of convention. Stop the rules, put anything you want in it coz we really dont care attitute. Forget govenance. If you think that you can't stick what you want into an existing distribution, why worry? Create a new distribution. This has led linux to the fully frilled and fat operating system it is today.

I'd like to see authorities control that. Code is very available and let the best exploit win. Lets see, does this mean creativity? Oh no, quick call the education department, we need to put a curriculum in place.

2 years ago I read a POV stating that linux/open source was bad. Early this year, I read a POV released from the same source that its now a great idea. The excuse being the technology needed to mature.

Side note; Apple? Open Source? Bwahahahaha!!! Think they are just trying to hide behind darwin.

Sign me up for SOSA! Hopefully some good will come out of it. Hope i can tahan the bureaucracy, but this organisation should really rock the boat for conventional computing.

If we dont change our culture, an amount of technology can save us. Live long and prosper.

Comments

Popular posts from this blog

Multiple Broadlink RM mini 3 integration using MQTT

Broadlink now has quite a lot of integration options almost out of the box. If you enable Broadlink IHC, you can directly link it to Alexa by giving the device a unique name.

There is a homebridge plug in for homekit integration but I haven't tried or tested this. https://lprhodes.github.io/slate/

I wanted to put the device in domoticz so I can have more control over what can trigger my broadlink. I decided to use broadlink-mqtt for this, which is a fairly easy method to trigger from any source.

Setup Instructions for broadlink-mqtt

1. git clone https://github.com/eschava/broadlink-mqtt

2. vi /home/pi/broadlink-mqtt/mqtt.conf

3. Update the mqtt.conf file with the device type set as multiple_lookup

device_type = 'multiple_lookup'
mqtt_multiple_subprefix_format = '{type}_{mac_nic}/'
4. Start the python script and check that it started and detected all the RM devices.
Check the log file to see what the IP / MAC addresses are. DEBUG Connected to RM2 Broadlink device at …

Fibaro HCL Virtual Device Slider

How to setup Fibaro home center lite (HCL) slider for virtual devices.

As the Fibaro HCL does not support LUA. The question was how to update the number value of the slider to send to the HTTP string. Thanks to this site which is a really good reference https://www.vesternet.com/resources/application-notes/apnt-88/

The 2 use cases here are;

Sonos HTTP API Volume

To allow for volume control for all Sonos devices, add a virtual device with the IP address for SONOS HTTP API and specify the default port to 5005. Create Slider and put the following text into the string.

GET /volume/_sliderValue_ HTTP/1.10x0D0x0A0x0D0x0A


Domotiz Virtual Devices

GET /json.htm?type=command&param=switchlight&idx=XX&switchcmd=Set%20Level&level=_sliderValue_ HTTP/1.10x0D0x0A0x0D0x0A

Replace XX with the device ID.

Restart Fibaro HCL when it stops working automatically

It seems that the Fibaro HCL seems to hang every now and then. Instead of trying to restart it regularly, which doesn't really work, as it's almost impossible to predict when this will happen.

This method checks that the HCL is actually running and in the event it stops working, trigger a script that will restart it.


1. Get a non Fibaro controlled power plug and scripts to control it.

I used a wifi smart plug, TP-link HS100 and downloaded the scripts from

https://blog.georgovassilis.com/2016/05/07/controlling-the-tp-link-hs100-wi-fi-smart-plug/

2. Create a bash script to restart the Fibaro, e.g. restart_fibaro.sh

#!/bin/bash

ip_addr=
scripts=

$scripts/tplink-smartplug.py -t $ip_addr -c off
sleep 10
$scripts/tplink-smartplug.py -t $ip_addr -c on


3. Create a test global variable in the Fibaro HCL

Go to the variables panel and create a test variable, e.g. Test


4. Add a cron entry to test that the Fibaro API is still working and restart if it's not.

The cron script is scheduled ev…