rogerthn wrote:acatalano wrote:...BTW have you tried FTPing webcam images from within CumulusMX? That's my ultimate goal.
I do think that lftp can help you
sudo apt-get install lftp
As far as I understand, he asked, if it is possible to use the CumulusMX FTP Capabillities to upload a WebCam Image (which is created and located on the SD-Card of the Raspberry Pi) to upload it to his external Webserver. As Steve already mentioned, this is not possible, because the files are being processed first (trying to insert WebTags). since the Webcam Image does not have a webtag, the FTP Upload will not work.
By installing FTP (apt-get install ftp) will not help him, because this will install a FTP Server locally on the Raspberry Pi. I understand his request, that he need to FTP the Webcam Image to a remote Webserver.
But I am not 100% sure, maybe I underatand this wrong but......@acatalano, continue with the installation of your Raspberry pi, the automated Upload of your WebCam Image should not be such a big problem. I wrote a little script which might do this for you.
attached at this Post, there is a small script which can do this for you without installing additional software n the Pi.
cumuluswebcam.zip
Instruction:
Download this Script and copy it into the cumulusMX folder which often is located in /home/pi/CumulusMX
Open a Putty Session to connect via command line to your Raspberry Pi and login as pi and insert these commands
cd /home/pi/CumulusMX
unzip cumuluswebcam.zip
sudo chmod +x cumuluswebcam.sh
Once htis is done, you need to modify one line in this script. The script need to know the exact path of the WebCam Image.
Use this command, to edit the script
sudo nano cumuluswebcam.sh
This will open an editor.
Use the Arrow keys to go down to this line: WEBCAMPATH=/tmp/image.jpg
and change the path that it points top your WebCam Image, for example: If the webcam Image is located at: /home/pi/webcam/image.jpg change the path to:
WEBCAMPATH=/home/pi/webcam/image.jpg
Once this is done,save the changes by pressing: CTRL+O - Return CTRL+X
If you don't want to change but exit the editor, press: CTRL+X and than N
The Script will use the WebCam Image and upload it to the same directory where CumulusMX is storing the Web Files.
The Script will parse the Cumulux.ini file to retrieve the FTP Username,Password, FTP Port and Folder. so you don't need to modify anything in this script, except the path to theWebCam Image.
Finally, this Script needs to be called frquently by using CRON.
Use the command:
sudo crontab -e
and insert this line:
0-59/5 * * * * /home/pi/CumulusMX/cumuluswebcam.sh
CTRL+O - Return CTRL+X to save the changes
This will upload the Image every 5 Minutes
Have fun
Jan