Adapters Plugin

Posted on
Fri Aug 09, 2019 8:49 am
Korey offline
User avatar
Posts: 610
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Adapters Plugin

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!

--
Korey

Posted on
Sun Aug 11, 2019 2:35 pm
matt (support) offline
Site Admin
User avatar
Posts: 19960
Joined: Jan 27, 2003
Location: Texas

Re: Adapters Plugin

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.

Image

Posted on
Thu Apr 30, 2020 12:33 pm
bsp9493 offline
Posts: 146
Joined: Nov 30, 2017
Location: Kelowna, BC

Re: Adapters Plugin

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: ----.-

Posted on
Thu Apr 30, 2020 1:28 pm
DaveL17 offline
User avatar
Posts: 5445
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Adapters Plugin

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.

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

[My Plugins] - [My Forums]

Posted on
Thu Apr 30, 2020 1:41 pm
bsp9493 offline
Posts: 146
Joined: Nov 30, 2017
Location: Kelowna, BC

Re: Adapters Plugin

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

Posted on
Thu Apr 30, 2020 1:47 pm
bsp9493 offline
Posts: 146
Joined: Nov 30, 2017
Location: Kelowna, BC

Re: Adapters Plugin

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

Posted on
Thu Apr 30, 2020 4:53 pm
DaveL17 offline
User avatar
Posts: 5445
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Adapters Plugin

Looks like it may be working then, yes?

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

[My Plugins] - [My Forums]

Who is online

Users browsing this forum: No registered users and 1 guest