Skip to content

Instantly share code, notes, and snippets.

View wgaylord's full-sized avatar

William Gaylord wgaylord

View GitHub Profile
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@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
from datetime import datetime , timedelta
import requests
import json
class Pass:
id = 0
start = None
end = None
ground_station = None
satellite = None
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)
import aprslib
import location
import time
from math import sin, cos, sqrt, atan2, radians
last = None
count = 0
location.start_updates()
So last year I wrote my own APRS tracker using Pythonista.
APRS stands for Automatic Packet Reporting System
Using a python library for it and pythonistas access to location and the internet I was able to write my own software to report into the system using my Call Sign and display my location of aprs.fi
The following is my code which I never really tided up at all.
```
import aprslib
fatal: [localhost]: FAILED! => {"attempts": 5, "changed": false, "cmd": "/var/lib/satnogs/bin/pip2 install git+https://gitlab.com/librespacefoundation/satnogs/satnogs-client.git@0", "msg": "stdout: Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple\nCollecting git+https://gitlab.com/librespacefoundation/satnogs/satnogs-client.git@0\n Cloning https://gitlab.com/librespacefoundation/satnogs/satnogs-client.git (to revision 0) to ./pip-req-build-ncXVaJ\nRequirement already satisfied: APScheduler in /var/lib/satnogs/lib/python2.7/site-packages (from satnogsclient==0.6.2+1.geb35d20) (3.5.1)\nRequirement already satisfied: SQLAlchemy in /var/lib/satnogs/lib/python2.7/site-packages (from satnogsclient==0.6.2+1.geb35d20) (1.2.8)\nRequirement already satisfied: requests in /var/lib/satnogs/lib/python2.7/site-packages (from satnogsclient==0.6.2+1.geb35d20) (2.18.4)\nRequirement already satisfied: validators in /var/lib/satnogs/lib/python2.7/site-packages (from satnogsclient==0.6.2+1.geb35d20)
May 31 18:35:45 raspberrypi satnogs-client[4007]: 2018-05-31 18:35:45,024 - apscheduler.executors.default - INFO - Running job "spawn_observer (trigger: date[2018-05-31 18:
May 31 18:35:45 raspberrypi satnogs-client[4007]: 2018-05-31 18:35:45,093 - satnogsclient - ERROR - Cannot connect to socket 127.0.0.1:4533
May 31 18:35:45 raspberrypi satnogs-client[4007]: 2018-05-31 18:35:45,136 - satnogsclient - ERROR - Cannot connect to socket 127.0.0.1:4533
May 31 18:35:45 raspberrypi satnogs-client[4007]: Exception in thread Thread-2:
May 31 18:35:45 raspberrypi satnogs-client[4007]: Traceback (most recent call last):
May 31 18:35:45 raspberrypi satnogs-client[4007]: File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
May 31 18:35:45 raspberrypi satnogs-client[4007]: self.run()
May 31 18:35:45 raspberrypi satnogs-client[4007]: File "/usr/lib/python2.7/threading.py", line 754, in run
May 31 18:35:45 raspberrypi satnogs-client[4007]: self.__target(*self.__args, **self.__kwargs)
May 31 18:
type_1_size_of = types["::u8"]["size_of"]
type_1_serialize = types["::u8"]["serialize"]
type_1_deserialize = types["::u8"]["deserialize"]
type_2_size_of = types["::u64"]["size_of"]
type_2_serialize = types["::u64"]["serialize"]
type_2_deserialize = types["::u64"]["deserialize"]
type_3_size_of = types["::f64"]["size_of"]
type_3_serialize = types["::f64"]["serialize"]
type_3_deserialize = types["::f64"]["deserialize"]
type_4_size_of = types["::sized_string"]["size_of"]
Determining if the include file dlfcn.h exists failed with the following output:
Change Dir: C:/Users/chibi/Desktop/llvm-master/build/CMakeFiles/CMakeTmp
Run Build Command:"C:/PROGRA~1/MINGW-~1/X86_64~1.0-P/mingw64/bin/ninja.exe" "cmTC_2961b"
[1/2] Building C object CMakeFiles/cmTC_2961b.dir/CheckIncludeFile.c.obj
FAILED: CMakeFiles/cmTC_2961b.dir/CheckIncludeFile.c.obj
C:\PROGRA~1\MINGW-~1\X86_64~1.0-P\mingw64\bin\gcc.exe -o CMakeFiles/cmTC_2961b.dir/CheckIncludeFile.c.obj -c CheckIncludeFile.c