Skip to content

Instantly share code, notes, and snippets.

View ilobmirt's full-sized avatar

ilobmirt ilobmirt

View GitHub Profile
@ilobmirt
ilobmirt / load_agps_data.sh
Last active August 9, 2021 00:56
load agps data through modem manager
#!/bin/bash
CURRENTDIR=$(pwd)
AGPS_URL='http://xtrapath1.izatcloud.net/xtra3gr.bin'
AGPS_FILENAME='xtra3gr.bin'
#Verifies if a provided local filename exists. 1=YES 0=NO
#Has one parameter: $1 = Name of the local file
file_exists(){
local DOES_EXIST=0
local FILENAME="$CURRENTDIR/$1"
@ilobmirt
ilobmirt / load_agps_data.py
Last active June 21, 2021 02:03 — forked from alastair-dm/load_agps_data.py
Proof of concept AGPS data loading for PinePhone
#!/usr/bin/python3
#
# load_agps_data
#
# proof of concept loading of agps data to quectel modem via AT commands
from datetime import datetime, timezone
import requests
import serial