This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From gateway traffic: | |
{ | |
"gw_id": "eui-0000024b080e020a", | |
"payload": "ALoDANB+1bNwOQAAAAAAAAD5CgxrOqk=", | |
"dev_eui": "0000000000000039", | |
"lora": { | |
"spreading_factor": 7, | |
"bandwidth": 125, | |
"air_time": 61696000 | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hostname: | |
network.system: | |
- hostname: {{ grains['id'] }} | |
- require: | |
- file: patch-salt-network-module | |
include: | |
- .patch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEBUG:root:Received message{ | |
"app_id":"meet-je-stad", | |
"dev_id":"18", | |
"hardware_serial":"0000000000000012", | |
"port":10, | |
"counter":132, | |
"payload_raw":"AAAAAAAABRVD5qw=", | |
"metadata":{ | |
"time":"2017-03-24T06:12:51.840194288Z", | |
"frequency":867.3, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import subprocess | |
import sys | |
import re | |
import os | |
ttnctl_staging = ["ttnctl-staging", "--ttn-account-server", "https://v1.account.thethingsnetwork.org"] | |
ttnctl_production = ["ttnctl"] | |
mapping = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install ppp usb-modeswitch | |
Create /etc/ppp/peers/gprs and /etc/ppp/ip-up.d/ntpdate (a+x) | |
Modify /etc/network/interfaces: | |
auto gprs | |
iface gprs inet ppp | |
provider gprs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/home/matthijs/docs/Electronics/Arduino/Arduino/build/linux/work/arduino-builder -dump-prefs -logger=machine -hardware /home/matthijs/docs/Electronics/Arduino/Arduino/build/linux/work/hardware -hardware /home/matthijs/.arduino15/packages -hardware /home/matthijs/docs/Electronics/Arduino/Sketches/hardware -tools /home/matthijs/docs/Electronics/Arduino/Arduino/build/linux/work/tools-builder -tools /home/matthijs/docs/Electronics/Arduino/Arduino/build/linux/work/hardware/tools/avr -tools /home/matthijs/.arduino15/packages -built-in-libraries /home/matthijs/docs/Electronics/Arduino/Arduino/build/linux/work/libraries -libraries /home/matthijs/docs/Electronics/Arduino/Sketches/libraries -fqbn=meetjestad:avr:mjsv1 -ide-version=10613 -build-path /tmp/arduino_build_static -warnings=all -prefs=build.warn_data_percentage=75 -verbose /home/matthijs/docs/Electronics/Arduino/Sketches/Meetjestad/mjs_firmware/mjs_firmware.ino | |
/home/matthijs/docs/Electronics/Arduino/Arduino/build/linux/work/arduino-builder -compile -logger=m |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Start | |
Waiting for GPS... | |
No GPS (fix) found: check wiring | |
tmp/hum: 18.2,60.4 | |
Packet queued |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Prevent ModemManager from probing Arduino boards... | |
ACTION!="add|change", GOTO="mm_usb_device_blacklist_end" | |
SUBSYSTEM!="usb", GOTO="mm_usb_device_blacklist_end" | |
ENV{DEVTYPE}!="usb_device", GOTO="mm_usb_device_blacklist_end" | |
# NXP devices (mbed) | |
ATTRS{idVendor}=="0d28", ENV{ID_MM_DEVICE_IGNORE}="1" | |
# FTDI devices |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat foo | |
bla_c | |
bla/b | |
bla_a | |
$ cat foo|sort | |
bla_a | |
bla/b | |
bla_c |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This sleeps in powerdown mode for about the specified number of ms. | |
// If an interrupt occurs during sleep, it will be handled and sleep | |
// will continue (but up to 8 seconds of sleep might be "lost"). | |
// START-DOSLEEP | |
void doSleep(uint32_t time) { | |
#if defined(DhtSend_ino) | |
DebugSerial.flush(); | |
#endif | |
while (time > 0) { |