Hi weewx friends,

I am currently using a separate windspeed and direction transmitter @ about 
10 meters in my antenna tower. This transmitter powered by battery, that is 
being loaded by the power of its small solarpanel in the housing.

This transmitter is configured as an extra ISS (type 4) on the Vantage-Vue 
console.  It would be nice if there was a possibility to monitor the 
current battery status of this extra Windspeed meter transmitter 

Because it is in principle the exact same device as the main ISS 
transmitter, I think it should be possible..

I have tried to add an extra parameter (windBatteryStatus) in the loop of 
the file vantage.py :   ('txBatteryStatus',    'B'), ('consBatteryVoltage', 
'H'), ('windBatteryStatus',  'B'), and in 
            
          self.loop_data = {'txBatteryStatus': None,
                          'consBatteryVoltage': None,
                          'windBatteryStatus': None}      

I also  added this parameter in skin.conf, but that is not working...   I 
get this errormessage in the user.log:

  engine: Caught unrecoverable exception in engine:  ***
     *  unpack requires a string argument of length 96
     ****  Traceback (most recent call last):
     ****    File "/usr/share/weewx/weewx/engine.py", line 871, in main
     ****      engine.run()
     ****    File "/usr/share/weewx/weewx/engine.py", line 187, in run
     ****      for packet in self.console.genLoopPackets():
     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 507, in 
genLoopPackets
     ****      for _loop_packet in self.genDavisLoopPackets(200):
     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 539, in 
genDavisLoopPackets
     ****      loop_packet = self._unpackLoopPacket(_buffer[:95])
     ****    File "/usr/share/weewx/weewx/drivers/vantage.py", line 1408, 
in _unpackLoopPacket
     ****      data_tuple = loop_fmt.unpack(raw_loop_string)
     ****  error: unpack requires a string argument of length 96
     ****  Exiting.

(I have restored to the original vantage.py)

Has anyone an idea how to achieve this ?

Thanks!

Sef

https://sekoni.nl/weewx


  

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to