Commit Graph

442 Commits

Author SHA1 Message Date
Mitch Gallman
65c0152437 Add hum_raw_i2c & temp_raw_i2c as humidity capable 2021-05-03 23:17:22 -04:00
Vitor de Miranda Henrique
607fc1d2fb Merge pull request #390 from raoulh/master
Add i2c gpio support
2021-04-28 14:57:17 -05:00
Vitor de Miranda Henrique
330d70e531 Update README.md 2021-03-18 21:52:01 -05:00
raoulh
c9103bcdf8 Add i2c gpio support (#1)
Implement support for i2c gpio devices (GPIO outputs and temp/humidity inputs)
2021-02-05 17:44:31 +01:00
Vitor de Miranda Henrique
db22b12d83 Merge pull request #348 from Yeraze/Python_Stdout
Convert STDOUT from Popen's to UTF-8
2020-12-16 14:34:31 -06:00
Vitor de Miranda Henrique
9f72e0dcda Merge pull request #360 from RFBomb/master
Expand API for better Input Troubleshooting
2020-12-16 14:33:49 -06:00
Vitor de Miranda Henrique
4095481090 Merge pull request #376 from betarho/fix_typo
Fix some typos in README.md
2020-12-16 14:33:11 -06:00
Roberto Bonacina
64eecefe76 Fix some typos in README.md 2020-12-01 21:24:08 +01:00
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
Vitor de Miranda Henrique
ff9d899d10 Merge pull request #357 from gromeck/master
fixed issues #254 from the original code
2020-10-19 14:26:11 -05:00
Randall Hand
16f3ec8178 Convert STDOUT from Popen's to UTF-8
By default, Python3's STDOUT's that come back from Popen commands
are byte-arrays, not strings.  So attempting to do string operations
(like 'split' or 'strip') fail.  They must be converted to UTF-8
strings first.

This was causing the enclosure plugin to return false debug messages about
'disabling SUDO' when attempting to read my DHT22 sensor.
2020-10-04 10:25:35 -04:00
Vitor de Miranda Henrique
456497f7e6 Update README.md 2020-09-15 09:58:50 -05:00
Vitor de Miranda Henrique
928f29c7a6 Merge pull request #322 from ameixler/master
Allow accessing multiple Si7021s for temp and humidity info
2020-09-15 09:56:29 -05:00
Vitor de Miranda Henrique
7819ea6dea Merge branch 'master' into master 2020-09-15 09:56:22 -05:00
Vitor de Miranda Henrique
9b3895c263 Merge pull request #314 from Piranit/master
Brightness control for WS28B12 (Neopixel) fixed
2020-09-15 09:55:09 -05:00
Vitor de Miranda Henrique
37796fafbe Merge pull request #297 from benjamin-salchow/master
adds python 3.7 compatibility
2020-09-15 09:54:53 -05:00
Vitor de Miranda Henrique
eed486ff06 Merge pull request #321 from CapnBry/noupper
Do not uppercase user-supplied gcode
2020-09-15 09:53:09 -05:00
Christian Lorenz
d74c302af7 fixed issues #254 from the original code
see https://github.com/vitormhenrique/OctoPrint-Enclosure/issues/254
2020-08-25 00:37:17 +02:00
Vitor de Miranda Henrique
b0514fcfd3 Update README.md 2020-06-20 16:05:33 -05:00
Vitor de Miranda Henrique
1d1eb93aa7 Update README.md 2020-06-20 16:05:00 -05:00
ameixler
3b6233a731 Working changes
Confirmed works with 2 Si7021 modules.
2020-05-13 20:38:04 -04:00
ameixler
397ad4dead testing adding i2cbus settings 2020-05-13 18:49:40 -04:00
Bryan Mayland
cccf74bcf8 Do not uppercase user-supplied gcode 2020-05-12 15:32:16 +01:00
Piranit
d6e6de5946 forgotten parameter 'LED_BRIGHTNESS' for initialize Adafruit_NeoPixel added 2020-04-25 15:30:03 +03:00
Vitor de Miranda Henrique
ab1c5b204e Merge pull request #313 from Columbo818/master
Add AM2320.py
2020-04-20 09:24:13 -05:00
Charles Miller
72faf58dfa update AM2320.py 2020-04-20 15:17:57 +01:00
Charles Miller
cf3934c2fe formatting: AM2320.py 2020-04-20 15:14:53 +01:00
Charles Miller
960cf5b300 Add AM2320.py
Adds support and UI options for the AM2320 i2c sensor
2020-04-20 15:12:39 +01:00
Benjamin Salchow
67e980e9f7 adds python 3.7 compatibility 2020-03-15 13:15:38 +01:00
Vitor de Miranda Henrique
2fcd76b025 Merge pull request #272 from UnchartedBull/master
Update API temperature values
2019-11-26 10:12:06 -06:00
UnchartedBull
8d492ab378 Update inputs as well 2019-11-26 16:34:13 +01:00
Vitor de Miranda Henrique
e55826fb40 Merge pull request #261 from UnchartedBull/master
Make API RESTful (kind of)
2019-10-20 13:52:03 -05:00
Vitor de Miranda Henrique
508591a3ff Merge pull request #259 from munzli/master
added MCP9808 support
2019-10-20 13:49:54 -05:00
UnchartedBull
046df7a51d Fix output value not returned 2019-10-10 17:46:36 +02:00
UnchartedBull
893fb11463 Update docs 2019-10-10 15:29:48 +02:00
StefanCohen
a9ef64eb23 First version of the new API documentation
The new REST API documentation
2019-10-10 00:40:43 +02:00
UnchartedBull
c54219fd1a correct naming plus restructuring 2019-10-09 23:42:14 +02:00
UnchartedBull
f9e32d8e8b Rename 2019-10-09 23:17:21 +02:00
UnchartedBull
fad2581e01 should work now 2019-10-09 23:16:01 +02:00
UnchartedBull
6c36d4b924 First idea for new API concept 2019-10-09 22:39:41 +02:00
UnchartedBull
11897cdbbc Limit temperature outputs 2019-10-09 22:28:17 +02:00
UnchartedBull
b62235af15 remove flask import 2019-10-09 17:17:37 +02:00
UnchartedBull
0601d16559 rewrote API to be kind of RESTful 2019-10-09 17:11:33 +02:00
UnchartedBull
5023e08c77 started changing first apis 2019-10-09 15:04:04 +02:00
UnchartedBull
5fe4481a54 Merge branch 'master' of https://github.com/UnchartedBull/OctoPrint-Enclosure 2019-10-09 13:59:54 +02:00
UnchartedBull
5798beeeec first draft for kind of RESTful API 2019-10-09 13:59:51 +02:00
Timon G
0983363b5f Update setup.py 2019-10-09 00:38:50 +02:00
UnchartedBull
e8237841dd Add Temperature GET API 2019-10-08 23:28:27 +02:00