This file contains 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
#include <Arduino.h> | |
// It wouldn't be possible if not for this PDF: https://www.osengr.org/WxShield/Downloads/OregonScientific-RF-Protocols-II.pdf | |
// And a bunch of other projects that do similar things | |
// Constants | |
#define OS3D_BUFFER_LEN 12 | |
#define OS3D_RECEIVER_PIN 14 // D5 | |
#define nibblesToReceiviedBits(msgNib) \ | |
(msgNib + 1) * 4 // Given expected message length in nibbles (w/out) the |
This file contains 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
# Before starting: | |
# sudo apt install python3 python3-pip graphviz | |
# pip3 install -U gprof2dot | |
python3 -m cProfile -o /tmp/profilestats "$@" | |
gprof2dot -f pstats /tmp/profilestats | dot -Tpdf -o profile.pdf |
This file contains 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
#!/bin/bash | |
download_dir="$base/prefix/drive_c/truckersmp" | |
download_url="https://download.ets2mp.com/files" | |
files_url="https://update.ets2mp.com/files.json" | |
if [[ $1 = "ets2" ]] ; then | |
target_type="ets2" | |
elif [[ $1 = "ats" ]] ; then | |
target_type="ats" | |
else |
This file contains 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
{ | |
"140605": [52.33945, 20.94478], | |
"140606": [52.33856, 20.94377], | |
"194601": [52.40461, 21.17250], | |
"194602": [52.40499, 21.17302], | |
"194701": [52.34054, 20.94689], | |
"194703": [52.34098, 20.94870], | |
"194704": [52.34049, 20.94736], | |
"194705": [52.34049, 20.94985], | |
"194706": [52.34008, 20.94679], |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.