Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module allsky_publishdata.py failed on MQTT data publication #120

Open
PiotrNomad opened this issue Mar 22, 2024 · 3 comments
Open

Module allsky_publishdata.py failed on MQTT data publication #120

PiotrNomad opened this issue Mar 22, 2024 · 3 comments

Comments

@PiotrNomad
Copy link

Describe the bug
When trying to publish data to MQTT broker the module throws the exception in allsky.log:
ERROR: Module allsky_publishdata.py failed on line 224 - Client.init() missing 1 required positional argument: 'callback_api_version'
Nothing beeing published to MQTT.

To Reproduce
Steps to reproduce the behaviour:

  1. install BookWorm 32 bit lite on Rasberry pi
  2. install Allsky
  3. install publishdata module
  4. configure MQTT broker
  5. Activate publishdata module
  6. Restrt Allsky
  7. Waith for the 1st picture publication
  8. See error in /var/logs/allsky.log

Expected behaviour
No error in log
data been published

Allsky Information:

  • OS: Linux allsky 6.6.20+rpt-rpi-v8 Error - Allsky not installed #1 SMP PREEMPT Debian 1:6.6.20-1+rpt1 (2024-03-07) aarch64
  • Allsky Version: 2023.05.01_04
  • Pi model: Model 4B Revision 1.4 (2 GB)
  • Camera: HQ

Additional context
It seams thst this is typical behavior on BookWorm Rasbian.
I had the same issue with my code and solved it by: client = paho.Client(paho.CallbackAPIVersion.VERSION1)

@PiotrNomad
Copy link
Author

When I change theline 254 from:
client = paho.Client(client_id="", userdata=None, protocol=paho.MQTTv5)
to:
client = paho.Client(paho.CallbackAPIVersion.VERSION1, client_id="", userdata=None, protocol=paho.MQTTv5)
it works :)

@Alex-developer
Copy link
Collaborator

Thanks I'll take a look once I have finished testing the next release of Allsky

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants