Google Script App for connecting to Online Scout Manager
Not for production use.
See Code.gs for minimal documentation.
Google Script App for connecting to Online Scout Manager
License: GNU General Public License v3.0
@hippysurfer
Loving this project, perfect timing as I'm trying to combine a Google App Sheet mobile deployment with automated data collection from OSM to create a new way of managing district WLs.
My plan is to adapt your approach to pull member details from waiting list sections only.
Baring in mind I don't need to preserve the functionality to the other functions (subs etc), I've been able to modify the [OSM.gs and member.gs code to include "waiting" in the list of sections presented in the dialogue and adjusted the spreadsheet output to include the fields I want.
But I'm stuck. I can't figure out how to return ONLY waiting list section types to the dialogue - and not all the other, beavers, cubs etc.
Even better - if I could do away with the dialogue all together and trigger the fetch of data, for any 'waiting' section, programmatically (and later, to a schedule) - thereby allowing automation of the report.
Suggestions to approach this welcome.
Hey, I'm looking at how to adapt your project to pull Section Size information into a sheet. It's not part of OSM many folks will see/use.
Would you take a look at the output below and suggest which of your existing .gs components would be closest to what I'd need to do to pull the "sections" elements per group? I am happy to work on it myself and share back, but I struggle to interpret the function calls necessary to navigate across the array. It's probably pretty simple - but I can't get my head round it.
Thanks in advance.
The POST is: /ext/discounts/?action=getSizes&code=221§ionid=68972
The returned BODY (sample) is:
{
"Portsmouth": {
"idealsize": 1451,
"numscouts": 1084,
"waiting": 272,
"byGroup": {
"104th Portsmouth": {
"sections": [
{
"numscouts": 15,
"sectionid": "30931",
"type": "beavers",
"idealsize": 50,
"idealleaders": "5",
"numleaders": "5",
"name": "Beavers",
"waiting": 3
},
{ ... etc ... }
],
"idealsize": 88,
"numscouts": 45,
"waiting": 7
},
"1st Portsmouth Sea Scouts": {
"sections": [
{
"numscouts": 15,
"sectionid": "50569",
"type": "beavers",
"idealsize": 18,
"idealleaders": "4",
"numleaders": "2",
"name": "Beavers",
"waiting": 0
},
{ ... etc ... }
],
"idealsize": 63,
"numscouts": 70,
"waiting": 0
},
... etc ...
}
}
},
"categories": [
"Portsmouth"
]
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.