<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Idealisticly Caspan - Latest Comments</title><link>http://caspan.disqus.com/</link><description></description><atom:link href="https://caspan.disqus.com/comments.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 23 Jul 2025 00:59:30 -0000</lastBuildDate><item><title>Re: Home Assistant – How To Filter Consumption Readings</title><link>https://caspan.com/2025/04/home-assistant-how-to-filter-consumption-readings/#comment-6741593233</link><description>&lt;p&gt;That seems close to what I am looking for (Fusion Solar integration returns some bizarre data at night). Currently filtering out with the outlier filter, however the exact issue of repeated false values happens, so eventually the filtering fails.&lt;br&gt;Now in your example you do percentages. My case would be:&lt;br&gt;- in original sensor data, anything that is an increase of X (absolute value) or more from previous state must be false (the errors only happen at night when there is no production. To allow for normal operation during the day, X should be a bit more than the maximum output of the solar panels in the given time window between sensor readouts)&lt;br&gt;- in original sensor data, anything that is a decrease is false (the panels do not consume energy when idle)&lt;br&gt;It seems your code is close to what I need, however I have no idea how to implement it. How to code what I wrote above? Where do I put this file and how do I make HA use it?&lt;br&gt;I will appreciate some help.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">TheWojtek</dc:creator><pubDate>Wed, 23 Jul 2025 00:59:30 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6658457120</link><description>&lt;p&gt;I've checked and so far doesn't look very straight-forward.  Underneath the signature they have two drop-downs, one for new messages and one for replies allowing you to set the signature name for each of them.  So what I am trying to do is figure out how I can use the script to set those variables after creating the new signature.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Sugar</dc:creator><pubDate>Mon, 24 Feb 2025 16:35:02 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6658451420</link><description>&lt;p&gt;No i have not updated the script to deal with this. I was not aware. I am assuming this should be a simple modification to get the proper signature instead of the default one&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">MrCaspan</dc:creator><pubDate>Mon, 24 Feb 2025 16:25:43 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6654893766</link><description>&lt;p&gt;It looks like Google updated how they handle signatures.  They now allow you to set a default for new emails and replies.  Any ideas on how to set the signature being deployed for both new emails and replies?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Sugar</dc:creator><pubDate>Wed, 19 Feb 2025 10:35:16 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6612566877</link><description>&lt;p&gt;I feel like you are doing everything correct. Let's do some debugging, can add the following on line 127&lt;/p&gt;&lt;p&gt;&lt;code&gt;Logger.log(file.getBlob().getDataAsString());fail;&lt;br&gt;&lt;/code&gt;&lt;br&gt;There is no such thing as the command &lt;code&gt;fail&lt;/code&gt; so the code will just stop once it gets there. This will output to the logs what the file contents are without parsing the JSON data.&lt;/p&gt;&lt;p&gt;Can you paste the output here?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">MrCaspan</dc:creator><pubDate>Mon, 16 Dec 2024 14:36:18 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6612566731</link><description>&lt;p&gt;I got it resolved.  There were typographic quotes vs. standard double quotes.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Sugar</dc:creator><pubDate>Mon, 16 Dec 2024 14:36:03 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6612561085</link><description>&lt;p&gt;It's like 128 where it's getting caught, this line.&lt;/p&gt;&lt;p&gt;return JSON.parse(file.getBlob().getDataAsString());&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Sugar</dc:creator><pubDate>Mon, 16 Dec 2024 14:27:28 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6612560430</link><description>&lt;p&gt;It's complaining about that file.  I even used TextEdit on Mac and set it to plain text and then uploaded the file.  To get the ID of the file I am copying the link of the file and taking everything after the /d/ in the URL.  Sorry not sure if I am missing something but format looks good and everything.  Even saved the file as UTF-8 with TextEdit.  Unless Google Drive does something strange to the file when I upload it.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Sugar</dc:creator><pubDate>Mon, 16 Dec 2024 14:26:25 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6612558521</link><description>&lt;p&gt;Did that fix the problem or are you saying the original file it's complaining about this is how you did it?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">MrCaspan</dc:creator><pubDate>Mon, 16 Dec 2024 14:23:27 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6612550222</link><description>&lt;p&gt;Since I'm on a Mac I went into terminal and used nano to create config.txt and then I uploaded the file to the shared google drive.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Sugar</dc:creator><pubDate>Mon, 16 Dec 2024 14:10:41 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6612549054</link><description>&lt;p&gt;Yeah that is valid JSON data. Are you absolutely sure its a plain text file and not a google or word document? Also worst case you can just hardcode the ID in the script where you find the variable for emailTemplateID&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">MrCaspan</dc:creator><pubDate>Mon, 16 Dec 2024 14:08:54 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6612541075</link><description>&lt;p&gt;When the function loadConfig_ in helperFunctions tries to parse the config.txt file which I created as a plain text file it returns the following error SyntaxError: Expected property name or '}' in JSON at position 1 (line 1 column 2)&lt;br&gt;    at loadConfig_(helperFunctions:128:15)&lt;br&gt;    at start(main:30:18)&lt;/p&gt;&lt;p&gt;In my file I have {"emailTemplateID":"someidnumberhere"}&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">David Sugar</dc:creator><pubDate>Mon, 16 Dec 2024 13:56:13 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6512207015</link><description>&lt;p&gt;You could jerry rig it to maybe only run on one user then getting a list of all ther users. I dont have a quick answer for you but you could replace the funciton to get all domain users with just one domain user. And no this will only work for online gmail not the mobile or outlook..&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">MrCaspan</dc:creator><pubDate>Thu, 25 Jul 2024 09:07:39 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6511324922</link><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;Thanks for this great article. How can I run this script for a test user? There are also users who use outlook. Is there a solution for this?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Volkan Tipi</dc:creator><pubDate>Wed, 24 Jul 2024 07:07:57 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6433789144</link><description>&lt;p&gt;Hello!&lt;br&gt;Fantastic project and script thanks so much.&lt;br&gt;I follow your post and try to implement but I have this error:&lt;/p&gt;&lt;p&gt;ReferenceError: getProfilePicture_ is not defined&lt;br&gt;getUsers_	@ &lt;a href="http://getUsers.gs" rel="nofollow noopener" target="_blank" title="getUsers.gs"&gt;getUsers.gs&lt;/a&gt;:63&lt;br&gt;start	@ &lt;a href="http://main.gs" rel="nofollow noopener" target="_blank" title="main.gs"&gt;main.gs&lt;/a&gt;:33&lt;/p&gt;&lt;p&gt;Could you help me?&lt;br&gt;Also with this script I can change the default signature of a user...I need to change also all the signature (with different template) for the sendAs feature of gmail...is it possible?&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Gianluca</dc:creator><pubDate>Thu, 11 Apr 2024 11:06:03 -0000</pubDate></item><item><title>Re: AOL Mobile Communicator &amp;#8211; A Piece of History!</title><link>http://caspan.com/2016/02/aol-mobile-communicator-a-piece-of-history/#comment-6408228234</link><description>&lt;p&gt;I still have one.  It stopped working a few years before Mobitex shut down.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chainsman</dc:creator><pubDate>Thu, 07 Mar 2024 14:18:19 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6406921119</link><description>&lt;p&gt;Hello,&lt;/p&gt;&lt;p&gt;This script was great, one issue I had was our HTML template had new lines between the &amp;lt;rt&amp;gt; tags (we're excluding whole divs in some cases) which caused the template regex to fail, specifically in &lt;a href="http://helperFunctions.gs" rel="nofollow noopener" target="_blank" title="helperFunctions.gs"&gt;helperFunctions.gs&lt;/a&gt; lines 14 and 15 I adjusted to allow multiple line matching which worked for us, though it might be handy if others come across it&lt;/p&gt;&lt;p&gt;14:  const regex1 = new RegExp('&amp;lt;rt&amp;gt;(.*?)&amp;lt;\/rt&amp;gt;','s');&lt;br&gt;15:  const regex2 = new RegExp('{(.*?)}','s');&lt;/p&gt;&lt;p&gt;Thanks&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Munro</dc:creator><pubDate>Tue, 05 Mar 2024 20:58:20 -0000</pubDate></item><item><title>Re: How To Link To A Google Drive Template, The Proper Way!</title><link>https://caspan.com/2018/10/how-to-link-to-a-google-drive-template/#comment-6293564151</link><description>&lt;p&gt;NP, glad it helps!!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">MrCaspan</dc:creator><pubDate>Thu, 05 Oct 2023 13:48:16 -0000</pubDate></item><item><title>Re: How To Link To A Google Drive Template, The Proper Way!</title><link>https://caspan.com/2018/10/how-to-link-to-a-google-drive-template/#comment-6293490535</link><description>&lt;p&gt;5 years later and this is still the best solution. Thank you.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Chris</dc:creator><pubDate>Thu, 05 Oct 2023 12:13:50 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6260595189</link><description>&lt;p&gt;&lt;a href="https://uploads.disquscdn.com/images/f38532e13368e7dd2726d9bcaebbad006d324cd161fbdec07e6b60299c454a0d.png" rel="nofollow noopener" target="_blank" title="https://uploads.disquscdn.com/images/f38532e13368e7dd2726d9bcaebbad006d324cd161fbdec07e6b60299c454a0d.png"&gt;https://uploads.disquscdn.c...&lt;/a&gt;&lt;/p&gt;&lt;p&gt;yes i did it like mentioned in the guide&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vyacheslav Maliev</dc:creator><pubDate>Tue, 22 Aug 2023 08:01:20 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6249755759</link><description>&lt;p&gt;To be honest it sounds like you don't have the proper access for this service account. Did you set up the scopes in your domain?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">MrCaspan</dc:creator><pubDate>Mon, 07 Aug 2023 19:18:48 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6249675182</link><description>&lt;p&gt;Hi MrCaspan! Thanks for your reply: i get this error here:&lt;/p&gt;&lt;p&gt; if (!service.hasAccess()) {&lt;br&gt;    Logger.log('There was a service error:' + service.getLastError());&lt;br&gt;    service.reset();&lt;br&gt;    fail; // There is no such thing as fail so this will hault our script&lt;br&gt;  }&lt;br&gt;  const url = '&lt;a href="https://people.googleapis.com/v1/people/'" rel="nofollow noopener" target="_blank" title="https://people.googleapis.com/v1/people/'"&gt;https://people.googleapis.c...&lt;/a&gt; + id +'?personFields=photos'&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vyacheslav Maliev</dc:creator><pubDate>Mon, 07 Aug 2023 16:56:55 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6245660672</link><description>&lt;p&gt;What line is giving you this error, there are a few calls using the service account&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">MrCaspan</dc:creator><pubDate>Wed, 02 Aug 2023 10:49:24 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6245199516</link><description>&lt;p&gt;Done this case, but have next one:&lt;/p&gt;&lt;p&gt;There was a service error:Error: Error retrieving token: unauthorized_client, Client is unauthorized to retrieve access tokens using this method, or client not authorized for any of the scopes requested.&lt;/p&gt;&lt;p&gt;looks like authorization error despite ive made everithing like described in the guide, how to troubleshoot wats wrong?&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Vyacheslav Maliev</dc:creator><pubDate>Tue, 01 Aug 2023 19:11:30 -0000</pubDate></item><item><title>Re: Google App Script – Set Gmail Signature Template On Org Users</title><link>https://caspan.com/2021/10/google-app-script-set-gmail-signature-template-on-org-users/#comment-6231194470</link><description>&lt;p&gt;Just checking if hard coding the config worked. I think I am going to update the script to just look for a special chr in that directory to load a signature template as that is just simpler&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">MrCaspan</dc:creator><pubDate>Fri, 14 Jul 2023 09:50:00 -0000</pubDate></item></channel></rss>