EDS 1-Wire Server Plugin

Posted on
Fri Jan 09, 2015 2:10 pm
DrLove offline
Posts: 260
Joined: Dec 12, 2014
Location: Sweden

Re: EDS 1-Wire Server Plugin

Another matter:

I can't get the plugin to talk to my server(s), one ethernet and one WiFi-version.

Can't reach server. Sensors offline. Reverting to last known values. Trying again in 60 seconds.


The firmware version for the WiFi version is 1.36 and for the ethernet version 1.35.

The XML from the WiFi-model:

Code: Select all
This XML file does not appear to have any style information associated with it. The document tree is shown below.
<Devices-Detail-Response xmlns="http://www.embeddeddatasystems.com/schema/owserver" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<PollCount>63583</PollCount>
<DevicesConnected>11</DevicesConnected>
<LoopTime>10.695</LoopTime>
<DevicesConnectedChannel1>7</DevicesConnectedChannel1>
<DevicesConnectedChannel2>4</DevicesConnectedChannel2>
<DevicesConnectedChannel3>0</DevicesConnectedChannel3>
<DataErrorsChannel1>18</DataErrorsChannel1>
<DataErrorsChannel2>0</DataErrorsChannel2>
<DataErrorsChannel3>0</DataErrorsChannel3>
<VoltageChannel1>4.63</VoltageChannel1>
<VoltageChannel2>4.65</VoltageChannel2>
<VoltageChannel3>4.64</VoltageChannel3>
<VoltagePower>4.87</VoltagePower>
<DeviceName>OWServer_v2G-WiFi</DeviceName>
<HostName>OW-SERVER-WIFI</HostName>
<MACAddress>00:1E:C0:11:82:E0</MACAddress>
<DateTime>2015-01-09 21:00:38</DateTime>
<owd_DS18B20 Description="Programmable resolution thermometer">
<Name>DS18B20</Name>
<Family>28</Family>
<ROMId>E6000003AEE0BC28</ROMId>
<Health>7</Health>
<Channel>1</Channel>
<RawData>
8EFF4B467FFF021039FF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
</RawData>
<PrimaryValue>-7.1250 Deg C</PrimaryValue>
<Temperature Units="Centigrade">-7.1250</Temperature>
<UserByte1 Writable="True">75</UserByte1>
<UserByte2 Writable="True">70</UserByte2>
<Resolution>12</Resolution>
<PowerSource>255</PowerSource>
</owd_DS18B20>
<owd_DS18B20 Description="Programmable resolution thermometer">
<Name>DS18B20</Name>
<Family>28</Family>
<ROMId>CE000003AF767228</ROMId>
<Health>7</Health>
<Channel>1</Channel>
<RawData>
A4014B467FFF0C10DAFF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
</RawData>
<PrimaryValue>26.2500 Deg C</PrimaryValue>
<Temperature Units="Centigrade">26.2500</Temperature>
<UserByte1 Writable="True">75</UserByte1>
<UserByte2 Writable="True">70</UserByte2>
<Resolution>12</Resolution>
<PowerSource>255</PowerSource>
</owd_DS18B20>
<owd_DS18B20 Description="Programmable resolution thermometer">
<Name>DS18B20</Name>
<Family>28</Family>
<ROMId>BB000003AEDAE128</ROMId>
<Health>7</Health>
<Channel>1</Channel>
<RawData>
7D014B467FFF031024FF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
</RawData>
<PrimaryValue>23.8125 Deg C</PrimaryValue>
<Temperature Units="Centigrade">23.8125</Temperature>
<UserByte1 Writable="True">75</UserByte1>
<UserByte2 Writable="True">70</UserByte2>
<Resolution>12</Resolution>
<PowerSource>255</PowerSource>
</owd_DS18B20>
<owd_DS18B20 Description="Programmable resolution thermometer">
<Name>DS18B20</Name>
<Family>28</Family>
<ROMId>E5000003AF180228</ROMId>
<Health>7</Health>
<Channel>2</Channel>
<RawData>
A8014B467FFF0810DEFF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
</RawData>
<PrimaryValue>26.5000 Deg C</PrimaryValue>
<Temperature Units="Centigrade">26.5000</Temperature>
<UserByte1 Writable="True">75</UserByte1>
<UserByte2 Writable="True">70</UserByte2>
<Resolution>12</Resolution>
<PowerSource>255</PowerSource>
</owd_DS18B20>
<owd_DS18B20 Description="Programmable resolution thermometer">
<Name>DS18B20</Name>
<Family>28</Family>
<ROMId>01000003AF01A328</ROMId>
<Health>7</Health>
<Channel>2</Channel>
<RawData>
DC014B467FFF041033FF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
</RawData>
<PrimaryValue>29.7500 Deg C</PrimaryValue>
<Temperature Units="Centigrade">29.7500</Temperature>
<UserByte1 Writable="True">75</UserByte1>
<UserByte2 Writable="True">70</UserByte2>
<Resolution>12</Resolution>
<PowerSource>255</PowerSource>
</owd_DS18B20>
<owd_DS18B20 Description="Programmable resolution thermometer">
<Name>DS18B20</Name>
<Family>28</Family>
<ROMId>0E000003AF75AF28</ROMId>
<Health>7</Health>
<Channel>2</Channel>
<RawData>
A1014B467FFF0F10D9FF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
</RawData>
<PrimaryValue>26.0625 Deg C</PrimaryValue>
<Temperature Units="Centigrade">26.0625</Temperature>
<UserByte1 Writable="True">75</UserByte1>
<UserByte2 Writable="True">70</UserByte2>
<Resolution>12</Resolution>
<PowerSource>255</PowerSource>
</owd_DS18B20>
<owd_DS18B20 Description="Programmable resolution thermometer">
<Name>DS18B20</Name>
<Family>28</Family>
<ROMId>CA000003AEF16F28</ROMId>
<Health>7</Health>
<Channel>2</Channel>
<RawData>
9A014B467FFF061078FF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
</RawData>
<PrimaryValue>25.6250 Deg C</PrimaryValue>
<Temperature Units="Centigrade">25.6250</Temperature>
<UserByte1 Writable="True">75</UserByte1>
<UserByte2 Writable="True">70</UserByte2>
<Resolution>12</Resolution>
<PowerSource>255</PowerSource>
</owd_DS18B20>
<owd_DS18B20 Description="Programmable resolution thermometer">
<Name>DS18B20</Name>
<Family>28</Family>
<ROMId>77000003AEE8CD28</ROMId>
<Health>7</Health>
<Channel>1</Channel>
<RawData>
BB014B467FFF0510C6FF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
</RawData>
<PrimaryValue>27.6875 Deg C</PrimaryValue>
<Temperature Units="Centigrade">27.6875</Temperature>
<UserByte1 Writable="True">75</UserByte1>
<UserByte2 Writable="True">70</UserByte2>
<Resolution>12</Resolution>
<PowerSource>255</PowerSource>
</owd_DS18B20>
<owd_DS18B20 Description="Programmable resolution thermometer">
<Name>DS18B20</Name>
<Family>28</Family>
<ROMId>B2000003AF15CD28</ROMId>
<Health>7</Health>
<Channel>1</Channel>
<RawData>
71014B467FFF0F1056FF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
</RawData>
<PrimaryValue>23.0625 Deg C</PrimaryValue>
<Temperature Units="Centigrade">23.0625</Temperature>
<UserByte1 Writable="True">75</UserByte1>
<UserByte2 Writable="True">70</UserByte2>
<Resolution>12</Resolution>
<PowerSource>255</PowerSource>
</owd_DS18B20>
<owd_DS18B20 Description="Programmable resolution thermometer">
<Name>DS18B20</Name>
<Family>28</Family>
<ROMId>2F000003AEE84B28</ROMId>
<Health>7</Health>
<Channel>1</Channel>
<RawData>
9A014B467FFF061078FF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
</RawData>
<PrimaryValue>25.6250 Deg C</PrimaryValue>
<Temperature Units="Centigrade">25.6250</Temperature>
<UserByte1 Writable="True">75</UserByte1>
<UserByte2 Writable="True">70</UserByte2>
<Resolution>12</Resolution>
<PowerSource>255</PowerSource>
</owd_DS18B20>
<owd_DS18B20 Description="Programmable resolution thermometer">
<Name>DS18B20</Name>
<Family>28</Family>
<ROMId>0C000003AEC8FF28</ROMId>
<Health>7</Health>
<Channel>1</Channel>
<RawData>
B5014B467FFF0B10A3FF0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
</RawData>
<PrimaryValue>27.3125 Deg C</PrimaryValue>
<Temperature Units="Centigrade">27.3125</Temperature>
<UserByte1 Writable="True">75</UserByte1>
<UserByte2 Writable="True">70</UserByte2>
<Resolution>12</Resolution>
<PowerSource>255</PowerSource>
</owd_DS18B20>
</Devices-Detail-Response>


