So I actually did have it working with those suggestions at one time so I might go ahead and uninstall and start from scratch with mosquitto. I'll look closer at everything you sent when I have a moment to look at it closer. Thanks again
On Sat, May 6, 2023, 4:41 PM vince <[email protected]> wrote: > doh - I of course got those sub/pub commands backward. You use the -m > message for publishing. Sorry for the confusion. > > - subscribe in one window => mosquitto_sub -h x.x.x.x -t junk/testing > -u mosquittoUserHere -P mosquittoPassHere > - publish a test in another => mosquitto_pub -h x.x.x.x -t > junk/testing -u mosquittoUserHere -P mosquittoPassHere -m testing123 > > I added password protection to my pi setup and it works fine there and > after restarting weewx (after editing weewx.conf). Updated the github > page to show the edits I made. > > I did need to create the MQTT password file so the specified user/pass is > there. Remember it's not an account password. It's just a user/pass > combination for connecting to your MQTT server. > > On Saturday, May 6, 2023 at 1:23:20 PM UTC-7 vince wrote: > >> It's not hanging. It is not hearing anything. Hit control-C to stop >> listening with mosquitto_sub. >> >> On mine I see the loop messages every couple seconds basically >> immediately. I hit control-C after the first loop packet was displayed. >> >> $ mosquitto_sub -d -t simulator/# -h 192.168.1.232 >> Client null sending CONNECT >> Client null received CONNACK (0) >> Client null sending SUBSCRIBE (Mid: 1, Topic: simulator/#, QoS: 0, >> Options: 0x00) >> Client null received SUBACK >> Subscribed (mid: 1): 0 >> Client null received PUBLISH (d0, q0, r0, m0, 'simulator/loop', ... (1255 >> bytes)) >> {"dateTime": "1683403745.0", "usUnits": "1.0", "outTemp_F": >> "30.714330964267866", "inTemp_F": "64.4867113429638", "barometer_inHg": >> "31.022674842890833", "pressure_inHg": "31.022674842890833", >> "windSpeed_mph": "0.3866257855458439", "windDir": "346.0814717203496", >> "windGust_mph": "0.46395094265501235", "windGustDir": "346.0814717203496", >> "outHumidity": "77.68024528672494", "inHumidity": "27.026577314072398", >> "radiation_Wpm2": "911.9394844177033", "UV": "12.767152781847846", >> "rain_in": "0.0", "txBatteryStatus": "1.0", "windBatteryStatus": "0.0", >> "rainBatteryStatus": "0.0", "outTempBatteryStatus": "1.0", >> "inTempBatteryStatus": "0.0", "consBatteryVoltage_volt": "12.0", >> "heatingVoltage_volt": "12.876232859402455", "supplyVoltage_volt": "12.0", >> "referenceVoltage_volt": "11.725352060455753", "rxCheckPercent": >> "58.589515129677444", "altimeter_inHg": "31.812916691917174", "appTemp_F": >> "25.97065488238462", "cloudbase_foot": "2093.2738825982638", "dewpoint_F": >> "24.583925880835505", "heatindex_F": "30.714330964267866", "humidex_F": >> "30.714330964267866", "inDewpoint_F": "29.791543533239455", >> "maxSolarRad_Wpm2": "0.0", "rainRate_inch_per_hour": "0.0", "windchill_F": >> "30.714330964267866", "hourRain_in": "0.0", "rain24_in": "0.0", >> "dayRain_in": "0.0"} >> Client null received PUBLISH (d0, q0, r0, m0, 'simulator/loop', ... (1236 >> bytes)) >> ^CClient null sending DISCONNECT >> >> >> Test your mosquitto server... >> >> - subscribe in one window => mosquitto_sub -h x.x.x.x -t junk/testing >> -u mosquittoUserHere -P mosquittoPassHere -m testing123 >> - publish a test in another => mosquitto_pub -h x.x.x.x -t >> junk/testing -u mosquittoUserHere -P mosquittoPassHere >> >> If that doesn't work, your mosquitto setup is messed up. >> >> It ain't rocket science unless you are running a funky os variant or you >> have enabled packet filters blocking incoming traffic to the MQTT or >> Websockets ports. >> >> -- > 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/7568417f-4759-4e58-af7d-f8f3a8f71addn%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/7568417f-4759-4e58-af7d-f8f3a8f71addn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAG3iCAzCun80LiE%3Drk9qL_eLgyK-9viXFstuuG-C2LfQSgD8Mw%40mail.gmail.com.
