Add a second FTP/SFTP services configuration in the Services tab **solved**
Moderator: Mattk
Add a second FTP/SFTP services configuration in the Services tab **solved**
Is there a way to add a second FTP/SFTP services configuration in the "Services" tab so I can slave that to a different FTP CAM event in the "Events" tab that needs a separate logon credentials? This would facilitate the ability to use this feature to upload Webcam FTP uploads to different sources.
Currently using Meteobridge NANO SD
Thanks
Currently using Meteobridge NANO SD
Thanks
Last edited by MJM on Mon Apr 05, 2021 10:05 pm, edited 1 time in total.
Re: Add a second FTP/SFTP services configuration in the Services tab
In the service path use the full ID/password syntax such as
ftp://user:password@ftp.your.path and file here
ftp://user:password@ftp.your.path and file here
Re: Add a second FTP/SFTP services configuration in the Services tab
Where does the port number get inserted? I believe that is needed as well.
Re: Add a second FTP/SFTP services configuration in the Services tab
Generically as ftp://user:password@host:port/path
Re: Add a second FTP/SFTP services configuration in the Services tab
It's probably rather
ftp://User:Password@ftp.ambientweather.net:port/path
e.g. ftp://user:pwd@ftp.ambientweather.net:21/directory1
the port is shown behind the host name separated by a colon (":") !
/directory1 is the directory name after the www-root* of the web site server
example to make it hopefully fully clear:
see my web site links
if I sent data to my Weather34 site via ftp, I would have to use ftp://meshka.eu:21/Weather34
(with username:password@ in front of the host name - I have separated this, because the forum software will swallow the text)
(* on the server which hosts a web site the "/" (root) directory shown in the URL is not the root directory of the server, but the so-called www-root (web root), where all URLs point at - for the external user it appears as "/", whereas on the OS of the server it might be /www/ or something similar.
It's, by-the-way, the same for the Meteobridge. The script meteobridge.cgi which is called when you connect with your browser to the MB by entering the IP address, is located in the directory /www/cgi-bin - whereas you address it as "/" - e.g. http://192.168.2.25/cgi-bin/meteobridge.cgi - see the URL in your browser after you connected)
ftp://User:Password@ftp.ambientweather.net:port/path
e.g. ftp://user:pwd@ftp.ambientweather.net:21/directory1
the port is shown behind the host name separated by a colon (":") !
/directory1 is the directory name after the www-root* of the web site server
example to make it hopefully fully clear:
see my web site links
if I sent data to my Weather34 site via ftp, I would have to use ftp://meshka.eu:21/Weather34
(with username:password@ in front of the host name - I have separated this, because the forum software will swallow the text)
(* on the server which hosts a web site the "/" (root) directory shown in the URL is not the root directory of the server, but the so-called www-root (web root), where all URLs point at - for the external user it appears as "/", whereas on the OS of the server it might be /www/ or something similar.
It's, by-the-way, the same for the Meteobridge. The script meteobridge.cgi which is called when you connect with your browser to the MB by entering the IP address, is located in the directory /www/cgi-bin - whereas you address it as "/" - e.g. http://192.168.2.25/cgi-bin/meteobridge.cgi - see the URL in your browser after you connected)
WH4000SE 1.6.6/1 x DP1500/4 x GW1000 1.7.7/GW1100 2.3.0/HP1000SE Pro 1.9.3//2 x WH2650 1.7.7/GW2000 3.1.0
2xMeteobridge Pro [B+R] 15161, 2xRPi4B-2GB/16/32 3139,VM128 1704
Weather Landing page: https://meshka.eu
Ecowitt WiKi: https://meshka.eu/Ecowitt/dokuwiki
2xMeteobridge Pro [B+R] 15161, 2xRPi4B-2GB/16/32 3139,VM128 1704
Weather Landing page: https://meshka.eu
Ecowitt WiKi: https://meshka.eu/Ecowitt/dokuwiki
Re: Add a second FTP/SFTP services configuration in the Services tab
I updated the "Path" line in Meteobridge as follows: ftp://USER:PASSWORD@ftp.ambientweather:net:21/directory1 and Ambient Weather still doesn't seem to be able to accept and display the webcam. Any other thoughts or guidance is appreciated.
Thank you all for the support to date!
Thank you all for the support to date!
Re: Add a second FTP/SFTP services configuration in the Services tab
./directory1 is an example ... a placeholderMJM wrote: ↑Fri Apr 02, 2021 7:02 pm I updated the "Path" line in Meteobridge as follows: ftp://USER:PASSWORD@ftp.ambientweather:net:21/directory1 and Ambient Weather still doesn't seem to be able to accept and display the webcam. Any other thoughts or guidance is appreciated.
Thank you all for the support to date!
You have to use the real directory name en lieu of "directory1", the directory which ambientweather.net expects.
I don't know which one that is as I'm not using ambientweather.net.
This should however be described somewhere with Ambient.
EDIT: I have looked a few things up with Ambient, and it appears that no directory is needed.
so: ftp://USER:PASSWORD@ftp.ambientweather.net:21 should be enough.
You have to look closely - ambientweather.net has a dot (.) between ambientweather and net - no colon;
but the behind the .net the port has to be added/separated by a colon (:). You had, in your last example one : too much (and one . too little).
See above in the quote underlined
WH4000SE 1.6.6/1 x DP1500/4 x GW1000 1.7.7/GW1100 2.3.0/HP1000SE Pro 1.9.3//2 x WH2650 1.7.7/GW2000 3.1.0
2xMeteobridge Pro [B+R] 15161, 2xRPi4B-2GB/16/32 3139,VM128 1704
Weather Landing page: https://meshka.eu
Ecowitt WiKi: https://meshka.eu/Ecowitt/dokuwiki
2xMeteobridge Pro [B+R] 15161, 2xRPi4B-2GB/16/32 3139,VM128 1704
Weather Landing page: https://meshka.eu
Ecowitt WiKi: https://meshka.eu/Ecowitt/dokuwiki
Re: Add a second FTP/SFTP services configuration in the Services tab
Thanks for the continued help. I updated the FTP string and there appears to be no other connection info on their site. See screen grab as to what is provided. Possibly another forum member here is familiar with how to get this to work.


- Attachments
-
- Ambientweather webcam setup screen.png (33.35 KiB) Viewed 3385 times
Re: Add a second FTP/SFTP services configuration in the Services tab
The ftp string needs a base-folder location, which in this case is that /
There should be a name of the uploaded file at the end
Also carefully double check that there is no space between user : password
When I copied the password from the Ambient site it had a space as first character that should not be there.
Code: Select all
ftp://USER:PASSWORD@ftp.ambientweather.net:21/cam.jpg
FTP Upload (Camera):
The webcam ftp-server at Ambient is not a "all standars" ftp server and does not allow renames.2021-04-03 11:25:35 Error: 2021-04-03 11:25:29 Could not delete old cam.jpg, so could not rename mb_cam.jpg to that: remote delete failed ncftpput cam.jpg: could not rename remote file. (no more tries):
If you use a ftp program and upload a file it also "disappeared" when you re-login.
But the file arrives correctly every time Meteobridge uploads.
Could you post a screenshot of what you entered in your Meteobridge for this cam-upload?
Maybe also the error at the "Live Data => Upload Status" tab?
Attached my setup I tested.
Wim
- Attachments
-
- ambient-cam.jpeg (69.75 KiB) Viewed 3359 times
-
- camsetup.jpeg (30.63 KiB) Viewed 3359 times
Re: Add a second FTP/SFTP services configuration in the Services tab
I updated the "Path" in the events tab and made sure there aren't any spaces. Here is a screen shot from that tab:
There is no listing of the webcam upload in the "Live Data" tab but there is only the weather station data elements confirmation to Ambient as successful.Re: Add a second FTP/SFTP services configuration in the Services tab
Another question then, is your Meteobridge capturing the webcam-image?MJM wrote: ↑Sat Apr 03, 2021 2:43 pm I updated the "Path" in the events tab and made sure there aren't any spaces. Here is a screen shot from that tab:
Screenshot meteobridge 2021-04-03.png
There is no listing of the webcam upload in the "Live Data" tab but there is only the weather station data elements confirmation to Ambient as successful.
Wim
- Attachments
-
- webcam_capture.jpeg (66.55 KiB) Viewed 3333 times
-
- webcam_capture2.jpeg (92.49 KiB) Viewed 3333 times
Re: Add a second FTP/SFTP services configuration in the Services tab
Yes I am uploading successfully to weather underground and Webcam.io. I am using the "Service Setting" tab and FTP/SFTP service settings area for the Webcam.io upload. This is why I originally asked in there was a way to use this settings tab for another webcam upload.
I am using the meteobridge weather cam under the "station" tab to upload to weather underground successfully. See below:
I am using the meteobridge weather cam under the "station" tab to upload to weather underground successfully. See below:
- Attachments
-
- Screenshot meteobridge webcam 2021-04-03.png (23.36 KiB) Viewed 3312 times
Re: Add a second FTP/SFTP services configuration in the Services tab
Here is the confirmation under the Weather Nets tab:
- Attachments
-
- Screenshot WU .png (15.58 KiB) Viewed 3311 times
Re: Add a second FTP/SFTP services configuration in the Services tab
The only difference with my working test-setup:MJM wrote: ↑Sun Apr 04, 2021 3:52 am Yes I am uploading successfully to weather underground and Webcam.io. I am using the "Service Setting" tab and FTP/SFTP service settings area for the Webcam.io upload. This is why I originally asked in there was a way to use this settings tab for another webcam upload.
I am using the meteobridge weather cam under the "station" tab to upload to weather underground successfully. See below:
I upload the image also to the meteobridge (=meteoplug) server, tab "Weather Network" => "Meteobridge WeatherCamera"
You could try to add uploading there also.
=== If all fails:
There is only one possibility left, a copying error from the Ambient definition.
- You can delete the camera definition on your Ambient Dashboard.
- Then define a new camera,
- copy the values of username and password to a text document ,
you can only see the pasword once, it is replaced with 4 stars after saving - make a screenshot of the definition
I never uploaded a camera-image to ambient before, I read your request
And I tested it as Ambient users of my PWS_Dashboard also show their webcams on their websites/ambient-net.
It works as it should, just one extra try after removing a space in the copied password.
If it works here at my place, it should work at your site also, no ideas left why it fails, sorry.
Wim
- Attachments
-
- webcam_capture3.jpg (33.95 KiB) Viewed 3304 times