This is a sample script for downloading files from Google Drive under no authorization using browser. By using this sample, you can make other users download files from your Google Drive. Even if the other users are not Google users, they can download the files.
This is a sample script for uploading local file to Google Drive without the authorization using HTML form. A selected file in your local PC using HTML form is uploaded to Google Drive and saved to Google Drive.
When you use this, at first, please deploy Web Apps. The script is doPost()
of following scripts.
function doPost(e) {
var data = Utilities.base64Decode(e.parameters.data);
WSL2 still does not support USB devices, but with a little effort we can make possible to flash and monitor ESP device from WSL2.
using Google.Apis.Auth.OAuth2; | |
using Google.Apis.Gmail.v1; | |
using Google.Apis.Gmail.v1.Data; | |
using Google.Apis.Services; | |
using Google.Apis.Util.Store; | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Threading; | |
using System.Threading.Tasks; |
// how to compile, win10 | |
// 2021-MAR-13 | |
// install MinWG, https://sourceforge.net/projects/mingw/ | |
// cd C:\MinGW\msys\1.0\ | |
// run msys.bat | |
// get in msys terminal mode, | |
// cd "C:/your_file_path_of_b64.c/" | |
// gcc b64.c -o b64.exe |
/* | |
* Copyright 2016 Kevin Mark | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
I want to tie my BOSE Lifestyle system into my smart home control setup like this:
The Remote Control RC9 for BOSE Lifestyle 3, 5, 8, 12 systems is using radio rather than infrared. Also, since these systems do not have other ways to control them, it is difficult to integrate them into home automation setups. Also, there are no replacement remotes available and even worn-down used original remotes go for absurd prices on eBay.
This is why I was curious how these devices could be controlled using the apparently proprietary radio signals.