Trixology

WeatherCat => WeatherCat General Discussion => Topic started by: wurzelmac on September 27, 2023, 01:31:51 PM

Title: Issues with FTP and SteelSeriesGauges - SOLVED
Post by: wurzelmac on September 27, 2023, 01:31:51 PM
Hi, now it's up to me to ask: I was forced to move WeatherCat to another machine after my beloved Mac mini mid 2011 died away. Till a new Mac mini arrives, I moved over to a MacBookAir Early 2014. Now all things are working except the Main FTP and Aux FTP the error messages within the logfiles are:

Quote
Aux. FTP: FTP ERROR (666) - Unknown FTP Error
...
Aux. FTP: FTP Warning: --ssl is an insecure Option, consider --ssl-reqd instead

The same warning is given to me when testing my FTP preferences. All other uploads (Wunderground, WeatherCloud, CWOP) are working fine.

Any ideas what I can do? Or what I have overseen?
Thanks in advance, Reinhard
Title: Re: FTP Error after moving WeatherCat to another machine
Post by: xairbusdriver on September 27, 2023, 03:09:04 PM
I've seen several posts here that claim installing Apple's Command Line Tools has often solved FTP errors/problems with newer Mac OS versions. Apparently, Apple is not installing the latest UNIX tools in the consumer OS updates. Those tools come with the massive Xcode installation (useful/needed by developers). However, you can install the much smaller Command Line Tools separately: Additional Tools (https://developer.apple.com/xcode/resources/) (scroll down a bit to see this section of the page)
Note the text in that section of the page:
Quote
Get command line tools, older versions of Xcode and beta version of other software. To view downloads, simply sign in with your Apple ID. Apple Developer Program membership is not required.

Hope this helps!

Save the download, you may need to install these tools again when you get your replacement mini.
Title: Re: FTP Error after moving WeatherCat to another machine
Post by: wurzelmac on September 27, 2023, 03:58:27 PM
It's a kind of magic...

but not for me. Thanks xair, but that did not work for me. By the way, I am on Big Sur in the moment. So any other suggestions?
(And a question apart from this thread: What Mac mini do you prefer - Intel, M1, M2 - it should only handle WeatherCat and FTP?)

Thx in the meantime,
Reinhard
Title: Re: FTP Error after moving WeatherCat to another machine
Post by: xairbusdriver on September 27, 2023, 05:05:55 PM
Sorry for not fixing anything. [rolleyes2] Hopefully Stu will get this FTP thing figured out soon. He'll might be able to also fix that SQL thing, also! Could that be a hosting problem? [coffee]

I'm using the 'old' Intel mini:
My main problem is the mini restarting itself about every 35 days. [banghead] WC restarts automatically, never lost any dada that I'm aware of. ::)
Title: Re: FTP Error after moving WeatherCat to another machine
Post by: wurzelmac on September 27, 2023, 05:18:29 PM
The mini restarting itself was my main problem, too. But not in weeks or months - it was in days or hours. And now - my good oll' Mac mini has done its job for severeal years without gripe about anything. Rest in peace, brave mini. Who's the one to follow you?
Title: Re: FTP Error after moving WeatherCat to another machine
Post by: wurzelmac on September 27, 2023, 05:36:27 PM
Back to the main problem: How can I fix this FTP issue?  :(
Title: Re: FTP Error after moving WeatherCat to another machine
Post by: The Grand Poohbah on September 27, 2023, 06:24:58 PM
It's a kind of magic...

but not for me. Thanks xair, but that did not work for me. By the way, I am on Big Sur in the moment. So any other suggestions?
(And a question apart from this thread: What Mac mini do you prefer - Intel, M1, M2 - it should only handle WeatherCat and FTP?)

Thx in the meantime,
Reinhard

I use a 8GB Mac mini M1 for WeatherCat and other monitoring software. Performance is excellent. It's quiet. It uses minimal energy (goes many hours on a UPS when we have power outages.) And it keeps working 24/7
Title: Re: FTP Error after moving WeatherCat to another machine
Post by: elagache on September 27, 2023, 10:17:17 PM
Dear Reinhard, X-Air, Grand, and WeatherCat troubleshooters,

Hi, now it's up to me to ask: I was forced to move WeatherCat to another machine after my beloved Mac mini mid 2011 died away. Till a new Mac mini arrives, I moved over to a MacBookAir Early 2014. Now all things are working except the Main FTP and Aux FTP the error messages within the logfiles are:

Quote
Aux. FTP: FTP ERROR (666) - Unknown FTP Error
...
Aux. FTP: FTP Warning: --ssl is an insecure Option, consider --ssl-reqd instead
. . .

Could you have a corrupted preference file by chance?  Do you have an earlier version (say from a Time Machine backup.)  If so you could try replacing the current version using the instructions on the WeatherCat Wiki:

https://wiki.trixology.com/index.php?title=How_to_create_and_use_a_backup_of_your_WeatherCat_preferences_file (https://wiki.trixology.com/index.php?title=How_to_create_and_use_a_backup_of_your_WeatherCat_preferences_file)

Something else to check is that your FTP addresses haven't changed.  There is small piece on the Wiki that might help:

https://wiki.trixology.com/index.php?title=Troubleshooting_FTP_connection_problems (https://wiki.trixology.com/index.php?title=Troubleshooting_FTP_connection_problems)

Let us know if either of those suggestions help.

Edouard
Title: Re: FTP Error after moving WeatherCat to another machine
Post by: wurzelmac on September 28, 2023, 07:59:48 AM
Edouard,
genius support manager - you nailed it: after replacing the existing plist with an older one ftp is working again! Thank you very much!

Grand,
I am seeing a cheap Mini M2 in the Apple refurb store (8GB / 256 GB) and will order it today - thank you, too, for sharing your knowledge. And though its a M2 I think WeatherCat will work on it, hopefully...  :)

To all others - thanks for reading and trying to help!
Reinhard
Title: Re: FTP Error after moving WeatherCat to another machine
Post by: Steve on September 28, 2023, 02:53:08 PM
Reinhard,
In anticipation of replacing my 2017 iMac with a new MacBook Pro in the spring, I recently added a 2023 Mac mini M2 Pro with 32 GB RAM and 2T SSD.

I got this combination as a headless server that runs WeatherCat, Roon Core (music server), Plex Media Server, and Security Spy (security camera hub.) The only other applications running on that machine are Backblaze (for backups), Amphetamine, and MacUpdater.

It is currently running MacOS Sonoma and WeatherCat 3.2 Build 364. All I needed to add was Xcode, and I'm still running V14.3.1 of that. I'm not running the latest development version of WeatherCat, as it does not yet have the modules included for AWEKAS, PWS, or WeatherCloud.
Title: Great! (Re: FTP Error after moving WeatherCat to another machine)
Post by: elagache on September 28, 2023, 11:10:16 PM
Dear Reinhard and WeatherCat faithful,

genius support manager - you nailed it: after replacing the existing plist with an older one ftp is working again! Thank you very much!

Glad to hear it was that simple a fix and you are back in operation!

Edouard
Title: Re: FTP Error after moving WeatherCat to another machine
Post by: wurzelmac on September 30, 2023, 11:56:20 AM
Thank you Steve, for confirming WeatherCat is able to run on an M2. So for only WeatherCat (and the System, indeed...  :D ) running my config (8/256) should be ok. I'll be back when I am on the new setup. AND: I'll be back if I run into problems.  ;)

