The web app states the output is in Float. The changes made in the widgets are not being made is the conclusion.
Just so everyone can do the transformation :
The output of the ADS1115 extension in Cayenne is the raw output
divided by the range maximum of the binary scale, 32767.
The chip range is +/-32767 (2^16).
To get the equivalent voltage, multiply by the full scale
value of the Gain, hwich in this case is 4.096 at a Gain = 1.
ADS1115 calculations
Adafruit software example 'simpletest.py output :
pi@raspberrypi:~/Adafruit/examples $ python simpletest.py
Reading ADS1x15 values, press Ctrl-C to quit…
| 0 | 1 | 2 | 3 |
| 8078 | 4288 | 5869 | 5618 |
| 8027 | 4216 | 5787 | 5518 |
| and so on.
Take as an example :
8078, 4288, 5869, 5618
Divide by the range max, 32767 (2^16) to get the percentage ratio :
0.24652851954710531937620166631062 0.24652 represents 24.652% of the range.
0.13086336863307596057008575701163
0.17911313211462752159184545426801
0.17145298623615222632526627399518
Round off for convenience :
0.24653
0.13086
0.17911
0.17145
Multiply by the maximum scale value at gain = 1, i.e. 4.096, to get volts D.C.
1.00978688 vdc
0.53600256 vdc
0.73363456 vdc
0.70225920 vdc
To sum up, not all changes to ADS1115’s solar cell widgets are being accepted and those that are can be delayed. Erratic is the word I use. Currently, the four solar cell widgets are set up with name/value/Gauge/volts but the overview does not display the value or show the icon. The extension page shows the correct fractional value (Float) and not he volts, as programmed. The live graph has no input. In order to get the correct values, I had to run the Adafruit software to get the correct values to print in Cayenne and Weaved. Remember, before I introduced Weaved or Adafruit software, Cayenne was not producing the correct values, but , instead, a set of static values, all the same.