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

aag_cloudwatcher_ng not working with latest CloudWatcher hardware and firmware #1018

Open
jmocenigo opened this issue Jan 9, 2025 · 8 comments
Labels
bug Something isn't working

Comments

@jmocenigo
Copy link

Describe the bug
So, this may be me or it may be a bug, but indi_aagcloudwatcher_ng is not working for me. I just received my CloudWatcher directly from Lunatico Astronomia within the last month. It has the latest firmware. The specific error I see (repeatedly) is:

2025-01-09T19:57:00: [ERROR] Can not get data from device 
2025-01-09T19:57:00: [ERROR] ERROR in getIRSkyTemperature 

Looking at the code, specifically "CloudWatcherController::getValues" does not seem to match the latest documentation found at:
Fifth Addenda
In that the parse order of the first "sscanf" function call (and others, perhaps) seems wrong.

Note: I can run the Lunatico supplied Windows software on my Linux box under "wine" and it works fine. Screenshot attached (FYI: readings shown in F and mph). So, the hardware is properly attached.

To Reproduce
Get a recent CloudWatcher (with SQM sensor) and 5.89 firmware and try to start "AAG Cloudwatcher NG" weather module.

Expected behavior
After a short delay, the above error messages will appear cyclically and all readings in the "Device Raw Readings" tab will be zero.

Screenshots
A screenshot of the Device Raw Reading tab and error log is attached.

Desktop (please complete the following information):

  • OS: Ubuntu 24.04LTS
  • Version: KStars 3.7.4 Stable

Log Files
log_15-11-11.txt attached.

wine_aag
aag
log_15-11-11.txt

@jmocenigo jmocenigo added the bug Something isn't working label Jan 9, 2025
@jmocenigo
Copy link
Author

P.S. If you agree that it is a bug, then I will be happy to fix it. Just let me know. Thanks.

@knro
Copy link
Collaborator

knro commented Jan 10, 2025

It would be great if you can find the root cause. I tried to fix these issues a while ago but I don't have an actual unit to test with. So a PR would be greatly appreciated!

@jmocenigo
Copy link
Author

Is this still the proper process to follow?
How to Contribute to INDI Github Development
If not, please send an updated link.

@knro
Copy link
Collaborator

knro commented Jan 11, 2025

Sure, you can still use this guide.

@jmocenigo
Copy link
Author

jmocenigo commented Jan 14, 2025

Jasem: So, I believe I am making good progress, but I have a question: there is a Site Management panel that contains Lat/Long/Elevation information. If I have access to elevation, then I can compute relative pressure in addition to absolute pressure. So, how can I query for the elevation value? Can you point to an example (or provide one)?

Incidentally, I get the feeling that in practice one would not use this driver as it stands since you don't want to start and stop the weather station, but rather leave it running continuously. So, I suspect one with CloudWatcher hardware would prefer to be doing one of the following rather than use this driver directly, since it runs in so-called "master" mode:

  1. Run in "slave" mode (such an option to allow this ability would need to be added to this driver) though option number 2 below is likely the better way to go in this regard;
  2. Use the Weather Watcher driver (assuming it can process the AAG json file intended for "slave" mode);
  3. If the user has the Lunatico Astro Solo, then use the Weather Watcher driver to access its URL (assuming Weather Watcher can handle that format).

I have not tried Weather Watcher yet, so I don't know if it already has these abilities.

I will say that with some additions, this driver could provide value (aside from session operation of CloudWatcher) as a way for non-Windows users to update the CloudWatcher firmware (options to do that would have to be added, but at least the serial communication protocol supports it). This driver could also be extended to allow non-Windows users to alter CloudWatcher's parameters that are stored in non-volatile memory.

@jmocenigo
Copy link
Author

jmocenigo commented Jan 31, 2025 via email

@knro
Copy link
Collaborator

knro commented Jan 31, 2025

I'm just commenting here to say that my company was experiencing similar issues with this driver. By cloning this repo and debugging for a few days, I was able to write a patch that got this driver working. My manager is currently in the process of checking whether or not I'm allowed to share this patch with you guys

Please let us know as we we going to tag next INDI release tomorrow.

@jmocenigo
Copy link
Author

jmocenigo commented Jan 31, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants