Skip to content

Instantly share code, notes, and snippets.

View wgaylord's full-sized avatar

William Gaylord wgaylord

View GitHub Profile
Sep 29 12:17:34 HamBox satnogs-client[511]: Exception in thread APScheduler:
Sep 29 12:17:34 HamBox satnogs-client[511]: Traceback (most recent call last):
Sep 29 12:17:34 HamBox satnogs-client[511]: File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
Sep 29 12:17:34 HamBox satnogs-client[511]: self.run()
Sep 29 12:17:34 HamBox satnogs-client[511]: File "/usr/lib/python2.7/threading.py", line 754, in run
Sep 29 12:17:34 HamBox satnogs-client[511]: self.__target(*self.__args, **self.__kwargs)
Sep 29 12:17:34 HamBox satnogs-client[511]: File "/usr/lib/python2.7/dist-packages/apscheduler/schedulers/blocking.py", line 30, in _main_loop
Sep 29 12:17:34 HamBox satnogs-client[511]: wait_seconds = self._process_jobs()
Sep 29 12:17:34 HamBox satnogs-client[511]: File "/usr/lib/python2.7/dist-packages/apscheduler/schedulers/base.py", line 979, in _process_jobs
Sep 29 12:17:34 HamBox satnogs-client[511]: jobstore.update_job(job)
from datetime import datetime , timedelta
import requests
import json
class Pass:
id = 0
start = None
end = None
ground_station = None
satellite = None
chibill@HamBox:~$ sudo satnogs-setup
[sudo] password for chibill:
Starting Ansible Pull at 2018-10-27 13:22:49
/usr/bin/ansible-pull -d /root/.satnogs/ansible -U https://gitlab.com/librespacefoundation/satnogs/satnogs-client-ansible.git satnogs-setups.yml
[WARNING]: Could not match supplied host pattern, ignoring: HamBox
localhost | SUCCESS => {
"after": "6d5aeb07762dd0a89695361e6831c8b04412d994",
"before": "6d5aeb07762dd0a89695361e6831c8b04412d994",
"changed": false,
"remote_url_changed": false
root@HamBox:/home/chibill/Desktop# sudo dpkg -i wsjtx_2.0.0-rc3_amd64.deb Selecting previously unselected package wsjtx.
(Reading database ... 171711 files and directories currently installed.)
Preparing to unpack wsjtx_2.0.0-rc3_amd64.deb ...
Unpacking wsjtx (2.0.0-rc3) ...
dpkg: dependency problems prevent configuration of wsjtx:
wsjtx depends on libc6 (>= 2.27); however:
Version of libc6:amd64 on system is 2.24-11+deb9u3.
wsjtx depends on libgfortran4 (>= 7); however:
Package libgfortran4 is not installed.
wsjtx depends on libqt5gui5 (>= 5.8.0); however:
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
[ 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
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
@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)
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()
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()