I can create a device and the list of ID's are populated so I guess something is working any way.

Debug log at update interval:

OWServer Debug spotDeadSensors() method called.
OWServer Getting OWServer data...
OWServer Debug details.xml file retrieved successfully.
OWServer Debug Converting temperature values (user prefs).
OWServer Error Can't reach server. Sensors offline. Reverting to last known values. Trying again in 60 seconds.


When clicking "test" button:

OWServer Debug Dumping details.xml file to Indigo log file...
OWServer Getting OWServer data...
OWServer Debug details.xml file retrieved successfully.
OWServer


Then nothing...

After saving settings:

OWServer Debug Validating user prefs.
OWServer Debug Plugin config dialog window closed.
OWServer Debug User prefs saved.
OWServer Debug UiValuesDict : (dict)
OWServerIP : 192.168.123.16 (string)
configMenuDegrees : C (string)
configMenuDegreesDec : 1 (string)
configMenuPollInterval : 60 (string)
configMenuServerTimeout : 15 (string)
configMenuServerType : OW (string)
getXML : (string)
infoLabel0 : (string)
showDebugInfo : true (bool)
simpleSeparator0 : (string)
simpleSeparator1 : (string)
simpleSeparator2 : (string)
space0 : (string)
space2 : (string)
space3 : (string)
space4 : (string)
updaterEmail : <mail address> (string)
updaterEmailsEnabled : true (bool)
updaterLastCheck : 1420831744 (real)
OWServer Debug logging is on.


