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

Convert this code to python 3 #1

Open
mbartelink opened this issue Aug 17, 2021 · 3 comments
Open

Convert this code to python 3 #1

mbartelink opened this issue Aug 17, 2021 · 3 comments

Comments

@mbartelink
Copy link

Hello,
I'm using this code for some time now succesfully on an SAJ solar inverter (using headless Ubuntu). After upgrading from Ubuntu 18 to Ubuntu 20, this script did not run due to incompatibilty with Python 3. I tried converting the code (using online converter). The code does not give errors on runtime anymore, but now just stops after starting. The logfile is set to debug and below is the output.
Hope you can help me. Thanks!

2021-08-17 22:10:37,685 INFO [saj_to_mqtt3] Starting SajSolar monitor
2021-08-17 22:10:37,685 INFO [saj_to_mqtt3] INFO MODE
2021-08-17 22:10:37,685 DEBUG [saj_to_mqtt3] DEBUG MODE
2021-08-17 22:10:37,747 INFO [base] Scheduler started
2021-08-17 22:10:37,748 DEBUG [base] Looking for jobs to run
2021-08-17 22:10:37,748 DEBUG [base] No jobs; waiting until a job is added
2021-08-17 22:10:37,860 INFO [base] Added job "request_meters" to job store "default"
2021-08-17 22:10:37,861 DEBUG [saj_to_mqtt3] Attempting connection to MQTT broker localhost:1883...
2021-08-17 22:10:37,861 DEBUG [base] Looking for jobs to run
2021-08-17 22:10:37,861 DEBUG [base] Next wakeup is due at 2021-08-17 22:11:07.859746+02:00 (in 29.997930 seconds)
2021-08-17 22:10:37,863 INFO [base] Scheduler has been shut down
2021-08-17 22:10:37,863 DEBUG [base] Looking for jobs to run
2021-08-17 22:10:37,864 DEBUG [base] No jobs; waiting until a job is added

@sumnerboy12
Copy link
Owner

Sorry mate - I no longer use this script so haven't looked at it in years.

@mbartelink
Copy link
Author

Ok, no problem, I will try to sort it myself. There seems to be very limited solutions like this elsewhere, so I appreciated your script and it had been running for years (used in combination with openhab).
Thank you for sharing sir👍

@sumnerboy12
Copy link
Owner

sumnerboy12 commented Aug 18, 2021 via email

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