Ben Meadors
8b8e056b7b
Added (excluded) Dropzone Module for more comprehensive module example ( #4098 )
...
* DropzoneModule hello world
* Buttoning things up
* Exclude by default
* Upstream refs
* Cleanup
* Add modules folder to path
* Case and path matters
* Exclude from header
* Guard
2024-06-14 16:27:49 -05:00
Thomas Göttgens
181f03cb95
tryfix random values ( #4034 )
2024-06-04 08:14:27 -05:00
Ben Meadors
9632e4c405
Add missing excludes to environmental sensors ( #4033 )
...
* DF Robot Lark weather station support
* Missed it
* I am a man of const char sorrow...
* Strang
* Use our fork
* Add excludes
2024-06-04 07:04:25 -05:00
Ben Meadors
a218c6fb4d
DFRobot Lark weather station support ( #4032 )
...
* DF Robot Lark weather station support
* Missed it
* I am a man of const char sorrow...
* Strang
* Use our fork
2024-06-03 21:50:28 -05:00
Thomas Göttgens
79333c85a3
tryfix bme some more
2024-06-03 16:34:19 +02:00
Ben Meadors
06c635eca0
MLX90632 IR temperature sensor support ( #4019 )
2024-06-02 09:38:28 -05:00
Ben Meadors
97a5abbc82
TI OPT3001 light sensor support ( #4015 )
...
* TI OPT3001 light sensor support
* Added register interrogation to deconflict with SHT sensors on same address
2024-06-02 07:39:08 -05:00
Ben Meadors
6ce2fdc1c8
Add TSL2591 sensor support ( #4014 )
2024-06-01 20:21:39 -05:00
Thomas Göttgens
2740a56944
tryfix: init change for BME680 ( #3965 )
2024-05-31 19:46:42 -05:00
fzellini
eddda3ca43
added AHTx0 sensor ( #3977 )
...
* added AHTx0 sensor
* AHT10 definition in protobuf
* AHT10 definition in protobuf
* protobufs
* Management of AHT20+BMP280 module
* missing newline in log
* missing newline in log
* reverted
* reverted .gitignore
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-05-31 11:17:53 -05:00
Jonathan Bennett
84d3117a7a
Lock Portduino to MAGIC_USB_BATTERY_LEVEL for now ( #3894 )
2024-05-18 12:21:35 -05:00
Jorge Castillo
e08c808c3f
fix log line
2024-05-15 17:06:23 -04:00
Thomas Göttgens
64dc6cc215
trunk fmt
2024-05-15 12:24:42 +02:00
Jorge Castillo
8d89e78bbf
Merge branch 'master' into feature/veml7700
2024-05-14 19:00:32 -04:00
Jorge Castillo
0aa449bca9
Fix unnecessary code block removal in EnvironmentTelemetryModule
2024-05-14 18:47:20 -04:00
Jorge Castillo
a3e47b8d9b
merge master in to veml7700
2024-05-14 17:40:34 -04:00
Jorge Castillo
77e76bc92b
Fix VEML7700Sensor readings and update protobuf and MQTT JSON
2024-05-14 16:42:23 -04:00
pr000t
15178da566
Change SHT4X sensors library from Sensirion to Adafruit
2024-05-14 21:07:44 +02:00
Ben Meadors
ac22a503de
Revert "Revert "Add Sensirion SHT4X sensors ( #3792 )" ( #3845 )" ( #3850 )
...
This reverts commit 5d9800b7c2
.
2024-05-10 07:13:12 -05:00
Ben Meadors
5d9800b7c2
Revert "Add Sensirion SHT4X sensors ( #3792 )" ( #3845 )
...
This reverts commit 5371f134ba
.
2024-05-09 21:25:36 -05:00
Jorge Castillo
39336847ad
add veml7700 readings to protobuf and to the mqtt json + fix the readigns validator code in env telemetry
2024-05-08 22:14:55 -04:00
pr000t
5371f134ba
Add Sensirion SHT4X sensors ( #3792 )
...
* add Sensirion SHT4X sensors
* Update platformio.ini
Fix lib version
* Delete src/mesh/generated/meshtastic/telemetry.pb.h
* Revert "Delete src/mesh/generated/meshtastic/telemetry.pb.h"
This reverts commit 8e5e6a9f6ff4e31ed32775741c03a855e663a5de.
* remove modification on generated file
* Update ScanI2CTwoWire.cpp
Fix copy/paste issue
---------
Co-authored-by: Thomas Göttgens <tgoettgens@gmail.com>
2024-05-08 07:02:53 -05:00
Jorge Castillo
f19aa49eb2
add veml7700
2024-05-07 16:11:41 -04:00
HarukiToreda
77a66e1dce
Fix for EnvironmentTelemetry Screen ( #3785 )
...
* Update EnvironmentTelemetry.cpp
* Update EnvironmentTelemetry.cpp
Corrected lines I deleted by mistake
* trunk fmt
---------
Co-authored-by: Thomas Göttgens <tgoettgens@gmail.com>
2024-05-06 06:47:34 -05:00
Oliver Seiler
b155a5b6dc
rearrange includes
2024-05-06 12:15:49 +12:00
Oliver Seiler
2c30923e3e
add MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR exclusion to RCWL9620
2024-05-06 11:25:18 +12:00
Thomas Göttgens
53bd9de9b8
Merge branch 'master' into RCWL-9620
2024-05-03 15:12:51 +02:00
Thomas Göttgens
13ad524538
make clang-format happy again. Also fix assorted variable shrouding and logic bleeps
2024-05-03 15:10:57 +02:00
Thomas Göttgens
827dcfca4a
trunk fmt
2024-05-03 14:26:57 +02:00
Oliver Seiler
077ca5919a
MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR refinements
2024-05-03 14:15:13 +12:00
Oliver Seiler
be0e882be1
exclude sensors when MESHTASTIC_EXCLUDE_ENVIRONMENTAL_SENSOR set
2024-05-03 14:15:13 +12:00
Thomas Göttgens
a231cd2ad0
derp...
2024-04-21 16:35:41 +02:00
Thomas Göttgens
402b0d7e0b
ditch that no-good m5 dependancy and do it ourself
2024-04-21 14:39:55 +02:00
Thomas Göttgens
94e1f016e5
Change name
2024-04-20 20:49:57 +02:00
Thomas Göttgens
9170fe0580
Support radar sensor RCWL-9620 on i2c
2024-04-20 20:30:22 +02:00
Ben Meadors
4f205718f0
Device telemetry uptime in seconds ( #3614 )
2024-04-14 10:27:01 -05:00
Thomas Göttgens
2d81c97b98
fix #2586 (lower IAQ quality for saving to 2 and rework save logic)
2024-04-09 21:20:36 +02:00
Thomas Göttgens
cfd98b2c91
add BME680 IAQ reading. Range is from 0 (clean) - 500 (extremely polluted)
2024-04-09 21:20:36 +02:00
Ben Meadors
54818b5f8d
Enforce consistent polite channel utilization limits except for Sensor role ( #3467 )
2024-03-22 07:25:00 -05:00
Jonathan Bennett
dfcd0d14f6
Add MaxNodes to Native config ( #3427 )
...
* Add MaxNodes to Native
* It compiles...
* Convert nodedb to use new
* Closer but still broken.
* Finally working
* Remove unintended lines
* Don't include a pointer
* Capitalization matters.
* avoid rename in protocol regen
* When trimming the nodeDB, start with a cleanup
* Remove extra cleanupMeshDB() call for now
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-03-21 09:06:37 -05:00
Ben Meadors
0d1d79b6d1
Extract default intervals and coalesce methods into their own file / static class methods ( #3425 )
...
* Extract default intervals and coalesce methods into their own file / static class methods
* Missed pax
* Still managed to miss one
2024-03-17 08:18:30 -05:00
Thomas Göttgens
13cc1b0252
(3/3) Add variant for pico with waveshare and GPS hat ( #3412 )
...
* (3/3) Add variant for pico with waveshare and GPS hat, utilizing slow clock.
* Not everybody has Serial2
* Trunk
* Push it real gud
* No init
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2024-03-16 10:01:43 -05:00
Thomas Herrmann
cf11807f97
use priority background for low priority messages ( #3381 )
2024-03-12 12:21:09 -05:00
Manuel
c7839b469b
fix of tryfix SHT31 sensor ( #3377 )
2024-03-11 12:51:14 -05:00
Thomas Göttgens
658ed6fd28
tryfix SHT31 sensor on secondary bus
2024-03-11 13:51:26 +01:00
Thomas Herrmann
763ae9f2e2
add BMP085 (and BMP180) sensor (temperature and air pressure)
2024-03-07 23:58:04 +01:00
Thomas Herrmann
4ffb906fe8
move duplicate #define for screen to unified header file ( #3302 )
2024-02-27 12:49:46 -06:00
Ben Meadors
14b31d4d14
Fix INA sensor dual use between environment telem and device battery reading ( #3002 )
2023-12-08 19:26:37 -06:00
Ben Meadors
b4ad6b0f41
Added client-hidden role behavior ( #2992 )
...
* Added client-hidden role behavior
* Trunkt
* That line got all boogered up
2023-12-06 14:04:09 -06:00
Ric In New Mexico
9d4af1146e
INA3221 bugfixes & refinement ( #2944 )
...
Reorganized and refactored some INA3221 code
Added comments
Added missing shunt resistor value (100mΩ)
Added INA3221 Channel 1 to getINAVoltage() for device battery monitoring
modified: src/Power.cpp
modified: src/modules/Telemetry/PowerTelemetry.cpp
modified: src/modules/Telemetry/Sensor/INA3221Sensor.cpp
modified: src/modules/Telemetry/Sensor/INA3221Sensor.h
modified: src/power.h
2023-11-17 06:46:59 -06:00
Ric In New Mexico
f57020412e
INA3221 / Power Telemetry Payload Variant Implementation ( #2916 )
...
* INA3221 / Power Telemetry Variant Implementation
modified: platformio.ini
modified: src/configuration.h
modified: src/detect/ScanI2C.h
modified: src/detect/ScanI2CTwoWire.cpp
modified: src/main.cpp
modified: src/modules/Modules.cpp
new file: src/modules/Telemetry/PowerTelemetry.cpp
new file: src/modules/Telemetry/PowerTelemetry.h
new file: src/modules/Telemetry/Sensor/INA3221Sensor.cpp
new file: src/modules/Telemetry/Sensor/INA3221Sensor.h
modified: src/mqtt/MQTT.cpp
* ifdef for portduino / linux native
modified: src/modules/Telemetry/PowerTelemetry.cpp
* try #2
modified: src/modules/Modules.cpp
modified: src/modules/Telemetry/PowerTelemetry.cpp
deleted: variants/xiao_ble/1.0.0/libraries/SPI/SPI.cpp
* try #3
modified: src/modules/Modules.cpp
* try #4
modified: src/modules/Telemetry/PowerTelemetry.cpp
* try #5 ?
modified: src/modules/Telemetry/PowerTelemetry.cpp
* try #6
modified: src/modules/Telemetry/PowerTelemetry.cpp
---------
Co-authored-by: Ben Meadors <benmmeadors@gmail.com>
2023-11-04 20:07:00 -05:00
Manuel
142d56c663
allow sensors connected to second I2C port ( #2891 )
2023-10-14 19:33:45 -05:00
Ben Meadors
950d5f0946
Power saving sensor ( #2865 )
...
* Trunk
* Again
* This thing just keeps updating itself
* Ignore tools
* Sleepy sensor
* Batrunkadunk
2023-10-05 12:42:03 -05:00
Thomas Göttgens
4e54bec525
Force small fonts on Low DPI screens, no matter what the driver default uses. Up till now we assumed large fonts on E-Paper and TFT Screens. ( #2677 )
2023-08-03 06:58:19 -05:00
Ben Meadors
9eeec6c083
Reply to Repeater in DeviceTelemetry module ( #2661 )
2023-08-01 16:18:10 -05:00
Ben Meadors
e4e26a819b
Check if hasSensor an run if not initialized ( #2613 )
2023-07-16 15:23:31 -05:00
Ben Meadors
81f80546b4
Remove deprecated MyNodeInfo fields ( #2552 )
...
* Skadoosh
* Removing deprecated fields
* Remove remaining deprecations
* Macro
* Macro
2023-06-08 08:07:32 -05:00
Ben Meadors
cd787232ca
Use INA for device battery level ( #2536 )
...
* WIP
* Continued wip
* We got em
* Voltage sensor base class
* INA voltage
* Log it
* Stacie's mom has got it going on
* Move declaration up
* Last one
* Sneaky little bugger
* Macro guard to avoid calling methods
2023-06-02 06:32:34 -05:00
GUVWAF
94f5c04e19
Update lastSentToPhone after sendTelemetry ( #2522 )
2023-05-27 12:35:45 -05:00
Thomas Göttgens
a583163766
fix BSEC2 BME680 Sensor Readings
2023-05-25 15:56:39 +02:00
IhorNehrutsa
9c683f4c87
Fix LOG_DEBUG messages when no DEBUG_PORT. ( #2485 )
...
* Fix LOG_DEBUG messages when no DEBUG_PORT.
* Fix LOG_DEBUG messages when no DEBUG_PORT.
* Fix LOG_DEBUG messages when no DEBUG_PORT.
* Fix LOG_DEBUG messages when no DEBUG_PORT.
2023-05-13 05:33:14 -05:00
Thomas Göttgens
70dc13a998
use BSEC2 only
2023-05-10 14:14:48 +02:00
Thomas Göttgens
46e29402a6
fmt
2023-05-05 18:11:44 +02:00
Thomas Göttgens
10f41e376c
use BSEC2 for ESP32-C3
2023-05-05 18:09:06 +02:00
Thomas Göttgens
1621fbb5ab
add debug/info print
2023-04-21 16:03:48 +02:00
Thomas Göttgens
ac40f77694
Draft for now, please test
2023-04-21 16:03:48 +02:00
Ben Meadors
5679a82195
Support double tap as button press for supported accelerometers ( #2393 )
...
* For Garth
* Push it real good
* Wut
* Double tap
* Move disable logic
* Actually return
* Reinitialize setClick in thread body
* Initialize later so that we actually have nodedb on init
* Fixes
2023-03-29 13:04:02 -05:00
Ben Meadors
dc2ca9c32b
Report special battery_level of > 100 instead of zero to indicate USB ( #2341 )
...
* Report special battery_level of > 100 instead of zero to indicate USB
* Protos
* Helps if you click save
* Wrong method
* Fmt
2023-03-10 19:50:08 -06:00
Ben Meadors
9650adb616
Set reasonable defaults for sensor role and adjust packet priority ( #2305 )
2023-02-24 11:25:50 -06:00
Ben Meadors
46fa08dc33
Air quality specific prefs ( #2303 )
2023-02-23 13:05:24 -06:00
GUVWAF
5cadcd355f
Send DeviceTelemetry only after NodeInfo is sent
2023-02-11 15:58:26 +01:00
GUVWAF
4061870841
Don't need a Portduino guard clause here as it will not be compiled
2023-02-11 12:04:53 +01:00
GUVWAF
680550b76c
Add HAS_SENSOR flag
...
To separate DeviceTelemetry and EnvironmentTelemetry
2023-02-11 10:08:25 +01:00
Ben Meadors
1748db3160
Init struct
2023-02-04 13:35:02 -06:00
Ben Meadors
d83a0b1818
Initial air quality telemetry feature
2023-02-04 13:07:14 -06:00
Thomas Göttgens
3c6bbff4f9
Adjust braces to match DeviceTelemetry
...
this is to force correct order of evaluation.
2023-02-02 19:37:28 +01:00
Thomas Göttgens
f6c6c2912f
update enviro module to not create copies
2023-02-02 18:17:52 +01:00
Thomas Göttgens
a13adfb598
fixes #2239
2023-02-02 18:17:52 +01:00
Thomas Göttgens
cdf379616c
whatever makes trunk happy.
2023-01-21 21:23:24 +01:00
Thomas Göttgens
6fdb93cd16
re-add namespacing in protobufs. Let's see what i missed. Portduino likely ...
...
Checking in generated on purpose.
2023-01-21 21:23:24 +01:00
Ben Meadors
9046dacec8
I don't like this formatting but I need trunk to STFU
2023-01-18 14:51:48 -06:00
Ben Meadors
4d4af7de59
generated paths experiment
2023-01-18 08:56:47 -06:00
GUVWAF
c0166773e8
Portduino can handle this
2023-01-11 21:53:23 +01:00
GUVWAF
fc775012ea
Don't send NodeInfo and DeviceTelemetry at high Tx air util
...
Also move airtime checking to airtime class
2023-01-11 21:52:19 +01:00
Thomas Göttgens
8a9af37d82
Merge branch 'develop' into nice-threads
2022-12-30 20:18:19 +01:00
Ben Meadors
f1cdfd163d
Replaced all of the logging with proper log levels
2022-12-30 10:27:07 -06:00
Ben Meadors
0b5cae5393
Log levels refactoring
2022-12-29 20:41:37 -06:00
Ben Meadors
c7c5671cca
More disables
2022-12-29 18:48:33 -06:00
Thomas Göttgens
41a1dfec79
a lot of thread housekeeping. Switch them off when not needed / disabled.
2022-12-29 15:45:49 +01:00
Thomas Göttgens
94cb100e3f
Master to Develop
2022-12-28 15:30:23 +01:00
Thomas Göttgens
2ac2b6d1b6
replace PB03 compat macros with the real deal.
2022-12-23 10:00:34 +01:00
Thomas Göttgens
6a696af8f6
Revert "remember which devices were scanned on which bus and set them accordingly." - this is not working at all.
2022-11-13 14:56:52 +01:00
Thomas Göttgens
52cf530356
missing 2 sensor changes
2022-11-12 17:18:17 +01:00
Thomas Göttgens
861ded37db
remember which devices were scanned on which bus and set them accordingly.
2022-11-12 17:12:40 +01:00
Thomas Göttgens
8ab269e1b3
revert BME680 to default settings, they are working good. Our init was just replicating what's in the lib anyway.
2022-11-06 10:52:54 +01:00
Thomas Göttgens
7652253b8d
optimize BME680 usage
2022-11-06 10:37:14 +01:00
Thomas Göttgens
3d9633a56c
Different Sensor access, should prevent overheating/wrong measurements.
2022-11-05 20:12:41 +01:00
Ben Meadors
b0d05522c0
Make telemetry packets minimum priority ( #1810 )
2022-10-16 15:59:59 -05:00
Ben Meadors
fc57a9daa4
Send environment telemetry every minute ( #1808 )
2022-10-16 11:36:38 -05:00
Ben Meadors
45f9dee89a
Telemetry phone api guard ( #1805 )
...
* Delay start of telemetry modules
* Don't send unless our toPhoneQueue is empty
* Get wrecked, checks!
2022-10-16 09:58:58 -05:00