Skip to content

Instantly share code, notes, and snippets.

View nikoroxy's full-sized avatar

Nicola Rossello nikoroxy

View GitHub Profile
@soshial
soshial / freematics.md
Last active May 4, 2024 16:58
Freematics + Traccar (integration and configuration)

In this article I listed some common problems I encountered when I tried to use Freematics OBD-reader together with traccar device-tracking server. Both are open-source, thanks to which I was able to improve both and their cooperation.

Freematics: official repo and my fork.

traccar: official repo and my fork.

What are the pitfalls and hardware drawbacks of Freematics?

  1. Currently, Freematics cannot switch between WiFi and SIM depending on connectivity. If you want to switch to a different WiFi or mobile operator - you need to open your bloody Windows and recompile everything :)
  2. Doesn't work at all without external power, has no battery. Works only when connected to USB (3.7V), OBD-II (12V), or SAE J1939 (24V). It me
@djok
djok / raw2post.sh
Created February 5, 2017 21:02
Raw TCP/IP -> POST HTTP for Mobotix IP Notify
#!/bin/bash
# ----------------------------------------------------------------------------------------
# MOTIVATION
# ----------------------------------------------------------------------------------------
# The current MX camera software (4.4.2.x) is not able to send POST notifications. In
# order to overcome this limitation it's possible to send Raw TCP/IP messages to a gateway
# which converts them into POST HTTP messages and sends them to the Web server
#
# This script listens to incoming TCP/IP messages and converts them into POST HTTP ones
@drmalex07
drmalex07 / README-setup-tunnel-as-systemd-service.md
Last active May 4, 2024 15:04
Setup a secure (SSH) tunnel as a systemd service. #systemd #ssh #ssh-tunnel #ssh-forward

README

Create a template service file at /etc/systemd/system/secure-tunnel@.service. The template parameter will correspond to the name of target host:

[Unit]
Description=Setup a secure tunnel to %I
After=network.target