Git Product home page Git Product logo

osm-connect's Introduction

OSM-Connect

Google Script App for connecting to Online Scout Manager

Not for production use.

See Code.gs for minimal documentation.

osm-connect's People

Contributors

hippysurfer avatar

Stargazers

James Cuadra avatar  avatar jack avatar  avatar Peter Newman avatar

Watchers

 avatar  avatar

osm-connect's Issues

Adaptation for Waiting List reports

@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.

Approaches and options to pulling District Dashboard stats

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&sectionid=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"
    ]
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.