Sidewinder Posted February 17, 2017 Share Posted February 17, 2017 So I'm trying to get MQTT going on the Pi3. Started with Manie's image, and didn't realise that everything is already in place, and started to install mosquitto, mosquitto-clients & python-mosquitto, as per many help pages on google. After all that was done, no errors, but as soon as I try to subscribe or check status like "mosquitto_sub -h localhost -v -t "\$SYS/#" ", it reports "Error: Connection refused" Anybody have an idea where i went wrong..or do I just start over with new image?. Don't want to do that, as every time i restart pi, I loose that days info, as I'm not yet able to command pi to do a "save" of the current data - is that even possible? And a restore afterwards. Many thanks. Quote Link to comment Share on other sites More sharing options...
___ Posted February 17, 2017 Share Posted February 17, 2017 I assume you used apt-get to install it? If yes, then it should be as simple as removing the packages again: apt-get --purge remove mosquitto mosquitto-clients. I'm not sure how Manie starts up the daemon. Back when I was still building a pi-based system (before I decided to stick that effort into Venus instead), I wrote down some instructions on compiling your own, which I had to do because the version that ships with Raspbian Jessie is old and somewhat buggy. Those instructions are here. There is also a systemd configuration file to start it automatically, here. Not saying you should do what I did, Manie will know best, but at least that's some instructions you can use if you wanted to do your own. Dean Lennox 1 Quote Link to comment Share on other sites More sharing options...
ebrsa Posted February 17, 2017 Share Posted February 17, 2017 @Sidewinder I would reinstall @Manie 's image and start with a clean system. That is what I did when I switched to ICC-Pi and all has been working flawlessly. I had the version of Jessie from Raspberry Pi Foundation on my Pi together with the AICC Pi installation which required a number of install steps. I am not in @plonkster 's league IT wise but have been using Ubuntu as my main operating system for about 10 years and the Pi since it became generally available. At least you won't have any unforeseen gremlins lurking in the depths of the software and getting MQTT going will be the proverbial piece of cake. It is a small price to pay in lost records in exchange for peace of mind and a working system. Or if you have a spare SD card available, install on that, see how it works and then make a decision. Quote Link to comment Share on other sites More sharing options...
Sidewinder Posted February 17, 2017 Author Share Posted February 17, 2017 Yes, did the whole shebang. Just worried to purge, because I had a look in the mosquitto log, and looks like ICC does a few things there already. Quote Link to comment Share on other sites More sharing options...
PaulF007 Posted February 24, 2019 Share Posted February 24, 2019 On 2017/02/17 at 1:33 PM, Sidewinder said: I had a look in the mosquitto log, and looks like ICC does a few things there already. If the Broker is receiving data you could try and connect to the Broker with # as the topic. If there is any info coming through to the broker you will catch it in the payload. You will need to Broker IP and User / Password , if it has one, and a client to connect to the broker. I prefer Node red as you can then follow the data but mqtt lens (Chrome) should also do the trick. This should show if the broker is working there else follow erbsa's advice... Quote Link to comment Share on other sites More sharing options...
PaulF007 Posted February 24, 2019 Share Posted February 24, 2019 (edited) OMW this is a Very OLD post - apologies I didn't look at the dates! Admin - if this does not add value please remove ...... Edited February 24, 2019 by PaulF007 Quote Link to comment Share on other sites More sharing options...
Sidewinder Posted February 25, 2019 Author Share Posted February 25, 2019 @PaulF007, No worries, I do that sometimes as well! (reading old posts!) I may as well start with a clean image, now that ICC-APM is available, and I have ordered one. Quote Link to comment Share on other sites More sharing options...
jcdup Posted July 7, 2021 Share Posted July 7, 2021 On 2019/02/24 at 6:55 PM, PaulF007 said: OMW this is a Very OLD post - apologies I didn't look at the dates! Admin - if this does not add value please remove ...... The thread was very old when you posted but your post helped me yesterday. . I have been running ICC for a while but am now starting to dabble in Home Assistant and was looking for info to get me going on using MQTT to get info regarding my inverters from ICC into HA. Your statement "If the Broker is receiving data you could try and connect to the Broker with # as the topic" was exactly what I needed. I had no clue what topics there were. Thanks! PaulF007 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.