Giter Site home page Giter Site logo

ccrc-weather-station-uploads's Introduction

ccrc-weather-station-uploads

A collection of scripts run to upload images and video from the CCRC weather station.

Things you'll need

This is missing a couple of external scripts, which should be placed in the same directory and configured by filling in API tokens, secrets, etc.:

  • https://github.com/ohookins/flickr-shell-uploader
  • https://code.google.com/p/youtube-api-samples/source/browse/samples/python/upload_video.py

The following scripts use a python2 virtual environment that I've installed at venv/bin/python. They also use some music in this directory. I'm using waltz-flowers-tchaikovsky.mp3 (shut up). Finally, you'll need a fairly new version of ffmpeg for this, as earlier versions don't seem to support passing file metadata using the concat filter. I've tested a static build of 2.8.4. If you'd prefer to change the music or use another copy of python or ffmpeg installed elsewhere, you can change those references in these scripts:

  • custom-youtube.sh
  • sunrise-youtube.sh
  • sunset-youtube.sh
  • overnight-youtube.sh

The reason I've hardcoded these paths in is that these scripts are scheduled by get-sun-times.sh, so they don't have access to $PATH. If you have a better way for me to handle this, please submit a pull request!

Finally, add get-sun-times.sh to your crontab using crontab -e. Add the following line (I schedule it at 0400, since the overnight script runs at 0410).

ccrc-weather-station-uploads's People

Contributors

jimjam-slam avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.