Profile

Cover photo
Lenny Cunningham
Attended Patterson High School
Lives in Lafayette, La
118 followers|91,581 views
AboutPostsPhotosYouTube

Stream

 
Had a couple free moments this weekend and decided to use Apps Script in part of my Home Automation.  Here you go hopefully the first #appsscript  Garage Door Opener with a +ControlByWeb Dual Relay .

Update: Link to document about project.
https://docs.google.com/document/d/1t-B7_IlBhcJz3xiNfXZrqnGsm1wjhsiWpXGM6upaqqc/edit
26
5
Linda Lawton's profile photoFaustino Rodriguez's profile photoMartin Hawksey's profile photoAsan Kaceri's profile photo
4 comments
 
so cool and simple (after you did it, of course ;)
thanks for sharing and cheering up the weekend !!
Add a comment...

Lenny Cunningham

Problem/Coding Help  - 
 
I know this isn't particularly apps script, but I am using this code with it.
And plus you guys and gals are my peeps ;) any way

I can not for the life of me get the following code to work.
I'm storing values from a form in a webapp to the localStorage that works for sure I can see the data. When the user reloads the page, I'm trying to have it pre-populate the form with last submitted data. I can return the data during the script, but can not get the jQuery to set the val of the input text box.  Please explain to me my ignorace Thanks.

It's only a snippet but you get the gist..... And there are mutiple calls in the each statement for trial and error.


//Populate Crew Settings from localStorage
if (localStorage.getItem('lastSettings')) {
console.log('got localStorage');
var lastSettings = JSON.parse(localStorage.getItem('lastSettings'));
$.each(lastSettings, function() {
$.each(this, function(name, value) {
console.log(name+':'+value);
$('#'+name).css({'background-color' : 'yellow'});
$('#pic').attr('value', name);
$('#pic').css({'background-color' : 'yellow'});
$('#'+name).val(value);
});
});
}; 
1
Lenny Cunningham's profile photoFrédéric Morel's profile photoMartin Hawksey's profile photo
5 comments
 
From what I can tell this was HTML run off Google drive rather than htmlservice
Add a comment...
 
Does anyone know if a codiqa export could work with HTMLService?  I'm going to go with no being it has jquery mobile.
1
Add a comment...

Lenny Cunningham

commented on a post on Blogger.
Shared publicly  - 
 
#GoogleApps  has completely changed our Operations.
2
Add a comment...
Have him in circles
118 people
Roger Wilson's profile photo
Gregory Rumph's profile photo
Wil Milam's profile photo
Harry Tate's profile photo
Era Helicopters's profile photo

Lenny Cunningham

Shared publicly  - 
1
Brenden Espie's profile photoLenny Cunningham's profile photo
3 comments
 
Nice I have got to get into scripting I have tested a few simple scripts
but never made the commitment. It is time...
Add a comment...
1
Add a comment...
 
Any one posting to A Facebook page? Or know is it possible or not?
1
GAS LibraryApp's profile photo
 
Use a Google Apps Site Announcement Page and a Facbook Service for automatically reading the RSS feed : see https://www.facebook.com/LightRecycler. 
Add a comment...
 
I know more than 8 people have to be experiencing this.  I see that they have it triaged, but might want to check your scripts if you are exporting to a PDF.  And star the issue, the higher the ranking the more attention.
1
Add a comment...

Lenny Cunningham

Shared publicly  - 
3
Lorenço Gonzaga's profile photo
 
Owww, awesome
Add a comment...
People
Have him in circles
118 people
Roger Wilson's profile photo
Gregory Rumph's profile photo
Wil Milam's profile photo
Harry Tate's profile photo
Era Helicopters's profile photo
Education
  • Patterson High School
    1996 - 2000
Basic Information
Gender
Male
Work
Occupation
Flight Paramedic/Rescue Specialist
Places
Map of the places this user has livedMap of the places this user has livedMap of the places this user has lived
Currently
Lafayette, La