Skip to content

Instantly share code, notes, and snippets.

View gabonator's full-sized avatar
👨‍🏭
at work

Gabriel Valky gabonator

👨‍🏭
at work
View GitHub Profile
@gabonator
gabonator / tfttouch.ino
Created September 5, 2015 16:12
Itead studio 2.4 TFT Touch shield for arduino (Arduino Uno)
#include <arduino.h>
// Itead studio 2.4 TFT Touch shield for arduino (Arduino Uno)
// http://wiki.iteadstudio.com/2.4_TFT_LCD_Touch_shield
class CCalibration
{
// Carlos E. Vidales
// http://www.embedded.com/design/system-integration/4023968/How-To-Calibrate-Touch-Screens
// input range 0..1024
@gabonator
gabonator / serialws.js
Created November 7, 2015 17:57
Serial port to websocket connector using NodeJs
// http://ejohn.org/blog/ecmascript-5-strict-mode-json-and-more/
"use strict";
process.title = 'node-serial-ws';
// Websocket
var webSocketsServerPort = 1337;
var webSocketServer = require('websocket').server;
var http = require('http');
var server = http.createServer(function(request, response) {
// Not important for us. We're writing WebSocket server, not HTTP server
@gabonator
gabonator / blueDht22.ino
Created November 11, 2015 08:38
DHT22 over bluetooth with timers
#include <SoftwareSerial.h>
#include <TimerOne.h>
#include <DHT.h>
// Deklaracia softwaroveho serioveho portu a pinoch 2 a 3
SoftwareSerial btSerial(2, 3); // RX, TX
// Premenne sekundoveho casovaca
volatile int nSecondsPassed = 0;
int nLastSecond = 0;
@gabonator
gabonator / api.txt
Created January 16, 2016 10:04
tvheadend json api calls for version 4.0.8
http://admin:[email protected]:9981/api/serverinfo
{"sw_version": "4.0.8~wheezy","api_version": 15,"name": "Tvheadend","capabilities": ["caclient","tvadapters","satip_client","satip_server","trace"]}
http://admin:[email protected]:9981/api/epg/events/grid
- returns tv listings guilde
http://admin:[email protected]:9981/api/channel/list
- returns list of all tv/radio channels
{"entries":[ {"key": "8da5751f0c30fc8317d7d5875ce87bd4","val": "Markiza"}, ... }
@gabonator
gabonator / client_cardclient.conf
Last active January 16, 2016 10:13
Oscam 1.20 configuration for sharing Skylink control words with newcamd and XcamClient
#
# Comment lines can start with # or ;
#
# every client line starts with the client name, followed by some arguments:
# 'hostname' is the name of the server
# 'port' is the port on the server
# 'emm' is a flag to allow EMM transfers to the server
# (0=disabled 1=enabled)
# 'caid' (optional) caid on which this client should work
# 'mask' (optional) mask for caid e.g. caid=1700 mask=FF00 would allow
@gabonator
gabonator / curl.bat
Last active March 24, 2023 15:25
ulozto.cz hack/api
rem http://ulozto.cz/searchSuggest.php?term=franken
curl "http://ulozto.cz/hledej?q=frankenweenie" -H "X-Requested-With: XMLHttpRequest" --compressed > data.js
rem http://ulozto.cz/xkf17YX8/frankenweenie-2012-1080p-bluray-x264-sparks-mkv
@gabonator
gabonator / adam6050.js
Last active August 23, 2017 10:46
Advantech adam ASCII modbus UDP emulator for synology surveillance station (nodejs)
var dgram = require('dgram');
var server = dgram.createSocket('udp4');
server.on('listening', function () {
var address = server.address();
console.log('Advantech ADAM emulator running on UDP ' + address.address + ":" + address.port);
});
server.on('message', function (message, remote) {
var request = message.toString();
@gabonator
gabonator / iboard.ino
Created May 1, 2016 11:32
Itead iboard 1.1 arduino with ethernet and sd card sample code
/*
* Itead iboard 1.1
*
* Programmer: Parallel progarmmer
* Processor: Atmel328 (328P)
* Board: Arduino Duemilanove or Diecimila
*/
#include <SPI.h>
#include <Ethernet.h>
@gabonator
gabonator / cc1101oregon.ino
Created May 12, 2016 21:06
Oregon scientific WMR sniffing with CC1101 transceiver using arduino
#include "cc1101.h"
class C1101Receiver : public CC1101
{
enum
{
SS = 10,
MOSI = 11,
MISO = 12,
SCK = 13,
@gabonator
gabonator / camera.md
Created June 4, 2016 13:48
Cheap chinese IP camera with H264 encoding based on Hisilicon 8M (Hi3518E) chip

Cheap chinese IP camera with H264 encoding based on Hisilicon 8M (Hi3518E) chip

Video stream url for VLC/DVR:

  • rtsp://192.168.1.93:554/user=admin&password=&channel=&stream=.sdp?real_stream--rtp-caching=100

Telnet access

  • telnet 192.168.1.10 23
  • Localhost login: root
  • Password: xmhdipc