Expand API for better Input Troubleshooting #360

Merged
RFBomb merged 3 commits from master into master 2020-12-16 20:33:49 +00:00

3 Commits

Author SHA1 Message Date
RFBomb
546d7535ad Converted from Tab Spacing to 4xSpacebar Spacing to match original 2020-10-24 18:54:21 -04:00
RFBomb
223d61ff33 Expanded API for better debugging of inputs
- Added 3 support routines at top of the script to normalize / functionize reading the GPIO Pin States for both inputs and outputs. 
- The '/inputs' and '/outputs' API Calls will now include the current pin state (Human Readable), Label, GPIO Pin Number, and Index in their JSON outputs. 

These changes also resolve the api returning both 'false' and '0' as the pin states would sometimes show up as from the "val = if-else "statement.
2020-10-24 18:51:25 -04:00
RFBomb
2237920a8e Update __init__.py
Added IO status to the /inputs and /outputs API calls
2020-10-24 09:40:13 -04:00