I wrote Shell and SQLite scripts for the WeatherCape. There is a succinct README file. You can get it at
https://github.com/jaltone/WeatherCape
Much thanks to Robert C Nelson for exposing the WeatherCape sensor device files. That was the difficult part.
This is licensed the same as the BBB, so feel free to modify it and make it your own.