sumnerboy12 / enasolar-py

2 stars 0 forks source link

Convert this code to python 3 #1

Open mbartelink opened 2 years ago

mbartelink commented 2 years ago

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 commented 2 years ago

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

mbartelink commented 2 years ago

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 commented 2 years ago

That's really cool, glad you got some use out of it! Open source rocks.

On Thu, 19 Aug 2021, 08:04 M, @.***> wrote:

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👍

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/sumnerboy12/enasolar-py/issues/1#issuecomment-901394144, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABGTR2TCTY4P5D6RS6OGKLTT5QG5LANCNFSM5CKTGBOA .