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

wx-watch

  • Guest
SFTP and/or PHP Uploads
« on: July 31, 2023, 07:51:12 AM »
As you may have seen in my post elsewhere I am having problems with FTP uploads to IONOS.

Could WeatherCat be updated to allow SFTP uploads or perhaps even PHP uploads.

Perhaps you could let me know if this is in the pipeline at all and if so what might be a possible timeline for its release?

wx-watch

  • Guest
Re: SFTP and/or PHP Uploads
« Reply #1 on: August 13, 2023, 08:10:16 AM »
It would be nice if WC Development cold reply to this with  either - "Sorry I am too busy and there is no chance of these features ever being incorporated into WC" or "I am very busy but I am working on these features, stay tuned"

Assuming WC Dev reads these posts!

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
Apparently poker-face. (Re: SFTP and/or PHP Uploads)
« Reply #2 on: August 13, 2023, 10:09:47 PM »
Dear wx-watch and WeatherCat faithful,

I understand your frustrations, but Stu (Stuart Ball, WeatherCat developer) has always operated that way.  One issue is that he has competitors and they can easily monitor this forum.  What might be helpful to us could also undercut the future of WeatherCat.

This topic has not been visited in a long time.  I posted last year some information about the problem:

https://athena.trixology.com/index.php?topic=3274.msg32759#msg32759

I don't know if macOS now includes a version of curl that supports SFTP.

Sorry, Edouard

wx-watch

  • Guest
Re: SFTP and/or PHP Uploads
« Reply #3 on: August 14, 2023, 06:38:52 AM »
Ok - many thanks for your reply - I will keep my fingers crossed  :)o

wx-watch

  • Guest
Re: SFTP and/or PHP Uploads
« Reply #4 on: September 12, 2023, 04:21:25 PM »
IONOS have just sent me an email saying that FTP support will end on 31/12/2023 so on that date WeatherCat will no longer be able to upload. I did post about this under general discussions but that post seems to have gone missing

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 #5 on: September 13, 2023, 01:13:46 AM »
I did post about this under general discussions but that post seems to have gone missing

Your post is not missing. It is here:
https://athena.trixology.com/index.php?topic=3562.msg34051;topicseen#msg34051
Blick


wx-watch

  • Guest
Re: SFTP and/or PHP Uploads
« Reply #6 on: September 13, 2023, 10:30:24 AM »
 ThU32:-) ThU32:-)

grcg

  • Calm
  • *
  • Posts: 1
    • DW9220
    • KAKFAIRB35
  • Station Details: Davis Vantage Pro2 (wired) on a mac mini. Will put in more sensors later.
Re: SFTP and/or PHP Uploads
« Reply #7 on: January 21, 2024, 04:43:01 AM »
I would also like SFTP to be added.  I have been waiting to get my wx station back up and running and would really like to use wxcat.  But without SFTP I probably ought to look at something else. :(

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 #8 on: January 21, 2024, 05:11:13 PM »
Seams like many ISPs are cutting FTP support - mine too (hosteurope). I also am waiting for an update to this function. It is really a game changer when we are not able to upload data, graphs and gauges to our ISP within WeatherCat any more...  :'(
Reinhard


wx-watch

  • Guest
Re: SFTP and/or PHP Uploads
« Reply #9 on: January 22, 2024, 04:12:57 PM »
As I have said in a post elsewhere on this board Ionos is my host and they are dropping FTP support which meant I was faced with loosing WC.

To fix this I ran an FTP server on an old Raspberry Pi and uploaded my WC files to it.

I then used RSYNC on the Pi to upload the files to the Web

Bit of a round about fix but it works and is future proof until such time as WC has SFTP support.

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 #10 on: January 22, 2024, 07:58:10 PM »
OK, it's a fix. That fix offers me the idea of istalling an FTP-Server on my Mac mini to get all of the uploads I want to get uploaded. After collecting all data within a folder on this "Server" the one question remains: How to tell my Mac to upload the files every xxx minutes.

But to use a fix is a little bit ... strange.  ???
Reinhard


xairbusdriver

  • Storm
  • *****
  • Posts: 3131
Re: SFTP and/or PHP Uploads
« Reply #11 on: January 22, 2024, 08:46:44 PM »
Perhaps you could create a OS launchd for the uploading of the WC files in "WeatherCatCustomWeb"? I use LaunchControl to run an AppleScript every 60 seconds. I think the legacy version (1.52.7) is free, although I do have a registration number from 2017!
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system

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 sync tool? (Re: SFTP and/or PHP Uploads)
« Reply #12 on: January 22, 2024, 10:44:37 PM »
Dear Reinhard and WeatherCat "fixer-upers" 

OK, it's a fix. That fix offers me the idea of istalling an FTP-Server on my Mac mini to get all of the uploads I want to get uploaded. After collecting all data within a folder on this "Server" the one question remains: How to tell my Mac to upload the files every xxx minutes.

But to use a fix is a little bit ... strange.  ???

There might be a simpler way to switch to SFTP.  There are FTP clients that offer sync services.  One is ForkLift:

https://binarynights.com/

If you look at the sync section of the manual, it claims it can monitor a folder on your Mac and automatically upload any changed files to an SFTP server.  So you could have WeatherCat create your files as usual but turn off the FTP upload that your hosting provider doesn't support anymore.  You could then simply have your FTP client like Forklift monitor the folder where WeatherCat deposits its files on your Mac and automatically upload them to your website directories as before.

It is still a bit clumsy and involves buying some new software, but it should work and is a lot less misery than setting up your own FTP server.

Edouard

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 #13 on: January 24, 2024, 11:32:07 AM »
Just a small update to this one:

I am running WeatherCat on my Mac mini.  ;D Then I installed an FTP Server on my mini (this one: FTPServer). Next step was creating a new folder that WeatherCat can use as "SavePathFolder". Now WeatherCat processes the files within the "CustomWebFolder" to the (new) "SavePathFolder" and in the preferences I told WC to upload to the FTP Server folder I ceated with the app linked above. Now how to bring all the files up to my webhost using FTPS or SFTP? Three other apps helped me doing this: Automator, Transmit and Lingon. With Automator I created two programms that are executing "look for files within the finder" then "open an FTPS connection with Transmit", ftp the files and close the connection. The last step is using Lingon to create two LaunchDaemon scripts (one that is executed every 15 mins for the app that uploads all the files and webcam pictures that are found in the FTP Server folder, the other one executes every 1 min for the app that uploads the txt file used by SteelSeriesGauges. The nice thing is that all is running on one PC - no Raspi or something else needed.

Any Questions? :o

Yes, a bit complicated but doing what I want so far that I am back in business with WeaterCat and my website.  ;)
Reinhard


xairbusdriver

  • Storm
  • *****
  • Posts: 3131
Re: SFTP and/or PHP Uploads
« Reply #14 on: January 24, 2024, 03:33:47 PM »
AppleScript to the rescue!! Congrats and thanks for posring!
THERE ARE TWO TYPES OF COUNTRIES
Those that use metric = #1 Measurement system
And the United States = The Banana system