Linux weather station: Difference between revisions

Rich Braun's email to BLU
 
m Text replacement - "<(\/?)source" to "<$1syntaxhighlight"
 
Line 85: Line 85:
* Install ImageMagick and ncftp on your local ftp server and set up a crontab to run an uploader script. Notice how my images are a non-standard aspect ratio: I chose to crop the image, and retain as much image-quality as will fit in 150Kb, prior to transferring to wunderground.com. Since you objected to learning bash two steps up, here's my script:
* Install ImageMagick and ncftp on your local ftp server and set up a crontab to run an uploader script. Notice how my images are a non-standard aspect ratio: I chose to crop the image, and retain as much image-quality as will fit in 150Kb, prior to transferring to wunderground.com. Since you objected to learning bash two steps up, here's my script:


<source lang="bash">
<syntaxhighlight lang="bash">
  #! /bin/bash
  #! /bin/bash
  # Upload latest image to wunderground
  # Upload latest image to wunderground
Line 117: Line 117:
   rm $IMG
   rm $IMG
  fi
  fi
</source>
</syntaxhighlight>


* Your wunderground.com ftp-upload credentials (wunderground is ''not'' a security company, so they likewise don't do scp) need to be put into the upload role user's ~/.ncftp file in this form:
* Your wunderground.com ftp-upload credentials (wunderground is ''not'' a security company, so they likewise don't do scp) need to be put into the upload role user's ~/.ncftp file in this form: