Chat using email. So it’s just an email client. Will have to try.
Author Archives: @thej
Phonk based BLE Oximeter
/* * Phonk based BLE Oximeter */ ui.addTitle(app.name); network.bluetoothLE.start(); var bleClient = network.bluetoothLE.createClient(); // -> Write here the BLE device MAC Address var deviceMacAddress = "00:A0:50:1F:23:70"; var gattServiceUUID = "49535343-fe7d-4ae5-8fa9-9fafd205e455"; var gattCharacteristicUUID = "49535343-1e4d-4bd9-ba61-23c647249616"; var gattCharacteristicDescriptorUUID = "00002902-0000-1000-8000-00805f9b34fb"; var gattNotificationEnable = 0x0100; network.bluetoothLE.start() //Main text display area var txt = ui.addTextList(0.1, 0.1, 0.8, 0.2).autoScroll(true) txt.props.textSize = 15 var dt = ui.addTextList(0.1, 0.35, 0.8, 0.2).autoScroll(true) dt.props.textSize = 15 //scan bluetooth low energy networks //this should show devices -> services -> characteristics ui.addToggle(['Scan bluetooth', 'Stop scan'], 0.25, 0.7, 0.5, 0.1).onChange(function (e) { if (e.checked) { network.bluetoothLE.scan(function (data) { txt.add(data.name + ' ' + data.rssi + ' ' + data.mac) }) } else { network.bluetoothLE.stopScan() } }) // connect to a device ui.addToggle(['Connect', 'Disconnect'], 0.25, 0.85, 0.5, 0.1).onChange(function (e) { if (e.checked) { bleClient.connectDevice(deviceMacAddress) } else { bleClient.disconnectDevice(deviceMacAddress) } }) // enable notification // var send = ui.addButton('Enable the Notification', 0.7, 0.85, 0.2, 0.1).onClick(function () { // bleClient.write(gattNotificationEnable, deviceMacAddress, gattServiceUUID, gattCharacteristicDescriptorUUID) // }) bleClient.onNewDeviceStatus(function (e) { // double check if is the device we want to connect if (e.deviceMac === deviceMacAddress && e.status === 'connected') { bleClient.readFromCharacteristic(deviceMacAddress, gattServiceUUID, gattCharacteristicUUID) txt.add('connected to ' + e.deviceName) } }) //https://stackoverflow.com/a/34310051 function toHexString(byteArray) { return Array.from(byteArray, function(byte) { return ('0' + (byte & 0xFF).toString(16)).slice(-2); }).join('') } bleClient.onNewData(function (e) { //var value = util.parseBytes(e.value, "string") // console.log('(' + e.deviceName + ') ' + e.deviceMac + '/' + e.serviceUUID + '/' + e.characteristicUUID + ' --> ') dt.add(toHexString(e.value)) })
Get all the geographies with Indian census area code (2011) mapped
SELECT
?item ?itemLabel
?value ?valueLabel
WHERE
{
?item wdt:P5578 ?value
# change P5578 id Indian census area code (2011)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
#https://w.wiki/nRD
@minionlabss do you do home energy monitors too? Where can I get them?
@minionlabss do you do home energy monitors too? Where can I get them?
RT @vinaysreeni: Haalaswamy says on @AsianetNewsSN that crushers in shivamogga use migrant workers from Bihar, bengal etc as these kind of…
RT @vinaysreeni: Haalaswamy says on @AsianetNewsSN that crushers in shivamogga use migrant workers from Bihar, bengal etc as these kind of…
RT @apar1984: As per reports Hon’ble Supreme Court has issued notice to examine grievances of a Mirzapur resident who has been offended by…
RT @apar1984: As per reports Hon’ble Supreme Court has issued notice to examine grievances of a Mirzapur resident who has been offended by…
RT @thonnyide: New version 3.3.3 is out with bugfixes and support for the new #raspberrypipico. Many thanks to @Raspberry_Pi for supportin…
RT @thonnyide: New version 3.3.3 is out with bugfixes and support for the new #raspberrypipico.
Many thanks to @Raspberry_Pi for supportin…
What’s a decent power meter that I can attach at the power input side of my junction box. Basically I want to measu… https://twitter.com/i/web/status/1352267294949347331
What’s a decent power meter that I can attach at the power input side of my junction box. Basically I want to measu…
https://twitter.com/i/web/status/1352267294949347331
How I survived a Chinese ‘re-education’ camp for Uighurs theguardian.com/world/2021/jan…
How I survived a Chinese ‘re-education’ camp for Uighurs theguardian.com/world/2021/jan…
@dhilipsiva Let me know what do you think of the book.
@dhilipsiva Let me know what do you think of the book.
RT @pingali: Great work by @NadjaNadika and @hasgeek team on tech community’s perspective on Non-Personal Data. Looking forward to reading…
RT @pingali: Great work by @NadjaNadika and @hasgeek team on tech community’s perspective on Non-Personal Data. Looking forward to reading…
@jackerhack It is. I mostly got it for NVMe ports. Otherwise two drives are more than enough for me too.
@jackerhack It is. I mostly got it for NVMe ports.
Otherwise two drives are more than enough for me too.
@dhilipsiva :)
@dhilipsiva :)
If you want to read a funny book written during #COVID19 fictionhead.in/2021/01/16/the…
If you want to read a funny book written during #COVID19
RT @an_ja_na: ETWA | Ch8b: Insubordination | How big is Sam’s issue in Chanchal’s marriage? fictionhead.in/2021/01/21/etw…
RT @an_ja_na: ETWA | Ch8b: Insubordination | How big is Sam’s issue in Chanchal’s marriage? fictionhead.in/2021/01/21/etw…