Sorry, dunno about formatting. The google groups interface seems to randomly lose any formatting I try to do, but only sometime. Frustrating.
I'm not understanding why (or where) you're trying to convert degree_C to percent. It's already a temperature reading in the correct units isn't it ? Are you setting some custom Units someplace in skin.conf or weewx.conf perhaps ? On Thursday, March 2, 2023 at 5:07:58 PM UTC-8 lloyd...@gmail.com wrote: > Well that change helped and shows MQTTSubscribe reading the values but > now it says can't convert degree_C to percent as per the following for > rtd_temperature (same for tmp117_temperature) > Also what should I do when copying sections of weewx.conf to make it > easier to read? > > Mar 2 17:56:03 pi34 weewx[10834] DEBUG user.MQTTSubscribe: (Service) > MessageCallbackProvider data-> incoming topic: rtd_temperature, QOS: 0, > retain: 0, payload: b'20.39' > Mar 2 17:56:03 pi34 weewx[10834] DEBUG weewx.units: Unable to convert > from degree_C to percent > Mar 2 17:56:03 pi34 weewx[10834] ERROR user.MQTTSubscribe: (Service) > MessageCallbackProvider on_message_individual failed with <class > 'KeyError'> and reason 'percent'. > Mar 2 17:56:03 pi34 weewx[10834] ERROR user.MQTTSubscribe: (Service) **** > MessageCallbackProvider Ignoring topic=rtd_temperature and payload=b'20.39' > Mar 2 17:56:03 pi34 weewx[10834] ERROR user.MQTTSubscribe: (Service) **** > MessageCallbackProvider Traceback (most recent call last):#012 File > "/home/weewx/bin/user/MQTTSubscribe.py", line 1527, in > _on_message_individual#012 (fieldname, value) = > self._update_data(fields, fields_conversion_func, key, payload_str, > unit_system)#012 File "/home/weewx/bin/user/MQTTSubscribe.py", line 1264, > in _update_data#012 (value, new_units, new_group) = > weewx.units.convert((value, fields[orig_name]['units'], None), to_units) # > match signature pylint: disable=unused-variable#012 File > "/home/weewx/bin/weewx/units.py", line 1454, in convert#012 > conversion_func = conversionDict[val_t[1]][target_unit]#012KeyError: > 'percent' > > > > On Thursday, March 2, 2023 at 5:21:16 PM UTC-7 vince wrote: > >> In that case should [[[topic/rtd_temperature]]] be just >> [[[rtd_temperature]]] perhaps ??? >> >> It's a bit hard to decipher with such a cryptic description and >> unfortunately google ate whatever formatting you entered on your cut+paste, >> so your original post is very hard to read as a result. >> >> Give it a try. It's already not working so you can't make anything worse. >> >> On Thursday, March 2, 2023 at 3:21:42 PM UTC-8 lloyd...@gmail.com wrote: >> >>> without the xargs >>> >>> rtd_temperature 20.70 >>> tmp117_temperature 18.33 >>> >>> >>> On Thursday, March 2, 2023 at 4:12:46 PM UTC-7 vince wrote: >>> >>>> How about you just show the mosquitto_sub results without the xargs >>>> pipe please... >>>> >>>> -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e73d1e54-d663-4614-be5b-650e61e030e1n%40googlegroups.com.