Ok, it might help to provide a full debug. Setup debug=1 in your weewx.conf, restart weewx and post the whole syslog from weewx startup to the error. Make sure to remove any passwords or sensitive information.
On Wednesday, July 3, 2019 at 8:31:18 AM UTC-4, Tadej Javornik wrote: > > It is the same, except now it is showing that unit sistem is in US > Jul 3 14:28:26 raspberrypi weewx[27355]: restx: MQTT: service version is > 0.19 > Jul 3 14:28:26 raspberrypi weewx[27355]: restx: MQTT: binding to > ['archive', 'loop'] > Jul 3 14:28:26 raspberrypi weewx[27355]: restx: MQTT: topic is vremetadej > Jul 3 14:28:26 raspberrypi weewx[27355]: restx: MQTT: desired unit system > is US > Jul 3 14:28:26 raspberrypi weewx[27355]: restx: MQTT: data will be > uploaded to mqtt:/[email protected]:10417/ > Jul 3 14:28:31 raspberrypi weewx[27355]: restx: MQTT: Unexpected > exception of type <type 'exceptions.ValueError'> > Jul 3 14:28:31 raspberrypi weewx[27355]: restx: MQTT: Thread exiting. > Reason: Inconsistent units (1 vs 1 vs 16) when querying for hourRain > > > Dne sreda, 03. julij 2019 14.21.18 UTC+2 je oseba Pat napisala: >> >> I am not sure if this will help, but try setting this in your weewx.conf >> [[MQTT]], then restart weewx. >> >> I added the unit_system line. >> >> [[MQTT]] >> server_url = mqtt://[email protected]:10417/ >> topic = xxx >> binding = archive, loop >> aggregation = individual, aggregate >> unit_system = US >> >> >> On Wednesday, July 3, 2019 at 8:18:59 AM UTC-4, Tadej Javornik wrote: >>> >>> weewx.conf : >>> target_unit = US >>> >>> >>> [[MQTT]] >>> server_url = mqtt://[email protected]:10417/ >>> topic = xxx >>> binding = archive, loop >>> aggregation = individual, aggregate >>> >>> >>> That is all i got in my weewx.conf. >>> >>> Dne sreda, 03. julij 2019 14.12.28 UTC+2 je oseba Pat napisala: >>>> >>>> This could be a unit inconsistency problem. >>>> >>>> What do you have set for target_unit in weewx.conf? >>>> And what do you have set for unit_system for [[MQTT]] in weewx.conf? >>>> >>>> >>>> On Wednesday, July 3, 2019 at 7:13:44 AM UTC-4, Tadej Javornik wrote: >>>>> >>>>> Hello, i want to use mqtt with Belchertown skin but I am having >>>>> problems with the upload. When i run weewx i get following output. >>>>> >>>>> Jul 3 13:07:58 raspberrypi weewx[22086]: restx: MQTT: service version >>>>> is 0.19 >>>>> Jul 3 13:07:58 raspberrypi weewx[22086]: restx: MQTT: binding to >>>>> ['archive', 'loop'] >>>>> Jul 3 13:07:58 raspberrypi weewx[22086]: restx: MQTT: topic is xxx >>>>> Jul 3 13:07:58 raspberrypi weewx[22086]: restx: MQTT: data will be >>>>> uploaded to mqtt://[email protected]:10417/ >>>>> Jul 3 13:08:01 raspberrypi weewx[22086]: restx: MQTT: Unexpected >>>>> exception of type <type 'exceptions.ValueError'> >>>>> Jul 3 13:08:01 raspberrypi weewx[22086]: restx: MQTT: Thread exiting. >>>>> Reason: Inconsistent units (1 vs 1 vs 16) when querying for hourRain >>>>> >>>>> What am I doing wrong? >>>>> >>>>> >>>>> >>>>> >>>>> -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/caa0848d-d7c1-4b71-9f6e-852774899a9c%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
