Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - rwblinn

Pages: 1 [2] 3
16
General Discussion / MQTT Proxy Support RGB LED Bricklet
« on: July 18, 2016, 19:42:51 »
Hi,

noticed that the new RGB LED Bricklet is not icluded in the MQTT Proxy.

Any information by when the RGB LED Bricklet will be supported.

Appreciated.

17
General Discussion / Node-RED Guidance TinkerForge Bricklets
« on: July 16, 2016, 14:17:07 »
Hi,

is there guidance available on how to use the TinkerForge Javascript Bindings in Node-RED.

Have tried to define a simple call to an ambilight bricklet in a Node-RED function, but received error 31=timeout.
Code: [Select]
//var Tinkerforge = require('/usr/lib/node_modules/tinkerforge');
var Tinkerforge = context.global.tinkerforge;
var HOST = '192.168.0.88';
var PORT = 4223;
var UID = 'mdh';
var ipcon = new Tinkerforge.IPConnection();
var al = new Tinkerforge.BrickletAmbientLight(UID, ipcon);
ipcon.connect(HOST, PORT,
    function (error) {
        node.warn('Connect Error: ' + error);
    }
);
ipcon.on(Tinkerforge.IPConnection.CALLBACK_CONNECTED,
    function (connectReason) {
        al.getIlluminance(
            function (illuminance) {
                msg.payload = "{\"Illuminance\":" + illuminance/10.0 + "}";
                node.warn('Illuminance: ' + illuminance/10.0 + ' Lux');
            },
            function (error) {
                msg.payload = "{\"lluminance\":" + error + "}";
                node.warn('Get Error: ' + error);
            }
        );
    }
);
ipcon.disconnect();
return msg;
Note: defined in node-red settings, after installing tinkerforge via npm:
Code: [Select]
    functionGlobalContext: {
    tinkerforge:require('/usr/lib/node_modules/tinkerforge')

18
Hi,

tried to run on a Raspberry Pi with Master Brick, Wifi Ext 2.0, Ambientlight the ExampleSimple.js.
When running from the commandline $node ExampleSimple.js, received error:
   module.js:340
    throw err;
          ^
   Error: Cannot find module 'tinkerforge'

The line in ExampleSimple.js not changed:
var Tinkerforge = require('tinkerforge');

Installed the javaScript bindings using npm. Steps taken as user Pi with install message.
cd /home/pi
sudo npm -g install tinkerforge
tinkerforge@2.0.9 /usr/lib/node_modules/tinkerforge

When adding the full path to require('/usr/lib/node_modules/tinkerforge') it is working.

How to setup without the need to add the full path in require.

Any help appreciated.

19
General Discussion / WiFi Extension 2.0 http requests possible?
« on: July 08, 2016, 10:56:18 »
Hi,

is it possible or planned to send direct http requests via the new wifi extension 2.0 to the master brick and read its response?
Like:
http://ipaddresswifiext2/get.htm?bricklet=laser_range_finder&uid=vbM&request=distance

20
General Discussion / Master Brick Portable Power Supply
« on: July 03, 2016, 10:14:22 »
Hi,

are there any recommendations of powering a Master Brick with 4 connected Bricklets and a WiFi 2.0 extension via portable power supply, like a Power Bank?

Would like to install outdoor where no line power supply is available.

21
General Discussion / [BUG?] UV Light returns a high value
« on: July 03, 2016, 10:06:51 »
Hi,

an UV Light bricklet is used with a Master Brick 2.1 (fw 2.4.0) and the new WiFi 2.0 extension (fw 2.0.0).

The value returned from Java method getUVLight() is rather high, like 80000 which results in a too high UV index when deviding by 250.
When deviding again by 250 (80000 / 250 / 250), then UV index seems ok.

Think this is a bug. Pls advice.

22
Hi,

want to place several moisture bricklets in the garden.
1) any advice what the max shielded cable length is between a moisture bricklet and a master brick?

2) any advice on a waterproof case as outside usage for a moisture bricklet?

23
Would there be any issues by doing so?
The 5V, 5A output should be sufficient I think.

24
General Discussion / Stack with Master Bricks 2.0 and 2.1
« on: April 20, 2016, 15:39:45 »
Is it possible to build a Stack with a Step Down Power Supply and 3 Master Bricks = MasterBrick 2.0 + Master Brick 2.1 + Master Brick 2.0?

Just curious if the version difference of the Master Bricks will cause any issues?

