Page 7 of 7

Re: Adapters Plugin

PostPosted: Fri Aug 09, 2019 8:49 am
by Korey
howartp wrote:
Matt/Jay, i'm intending publishing a new Nissan Leaf plugin (also Dusty's).

Dusty has touched his github account twice in the last 18 months, so obviously isn't active anywhere at present.

Can I takeover his plugin(s) - Nissan Leaf and Adapters certainly, to post up this fixed version? Not sure if he has others?

Peter



Any news on this?

I use the Adaptor plugin for a bunch of conversion, but I find it will stop updating every so often and will require a reload of the plugin to make it function again.

Thanks!

Re: Adapters Plugin

PostPosted: Sun Aug 11, 2019 2:35 pm
by matt (support)
I found another/different email address we had for dustysparkle and just sent him another message. I'll let you know when/if I hear back from him.

Re: Adapters Plugin

PostPosted: Thu Apr 30, 2020 12:33 pm
by bsp9493
Hi...

I have been seeing the following in my logs recently...

Is this being caused by the Adapters Plug in, or is my device that's feeding it causing the problem? This is the only error message that I am receiving and when I check my source device, everything appears to be ok.

Thanx in advance.

dave

Code: Select all
   Adapters Error                  Error in plugin execution ServerReplacedElem:

Traceback (most recent call last):
  File "plugin.py", line 130, in deviceUpdated
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/Adapters.indigoPlugin/Contents/Server Plugin/sensor_adapter.py", line 39, in go
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/Adapters.indigoPlugin/Contents/Server Plugin/pyrescaler/pyrescaler.py", line 103, in format
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/Adapters.indigoPlugin/Contents/Server Plugin/pyrescaler/pyrescaler.py", line 106, in convert
ValueError: could not convert string to float: ----.-

   Adapters Error                  Error in plugin execution ServerReplacedElem:

Traceback (most recent call last):
  File "plugin.py", line 130, in deviceUpdated
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/Adapters.indigoPlugin/Contents/Server Plugin/sensor_adapter.py", line 39, in go
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/Adapters.indigoPlugin/Contents/Server Plugin/pyrescaler/pyrescaler.py", line 103, in format
  File "/Library/Application Support/Perceptive Automation/Indigo 7.4/Plugins/Adapters.indigoPlugin/Contents/Server Plugin/pyrescaler/pyrescaler.py", line 106, in convert
ValueError: could not convert string to float: ----.-

Re: Adapters Plugin

PostPosted: Thu Apr 30, 2020 1:28 pm
by DaveL17
For some reason, the plugin is expecting a float value (decimal number) but is getting a string (text) instead. If this was working without error at one point, then either the plugin code has changed or the source data has changed types. If you're using a custom formula adapter, you may be able to solve the problem by changing 'x' in the formula to 'float(x)', but that solution is untested.

Re: Adapters Plugin

PostPosted: Thu Apr 30, 2020 1:41 pm
by bsp9493
Thanx Dave...

I have 2 custom and 1 standard Predefined scale (temperature, F to C).

I have changed the custom ones to "float(x)" as you suggested, will see what happens.

Strange, it's intermittent and nothing has changed with the devices that I am using with them that I am aware of.

Will keep an eye out.

d

Re: Adapters Plugin

PostPosted: Thu Apr 30, 2020 1:47 pm
by bsp9493
If it helps... I turned on debug after I made those changes... this is what popped up in the a few mins after the change.

Code: Select all
Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 41.2 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 41.9 units
   Adapters Debug                  resulting format with precision applied: {0:.1f} {1}
   Adapters Debug                  formatted result: 17.8 °C
   Adapters Debug                  ws1401ip variables['outdoorTemp'] °F -> °C: 17.8 °C
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 41.2 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 41.9 units
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 41.2 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 41.9 units
   Adapters Debug                  resulting format with precision applied: {0:.1f} {1}
   Adapters Debug                  formatted result: 18.1 °C
   Adapters Debug                  ws1401ip variables['outdoorTemp'] °F -> °C: 18.1 °C
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 41.2 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 41.9 units
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  resulting format with precision applied: {0:.1f} {1}
   Adapters Debug                  formatted result: 18.1 °C
   Adapters Debug                  ws1401ip variables['outdoorTemp'] °F -> °C: 18.1 °C
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  resulting format with precision applied: {0:.1f} {1}
   Adapters Debug                  formatted result: 18.1 °C
   Adapters Debug                  ws1401ip variables['outdoorTemp'] °F -> °C: 18.1 °C
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  resulting format with precision applied: {0:.1f} {1}
   Adapters Debug                  formatted result: 18.1 °C
   Adapters Debug                  ws1401ip variables['outdoorTemp'] °F -> °C: 18.1 °C
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  resulting format with precision applied: {0:.1f} {1}
   Adapters Debug                  formatted result: 18.1 °C
   Adapters Debug                  ws1401ip variables['outdoorTemp'] °F -> °C: 18.1 °C
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  resulting format with precision applied: {0:.1f} {1}
   Adapters Debug                  formatted result: 18.1 °C
   Adapters Debug                  ws1401ip variables['outdoorTemp'] °F -> °C: 18.1 °C
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  resulting format with precision applied: {0:.1f} {1}
   Adapters Debug                  formatted result: 18.1 °C
   Adapters Debug                  ws1401ip variables['outdoorTemp'] °F -> °C: 18.1 °C
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  resulting format with precision applied: {0:.1f} {1}
   Adapters Debug                  formatted result: 18.1 °C
   Adapters Debug                  ws1401ip variables['outdoorTemp'] °F -> °C: 18.1 °C
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  resulting format with precision applied: {0:.1f} {1}
   Adapters Debug                  formatted result: 18.1 °C
   Adapters Debug                  ws1401ip variables['outdoorTemp'] °F -> °C: 18.1 °C
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  resulting format with precision applied: {0:.1f} {1}
   Adapters Debug                  formatted result: 18.1 °C
   Adapters Debug                  ws1401ip variables['outdoorTemp'] °F -> °C: 18.1 °C
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  resulting format with precision applied: {0:.1f} {1}
   Adapters Debug                  formatted result: 18.1 °C
   Adapters Debug                  ws1401ip variables['outdoorTemp'] °F -> °C: 18.1 °C
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  resulting format with precision applied: {0:.1f} {1}
   Adapters Debug                  formatted result: 18.1 °C
   Adapters Debug                  ws1401ip variables['outdoorTemp'] °F -> °C: 18.1 °C
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units
   Adapters Debug                  resulting format with precision applied: {0:.1f} {1}
   Adapters Debug                  formatted result: 18.1 °C
   Adapters Debug                  ws1401ip variables['outdoorTemp'] °F -> °C: 18.1 °C
   Adapters Debug                  ws1401ip variables['solarRadiation'] {0:.1f} units: 47.5 units
   Adapters Debug                  ws1401ip variables['UV'] {0:.1f} units: 47.5 units

Re: Adapters Plugin

PostPosted: Thu Apr 30, 2020 4:53 pm
by DaveL17
Looks like it may be working then, yes?