Skip to content

Instantly share code, notes, and snippets.

View nonoo's full-sized avatar

Norbert Varga nonoo

View GitHub Profile
@nonoo
nonoo / nweather-gerecse-add.php
Created April 26, 2016 08:21
PHP script for fetching weather data from OMSZ FTP and sending to the APRS-IS network.
#!/usr/bin/php5
<?php
// Puts weather data from OMSZ into the nweather database.
ini_set('display_errors','On');
error_reporting(E_ALL);
define('DB_NAME', 'ha5kdr.hu');
define('DB_USER', 'ha5kdr.hu');
define('DB_PASSWORD', '');
@nonoo
nonoo / .procmailrc
Created April 21, 2014 12:41
Procmail config and PHP script for sending email source address and subject to given callsigns through APRS-IS.
#LOGFILE=/home/nonoo/procmail.log
#VERBOSE=YES
:0
* ^List-ID: <aprs.nonoo.hu>$
| /home/nonoo/bin/mail2aprs.php
:0
* ^List-ID: <aprs.nonoo.hu>$
/dev/null
:0:
! nonoo@nonoo.hu
/**
* HTTP GET on button press
*
* Copyright 2018 Norbert Varga <nonoo@nonoo.hu>
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@nonoo
nonoo / VSCodeMCTerminalTheme.json
Created November 18, 2020 07:15
VS Code: Midnight Commander compatible terminal colors
{
"workbench.colorCustomizations": {
"terminal.background":"#000000",
"terminal.foreground":"#c5c5c5",
"terminalCursor.background":"#a5a2a2",
"terminalCursor.foreground":"#cacaca",
"terminal.ansiMagenta":"#ff00bf",
"terminal.ansiBrightMagenta":"#a16a94",
"terminal.ansiBlack":"#000000",
"terminal.ansiBrightBlack":"#555555",
@nonoo
nonoo / aprslocsend.php
Created April 21, 2014 08:24
PHP script for sending location APRS message to APRS-IS.
#!/usr/bin/php5
<?php
$aprs_callsign = '';
$aprs_passcode = 0;
$aprs_altinfeet = 2080;
// W is the WX icon. See http://wa8lmf.net/aprs/APRS_symbols.htm
// Use GPS coordinate format, see http://www.csgnetwork.com/gpscoordconv.html
$aprs_coord = '4740.55N/01829.60EW';
$aprs_comment = 'Gerecse WX - www.ha5kdr.hu';