Author Topic: SFTP and/or PHP Uploads  (Read 7270 times)

elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6661
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Thanks for sharing! (Re: SFTP and/or PHP Uploads)
« Reply #15 on: January 24, 2024, 11:21:16 PM »
Thanks Reinhard for sharing!

Unfortunately, a bit complicated as you say, but glad to hear that your website is back up and running!

Edouard

wx-watch

  • Guest
Re: SFTP and/or PHP Uploads
« Reply #16 on: January 26, 2024, 09:07:55 AM »
It would still be nice to know if SFTP/PPH is ever coming to WeatherCat  :D :D

wurzelmac

  • Storm
  • *****
  • Posts: 1434
    • ITIROLPR2
    • Wetterstation Prägraten am Großvenediger
  • Station Details: Davis Vantage PRO2 Plus (24h fan aspirated, wireless) with UV/Solar | Weather Envoy Data Logger | Mac mini 2023 M2 8/256 | 1x Canon EOS 1100D | macOS Sonoma 15.0.1 | WC v330b300
Re: SFTP and/or PHP Uploads
« Reply #17 on: January 26, 2024, 06:59:34 PM »
It would still be nice to know if SFTP/PPH is ever coming to WeatherCat  :D :D

Agreed.
Reinhard


idunn

  • Strong Breeze
  • ***
  • Posts: 161
  • name: idunn
    • icantono2
    • Magpie Hill
  • Station Details: WS1080, iMac 10.9.5, Canon Powershot A510 zoomed with gphoto2, located at 950m in Gross Switzerland, Webcam view SE to Alps on magpie-hill.com on WeatherCloud (MagpieHill) and Wunderground (ID icantono2)
Re: SFTP and/or PHP Uploads
« Reply #18 on: April 10, 2024, 08:54:03 AM »
Hi folks,
I have been absent here for awhile and glad to see some familiar names on the forum. Recently I set up a new webpage with Godaddy. First it was a Wordpress basic and later a more knowledgeable guy told me that I needed C-panel. Of course it costs more, about $100 per year, seems like a lot. Anyway I am trying to figure out to upload the Simple Web Page to my new webpage. I am still using WC v1 with my tried and trusty $100 WH1080 weather machine. It seems to be working fine. My Simple Web Page looks good and up to date with the test.
I have gotten so far with Godaddy that I have a new domain, magpiehill.net, an FTP username and password.  I have tried these on the FTP WC pane and with it I get an FTP error: Couldn't resolve host. The clever guy on Godaddy even asked his AI and got two possible directory addresses but these did not work.
I will be grateful if anyone has any ideas about how to proceed. I emailed Stu and Edouard yesterday but have no answer yet.
All the best, Irving

idunn

  • Strong Breeze
  • ***
  • Posts: 161
  • name: idunn
    • icantono2
    • Magpie Hill
  • Station Details: WS1080, iMac 10.9.5, Canon Powershot A510 zoomed with gphoto2, located at 950m in Gross Switzerland, Webcam view SE to Alps on magpie-hill.com on WeatherCloud (MagpieHill) and Wunderground (ID icantono2)
Re: SFTP and/or PHP Uploads
« Reply #19 on: April 10, 2024, 09:16:06 AM »
Hi folks,
I am not sure if my Godaddy Cpanel might be using SFTP. Just read about what Edouard wrote about a trick for FTP uploading using Forklift. It seems not too complicated and not so costly. Is anyone using it? One problem I would have is that my Weathercat is on an old Mac. Can someone guide me as to how to get WC onto my newer Mac?
Regards to all,
Irving

Blicj11

  • Storm
  • *****
  • Posts: 4061
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Sonoma 14.8.3 | WeatherCat 3.3 | Supportive Wife
Re: SFTP and/or PHP Uploads
« Reply #20 on: April 11, 2024, 07:49:21 PM »
I am still using GoDaddy with cPanel and it is definitely using FTP. My plan is called Web Hosting Economy. I had a different plan at first but found it was using SFTP so GoDaddy switched it out for me.

Your other question about moving WeatherCat from one Mac to another is answered in the WeatherCar Wiki:
https://wiki.trixology.com/index.php?title=Moving_a_WeatherCat_installation_from_one_computer_to_another
Blick


Ralph Kronenberg

  • Calm
  • *
  • Posts: 3
    • DW6206
    • INORDRHE63
  • Station Details: WS2300 on MacMini 2.53 - WC1.1.5
Re: SFTP and/or PHP Uploads
« Reply #21 on: September 21, 2024, 12:54:56 AM »
Dear Jean Fred and WeatherCat troubleshooters,

WeatherCat uses a UNIX command line tool called curl to make the FTP transfers.  As of the last check, macOS didn't include an updated version of curl that supported SFTP.  That was a long time ago, but Apple doesn't seem to be anxious to update the UNIX tools.  The current version of curl supports SFTP and it is possible to update your copy on your Mac using MacPorts.  However, that is quite a hassle and most WeatherCat users won't be willing to go through that geeky process.  Stu has added SFTP support to the WeatherCat feature enhancement list, but there is no way of knowing when it will be implemented.

Sorry, but that is the status of WeatherCat SFTP support at the moment.

Edouard

Hello, I have copied the above text from another thread to the Sftp problem, because I have tried the procedure described there. I have installed a new curl version on my MacMini with MacPorts, which also supports sftp. Unfortunately, the connection to my provider does not work even with the new curl version. I assume that WC passes a wrong syntax to curl. And now?


elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6661
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Either FTP or FTPS. (Re: SFTP and/or PHP Uploads)
« Reply #22 on: September 21, 2024, 09:36:03 PM »
Dear Ralph and WeatherCat web spinners,

. . .
Hello, I have copied the above text from another thread to the Sftp problem, because I have tried the procedure described there. I have installed a new curl version on my MacMini with MacPorts, which also supports sftp. Unfortunately, the connection to my provider does not work even with the new curl version. I assume that WC passes a wrong syntax to curl. And now?

Unfortunately, it is not sufficient to have a version of curl on your Mac that supports SFTP.  WeatherCat would need to be updated to have access to this updated version.  I'm sure part of the problem is that Apple does not want software to employ UNIX "hacks" in order to operate.  So for the moment, WeatherCat is very much the prisoner of Apple management.

That leaves you two alternatives.  You can check with your web hosting provider to see if they support FTPS.  That is supported by the current versions of WeatherCat.

The other more painful alternative is to change web hosting provider.  As noted in the previous posting, Blick uses GoDaddy that still permits FTP uploads.  I and other WeatherCatters use Dreamhost which allow still supports the FTP protocol.  I can attest that DreamHost provides a very high level of service at what I consider to be reasonable cost.

Sorry to not have any other alternatives to offer.

Edouard

Blicj11

  • Storm
  • *****
  • Posts: 4061
    • EW3808
    • KUTHEBER6
    • Timber Lakes Weather
  • Station Details: Davis Vantage Pro2 Plus | WeatherLinkIP Data Logger | iMac (2019), 3.6 GHz Intel Core i9, 40 GB RAM, macOS Sonoma 14.8.3 | WeatherCat 3.3 | Supportive Wife
Re: Either FTP or FTPS. (Re: SFTP and/or PHP Uploads)
« Reply #23 on: September 21, 2024, 10:24:15 PM »
That leaves you two alternatives.  You can check with your web hosting provider to see if they support FTPS.  That is supported by the current versions of WeatherCat.

The other more painful alternative is to change web hosting provider.  As noted in the previous posting, Blick uses GoDaddy that still permits FTP uploads. 

I am using GoDaddy cPanel hosting (their only option that allows FTP) and uploading from Weather Cat using FTPS.
Blick


wx-watch

  • Guest
Re: SFTP and/or PHP Uploads
« Reply #24 on: September 22, 2024, 08:24:22 PM »
I have said elsewhere I get round the problem of my hosting company IONOS supporting only SFTP by using my own FTP server on the same MAC as WC. I use the WC ftp to upload to that and then use rsync to upload to my weather site

elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6661
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Another solution. (Re: SFTP and/or PHP Uploads)
« Reply #25 on: September 22, 2024, 09:56:48 PM »
Dear wx-watch and WeatherCat troubleshooters,

I have said elsewhere I get round the problem of my hosting company IONOS supporting only SFTP by using my own FTP server on the same MAC as WC. I use the WC ftp to upload to that and then use rsync to upload to my weather site

Yes, you are correct.  Apologies for not remembering.  A lot on my mind these days.

Edouard

Ralph Kronenberg

  • Calm
  • *
  • Posts: 3
    • DW6206
    • INORDRHE63
  • Station Details: WS2300 on MacMini 2.53 - WC1.1.5
Re: SFTP and/or PHP Uploads
« Reply #26 on: September 23, 2024, 01:48:47 PM »
I have said elsewhere I get round the problem of my hosting company IONOS supporting only SFTP by using my own FTP server on the same MAC as WC. I use the WC ftp to upload to that and then use rsync to upload to my weather site

Hello, with rsync I unfortunately do not get to the goal with me, webspace on gmx. Only sftp is allowed. :(

Then I have to wait for WC to allow sftp uploads at some point.

elagache

  • Global Moderator
  • Storm
  • *****
  • Posts: 6661
    • DW3835
    • KCAORIND10
    • Canebas Weather
  • Station Details: Davis Vantage Pro-2, Mac mini (2018), macOS 10.14.3, WeatherCat 3
Re: SFTP and/or PHP Uploads
« Reply #27 on: September 23, 2024, 09:58:52 PM »
Dear Ralph, wx-watch, and WeatherCat tinkerers,

. . . .
I use the WC ftp to upload to that and then use rsync to upload to my weather site

Hello, with rsync I unfortunately do not get to the goal with me, webspace on gmx. Only sftp is allowed. :(

I made a quick scan of the rsync manual and don't see any obvious way to use it to replace sftp.  wx-watch, could you please explain how your solution works for the WeatherCat community?

Thanks in advance,

Edouard

wx-watch

  • Guest
Re: SFTP and/or PHP Uploads
« Reply #28 on: September 23, 2024, 10:39:15 PM »
As I said I use an FTP server on my Mac Mini and WC uploads to that.
I then use rsync via a cron job to upload the WC data from the Mac Mini to my website.

Ralph Kronenberg

  • Calm
  • *
  • Posts: 3
    • DW6206
    • INORDRHE63
  • Station Details: WS2300 on MacMini 2.53 - WC1.1.5
Re: SFTP and/or PHP Uploads
« Reply #29 on: September 24, 2024, 01:10:18 AM »
As I said I use an FTP server on my Mac Mini and WC uploads to that.
I then use rsync via a cron job to upload the WC data from the Mac Mini to my website.

The upload now works again for me. FTP server on my Raspberry Pi and then it sends the pages via sftp (my provider does not allow anything else) and cronjob to the web server. You learn a lot of Linux shell commands again. lol(1)

Greetings from Essen