Hello Bill,
here current log file (tail -f / var / sys / syslog) note.
I change my Arduino / ESP program and then try again.
Is the index.html (if the data type is String) created automatically?
Many thanks for your help!
Franz
----------
pi@raspberrypi ~ $ tail -f /var/log/syslog
May 23 13:20:14 raspberrypi kernel: [   21.063198] cfg80211: Calling CRDA 
to update world regulatory domain
May 23 13:20:17 raspberrypi kernel: [   24.223222] cfg80211: Calling CRDA 
to update world regulatory domain
May 23 13:53:08 raspberrypi systemd[710]: Time has been changed
May 23 13:53:08 raspberrypi systemd[1]: Time has been changed
May 23 13:53:10 raspberrypi kernel: [   27.383344] cfg80211: Calling CRDA 
to update world regulatory domain
May 23 13:53:13 raspberrypi kernel: [   30.543240] cfg80211: Calling CRDA 
to update world regulatory domain
May 23 13:53:16 raspberrypi kernel: [   33.703274] cfg80211: Calling CRDA 
to update world regulatory domain
May 23 13:53:19 raspberrypi kernel: [   36.863249] cfg80211: Calling CRDA 
to update world regulatory domain
May 23 13:53:23 raspberrypi kernel: [   40.023286] cfg80211: Calling CRDA 
to update world regulatory domain
May 23 13:53:26 raspberrypi kernel: [   43.183347] cfg80211: Exceeded CRDA 
call max attempts. Not calling CRDA
May 23 13:54:40 raspberrypi systemd[1]: Stopping LSB: weewx weather 
system...
May 23 13:54:40 raspberrypi weewx[1076]: Stopping weewx weather system: 
weewx not running....
May 23 13:54:40 raspberrypi systemd[1]: Stopped LSB: weewx weather system.
May 23 13:54:48 raspberrypi systemd[1]: Starting LSB: weewx weather 
system...
May 23 13:54:49 raspberrypi weewx[1138]: engine: Initializing weewx version 
3.8.0
May 23 13:54:49 raspberrypi weewx[1138]: engine: Using Python 2.7.9 
(default, Sep 17 2016, 20:26:04) #012[GCC 4.9.2]
May 23 13:54:49 raspberrypi weewx[1138]: engine: Platform 
Linux-4.1.7-v7+-armv7l-with-debian-8.0
May 23 13:54:49 raspberrypi weewx[1138]: engine: Locale is 'de_DE.UTF-8'
May 23 13:54:49 raspberrypi weewx[1138]: engine: pid file is 
/var/run/weewx.pid
May 23 13:54:49 raspberrypi rsyslogd-2007: action 'action 17' suspended, 
next retry is Wed May 23 13:55:19 2018 [try http://www.rsyslog.com/e/2007 ]
May 23 13:54:49 raspberrypi weewx[1128]: Starting weewx weather system: 
weewx.
May 23 13:54:49 raspberrypi systemd[1]: Started LSB: weewx weather system.
May 23 13:54:49 raspberrypi weewx[1142]: engine: Using configuration file 
/home/weewx/weewx.conf
May 23 13:54:49 raspberrypi weewx[1142]: engine: debug is 1
May 23 13:54:49 raspberrypi weewx[1142]: engine: Initializing engine
May 23 13:54:49 raspberrypi weewx[1142]: engine: Loading station type 
wxMesh (user.wxMesh)
May 23 13:54:49 raspberrypi weewx[1142]: wxMesh: host is 192.168.1.30
May 23 13:54:49 raspberrypi weewx[1142]: wxMesh: topic is weewx/#
May 23 13:54:49 raspberrypi weewx[1142]: wxMesh: polling interval is 1.0
May 23 13:54:49 raspberrypi weewx[1142]: wxMesh: label map is {'HUMT': 
'outTemp', 'RHUM': 'outHumidity', 'location': 'Wetter Rheinbach Voreifel', 
'latitude': '50.3552', 'longitude': '6.5346', 'altitude': ['270', 'meter'], 
'rain_year_start': '1', 'week_start': '6'}
May 23 13:54:49 raspberrypi weewx[1142]: engine: Caught unrecoverable 
exception in engine:
May 23 13:54:49 raspberrypi weewx[1142]:     ****  float() argument must be 
a string or a number
May 23 13:54:49 raspberrypi weewx[1142]:     ****  Traceback (most recent 
call last):
May 23 13:54:49 raspberrypi weewx[1142]:     ****    File 
"/home/weewx/bin/weewx/engine.py", line 865, in main
May 23 13:54:49 raspberrypi weewx[1142]:     ****      engine = 
engine_class(config_dict)
May 23 13:54:49 raspberrypi weewx[1142]:     ****    File 
"/home/weewx/bin/weewx/engine.py", line 74, in __init__
May 23 13:54:49 raspberrypi weewx[1142]:     ****      
self.preLoadServices(config_dict)
May 23 13:54:49 raspberrypi weewx[1142]:     ****    File 
"/home/weewx/bin/weewx/engine.py", line 115, in preLoadServices
May 23 13:54:49 raspberrypi weewx[1142]:     ****      self.stn_info = 
weewx.station.StationInfo(self.console, **config_dict['Station'])
May 23 13:54:49 raspberrypi weewx[1142]:     ****    File 
"/home/weewx/bin/weewx/station.py", line 35, in __init__
May 23 13:54:49 raspberrypi weewx[1142]:     ****      self.altitude_vt = 
weewx.units.ValueTuple(float(altitude_t[0]), altitude_t[1], 
"group_altitude")
May 23 13:54:49 raspberrypi weewx[1142]:     ****  TypeError: float() 
argument must be a string or a number
May 23 13:54:49 raspberrypi weewx[1142]:     ****  Exiting.
^[May 23 13:55:36 raspberrypi rsyslogd-2007: action 'action 17' suspended, 
next retry is Wed May 23 13:56:06 2018 [try http://www.rsyslog.com/e/2007 ]
May 23 13:55:36 raspberrypi systemd[1]: Stopping LSB: weewx weather 
system...
May 23 13:55:36 raspberrypi weewx[1206]: Stopping weewx weather system: 
weewx not running....
May 23 13:55:36 raspberrypi systemd[1]: Stopped LSB: weewx weather system.

--------------------



Am Mittwoch, 23. Mai 2018 13:32:29 UTC+2 schrieb Bill Morrow:
>
> 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