03d6a36e0aAdd a comment on cosH bounds
Pim van Pelt
2019-10-03 08:57:30 +02:00
2c0207b3ebThe permanent dark/light can only happen beyond the polar circles
Pim van Pelt
2019-10-03 08:54:48 +02:00
5715977e62Simple sunset/sunrise algorithm
Pim van Pelt
2019-10-02 23:55:32 +02:00
b2452a97dbFinal winter schedule
Pim van Pelt
2019-10-02 23:44:21 +02:00
3bb48e0448Retire old fork of OTA
Pim van Pelt
2019-09-29 21:09:52 +02:00
862803b87bRemove SSL mqtt; Switch to upstream OTA
Pim van Pelt
2019-09-29 21:09:23 +02:00
4e546a20fdAdd unit0 - Heli's new (second) controller.
Pim van Pelt
2019-09-29 21:08:35 +02:00
cd03610647Pull back lights-out 30min. OK(marina)
Pim van Pelt
2019-09-27 20:03:21 +02:00
bc4293bc30First phase winter-planning: all lights +30min start time, same end time. OK(marina)
Pim van Pelt
2019-09-23 10:00:47 +02:00
5ba1186a9cNew timers for summertime
Pim van Pelt
2019-04-01 10:50:55 +02:00
fbd3ba98d3Add doall.sh configuration helper
Pim van Pelt
2019-03-31 13:13:59 +02:00
51ca1de390Move to published Prometheus Sensors library
Pim van Pelt
2018-11-21 00:10:46 +01:00
02865fde72Call mqtt_publish_stat() after setting state, not before
Pim van Pelt
2018-11-05 08:17:32 +01:00
06241f2581Ensure MQTT messages are only set if state actually changed
Pim van Pelt
2018-11-05 08:04:21 +01:00
b7467e3be1add mqtt_publish_stat() for override and timespec changes; add channel_override_clear(); call c_o_c() when Timespec.Clear removes the timespec, as there is no concept of overrides when there is no timespec set
Pim van Pelt
2018-11-04 20:50:23 +01:00
aa3c0b0cdaAlign log_print_prefix() elements, with truncation if they're too long
Pim van Pelt
2018-11-04 20:18:27 +01:00
8d9ed882c1Stop setting channel_override_set() in RPC calls to change the Timespec; Detect if timespec is empty and skip driving the channel in this case
Pim van Pelt
2018-11-04 20:02:49 +01:00
8149a6cd10add timespec_empty() unit test
Pim van Pelt
2018-11-04 19:56:08 +01:00
8c6b2f399badd timespec_empty()
Pim van Pelt
2018-11-04 19:55:54 +01:00
9af4c4b3a6Add notes for Sonoff 4CH updates (ensure to copy out timespec.chan*; remove 1MB build
Pim van Pelt
2018-11-04 19:41:14 +01:00
8624473386Bump version to 1.4 -- now with timespec handling!
Pim van Pelt
2018-11-04 19:19:36 +01:00
61ddb0334eCommit timespec to file on Timespec.Add; Unlink timespec file on Timespec.Clear; Initialize timespec from file in channel_init()
Pim van Pelt
2018-11-04 19:19:17 +01:00
8c4864b199Remove danlging vim swap file
Pim van Pelt
2018-11-04 18:57:37 +01:00
f5ea934dfbAdd timespec_{read,write}_file() and unit tests
Pim van Pelt
2018-11-04 17:40:12 +01:00
5b79487ab8Format with uncrustify
Pim van Pelt
2018-11-04 16:45:23 +01:00
31dcf28ff0Add Timespec.{Get,Clear,Add} RPCs
Pim van Pelt
2018-11-04 16:45:05 +01:00
560c81cbfdAdd channel_get_timespec()
Pim van Pelt
2018-11-04 16:44:47 +01:00
f8a13112b6Fix signedness comparison for ESP8266 compiler
Pim van Pelt
2018-11-04 16:22:09 +01:00
a01e548249add timespec_clear_spec() and timespec_get_spec()
Pim van Pelt
2018-11-04 16:17:35 +01:00
0ad33f5fbcAdd timespec() and channel_override logic -- so we can install a time specification with which the channels are driven, but yet allowing a human override (either by RPC or by Button)
Pim van Pelt
2018-11-04 15:44:17 +01:00
d5778c6fbaAdd timespec_match_now() based on localtime()
Pim van Pelt
2018-11-04 15:43:32 +01:00
af9db0395dAdd SNTP library
Pim van Pelt
2018-11-04 15:42:08 +01:00
5c26d2d43bformat with uncrustify
Pim van Pelt
2018-11-04 14:19:00 +01:00
8cfcfc9af3Add mgos_gpio_read(); mgos_[mu]sleep()
Pim van Pelt
2018-11-04 14:17:00 +01:00
5ebd4b112aMake default app.config be nodemcu v2 board; Clear sensors.dht_gpio, make users actually set this
Pim van Pelt
2018-11-04 14:11:10 +01:00
3ae64cfc37Add standard NodeMCU v2 board
Pim van Pelt
2018-11-04 14:10:39 +01:00
5a39c618ceAllow LED and Relay logic level to be inverted
Pim van Pelt
2018-11-04 14:10:28 +01:00
b29edab495Add 'duration' argument to Channel.Set RPC call
Pim van Pelt
2018-11-01 21:01:37 +01:00
75eccd0447Move to a struct with args in channel_set_cb()
Pim van Pelt
2018-11-01 20:57:24 +01:00
8eb6bcb112add channel_set_duration() for timer based polls
Pim van Pelt
2018-11-01 20:29:51 +01:00
3140cc72b8Log to chumbucket by default, set the device hostname to 'test-device'
Pim van Pelt
2018-11-01 14:48:01 +01:00
6434cb6db0Sleep the MCU 250ms after relay on switches, to avoid brownouts. Scan the pushbutton for 100ms to ensure it was still pressed, to avoid RFI from triggering
Pim van Pelt
2018-11-01 14:47:35 +01:00
d332f08da4Make distinction between channels toggled via GPIO (button) or RPC
Pim van Pelt
2018-11-01 14:31:59 +01:00
f1614f3e6eRemove 50ms sleep time, it doesn't help
Pim van Pelt
2018-11-01 14:12:13 +01:00
d673cda325Remove cooldown check - this is not what we're looking for
Pim van Pelt
2018-11-01 14:11:37 +01:00
08453f3b5dLog by default to stderr/stdout, make user disable this explicitly for units which use GPIO 1,3
Pim van Pelt
2018-11-01 14:11:21 +01:00
23b2e37a1fAdd some notes to README
Pim van Pelt
2018-11-01 14:10:40 +01:00
7c9870aa32Order the sonoff-4ch channels correctly (idx0 == chan1)
Pim van Pelt
2018-11-01 13:50:17 +01:00
7a5507d691Set FLASH_SIZE to 1MB to flash ESP8285 Sonoff 4CH devices
Pim van Pelt
2018-10-31 13:51:26 +01:00
64fc98dcf7Add a 50ms delay after switching relays, so we avoid RF spikes from inductive loads triggering capacitive touch sensors
Pim van Pelt
2018-10-31 13:51:02 +01:00
3e3d9dcbe0Add timespec -- add tests for it too.
Pim van Pelt
2018-10-28 12:47:42 +01:00
9ee393bc8aRebase private OTA libs on 2.7
Pim van Pelt
2018-10-28 12:12:24 +01:00
497c62b382Add empty mgos_ro_vars.h
Pim van Pelt
2018-04-17 18:14:51 +02:00
56a2ec21abRefactor prometheus-sensors into top-level directory; pull in DHT library
Pim van Pelt
2018-04-17 18:12:41 +02:00
491ba88d1aFormatting
Pim van Pelt
2018-04-17 15:00:29 +02:00
8bf7b919ccFactor out DHT
Pim van Pelt
2018-03-04 16:38:54 +01:00
6898ff8349Add a simple Prometheus exporter.
Pim van Pelt
2018-02-25 19:59:32 +01:00
13d1ab1fa5Add app.dht_gpio flag to find DHT sensors
Pim van Pelt
2018-02-13 01:15:14 +01:00
c72ea2af41Keep a list of DHT sensors
Pim van Pelt
2018-02-12 18:25:36 +01:00
bb62e9b6aeAdd DHT support.
Pim van Pelt
2018-02-11 13:20:36 +01:00
b1472d059dRespond to upstream refactor
Pim van Pelt
2018-02-11 12:58:32 +01:00
a0909ab6a0Blink statusled on recv/xmit MQTT messages; debounce 200ms; trigger button on release; Prime for sonoff-basic // sonoff-sv
Pim van Pelt
2018-01-25 14:52:55 +01:00
7ea1e26020Fix JSON escaping and scoping
Pim van Pelt
2018-01-24 14:27:58 +01:00
4a083555e8Clean up RPC response.
Pim van Pelt
2018-01-24 14:08:29 +01:00
118eb14447Rewrite statusled implementation.
Pim van Pelt
2018-01-24 13:33:13 +01:00
f0fa04dc26s/led_green/led_status/g because not all status leds are green :)
Pim van Pelt
2018-01-22 23:23:43 +01:00
3327a561f9Add channel_get_total()
Pim van Pelt
2018-01-22 22:23:48 +01:00
b78e79223aAdd sonoff devices
Pim van Pelt
2018-01-22 19:16:17 +01:00
42524d15b2Add configs for some banggood light switches:
Pim van Pelt
2018-01-05 17:07:20 +01:00
4679636fdcInitial checkin.
Pim van Pelt
2018-01-05 16:58:15 +01:00