Upcoming OWServer Plugin Update

Posted on
Wed Feb 03, 2016 10:50 am
4billl offline
Posts: 50
Joined: Jan 30, 2013
Location: Dripping Springs TX

Re: Upcoming OWServer Plugin Update

Thanks Dave - That's just what I needed.
Now I can update the other six sensors to the correct readouts.

Posted on
Wed Feb 03, 2016 2:46 pm
4billl offline
Posts: 50
Joined: Jan 30, 2013
Location: Dripping Springs TX

Re: Upcoming OWServer Plugin Update

Dave - I'm now having trouble adding a 2nd OW-Server-Enet-2.
I configured the new server on a static IP (like the 1st one).
My 1st OW-Server-Enet-2 is on IP 192.168.1.180
I configured the 2nd one on 192.168.1.181
When I try to add it, only the original IP shows up.

Posted on
Wed Feb 03, 2016 2:49 pm
4billl offline
Posts: 50
Joined: Jan 30, 2013
Location: Dripping Springs TX

Re: Upcoming OWServer Plugin Update

BTW - I'm using OW Plug-in ver v0.8.2
I can see a device attached to the new server via direct IP in a browser.
But I cannot configure it or see the additional sensor from Indigo.

Posted on
Wed Feb 03, 2016 5:00 pm
DaveL17 offline
User avatar
Posts: 3427
Joined: Aug 20, 2013

Re: Upcoming OWServer Plugin Update

Hi Bill - I'm happy to try to help, but I need a bit more information.

I'm assuming that you've opened the plugin preferences and have added the server's IP address there. If not, please try first the automatic detection feature to see if the plugin can find your second server. If that doesn't work (it tries to use UPNP which has been a little cranky at times), please uncheck that box and manually add the IP addresses of both servers to the text box and separate them with a comma. Afterwards, please select the option to refresh sensor data from the plugin menu to force a full refresh.

If you're still not able to detect the server or add a device associated with that server, please copy and paste the following code into a plugin scripting shell (located under the Indigo plugins menu, "Open Scripting Shell") and let me know the result.
Code: Select all
import socket
import urllib2

url = 'http://192.168.1.181/details.xml'
socket.setdefaulttimeout(10)
f = urllib2.urlopen(url)
xml = f.read()
f.close()
print(unicode(xml))

If the window appears to hang and then comes back with a bunch of errors, then the Indigo server can't see the EDS server on your network for some reason.

The plugin should support this implementation (multiple servers) as I have a number of users--including me--doing this. We'll get you going.
Dave

Posted on
Wed Feb 03, 2016 5:18 pm
4billl offline
Posts: 50
Joined: Jan 30, 2013
Location: Dripping Springs TX

Re: Upcoming OWServer Plugin Update

Dave - The automatic detect did not seem to work. But when I manually added the 2nd server address to the plug-in it works.
I had just forgotten about adding the IP to the plug-in, comma separated.

Now, I was able to add the devices on the 2nd server and they report correctly. - Thanks

Posted on
Wed Feb 03, 2016 6:54 pm
DaveL17 offline
User avatar
Posts: 3427
Joined: Aug 20, 2013

Re: Upcoming OWServer Plugin Update

Perfect. Thanks for letting me know.


Sent from my iPhone using Tapatalk

Posted on
Thu Feb 04, 2016 7:57 pm
4billl offline
Posts: 50
Joined: Jan 30, 2013
Location: Dripping Springs TX

Re: Upcoming OWServer Plugin Update

Dave -Everything is working as inputs correctly.
But I had another request: On a couple of the 4-chan analog 0-10V devices, I ordered some with LED & relay.
Is it possible to control the LED & relay in Indigo? I can toggle them from the OW Server IP. But when I try to configure a trigger event for the LED or relay, I get to your "Send Command to 1-Wire Device " and in the next box "Configure ...", I can select the Server IP and the Sensor ID, but what do I put in the Variable Name and Value? I tried both" owsLED" and "owsLEDState" with the value of "1" as that was the change I saw when toggling via the server IP.
But neither did anything.
Ideas?

Posted on
Thu Feb 04, 2016 9:22 pm
DaveL17 offline
User avatar
Posts: 3427
Joined: Aug 20, 2013

Re: Upcoming OWServer Plugin Update

4billl wrote:
Dave -Everything is working as inputs correctly.
But I had another request: On a couple of the 4-chan analog 0-10V devices, I ordered some with LED & relay.
Is it possible to control the LED & relay in Indigo? I can toggle them from the OW Server IP. But when I try to configure a trigger event for the LED or relay, I get to your "Send Command to 1-Wire Device " and in the next box "Configure ...", I can select the Server IP and the Sensor ID, but what do I put in the Variable Name and Value? I tried both" owsLED" and "owsLEDState" with the value of "1" as that was the change I saw when toggling via the server IP.
But neither did anything.
Ideas?

Hi Bill - glad to hear that this inputs are still working for you. With respect to controlling the LED and relay--yes, it is possible--but we need to write to the EDS variable name and not the Indigo state name. Let's start with a simple test.

From the Indigo menu, select: [Plugins] --> [OWServer] --> [Send Command to 1-Wire Device]

Within the pop-up dialog box, select the server IP address and corresponding ROM ID of the sensor, and then enter following:
Variable Name: LEDState
Value: 1

This should turn on the LED of the device (enter a zero to turn the LED off.) Indigo won't know that the LED has turned on until it refreshes the data for all sensors based on your preferred refresh interval. If you like, you can opt to force a refresh through the plugin settings menu. This *should* work. The function of the trigger should be essentially the same steps. Please let me know if this doesn't work for you.

It would be great if the report to Indigo was more instantaneous; and it will be in Gen2 of the plugin, which is being built with control as a core feature.
Dave

PS: Any writable feature can be controlled or written to in this way. To see what's writable for your devices (and the corresponding variable to write to) look at the devices.xml and then look for a variable attribute Writable=True. For example:
Code: Select all
<LEDState Writable="True">0</LEDState>
<RelayState Writable="True">0</RelayState>

Posted on
Thu Feb 04, 2016 10:40 pm
4billl offline
Posts: 50
Joined: Jan 30, 2013
Location: Dripping Springs TX

Re: Upcoming OWServer Plugin Update

Dave - That works - both LED & Relay.
Not a problem for me that the status is not immediately available as long as the action is virtually instantaneous.

Posted on
Fri Feb 05, 2016 4:49 am
DaveL17 offline
User avatar
Posts: 3427
Joined: Aug 20, 2013

Re: Upcoming OWServer Plugin Update

Cool beans. Enjoy!
Dave

Posted on
Sun Feb 07, 2016 12:44 pm
4billl offline
Posts: 50
Joined: Jan 30, 2013
Location: Dripping Springs TX

Re: Upcoming OWServer Plugin Update

Dave - Just to let you know everything is working perfectly now: :D

OWServer Total of 2 servers polled.
OWServer Total of 23 devices updated.
OWServer OWServer data parsed successfully.

For my next task, I will be going through each temperature device and setting the offset corrections based on an accurate IR thermometer.

Posted on
Sun Feb 07, 2016 2:25 pm
DaveL17 offline
User avatar
Posts: 3427
Joined: Aug 20, 2013

Re: Upcoming OWServer Plugin Update

Glad to hear it. Thanks for letting me know.

Sounds like you have quite the setup!
Dave

Who is online

Users browsing this forum: No registered users and 1 guest