Reinhard
Title: Re: FTP Error after moving WeatherCat to another machine
Post by: wurzelmac on October 03, 2023, 05:08:07 PM
(NOT)Final report: WeatherCat sits on an new refurbished Mac mini 2023 (8/256) an behaves well dressed. But I do have an issue that I cannot figure out: In System Preferences I can choose between the following three numbers formats: 1,234,567.00 or 1.234.567,00 or 1 234 567,00 - there is NO WAY to tell my system it should use 1234567,00 - really? So AWEKAS, WeatherCloud and Wundergraund can handle it, but not so do the SteelSeries Gauges. How can I get rid of this - any ideas? Thanks for any help, much appreciated.
Reinhard
Title: Re: FTP Error after moving WeatherCat to another machine
Post by: wurzelmac on October 03, 2023, 05:36:32 PM
Thats what the Pressure gauge shows.  :-[
Title: Re: FTP Error after moving WeatherCat to another machine
Post by: elagache on October 03, 2023, 11:11:04 PM
Dear Reinhard and WeatherCat speakers of languages beyond US-English,

(NOT)Final report: WeatherCat sits on an new refurbished Mac mini 2023 (8/256) an behaves well dressed. But I do have an issue that I cannot figure out: In System Preferences I can choose between the following three numbers formats: 1,234,567.00 or 1.234.567,00 or 1 234 567,00 - there is NO WAY to tell my system it should use 1234567,00 - really? So AWEKAS, WeatherCloud and Wundergraund can handle it, but not so do the SteelSeries Gauges. How can I get rid of this - any ideas? Thanks for any help, much appreciated.
Reinhard

Unfortunately, I can't easily replicate your problem such that I could help.  Can anyone else running WeatherCat in something other than US-English offer some suggestions?

Edouard
Title: Re: FTP Error after moving WeatherCat to another machine
Post by: mcrossley on October 04, 2023, 11:00:28 AM
Assuming you use the 123 456,78 format, then in the gauges.js script you could try this version of the extractDecimal() function - around line 3320 in my copy

Code: [Select]
        extractDecimal = function (str, errVal) {
            try {
                return (/[-+]?[0-9]+\.?[0-9]*/).exec(str.replace(',', '.').replace(' ', ''))[0];
            } catch (e) {
                // error condition
                return errVal || -9999;
            }
        },
Title: FTP and SteelGauges issues
Post by: wurzelmac on October 04, 2023, 12:11:35 PM
WOW - working, thank you very much. Much appreciated - really!!! Maybe you will add something in your "preferences" code to let the user choose what numbers seperator is used.

This dicussion is drifting off from its main theme a bit (  ;) ) - so I changed the title...

