×

INDI Library v2.0.7 is Released (01 Apr 2024)

Bi-monthly release with minor bug fixes and improvements

MQTT publisher for INDI

  • Posts: 983
  • Thank you received: 375
I have just released MQTT publisher for INDI.
It sends every single property of all active devices to a mqtt server of your choice.
It is available for all Astroberry users from apt repository. Just run:
sudo apt install python-setuptools python-dev libindi-dev swig libcfitsio-dev libnova-dev
sudo apt install --no-install-recommends indi-mqtt

If you want to use it and do not use Astroberry, you can download the package from here and install it manually:
sudo dpkg -i indi-mqtt_1.0.0_all.deb

Have fun!
The following user(s) said Thank You: Patrick Chevalley, Craig
4 years 4 months ago #46793

Please Log in or Create an account to join the conversation.

  • Posts: 983
  • Thank you received: 375
Sources and some details available here: github.com/rkaczorek/indi-mqtt
4 years 4 months ago #46794

Please Log in or Create an account to join the conversation.

  • Posts: 210
  • Thank you received: 104
Thank you for this work!

I just installed it, connect to mosquitto, do some test with the indi simulator and browse the result. This look fine.
The following user(s) said Thank You: Radek Kaczorek
4 years 4 months ago #46796
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 407
  • Thank you received: 74
Yep - pretty easy and quick (minutes) to knock up Node Red interface like attached picture
RPI3 Ubuntu 16.04 / AMD desktop Kstars under Ubuntu 16.04 Mounts :azeq6 ,SWAZGoTo

RPI3 Fedora testing out on AMD desktop Fedpra 28 - running kstars 2.9.4 , Indilib 1.7.4 ?????
The following user(s) said Thank You: Radek Kaczorek
4 years 4 months ago #46823
Attachments:

Please Log in or Create an account to join the conversation.

  • Posts: 102
  • Thank you received: 13

Replied by dolguldur on topic MQTT publisher for INDI

Absolutely amazing job !
I was looking for something like this for quite a while !
4 years 4 months ago #46856

Please Log in or Create an account to join the conversation.

  • Posts: 126
  • Thank you received: 16
I tried to install the deb package, but got a dependency error. I don't have astroberry installed so I downloaded the deb from the link provided. Upon installation I got the following dependency that was not met:
python3-paho-mqtt , which isn't available (tried sudo apt install python3-paho-mqtt)
How can I resolve this error?
4 years 4 months ago #46871

Please Log in or Create an account to join the conversation.

  • Posts: 210
  • Thank you received: 104
Wim, which system do you use?
If Ubuntu, this package is available only since 18.04, see:
packages.ubuntu.com/search?keywords=pyth...uite=all§ion=all
The following user(s) said Thank You: Wim van Berlo
4 years 4 months ago #46876

Please Log in or Create an account to join the conversation.

  • Posts: 983
  • Thank you received: 375

In cases dependency packages are not available for your distribution you need to go manual way
sudo apt install python-setuptools python-dev libindi-dev swig libcfitsio-dev libnova-dev
sudo pip3 install pyindi-client paho-mqtt simplejson
git clone https://github.com/rkaczorek/indi-mqtt.git
cd indi-mqtt
sudo cp indi-mqtt.py /usr/bin/
sudo cp indi-mqtt.service /etc/systemd/system/
sudo cp indi-mqtt.conf /etc/

Edit your settings in /etc/indi-mqtt.conf and then
sudo systemctl daemon-reload
sudo systemctl enable indi-mqtt.service
sudo systemctl start indi-mqtt.service
sudo systemctl status indi-mqtt.service

HAve fun!
The following user(s) said Thank You: Wim van Berlo
4 years 4 months ago #46885

Please Log in or Create an account to join the conversation.

  • Posts: 126
  • Thank you received: 16
@pch : I have Ubuntu 16.04. The RPi hasn't been used for a while. I'll do a release upgrade and try again. Thanks
4 years 4 months ago #46887

Please Log in or Create an account to join the conversation.

  • Posts: 64
  • Thank you received: 9

Replied by Ray on topic MQTT publisher for INDI

Hi, I'm running Indi server with Ubuntu 18.04 on a desktop PC. When I run sudo dpkg -i indi-mqtt_1.0.1_all.deb I get the following output ...
ray@indiastro:/shared$ sudo dpkg -i indi-mqtt_1.0.1_all.deb
(Reading database ... 133158 files and directories currently installed.)
Preparing to unpack indi-mqtt_1.0.1_all.deb ...
Removed /etc/systemd/system/multi-user.target.wants/indi-mqtt.service.
Unpacking indi-mqtt (1.0.1) over (1.0.0) ...
Setting up indi-mqtt (1.0.1) ...

Usage:
pip install [options] <requirement specifier> [package-index-options] ...
pip install [options] -r <requirements file> [package-index-options] ...
pip install [options] [-e] <vcs project url> ...
pip install [options] [-e] <local project path> ...
pip install [options] <archive url/path> ...

no such option: --no-warn-script-location
Created symlink /etc/systemd/system/multi-user.target.wants/indi-mqtt.service → /etc/systemd/system/indi-mqtt.service.

When I run indi-mqtt from the command line I get this ...

ray@indiastro:/shared$ sudo /usr/bin/indi-mqtt.py
INDI server localhost/7624 disconnected.
Traceback (most recent call last):
File "/usr/bin/indi-mqtt.py", line 315, in <module>
observatory_json = getJSON(devices)
File "/usr/bin/indi-mqtt.py", line 223, in getJSON
device_type = strDeviceType(device.getDriverInterface())
File "/usr/bin/indi-mqtt.py", line 146, in strDeviceType
if s & 0:
TypeError: unsupported operand type(s) for &: 'SwigPyObject' and 'int'
swig/python detected a memory leak of type 'uint16_t *', no destructor found.

I've also tried installing as per the instructions above provided by Kaczorek but I get the same error when run manually.

Any ideas please?
4 years 4 months ago #46896

Please Log in or Create an account to join the conversation.

  • Posts: 126
  • Thank you received: 16
I have a Raspberry Pi 2B, so hardware may be part of the problem. Yesterday I couldn't even upgrade to ubuntu 18.04. Maybe time to upgrade to at least a 3B+, or even a Rock Pi.
4 years 4 months ago #46904

Please Log in or Create an account to join the conversation.

  • Posts: 983
  • Thank you received: 375
@p1cass0, what version of pyindi-client you are running? you should run at least version 0.2.4

Check it with:
pip3 show pyindi-client

and if it is lower than 0.2.4, run
sudo pip3 install --upgrade pyindi-client
The following user(s) said Thank You: Ray
4 years 4 months ago #46917

Please Log in or Create an account to join the conversation.

Moderators: Radek Kaczorek
Time to create page: 0.683 seconds