Skip to content

Instantly share code, notes, and snippets.

View wgaylord's full-sized avatar

William Gaylord wgaylord

View GitHub Profile
<head>
<script src="https://cesiumjs.org/releases/1.53/Build/Cesium/Cesium.js"></script>
<link href="https://cesiumjs.org/releases/1.53/Build/Cesium/Widgets/widgets.css" rel="stylesheet">
<script src="moment.min.js"></script>
<script src="satellite.js"></script>
</head>
<style>
root@HamBox:/home/chibill# gcc pgplot_test.c -lX11 -lcpgplot -lpgplot -lm -o test_pgplot
//usr/local/lib/libpgplot.so: undefined reference to `png_create_write_struct'
//usr/local/lib/libpgplot.so: undefined reference to `_gfortran_st_close'
//usr/local/lib/libpgplot.so: undefined reference to `_gfortran_st_read_done'
//usr/local/lib/libpgplot.so: undefined reference to `_gfortran_transfer_integer'
//usr/local/lib/libpgplot.so: undefined reference to `_gfortran_transfer_character_write'
//usr/local/lib/libpgplot.so: undefined reference to `_gfortran_compare_string'
//usr/local/lib/libpgplot.so: undefined reference to `_gfortran_getenv'
//usr/local/lib/libpgplot.so: undefined reference to `png_create_info_struct'
//usr/local/lib/libpgplot.so: undefined reference to `_gfortran_transfer_integer_write'
root@HamBox:/usr/local/src/pgplot-5.2.2# make
gfortran -c -ffixed-form -ffixed-line-length-none -u -Wall -fPIC -O ../pgplot/src/pgarro.f
gfortran -c -ffixed-form -ffixed-line-length-none -u -Wall -fPIC -O ../pgplot/src/pgask.f
gfortran -c -ffixed-form -ffixed-line-length-none -u -Wall -fPIC -O ../pgplot/src/pgaxis.f
gfortran -c -ffixed-form -ffixed-line-length-none -u -Wall -fPIC -O ../pgplot/src/pgaxlg.f
gfortran -c -ffixed-form -ffixed-line-length-none -u -Wall -fPIC -O ../pgplot/src/pgband.f
gfortran -c -ffixed-form -ffixed-line-length-none -u -Wall -fPIC -O ../pgplot/src/pgbbuf.f
gfortran -c -ffixed-form -ffixed-line-length-none -u -Wall -fPIC -O ../pgplot/src/pgbeg.f
gfortran -c -ffixed-form -ffixed-line-length-none -u -Wall -fPIC -O ../pgplot/src/pgbin.f
gfortran -c -ffixed-form -ffixed-line-length-none -u -Wall -fPIC -O ../pgplot/src/pgbox.f
root@HamBox:/home/chibill# rtl_power -f 88M:108M:125k fm_stations.csv
Number of frequency hops: 8
Dongle bandwidth: 2500000Hz
Downsampling by: 1x
Cropping by: 0.00%
Total FFT bins: 256
Logged FFT bins: 256
FFT bin size: 78125.00Hz
Buffer size: 16384 bytes (3.28ms)
Reporting every 10 seconds
Nov 27 16:41:37 HamBox satnogs-client[11147]: 2018-11-27 16:41:37,019 - apscheduler.executors.default - INFO - Running job "spawn_observer (trigger: date[2018-11-27
Nov 27 16:41:37 HamBox satnogs-client[11147]: 2018-11-27 16:41:37,050 - satnogsclient - ERROR - Cannot connect to socket 127.0.0.1:4533
Nov 27 16:41:37 HamBox satnogs-client[11147]: linux; GNU C++ version 6.3.0 20170221; Boost_106200; UHD_003.009.005-0-unknown
Nov 27 16:41:37 HamBox satnogs-client[11147]: 2018-11-27 16:41:37,074 - satnogsclient - ERROR - Cannot connect to socket 127.0.0.1:4533
Nov 27 16:41:37 HamBox satnogs-client[11147]: linux; GNU C++ version 6.3.0 20170221; Boost_106200; UHD_003.009.005-0-unknown
Nov 27 16:41:37 HamBox satnogs-client[11147]: Exception in thread Thread-6:
Nov 27 16:41:37 HamBox satnogs-client[11147]: Traceback (most recent call last):
Nov 27 16:41:37 HamBox satnogs-client[11147]: File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
Nov 27 16:41:37 HamBox satnogs-client[11147]: self.run()
import requests
from datetime import datetime
import lxml.html
def MakeObservation(username,password,norad,transmitter,station,startTime,endTime):
loginUrl = "https://network.satnogs.org/accounts/login/" #login URL
session = requests.session()
@wgaylord
wgaylord / newobs.py
Last active November 16, 2018 18:01
import requests
import lxml.html
def MakeObservation(username,password,norad,transmitter,station,startTime,endTime):
loginUrl = "https://network.satnogs.org/accounts/login/" #login URL
session = requests.session()
login = session.get(loginUrl) #Get login page for CSFR token
login_html = lxml.html.fromstring(login.text)
ENDPOINT: POST https://network.satnogs.org/api/jobs/
What it does: Creates a new observation on a station using the provided data.
TEMP Station must be owned by api_token for now unless admin.
form-data:
ground_station
start
end
[ 87%] Building CXX object gr-uhd/swig/CMakeFiles/_uhd_swig.dir/uhd_swigPYTHON_wrap.cxx.o
/home/chibill/prefix/src/gnuradio/build/gr-uhd/swig/uhd_swigPYTHON_wrap.cxx: In function ‘PyObject* _wrap_time_spec_t_get_system_time(PyObject*, PyObject*)’:
/home/chibill/prefix/src/gnuradio/build/gr-uhd/swig/uhd_swigPYTHON_wrap.cxx:20234:34: error: ‘get_system_time’ is not a member of ‘uhd::time_spec_t’
result = uhd::time_spec_t::get_system_time();
^~~~~~~~~~~~~~~
gr-uhd/swig/CMakeFiles/_uhd_swig.dir/build.make:70: recipe for target 'gr-uhd/swig/CMakeFiles/_uhd_swig.dir/uhd_swigPYTHON_wrap.cxx.o' failed
make[2]: *** [gr-uhd/swig/CMakeFiles/_uhd_swig.dir/uhd_swigPYTHON_wrap.cxx.o] Error 1
CMakeFiles/Makefile2:14683: recipe for target 'gr-uhd/swig/CMakeFiles/_uhd_swig.dir/all' failed
make[1]: *** [gr-uhd/swig/CMakeFiles/_uhd_swig.dir/all] Error 2
Makefile:162: recipe for target 'all' failed
chibill@Ham-top:~/gr-limesdr/build$ cmake ..
-- The CXX compiler identification is GNU 7.3.0
-- The C compiler identification is GNU 7.3.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Check for working C compiler: /usr/bin/cc