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
/* | |
Uses https://github.com/noble/noble / https://github.com/abandonware/noble to read temperature and humidity from the iBeacon advertising packets from the Moat Technolgies sensor (likely a branded version of OEM iB004N by AnkhMaway / Jaalee) | |
Before using, you need to get the Mac address of your beacon, and the beacon itself has to be configured to provide temp/humidity in the advertising packets (the Moat version is pre-configured this way, but the OEM may not be). | |
npm install @abandonware/noble | |
node read-th.js | |
*/ |
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
<?php | |
// ----------------------------- | |
// When Movable Type (for example, version 4.32) exports posts, the files | |
// have \n instead of <br> in the HTML bodies of posts and comments to | |
// represent newlines. This confuses WordPress and corrupts the import process. | |
// | |
// This script replaces the double-newlines in post/comment bodies with <br><br> | |
// so that a WordPress import can proceed correctly | |
// |