This is what I did to get the attached script, imgxmit.py, to work on raspbian
Make sure raspberry pi camera is enabled:
raspi_config
Installed system level dependencies
This is what I did to get the attached script, imgxmit.py, to work on raspbian
Make sure raspberry pi camera is enabled:
raspi_config
Installed system level dependencies
import numpy as np | |
dt = np.dtype([ | |
('time', [('min', int), ('sec', int)]), | |
('temp', float) | |
]) | |
# create array with dtype | |
x = np.zeros((5,5), dtype=dt) |
import os | |
from glob import glob | |
def file_dir_glob_list(inlist=None): | |
"""Given a list of files, directories or globs, returns a fully expanded | |
list of files | |
""" | |
file_list = [] | |
if inlist: |
{ | |
"0044ML0205000000E1_DXXX.img": { | |
"url": "http://" | |
}, | |
"0778ML0033700000400205E01_XXXX.LBL": { | |
"url": "http://", | |
"datafile": "0778ML0033700000400205E01_XXXX.LBL", | |
"skip": "True" | |
}, | |
"0778ML0033700000400205I01_XXXX.LBL": { |
{ | |
"cells": [ | |
{ | |
"cell_type": "markdown", | |
"metadata": {}, | |
"source": [ | |
"#Testing out PlanetaryImage" | |
] | |
}, | |
{ |
2015-04-25 09:09:18 MST, 309 | |
2015-04-25 09:11:17 MST, 1089 | |
2015-04-25 09:13:16 MST, 1968 | |
2015-04-25 09:15:16 MST, 2855 | |
2015-04-25 09:17:16 MST, 3710 | |
2015-04-25 09:19:16 MST, 4588 | |
2015-04-25 09:21:15 MST, 5432 | |
2015-04-25 09:23:15 MST, 6317 | |
2015-04-25 09:25:15 MST, 7226 | |
2015-04-25 09:27:14 MST, 8148 |
#!/bin/bash | |
export DISPLAY=:1 | |
while true; | |
do | |
xdotool key shift | |
sleep 5 | |
done |
#!/usr/bin/env python | |
# Being lazy here, everything is hardcoded. | |
# This takes a file like the following and generates CREATE TABLE command for | |
# PostgreSQL: | |
# http://pds-imaging.jpl.nasa.gov/data/msl/MSLMST_0007/INDEX/EDRINDEX.LBL | |
# Load it with this: | |
# psql -U postgres -h localhost -p 5432 -d mslpdsindex -f mcam-pds-index.sql | |