25
General Discussion / MQTT Proxy Error UV Bricklet
« on: April 17, 2016, 11:50:25 »
Hi,

downloaded the latest version of the TF MQTT proxy to be able to use the UV bricklet. After installation received, error message below.

Please advice.

Code: [Select]
$ pip install tinkerforge
Requirement already satisfied (use --upgrade to upgrade): tinkerforge in /usr/local/lib/python2.7/dist-packages
Cleaning up...

$ sudo python brick-mqtt-proxy.py&
[1] 10498

pi@raspberrypi ~/tinkerforge/mqtt $ Traceback (most recent call last):
  File "brick-mqtt-proxy.py", line 92, in <module>
    from tinkerforge.bricklet_uv_light import BrickletUVLight
ImportError: No module named bricklet_uv_light

26
General Discussion / REd brick openHAB MQTT usage
« on: February 29, 2016, 15:36:45 »
Hi,

as a test tried to setup openHAB MQTT displaying AmbientLight bricklet Illuminance BUT nothing is displayed. Any idea what could be wrong?

Items
Code: [Select]
Number Illuminance "Illuminance [%.0f Lux]" <none> { }
String IlluminanceRaw "IlluminanceRaw" [%s] <none> { mqtt="<[mosquitto:tinkerforge/bricklet/ambient_light/mdh/illuminance:state:default]" }

Rule
Code: [Select]
import org.openhab.core.library.types.*
import org.openhab.core.persistence.*
import org.openhab.model.script.actions.*

rule "MqttAmbientLightParse"
  when
    Item IlluminanceRaw changed
  then
var String json = (IlluminanceRaw.state as StringType).toString
logInfo("FILE", json)
//{"illuminance":1354,"_timestamp":1456750088.109141}
var String il = transform("JSONPATH", "$.illuminance", json)
logInfo("FILE", "IL="+il)
var String ts = transform("JSONPATH", "$._timestamp", json)
logInfo("FILE", "TS="+ts)
    sendCommand(Illuminance,  il)
  end

sitemap
Code: [Select]
sitemap ambientlightmqtt label="MQTT Illuminance"
{
Frame
{
Text item=Illuminance
Text item=IlluminanceRaw
}
}

27
General Discussion / openHAB io16 Bricklet Test
« on: February 18, 2016, 19:34:51 »
Hi,

connected a LED to A0 of the IO16 bricklet. Using the Brick Viewer and setting the Port Direction to Output, the LED can be turned on and off via changing the value Low to High vv.

Tried to setup the same by using openHAB, but the LED is not reacting.
Any hints what is worng in below openHAB Testconfiguration having Port A0 as output outa0?

#openhab.cfg
tinkerforge:hosts=127.0.0.1
tinkerforge:io16.uid=gkM
tinkerforge:io16.type=bricklet_io16
tinkerforge:io16.debouncePeriod=100
tinkerforge:io16outa0.uid=gkM
tinkerforge:io16outa0.subid=outa0
tinkerforge:io16outa0.type=io_actuator
tinkerforge:io16outa0.defaultState=true

#items
Number TF_AmbientLight "Luminance [%.0f lx]" { tinkerforge="uid=mdh" }
Switch outa0 "LED A0" { tinkerforge="uid=gkM, subid=outa0" }

#rules
import org.openhab.core.library.types.*

rule "LED Switch"
when
   Item outa0 changed
then
   if (outa0.state == true)
      sendcommand(outa0, false)
   else
      sendcommand(outa0, true)
end

NOTE: Instead of true false also tried ON OFF.

#sitemap
sitemap tf_weather_station label="Weather Station"
{
   Frame
   {
      Text item=TF_AmbientLight
      Switch item=outa0
   }
}

28
General Discussion / openHAB UV Light Bricklet Binding
« on: February 18, 2016, 16:27:18 »
Hi,

pls advice where to find the openHAB binding for the UV Light Bricklet.

29
General Discussion / Install brick-mqtt-proxy on RED-Brick
« on: February 18, 2016, 15:08:45 »
Hi,

noticed that the brick-mqtt-proxy is not by default installed on the red-brick - using image 1.8

What is the best way to install on the red-brick the brick-mqtt-proxy and ensure it is automatically started during boot?

30
Project introductions and project ideas / MakerBeam Smartphone Holder
« on: January 25, 2016, 10:22:30 »
Just a bit of fun what can be build with MakerBeam :).
Smartphone Holder = rather handy when developing Apps or watching Newsfeeds and the likes.


Pages: 1 [2] 3