What could be wrong?

//L

Love Kull (yes it's my name)
Blog (in Swedish)
Sweden

Posted on
Fri Jan 09, 2015 2:28 pm
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: EDS 1-Wire Server Plugin

DrLove - sorry that you're having trouble--but it looks like you are very close. I will take a look at the XML spec that your server is returning and compare it to mine. There may be some subtle differences (as a result of different firmware versions) that are tripping us up. Also, given the debug output, it's possible that there is a bug in the temperature conversion routine. I have a couple of thoughts about what might cause that.

Let me do some digging and we'll get you sorted.
Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Fri Jan 09, 2015 2:29 pm
DrLove offline
Posts: 260
Joined: Dec 12, 2014
Location: Sweden

Re: EDS 1-Wire Server Plugin

Sounds great!

Best regards, L

Love Kull (yes it's my name)
Blog (in Swedish)
Sweden

Posted on
Fri Jan 09, 2015 2:30 pm
DrLove offline
Posts: 260
Joined: Dec 12, 2014
Location: Sweden

Re: EDS 1-Wire Server Plugin

Ps. Hade this problem even before I "duplicated" the plugin.

Love Kull (yes it's my name)
Blog (in Swedish)
Sweden

Posted on
Fri Jan 09, 2015 3:24 pm
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

EDS 1-Wire Server Plugin

@DrLove - if you have the time, please set both instances of the plugin to provide temperatures in degrees Fahrenheit and see if that allows you to read the sensors. If yes, I believe this is a very easy fix. I know that you don't ultimately want Fahrenheit--this is just to isolate the problem.

Thanks,
Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Fri Jan 09, 2015 3:38 pm
DrLove offline
Posts: 260
Joined: Dec 12, 2014
Location: Sweden

Re: EDS 1-Wire Server Plugin

It works! But wrong unit ;)

Love Kull (yes it's my name)
Blog (in Swedish)
Sweden

Posted on
Fri Jan 09, 2015 3:51 pm
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: EDS 1-Wire Server Plugin

Great news. I will post an update tonight.

Thanks for the help and sorry for the troubles.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Fri Jan 09, 2015 4:20 pm
DrLove offline
Posts: 260
Joined: Dec 12, 2014
Location: Sweden

Re: EDS 1-Wire Server Plugin

NP, looking forward to an update!

//L

Love Kull (yes it's my name)
Blog (in Swedish)
Sweden

Posted on
Fri Jan 09, 2015 8:01 pm
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: EDS 1-Wire Server Plugin

Update is now available.

DrLove - please let me know whether that solves your problem when you can.

Cheers,
Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Fri Jan 09, 2015 8:37 pm
DrLove offline
Posts: 260
Joined: Dec 12, 2014
Location: Sweden

Re: EDS 1-Wire Server Plugin

It works!
Thank you for a very good service!
//L

Love Kull (yes it's my name)
Blog (in Swedish)
Sweden

Posted on
Fri Jan 09, 2015 8:46 pm
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: EDS 1-Wire Server Plugin

My pleasure. Enjoy!

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sat Jan 10, 2015 1:52 pm
DrLove offline
Posts: 260
Joined: Dec 12, 2014
Location: Sweden

Re: EDS 1-Wire Server Plugin

Worked great until my next reboot :/
Now I get:

Started plugin "OWServer 0.6.9"
OWServer Starting OWServer.
OWServer Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 418, in runConcurrentThread
File "plugin.py", line 262, in spotDeadSensors
<type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\xe4' in position 8: ordinal not in range(128)

OWServer Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)


OWServer1 Starting OWServer.
OWServer1 Error FTX avluft hasn't been updated in 0:05:48.585000 check it's connection.
OWServer1 Error Error in plugin execution runConcurrentThread:

Traceback (most recent call last):
File "plugin.py", line 418, in runConcurrentThread
File "plugin.py", line 262, in spotDeadSensors
<type 'exceptions.UnicodeEncodeError'>: 'ascii' codec can't encode character u'\xe5' in position 6: ordinal not in range(128)

OWServer1 Error plugin runConcurrentThread function returned or failed (will attempt again in 10 seconds)


For both instances, even if I reboot w/ just one OWserver plugin enabled.

Hope for a fix!

//L

Love Kull (yes it's my name)
Blog (in Swedish)
Sweden

Posted on
Sat Jan 10, 2015 3:32 pm
DaveL17 offline
User avatar
Posts: 6744
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: EDS 1-Wire Server Plugin

Hi DrLove - I have a feeling that the trouble you're seeing is a result of a Unicode issue. Please download the newest version (v0.6.91) and see if that solves your problems.

Dave

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Sun Jan 11, 2015 4:35 am
DrLove offline
Posts: 260
Joined: Dec 12, 2014
Location: Sweden

Re: EDS 1-Wire Server Plugin

It works now. Even after a reboot ;)
Fantastic suport as always! Thanks!

I'll be adding a AD-converter (based on the DS2450S+) to my 1-wire network today and put air flow meters in my ventilation system :)
I'm a physicist and they tend to measure everything ;)

Is it possible to add support for this meter?

//L

Love Kull (yes it's my name)
Blog (in Swedish)
Sweden

Posted on
Sun Jan 11, 2015 4:50 am
DrLove offline
Posts: 260
Joined: Dec 12, 2014
Location: Sweden

Re: EDS 1-Wire Server Plugin

PS.

The sensor is in place (w/o meters) and this is the XML for the sensor:

Code: Select all
<owd_DS2450 Description="Quad A/D Converter">
<Name>DS2450</Name>
<Family>20</Family>
<ROMId>C40000000CCBA120</ROMId>
<Health>7</Health>
<Channel>3</Channel>
<RawData>
00030003000300031B24088C088C088C088CC4D800FF00FF00FF00FFB6DB00000000000000005C5A0000000000000000000000000000000000000000000000000000000000000000
</RawData>
<PrimaryValue>0.029883V Chnl A</PrimaryValue>
<ChannelAConversionValue Units="Volts">0.029883</ChannelAConversionValue>
<ChannelAConversionResolution Writable="True" Units="Bits">8</ChannelAConversionResolution>
<ChannelAConversionRange Writable="True">0</ChannelAConversionRange>
<ChannelAOutputEnable Writable="True">0</ChannelAOutputEnable>
<ChannelAOutputControl Writable="True">0</ChannelAOutputControl>
<ChannelBConversionValue Units="Volts">0.029883</ChannelBConversionValue>
<ChannelBConversionResolution Writable="True" Units="Bits">8</ChannelBConversionResolution>
<ChannelBConversionRange Writable="True">0</ChannelBConversionRange>
<ChannelBOutputEnable Writable="True">0</ChannelBOutputEnable>
<ChannelBOutputControl Writable="True">0</ChannelBOutputControl>
<ChannelCConversionValue Units="Volts">0.029883</ChannelCConversionValue>
<ChannelCConversionResolution Writable="True" Units="Bits">8</ChannelCConversionResolution>
<ChannelCConversionRange Writable="True">0</ChannelCConversionRange>
<ChannelCOutputEnable Writable="True">0</ChannelCOutputEnable>
<ChannelCOutputControl Writable="True">0</ChannelCOutputControl>
<ChannelDConversionValue Units="Volts">0.029883</ChannelDConversionValue>
<ChannelDConversionResolution Writable="True" Units="Bits">8</ChannelDConversionResolution>
<ChannelDConversionRange Writable="True">0</ChannelDConversionRange>
<ChannelDOutputEnable Writable="True">0</ChannelDOutputEnable>
<ChannelDOutputControl Writable="True">0</ChannelDOutputControl>
<PowerOnReset Writable="True">1</PowerOnReset>
<VCCControl Writable="True">0</VCCControl>
</owd_DS2450>


//L

Love Kull (yes it's my name)
Blog (in Swedish)
Sweden

Who is online

Users browsing this forum: No registered users and 1 guest