Skip to content

Instantly share code, notes, and snippets.

View Paraphraser's full-sized avatar

Phill Paraphraser

  • Cootamundra NSW Australia
View GitHub Profile
@Paraphraser
Paraphraser / keybase.md
Last active December 12, 2019 23:23
Keybase proof

Keybase proof

I hereby claim:

  • I am paraphraser on github.
  • I am paraphraser (https://keybase.io/paraphraser) on keybase.
  • I have a public key ASAEuq9mHBtAWcvqsEvFAC-CtHGqjRDtQU3Ht7YY0MrSJQo

To claim this, I am signing this object:

@Paraphraser
Paraphraser / RPi_local_NTP_servers.md
Last active January 18, 2020 01:11
Configuring Raspbian to use local time-servers

Configuring Raspbian to use local time-servers

The case for using local time-servers

Out of the box, Raspbian gets its time from NTP servers in the debian.pool.ntp.org domain. You can confirm this via:

$ timedatectl show-timesync
...
ServerName=0.debian.pool.ntp.org
@Paraphraser
Paraphraser / Enabling UDP support in InfluxDB.md
Last active May 21, 2021 05:30
Enabling UDP support in InfluxDB for SensorsIot/IOTstack

Tutorial: Enabling UDP support in InfluxDB

Assumptions:

  • you are running SensorsIot/IOTstack with InfluxDB as one of the containers
  • you want to enable UDP support
  • your goal is to log traffic arriving on UDP port 8086 into an InfluxDB database named "udp".

This tutorial is specific to SensorsIot/IOTstack. You're on your own if you "get creative" and choose different ports or database names.

@Paraphraser
Paraphraser / power_monitor_poc.md
Last active June 3, 2021 00:48
UPS monitor - back end - proof of concept

UPS monitor - back end - proof of concept

Assumptions

  • There exists a mechanism (unspecified) for acquiring status information from an Uninterruptible Power Supply;
  • That mechanism is available to Node-RED; and
  • There exists a Node-RED flow (unspecified) that is capable of interpreting the UPS status information and making decisions about when devices should power down and in what order.

Task Goal

@Paraphraser
Paraphraser / ComposeProfiles.md
Created October 18, 2022 05:00
Understanding compose profiles

IOTstack: Understanding compose profiles

You are probably familiar with running a command like:

$ docker-compose up -d

You probably expect that command to bring up a container for every service definition mentioned in your docker-compose.yml. That's its default behaviour.

@Paraphraser
Paraphraser / InfluxDB-data-merging.md
Created November 29, 2022 05:36
IOTstack tutorial: InfluxDB data merging

IOTstack tutorial: InfluxDB data merging

Scenario

A question on Discord described a situation where a new (empty) database had been created. That database contained data acquired since the rebuild but had no historical data prior to the rebuild. However, the person did have a "portable" backup of the older data and wanted to know if it was possible to merge the backup with the live data?

The answer is "yes". Merging measurements will solve this particular problem.

My test environment

@Paraphraser
Paraphraser / IOTstack + InfluxDB 2 experiments.md
Last active December 24, 2022 00:47
IOTstack: InfluxDB 2 experiments

IOTstack: InfluxDB 2 experiments

Update #1:

  • Rewrite assuming user only has a single Raspberry Pi which is processing live data. Minimises the down time for InfluxDB 1.8.

This gist explains the steps I followed to:

@Paraphraser
Paraphraser / TimeMachineRestoreFilesOwnedByRoot.md
Last active December 24, 2022 00:50
macOS Time Machine: restoring files owned by root

macOS Time Machine: restoring files owned by root

when you own the file …

On macOS, Time Machine pretty much just works. You delete or mutilate a file. Then you realise you want to get back to the older version so you:

  1. Use the Finder to open the folder containing the file you want to restore.
  2. Choose "Enter Time Machine" from the Time Machine menu.
  3. Step back in the timeline until you find the version you want to restore.
@Paraphraser
Paraphraser / Node-Red IOTstack hints.md
Last active December 24, 2022 02:35
Hints: Running Node-Red in IOTstack
@Paraphraser
Paraphraser / InfluxDB security under IOTstack.md
Last active December 24, 2022 02:45
Enabling authentication in InfluxDB for SensorsIot/IOTstack

Tutorial: Enabling authentication in InfluxDB

Assumptions:

  • you are running SensorsIot/IOTstack with InfluxDB as one of the containers
  • you want to enable authentication for your InfluxDB databases.

Note: This tutorial is specific to SensorsIot/IOTstack.

Definition: