Hi Franz, progress! It looks like you have fixed the file corruption issue.

Some comments below...

On Wednesday, 23 May 2018 08:17:13 UTC-3, Franz wrote:
>
> Hello Vince,
> with wget https: // ... copied the file wxMQTT.py. Checksum is ok.
> Are the wxMesh.py and wxMQTT.py files the same?
>

I think you have configuration in weewx.conf such that your file should be 
named wxMesh.py. Namely these configuration parameters::

    station_type = wxMesh
...
[wxMesh]
    driver = user.wxMesh


The error messages have changed (see log file). I suspect it's because of 
> the MQTT data. MQTT sends float values with me. I have to change the 
> Arduino program. Many thanks for the help. I'm probably a little further.
>

Consider editing your weewx.conf file and changing the debug setting from

# Set to 1 for extra debug info, otherwise comment it out or set to zero.
debug = 0

to

# Set to 1 for extra debug info, otherwise comment it out or set to zero.
debug =1

and then restart weewx. Watch the log file with

tail -f /var/log/syslog

This should give more information on how the driver is attempting to turn 
some part of the MQTT payload to a floating point number. 


---
> pi@raspberrypi /home/weewx/bin/user $ ls
> extensions.py   __init__.py   installer  wxMesh.pyc
> extensions.pyc  __init__.pyc  wxMesh.py
> pi@raspberrypi /home/weewx/bin/user $ sudo sha1sum wxMesh.py
> 826d007e040b540cb5c6092842667c9966852db9  wxMesh.py
> pi@raspberrypi /home/weewx/bin/user $ 
> ----
> pi@raspberrypi ~ $ sudo /etc/init.d/weewx start
> [ ok ] Starting weewx (via systemctl): weewx.service.
> pi@raspberrypi ~ $ sudo /etc/init.d/weewx status -l
> ● weewx.service - LSB: weewx weather system
>    Loaded: loaded (/etc/init.d/weewx)
>    Active: active (exited) since Mi 2018-05-23 11:52:38 CEST; 6s ago
>   Process: 1396 ExecStop=/etc/init.d/weewx stop (code=exited, 
> status=0/SUCCESS)
>   Process: 1591 ExecStart=/etc/init.d/weewx start (code=exited, 
> status=0/SUCCESS)
>
> Mai 23 11:52:38 raspberrypi weewx[1605]: ****    File 
> "/home/weewx/bin/weewx/engine.py", line 865, in main
> Mai 23 11:52:38 raspberrypi weewx[1605]: ****      engine = 
> engine_class(config_dict)
> Mai 23 11:52:38 raspberrypi weewx[1605]: ****    File 
> "/home/weewx/bin/weewx/engine.py", line 74, in __init__
> Mai 23 11:52:38 raspberrypi weewx[1605]: ****      
> self.preLoadServices(config_dict)
> Mai 23 11:52:38 raspberrypi weewx[1605]: ****    File 
> "/home/weewx/bin/weewx/engine.py", line 115, in ...ices
> Mai 23 11:52:38 raspberrypi weewx[1605]: ****      self.stn_info = 
> weewx.station.StationInfo(self.cons...n'])
> Mai 23 11:52:38 raspberrypi weewx[1605]: ****    File 
> "/home/weewx/bin/weewx/station.py", line 35, in ...it__
> Mai 23 11:52:38 raspberrypi weewx[1605]: ****      self.altitude_vt = 
> weewx.units.ValueTuple(float(alt...de")
> Mai 23 11:52:38 raspberrypi weewx[1605]: ****  TypeError: float() argument 
> must be a string or a number
> Mai 23 11:52:38 raspberrypi weewx[1605]: ****  Exiting.
> Hint: Some lines were ellipsized, use -l to show in full.
> pi@raspberrypi ~ $ 
> -----------
>
>
> Am Dienstag, 22. Mai 2018 21:42:24 UTC+2 schrieb Vince Skahan:
>>
>> On Tuesday, May 22, 2018 at 10:45:58 AM UTC-7, Bill Morrow wrote:
>>>
>>>
>>> Try going in to your bin/user/ directory and run these commands at your 
>>> shell prompt
>>>
>>> wget https://
>>> raw.githubusercontent.com/bonjour81/ESP8266-MQTT-WEEWX/master/weewx/wxMQTT.py
>>> mv wxMQTT.py wxMesh.py
>>>
>>
>>
>> You might also check the checksums on the file to verify it's the same as 
>> the master copy.
>> Mine looks like:
>>
>> pi@pi3:/tmp $ sha1sum wxMQTT.py
>> 826d007e040b540cb5c6092842667c9966852db9  wxMQTT.py
>>
>>
>> pi@pi3:/tmp $ sha256sum wxMQTT.py
>> e99e86a15f3315eb1dd0db38f4ce759c4af2cb4965f71e031000a380c087d32b 
>>  wxMQTT.py
>>
>>
>>
>>

Reply via email to