Thanks for all the help I got to get rid of my various issues - thanks alot!

Reinhard
Title: Re: FTP Error after moving WeatherCat to another machine - SOLVED
Post by: mcrossley on October 04, 2023, 07:16:05 PM
No problem, I'll make that change to the master script - it works with the other formats too, except 123,456.78 that is still problematic.
Title: Re: FTP Error after moving WeatherCat to another machine - SOLVED
Post by: mcrossley on October 05, 2023, 09:39:01 PM
After looking at the realtimegaugesWC.txt file, I remembered that the first thing in the file is the config tag DOTSEPARATORS$, this is supposed to make WC use machine readable number formats in the file rather than the locale format.

Is this not working anymore?
Title: Re: FTP Error after moving WeatherCat to another machine - SOLVED
Post by: wurzelmac on October 06, 2023, 09:05:30 AM
Mark - shame on me. I was using an older .txt file than that one that you provide on your github page. Now I replaced the older with the newer one and set the extractDecimal() function back to its origin. Seems like the pressure gauge is working good now - I will observe it and let you know. Thanks for all and sorry for bringing in some confusion because using an older file...
Title: Re: FTP Error after moving WeatherCat to another machine - SOLVED
Post by: mcrossley on October 06, 2023, 01:13:39 PM
Well, it appears to be good news in that it isn't a problem with WC  :)
Title: Re: Issues with FTP and SteelSeriesGauges - SOLVED
Post by: Blicj11 on October 21, 2023, 10:54:37 PM
Glad you have found success, Reinhard.